/* ============================================
   ACADEMIC CALENDAR PAGE — PREMIUM STYLES
   Cambridge Model Sr. Sec. School
   ============================================ */

/* ============================================
   SHARED SECTION HEADER
   ============================================ */
.acal-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.acal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    color: #C9A24D;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.acal-section-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 14px;
}

.acal-section-header p {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   QUICK STATS (overlapping hero)
   ============================================ */
.acal-stats-section {
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.acal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.acal-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 162, 77, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acal-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(201, 162, 77, 0.3);
}

.acal-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF8EE, #FFF0DB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 16px;
    margin: 0 auto 12px;
}

.acal-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0B3D2E;
    margin-bottom: 4px;
    line-height: 1.1;
}

.acal-stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   SESSION TIMELINE
   ============================================ */
.acal-timeline-section {
    padding: 80px 0;
    background: #fff;
}

.acal-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.acal-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #C9A24D, #0B3D2E);
    border-radius: 2px;
}

.acal-timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.acal-timeline-item:last-child {
    margin-bottom: 0;
}

.acal-timeline-dot {
    position: absolute;
    left: -33px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C9A24D;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.2);
    z-index: 1;
}

.acal-timeline-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acal-timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(201, 162, 77, 0.25);
}

.acal-timeline-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 19px;
}

.acal-timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 4px;
}

.acal-timeline-date {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(201, 162, 77, 0.12);
    color: #8B6914;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.acal-timeline-content p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   TERM SCHEDULE
   ============================================ */
.acal-terms-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF8EE, #FFF0DB);
}

.acal-terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.acal-term-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acal-term-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 162, 77, 0.25);
}

.acal-term-number {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(11, 61, 46, 0.06);
    line-height: 1;
}

.acal-star-icon {
    font-size: 0.8em;
}

.acal-term-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF8EE, #FFF0DB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 24px;
    margin: 0 auto 18px;
    transition: all 0.35s ease;
}

.acal-term-card:hover .acal-term-icon {
    background: linear-gradient(135deg, #0B3D2E, #155d47);
}

.acal-term-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 8px;
}

.acal-term-period {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(201, 162, 77, 0.12);
    color: #8B6914;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.acal-term-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
}

/* ============================================
   EXAM SCHEDULE TABLE
   ============================================ */
.acal-exam-section {
    padding: 80px 0;
    background: #fff;
}

.acal-exam-table-wrap {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201, 162, 77, 0.1);
}

.acal-exam-table {
    width: 100%;
    border-collapse: collapse;
}

.acal-exam-table thead tr {
    background: linear-gradient(135deg, #0B3D2E, #155d47);
}

.acal-exam-table thead th {
    padding: 16px 24px;
    color: #C9A24D;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
}

.acal-exam-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.25s ease;
}

.acal-exam-table tbody tr:last-child {
    border-bottom: none;
}

.acal-exam-table tbody tr:hover {
    background: rgba(255, 248, 238, 0.6);
}

.acal-exam-table tbody tr:nth-child(even) {
    background: rgba(255, 248, 238, 0.35);
}

.acal-exam-table tbody tr:nth-child(even):hover {
    background: rgba(255, 248, 238, 0.7);
}

.acal-exam-table tbody td {
    padding: 15px 24px;
    font-size: 0.9rem;
    color: #374151;
}

.acal-exam-table tbody td:first-child {
    font-weight: 600;
    color: #0B3D2E;
}

/* ============================================
   HOLIDAYS & PTM
   ============================================ */
.acal-dates-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF8EE, #FFF0DB);
}

.acal-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.acal-dates-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.acal-dates-card:hover {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.09);
    border-color: rgba(201, 162, 77, 0.25);
}

.acal-dates-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(201, 162, 77, 0.15);
}

.acal-dates-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 17px;
}

.acal-dates-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0B3D2E;
}

.acal-dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acal-dates-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.acal-dates-list li:last-child {
    border-bottom: none;
}

.acal-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: #C9A24D;
}

.acal-dates-note {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 248, 238, 0.7);
    font-size: 0.82rem;
    color: #6b7280;
}

.acal-dates-note i {
    color: #C9A24D;
    margin-right: 6px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.acal-cta-section {
    padding: 72px 0;
    background: linear-gradient(135deg, #0B3D2E 0%, #155d47 50%, #0B3D2E 100%);
    position: relative;
    overflow: hidden;
}

.acal-cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.06);
}

.acal-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.04);
}

.acal-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.acal-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.acal-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.02rem;
    max-width: 550px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.acal-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.acal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A24D, #D4AF61);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(201, 162, 77, 0.3);
}

.acal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 77, 0.45);
}

.acal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s ease;
}

.acal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 992px) {
    .acal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .acal-stats-section {
        margin-top: -20px;
    }

    .acal-terms-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .acal-dates-grid {
        grid-template-columns: 1fr;
    }

    .acal-section-header h2 {
        font-size: 1.7rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Table to card conversion */
    .acal-exam-table thead {
        display: none;
    }

    .acal-exam-table tbody tr {
        display: block;
        padding: 18px 20px;
        margin-bottom: 12px;
        border-radius: 14px;
        border: 1px solid rgba(201, 162, 77, 0.1);
        background: #fff;
    }

    .acal-exam-table tbody tr:nth-child(even) {
        background: #fff;
    }

    .acal-exam-table tbody td {
        display: block;
        padding: 6px 0;
        text-align: left;
    }

    .acal-exam-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #6b7280;
        display: block;
        margin-bottom: 2px;
    }

    .acal-exam-table tbody td:first-child {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .acal-exam-table-wrap {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .acal-timeline {
        padding-left: 30px;
    }

    .acal-timeline::before {
        left: 10px;
    }

    .acal-timeline-dot {
        left: -27px;
        width: 12px;
        height: 12px;
    }

    .acal-timeline-card {
        padding: 20px 18px;
        gap: 14px;
    }

    .acal-timeline-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .acal-stats-section {
        margin-top: 0;
    }

    .acal-stats-section {
        margin-top: 0;
    }

    .acal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .acal-stat-card {
        padding: 18px 10px;
    }

    .acal-stat-number {
        font-size: 1.4rem;
    }

    .acal-stat-label {
        font-size: 0.7rem;
    }

    .acal-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .acal-timeline-section,
    .acal-terms-section,
    .acal-exam-section,
    .acal-dates-section,
    .acal-cta-section {
        padding: 55px 0;
    }

    .acal-section-header {
        margin-bottom: 32px;
    }

    .acal-section-header h2 {
        font-size: 1.35rem;
    }

    .acal-section-header p {
        font-size: 0.9rem;
    }

    .acal-term-card {
        padding: 28px 22px;
    }

    .acal-dates-card {
        padding: 24px 20px;
    }

    .acal-dates-card-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .acal-cta-content h2 {
        font-size: 1.35rem;
    }

    .acal-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .acal-btn-primary,
    .acal-btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}
