.course_section {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    background-color: #f9fafb;
    margin: 5rem 0;
    padding: 2rem;
}

.course_container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    overflow: hidden;
}

.course_header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.course_header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.course_header h3 {
    font-size: 1.5rem;
    color: #2d4a8c;
    margin-bottom: 1rem;
}

.course_header p {
    color: #4a5568;
    line-height: 1.6;
}

.course_contents {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2rem;
    padding: 1rem;
}
@media screen and (min-width: 1201px) {
    .course_contents {
        grid-template-columns: repeat(4,1fr);
    }
}
@media screen and (max-width: 1200px) {
    .course_contents {
        grid-template-columns: repeat(3,1fr);
    }
    
    
}
@media screen and (max-width: 900px) {
    .course_contents {
        grid-template-columns: repeat(2,1fr);
    }
    
}
@media screen and (max-width: 600px) {
    .course_contents {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: 600;
}

.card p {
    color: #4a5568;
    line-height: 1.5;
    flex-grow: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #555;
}

.modal-desc {
    color: #4a5568;
    line-height: 1.6;
    margin: 1rem 0;
}

.modal-list {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.modal-list li {
    color: #4a5568;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary {
    background: #4299e1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: #3182ce;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.start-btn {
    background: #4299e1;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.start-btn:hover {
    background: #3182ce;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d3748;
}

.btn-primary {
    background: #4299e1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #3182ce;
}

.status_table {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status_table table {
width: 100%;
border-collapse: collapse;
}

.status_table th, .status_table td {
padding: 10px;
text-align: center;
border: 1px solid #ddd;
}

.status_table th {
background-color: #f4f4f4;
font-weight: bold;
}

.status_table td span {
font-size: 14px;
}

.payment-modal h2{
padding: 1rem 0;
border-bottom: 1px solid;
margin-bottom: 10px;
font-size: 1.5rem;
font-weight: bold;
}
.payment-modal .highlight{
color: #ff9923;
font-size: 1.2rem;
font-weight: bold;
}

.confirm-modal h2{
    text-align: center;
}

.confirm-modal .modal-desc{
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 1.2rem 0;
}

.confirm-modal .modal-list{
    border-bottom: 1px solid;
}

.confirm-modal .button-container{
    margin-top: 1rem;
}