body {
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    color: #333;
}

#course-application {
    position: fixed;
    bottom: 0px;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
}

    #course-application::after {
        content: "";
        position: fixed; /* ✅ fixed بدل absolute علشان يغطي الشاشة بالكامل */
        top: 0px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #00214762;
        z-index: -1;
    }

    #course-application form {
        background-color: #e7e7e7;
        padding: 20px;
        border-radius: 10px;
        max-width: 700px;
        margin: 0;
        position: relative;
        max-height: 95vh;
        overflow-y: scroll;
    }

        #course-application form #close-form {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 25px;
            font-weight: 700;
            background: transparent;
            border: 0;
            cursor: pointer;
            overflow-y: auto;
            transition: 0.7s;
            color: #333;
            overflow: hidden;
        }

            #course-application form #close-form:hover {
                color: rgb(175, 3, 3);
                transform: rotate(180deg);
            }

    #course-application h2, #course-application p {
        color: black;
    }

main {
    max-width: 1300px;
    margin: 150px auto 50px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 100;
    min-height: 80vh;
    overflow-x: hidden;
    width: 100%;
}


.course-content {
    flex: 1;
    color: #333;
}

.course-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.course-desc {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #e7e7e7;
    max-width: 550px;
}

/* ─── 2×3 Info-Button Grid ─── */
.course-info .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 560px; /* keeps the block from stretching on wide screens */
}

.course-info .info-box {
    background: #f3f6fa;
    border: 1.5px solid #dce4ee;
    padding: 11px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #002147;
    font-size: 0.88rem;
    /* centre icon + text vertically & horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px; /* uniform row height */
    box-sizing: border-box;
    /* every box is interactive */
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    /* default hover – subtle lift + accent border */
    .course-info .info-box:hover {
        background-color: #eef3fc;
        border-color: #B9CF25;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 33, 71, 0.12);
    }

    /* focus-visible for keyboard / assistive navigation */
    .course-info .info-box:focus-visible {
        outline: 2px solid #B9CF25;
        outline-offset: 2px;
    }

    /* Next-Course button keeps its stronger accent hover */
    .course-info .info-box.next-course:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        color: #fff;
    }

.course-info i {
    margin-right: 8px;
    color: #B9CF25;
    flex-shrink: 0; /* icon never collapses */
}

.course-image img {
    width: 35rem;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: 0.4s ease;
    height: 30rem;
    object-fit: cover;
}

    .course-image img:hover {
        transform: scale(1.05);
    }


/* Extra Sections */
.course-section {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    width: 50%;
}

    .course-section h2 {
        font-weight: 700;
        color: #002147;
        margin-bottom: 15px;
    }

    .course-section ul {
        list-style: none;
        padding-left: 0;
    }

        .course-section ul li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 25px;
        }

            .course-section ul li::before {
                content: "✓";
                position: absolute;
                left: 0;
                color: #B9CF25;
                font-weight: bold;
            }

.careers-frame {
    padding: 40px 15px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .careers-frame {
        padding: 24px;
    }
}

.text-main {
    color: #B9CF25 !important;
}

.btn-main {
    background: #B9CF25;
    color: #002147;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: 0.3s;
    text-decoration: none;
}

    .btn-main:hover {
        background: #002147;
        color: #fff;
    }

.btn-outline-main {
    border: 2px solid #B9CF25;
    color: #002147;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

    .btn-outline-main:hover {
        background: #B9CF25;
        color: #002147;
    }
/* Responsive */
@media (max-width: 992px) {
    main {
        flex-direction: column-reverse;
        text-align: center;
    }

    .course-image img {
        height: 300px;
    }

    .course-section {
        width: 100%;
    }

    #course-application form {
        max-width: 330px;
    }

        #course-application form #close-form {
            top: 0px;
            right: -5px;
        }
}

@media (max-width: 992px) {
    #course-application form {
        max-height: 600px;
    }
}

@media (max-width: 576px) {
    .course-image img {
        height: 20rem !important;
    }
}

@media (max-width: 500px) {
    .course-title {
        font-size: 1.9rem;
    }

    .course-section {
        padding: 20px 20px;
    }

    .enroll-btn {
        padding: 15px 20px;
        min-width: 150px;
    }

    /* ── stack the 2×3 grid into a single column on mobile ── */
    .course-info .info-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .course-info .info-box {
        min-height: 44px; /* slightly tighter on mobile */
        justify-content: flex-start;
        padding-left: 18px;
    }
}


#calendar {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 1100px;
    width: 100%;
    z-index: 999;
}

.fc-toolbar-chunk {
    text-align: center;
}

    .fc-toolbar-chunk .fc-today-button {
        margin-bottom: 10px;
        display: inline-block;
    }

#calendar .close-calendar {
    background-color: #b90202;
    color: white;
    width: 120px;
    padding: 10px;
    border-radius: 15px;
    font-size: 17px;
    margin: auto;
    margin-top: 7px;
    border: 0;
    outline: 0;
    transition: .5s;
}

    #calendar .close-calendar:hover {
        background-color: #7e0303;
    }


.enroll-section {
    background: linear-gradient(135deg, #e8f0ff, #ffffff);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    line-height: 1.8;
    font-size: 17px;
}

    .enroll-section p {
        max-width: 900px;
    }

    .enroll-section a.enroll-btn {
        display: inline-block;
        background: #B9CF25;
        color: #fff;
        padding: 12px 28px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        transition: 0.3s;
        display: inline-block;
        margin: 0px 10px;
    }

        .enroll-section a.enroll-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }

    .enroll-section i {
        margin-right: 8px;
    }

.enroll-title {
    font-weight: 700;
}

@media (max-width: 768px) {
    .enroll-section {
        font-size: 16px;
        text-align: justify;
    }
}
/* --- تكبير مربعات الأيام --- */
#calendar .fc-daygrid-body td {
    height: 120px !important;
    width: 120px /* ارتفاع كل يوم */
}

#calendar .fc-daygrid-day-frame {
    padding: 2px !important; /* مسافة داخل كل مربع */
}

/* --- تكبير عرض الأحداث جوه المربعات --- */
#calendar .fc-daygrid-event {
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 3px;
}

/* --- زيادة المسافة بين الصفوف --- */
#calendar .fc-scrollgrid-sync-table tr {
    height: 130px !important;
}

.info-box select {
    min-width: 100px;
    font-weight: 600;
    color: #002147;
    font-size: 0.88rem;
    
}

/*background: #f3f6fa;
border: 1.5px solid #dce4ee;
padding: 11px 10px;
border-radius: 8px;
font-weight: 600;
color: #002147;
font-size: 0.88rem;

display: flex;
align-items: center;
justify-content: center;
text-align: center;
min-height: 48px; 
box-sizing: border-box;

cursor: pointer;
transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;*/