﻿/* =========================================================
   HULEG INTERNATIONAL SCHOOL
   ACADEMIC CALENDAR
========================================================= */

:root {
    --ac-navy: #0a2d4f;
    --ac-navy-dark: #061f38;
    --ac-gold: #b59a62;
    --ac-gold-light: #cbb47f;
    --ac-cream: #f5f3ed;
    --ac-text: #27323c;
    --ac-muted: #747b82;
    --ac-academic: #0d5f89;
    --ac-event: #c18d32;
    --ac-competition: #7c5c91;
    --ac-exam: #a83e45;
    --ac-holiday: #668c65;
    --ac-publicholiday: #9c6b4a;
}


/* =========================================================
   PAGE
========================================================= */

.ac-page {
    background: #fff;
    color: var(--ac-text);
}


/* =========================================================
   HERO
========================================================= */

.ac-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: url("/images/surguuli.jpg") center center / cover no-repeat;
}

.ac-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(5,27,47,.08) 0%, rgba(5,27,47,.25) 45%, rgba(5,27,47,.82) 100% );
}

.ac-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 180px;
    padding-bottom: 60px;
    color: #fff;
}

.ac-hero-kicker {
    margin-bottom: 10px;
    color: var(--ac-gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ac-hero h1 {
    max-width: 1000px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem,4.5vw,4.8rem);
    font-weight: 400;
    line-height: 1.05;
}

    .ac-hero h1 span {
        display: block;
        margin-top: 5px;
        font-size: .55em;
        color: rgba(255,255,255,.95);
    }

.ac-hero p {
    max-width: 750px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   MAIN
========================================================= */

.ac-main {
    padding: 0 0 90px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.ac-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 20px 0 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--ac-gold);
    color: var(--ac-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

    .ac-breadcrumb a {
        color: var(--ac-gold);
        text-decoration: none;
    }

        .ac-breadcrumb a:hover {
            color: var(--ac-navy);
        }

    .ac-breadcrumb strong {
        color: #777;
        font-weight: 600;
    }


/* =========================================================
   HEADING
========================================================= */

.ac-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.ac-heading-kicker {
    margin-bottom: 6px;
    color: var(--ac-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ac-heading h2 {
    margin: 0;
    color: var(--ac-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
}

.ac-heading > span {
    display: block;
    width: 50px;
    height: 1px;
    margin: 18px auto 20px;
    background: var(--ac-gold);
}

.ac-heading p {
    margin: 0;
    color: var(--ac-muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.ac-filter-panel {
    margin-bottom: 28px;
    padding: 28px 30px 30px;
    border: 1px solid #ded8c9;
    border-top: 3px solid var(--ac-gold);
    background: #faf9f6;
}

.ac-filter-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--ac-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

    .ac-filter-title i {
        color: var(--ac-gold);
        font-size: 15px;
    }

.ac-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ac-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.ac-select-wrap {
    position: relative;
}

.ac-select {
    height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid #d5d1c6;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 13px;
    box-shadow: none !important;
    appearance: none;
}

    .ac-select:focus {
        border-color: var(--ac-gold);
    }

.ac-select-wrap > i {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--ac-gold);
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 11px;
}


/* =========================================================
   LEGEND
========================================================= */

.ac-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 42px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1ddd4;
}

.ac-legend-title {
    color: var(--ac-navy);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ac-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ac-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #dedede;
    background: #fff;
    color: #444;
    font-size: 10px;
    white-space: nowrap;
}

    .ac-legend-chip i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }


    /* =========================================================
   LEGEND COLORS
========================================================= */

    .ac-legend-chip.academic i {
        background: var(--ac-academic);
    }

    .ac-legend-chip.event i {
        background: var(--ac-event);
    }

    .ac-legend-chip.competition i {
        background: var(--ac-competition);
    }

    .ac-legend-chip.exam i {
        background: var(--ac-exam);
    }

    .ac-legend-chip.holiday i {
        background: var(--ac-holiday);
    }

    .ac-legend-chip.publicholiday i {
        background: var(--ac-publicholiday);
    }


/* =========================================================
   MONTH GRID
========================================================= */

.ac-month-grid {
    align-items: stretch;
}

.calendar-month {
    display: flex;
}

.ac-month-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd9cf;
    box-shadow: 0 5px 18px rgba(5,25,40,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .ac-month-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(5,25,40,.09);
    }


/* =========================================================
   MONTH HEADER
========================================================= */

.ac-month-header {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 22px;
    background: var(--ac-navy);
    border-bottom: 4px solid var(--ac-gold);
}

.ac-month-year {
    margin-bottom: 3px;
    color: rgba(255,255,255,.58);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.ac-month-header h2 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.ac-month-count {
    min-width: 55px;
    color: var(--ac-gold-light);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

    .ac-month-count span {
        display: block;
        margin-top: 5px;
        color: rgba(255,255,255,.62);
        font-size: 7px;
        font-weight: 700;
        letter-spacing: .08em;
    }


/* =========================================================
   EVENT LIST
========================================================= */

.ac-event-list {
    flex: 1;
    padding: 6px 18px 14px;
}


/* =========================================================
   EVENT ROW
========================================================= */

.ac-event {
    position: relative;
    width: 100%;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 15px 32px 15px 0;
    border: 0;
    border-bottom: 1px solid #e8e5de;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, padding-left .2s ease;
}

    .ac-event:last-child {
        border-bottom: 0;
    }

    .ac-event:hover {
        padding-left: 5px;
        background: #faf9f5;
    }


/* =========================================================
   EVENT DATE
========================================================= */

.ac-event-date {
    flex: 0 0 54px;
    min-height: 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 3px solid var(--ac-gold);
    background: #f4f2ec;
}

    .ac-event-date strong {
        color: var(--ac-navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 25px;
        font-weight: 400;
        line-height: 1;
    }

    .ac-event-date small {
        margin-top: 4px;
        color: var(--ac-muted);
        font-size: 8px;
        font-weight: 700;
    }


/* =========================================================
   EVENT CONTENT
========================================================= */

.ac-event-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ac-event-category {
    margin-bottom: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ac-event-title {
    display: block;
    color: var(--ac-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.ac-event-range,
.ac-event-group {
    margin-top: 5px;
    color: #858585;
    font-size: 9px;
    line-height: 1.4;
}

    .ac-event-group i {
        margin-right: 3px;
        color: var(--ac-gold);
    }


/* =========================================================
   EVENT ARROW
========================================================= */

.ac-event-arrow {
    position: absolute;
    right: 3px;
    top: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 11px;
    transition: color .2s ease, transform .2s ease;
}

.ac-event:hover .ac-event-arrow {
    color: var(--ac-gold);
    transform: translateY(-50%) translateX(2px);
}


/* =========================================================
   CATEGORY COLORS
========================================================= */

.ac-event.academic .ac-event-date {
    border-left-color: var(--ac-academic);
}

.ac-event.academic .ac-event-category {
    color: var(--ac-academic);
}


.ac-event.event .ac-event-date {
    border-left-color: var(--ac-event);
}

.ac-event.event .ac-event-category {
    color: var(--ac-event);
}


.ac-event.competition .ac-event-date {
    border-left-color: var(--ac-competition);
}

.ac-event.competition .ac-event-category {
    color: var(--ac-competition);
}


.ac-event.exam .ac-event-date {
    border-left-color: var(--ac-exam);
}

.ac-event.exam .ac-event-category {
    color: var(--ac-exam);
}


.ac-event.holiday .ac-event-date {
    border-left-color: var(--ac-holiday);
}

.ac-event.holiday .ac-event-category {
    color: var(--ac-holiday);
}


.ac-event.publicholiday .ac-event-date {
    border-left-color: var(--ac-publicholiday);
}

.ac-event.publicholiday .ac-event-category {
    color: var(--ac-publicholiday);
}


/* =========================================================
   EMPTY MONTH
========================================================= */

.ac-empty-month {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #a2a2a2;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

    .ac-empty-month i {
        color: var(--ac-gold);
        font-size: 24px;
    }


/* =========================================================
   MODAL
========================================================= */

.ac-modal {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.ac-modal-topline {
    height: 4px;
    background: var(--ac-gold);
}

.ac-modal-header {
    padding: 28px 30px 12px;
    border: 0;
}

.ac-modal-date {
    margin-bottom: 7px;
    color: var(--ac-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
}

.ac-modal-header .modal-title {
    margin: 0;
    color: var(--ac-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
}

.ac-modal-body {
    padding: 10px 30px 32px;
}

    .ac-modal-body p {
        margin: 0;
        color: #59636d;
        font-size: 14px;
        line-height: 1.85;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .ac-hero {
        min-height: 330px;
    }

    .ac-hero-inner {
        padding-top: 150px;
        padding-bottom: 50px;
    }

    .ac-main {
        padding-bottom: 70px;
    }

    .ac-filter-panel {
        padding: 24px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .ac-hero {
        min-height: 300px;
    }

    .ac-hero-inner {
        padding-top: 135px;
        padding-bottom: 40px;
    }

    .ac-hero h1 {
        font-size: 2.55rem;
    }

        .ac-hero h1 span {
            font-size: .48em;
        }

    .ac-hero p {
        font-size: 13px;
    }

    .ac-main {
        padding-bottom: 55px;
    }

    .ac-heading {
        margin-bottom: 35px;
    }

        .ac-heading h2 {
            font-size: 30px;
        }

    .ac-filter-panel {
        padding: 22px 18px;
    }

    .ac-legend {
        display: block;
    }

    .ac-legend-title {
        margin-bottom: 12px;
    }

    .ac-month-header {
        min-height: 95px;
        padding: 18px;
    }

        .ac-month-header h2 {
            font-size: 22px;
        }

    .ac-event-list {
        padding: 5px 14px 12px;
    }

    .ac-event {
        gap: 11px;
    }

    .ac-event-date {
        flex-basis: 48px;
    }

    .ac-event-title {
        font-size: 12px;
    }

    .ac-modal-header {
        padding: 24px 22px 10px;
    }

    .ac-modal-body {
        padding: 10px 22px 26px;
    }
}
