﻿/* SECTION */

.courses-section {
    padding: 50px 0;
    background: #f6f8fc;
    font-family: Arial, Helvetica, sans-serif;
}

/* TITLE */

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 40px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .section-title p {
        color: #666;
    }


/* FILTER */

.course-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    margin: 5px;
    border: none;
    border-radius: 30px;
    background: #e5e7eb;
    cursor: pointer;
    font-weight: 600;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: #4f46e5;
        color: white;
    }


/* GRID */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    width: 90%;
    margin: auto;
}


/* CARD */

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s;
    position: relative;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }


/* BADGE */

.course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4f46e5;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
}


/* IMAGE */

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* CONTENT */

.course-content {
    padding: 20px;
}

    .course-content h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .course-content p {
        font-size: 15px;
        color: #555;
        margin-bottom: 20px;
    }


/* BUTTON */

.course-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg,#4f46e5,#6366f1);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}


/* MODAL */

.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

.close-btn {
    cursor: pointer;
    font-size: 25px;
    float: right;
}


/* RESPONSIVE */

@media(max-width:992px) {
    .courses-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }
}





/* MODAL BACKGROUND */

.admission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


/* BOX */

.admission-box {
    background: linear-gradient(180deg,#1e3a8a,#1e40af);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    color: white;
    text-align: center;
}


    /* TITLE */

    .admission-box h2 {
        font-size: 40px;
        margin-bottom: 5px;
    }

.tagline {
    margin-bottom: 30px;
    opacity: 0.9;
}


/* FORM GRID */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


    /* INPUT */

    .form-grid input,
    textarea {
        width: 100%;
        padding: 15px;
        border: none;
        border-radius: 5px;
        background: #f1f5f9;
        box-shadow: 0 0 20px rgba(255,255,255,0.5);
    }


/* TEXTAREA */

textarea {
    height: 150px;
    margin-bottom: 20px;
}


/* BUTTON */

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #38bdf8;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

    .submit-btn:hover {
        background: #0ea5e9;
    }


/* CLOSE BUTTON */

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}


/* APPLY BUTTON */

.apply-btn {
    padding: 12px 30px;
    background: #4f46e5;
    text-decoration:none;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

@media(max-width:768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admission-box {
        padding: 25px;
    }

        .admission-box h2 {
            font-size: 30px;
        }
}
