/* ===== SCHEDULE PAGE ===== */

.schedule-page {
    font-family: Arial, Tahoma, sans-serif;
    padding: 15px 0 30px;
}

/* Section titles */
.schedule-section {
    margin-bottom: 35px;
}

.schedule-section-title {
    font-size: 25px;
    font-weight: bold;
    color: #176b45;
    padding: 12px 18px;
    margin-bottom: 22px;
    background: #eef7f1;
    border-right: 5px solid #198754;
    border-radius: 5px;
}

.schedule-section-title.ltr {
    border-right: none;
    border-left: 5px solid #198754;
}

/* Department card */
.schedule-card {
    background: #ffffff;
    border: 1px solid #e4e9e6;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.schedule-card:hover {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
}

/* Department name */
.schedule-card-header {
    background: #f7faf8;
    padding: 16px;
    border-bottom: 1px solid #e4e9e6;
    min-height: 65px;
    display: flex;
    align-items: center;
}

.schedule-card-header h4 {
    font-size: 17px;
    font-weight: bold;
    color: #253c30;
    margin: 0;
    line-height: 1.6;
}

/* Semester buttons */
.schedule-card-body {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-link {
    display: inline-block;

    font-size: 17px;
    font-weight: 600;

    padding: 12px 18px;

    background-color: #eef7f1;
    color: #176b45 !important;

    border: 1px solid #c9e3d3;
    border-radius: 7px;

    text-decoration: none !important;

    transition: all 0.2s ease;
}

.schedule-link:hover {
    background-color: #176b45;
    color: white !important;
    border-color: #176b45;
}

.schedule-unavailable {
    color: #858585;
    font-size: 14px;
    padding: 9px 0;
}
/* Decorative divider */

.schedule-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin: 45px 0;
    padding: 0 15px;
}

.schedule-divider::before,
.schedule-divider::after {
    content: "";

    flex: 1;
    height: 2px;

    background: linear-gradient(
        to right,
        transparent,
        #198754,
        #198754
    );
}

.schedule-divider::after {
    background: linear-gradient(
        to left,
        transparent,
        #198754,
        #198754
    );
}

.schedule-divider span {
    width: 14px;
    height: 14px;

    background: #198754;

    transform: rotate(45deg);

    border: 2px solid white;

    box-shadow: 0 0 0 2px #198754;

    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .schedule-section-title {
        font-size: 21px;
    }

    .schedule-card-header {
        min-height: auto;
    }

    .schedule-card-body {
        padding: 12px;
    }

    .schedule-link {
        font-size: 16px;
        padding: 10px 14px;
    }
}
/* Arabic text */
.schedule-page [dir="rtl"] {
    text-align: right;
}

/* Fix Arabic department titles */
.schedule-page [dir="rtl"] .schedule-card-header {
    direction: rtl;
    text-align: right;
}

/* Prevent content overflow */
.schedule-page .schedule-card {
    max-width: 100%;
}

/* Fix RTL Bootstrap 3 grid */
.schedule-page .row[dir="rtl"] {
    margin-left: -15px;
    margin-right: -15px;
}
/* =====================================================
   FLSH AIN CHOCK - SCHEDULE PAGE
   Faculty Blue Theme + Uniform Cards
   ===================================================== */

/* Faculty color palette */
.schedule-page {
    --flsh-blue: #005581;
    --flsh-blue-dark: #003f61;
    --flsh-blue-light: #eaf4f9;
    --flsh-border: #d5e5ed;
    --flsh-gray: #6b7280;
}


/* =================================
   SECTION TITLES
   ================================= */

.schedule-page .schedule-section-title {
    background: var(--flsh-blue-light);
    color: var(--flsh-blue);

    border-right: 5px solid var(--flsh-blue);
    border-left: none;

    padding: 15px 20px;
    border-radius: 6px;

    font-size: 25px;
    font-weight: bold;
}

/* French section titles */
.schedule-page .schedule-section-title.ltr {
    border-right: none;
    border-left: 5px solid var(--flsh-blue);
}


/* =================================
   UNIFORM CARD GRID
   ================================= */

/* Bootstrap 3 compatible grid */
.schedule-page .schedule-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Each column is a flex container */
.schedule-page .schedule-section .row > [class*="col-"] {
    display: flex;
    float: none;
    flex-direction: column;
}

/* Cards occupy the full column height */
.schedule-page .schedule-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    flex: 1;

    min-height: 175px;

    background: #ffffff;
    border: 1px solid var(--flsh-border);
    border-radius: 10px;

    margin-bottom: 20px;

    overflow: hidden;

    transition: all 0.2s ease;
}

/* Hover effect */
.schedule-page .schedule-card:hover {
    border-color: var(--flsh-blue);
    box-shadow: 0 5px 15px rgba(0, 85, 129, 0.12);
}


/* =================================
   CARD HEADERS
   ================================= */

.schedule-page .schedule-card-header {
    background: var(--flsh-blue-light);

    padding: 15px;

    min-height: 75px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--flsh-border);
}

/* Department titles */
.schedule-page .schedule-card-header h4 {
    font-size: 17px;
    font-weight: bold;

    color: var(--flsh-blue-dark);

    line-height: 1.5;
    margin: 0;
}


/* =================================
   CARD CONTENT
   ================================= */

.schedule-page .schedule-card-body {
    display: flex;
    flex-wrap: wrap;

    align-content: flex-start;
    align-items: flex-start;

    gap: 10px;

    padding: 16px;

    flex: 1;
}


/* =================================
   SEMESTER BUTTONS
   ================================= */

.schedule-page .schedule-link {
    display: inline-block;

    background: var(--flsh-blue-light);
    color: var(--flsh-blue) !important;

    border: 1px solid var(--flsh-border);
    border-radius: 6px;

    padding: 11px 16px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none !important;

    transition: all 0.2s ease;
}

/* Hover */
.schedule-page .schedule-link:hover,
.schedule-page .schedule-link:focus {
    background: var(--flsh-blue);
    color: #ffffff !important;
    border-color: var(--flsh-blue);
}


/* =================================
   UNAVAILABLE SCHEDULE
   ================================= */

.schedule-page .schedule-unavailable {
    color: var(--flsh-gray);
    font-size: 15px;
}


/* =================================
   DECORATIVE DIVIDER
   ================================= */

.schedule-page .schedule-divider::before,
.schedule-page .schedule-divider::after {
    background: linear-gradient(
        to right,
        transparent,
        var(--flsh-blue),
        transparent
    );
}

.schedule-page .schedule-divider span {
    background: var(--flsh-blue);
    box-shadow: 0 0 0 2px var(--flsh-blue);
}


/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 767px) {

    .schedule-page .schedule-card {
        min-height: 150px;
    }

    .schedule-page .schedule-card-header {
        min-height: 65px;
    }

    .schedule-page .schedule-link {
        font-size: 16px;
        padding: 10px 14px;
    }

    .schedule-page .schedule-section-title {
        font-size: 21px;
    }
}