/* ================================================================
   ACADEMICS PAGE - Ultra Modern Design
   Pragati Academy | Poppins | Crimson #980D1A + Gold #B09845
   ================================================================ */

/* ── Reveal Animation System (shared with about-page) ── */
.reveal {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal[data-reveal="fade-up"],
.reveal:not([data-reveal]) {
    transform: translateY(50px);
}

.reveal[data-reveal="fade-down"] {
    transform: translateY(-50px);
}

.reveal[data-reveal="fade-left"] {
    transform: translateX(60px);
}

.reveal[data-reveal="fade-right"] {
    transform: translateX(-60px);
}

.reveal[data-reveal="zoom-in"] {
    transform: scale(0.88);
}

.reveal[data-reveal="fade"] {
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes acad-shimmerBar {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes acad-fadeIn {
    to { opacity: 1; }
}

@keyframes acad-slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes acad-fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes acad-eyebrowGrow {
    0% { width: 0; }
    100% { width: 30px; }
}

@keyframes acad-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes acad-float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes acad-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.3; }
}

@keyframes acad-kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes acad-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes acad-number-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(176, 152, 69, 0.15); }
    50% { text-shadow: 0 0 40px rgba(176, 152, 69, 0.3); }
}

@keyframes acad-line-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ================================================================
   SECTION 1: HERO – Left Text + Right Image
   ================================================================ */
.acad-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: 540px;
}

.acad-hero__grid {
    display: flex;
    height: 620px;
}

.acad-hero__text-col {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 80px 56px 80px max(calc((100vw - var(--main-container)) / 2 + 24px), 24px);
    background: #fff;
    position: relative;
}

.acad-hero__text-col::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(176, 152, 69, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.acad-hero__text-col::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(152, 13, 26, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.acad-hero__text-inner {
    max-width: 540px;
}

.acad-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 18px;
    opacity: 0;
    animation: acad-fadeIn 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acad-hero__eyebrow-line {
    width: 0;
    height: 2px;
    background: var(--theme-color);
    border-radius: 2px;
    animation: acad-eyebrowGrow 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acad-hero__title {
    font-family: var(--title-font);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    color: var(--title-color);
    line-height: 1.15;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-30px);
    animation: acad-slideInLeft 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acad-hero__title em {
    font-style: normal;
    color: var(--theme-color);
}

.acad-hero__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
    padding-left: 14px;
    border-left: 3px solid var(--theme-color);
    opacity: 0;
    transform: translateY(20px);
    animation: acad-fadeSlideUp 0.7s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acad-hero__breadcrumb {
    display: flex;
    gap: 8px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 500;
    color: #999;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    opacity: 0;
    animation: acad-fadeIn 0.5s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acad-hero__breadcrumb a {
    color: var(--theme-color);
    text-decoration: none;
}

.acad-hero__breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: #ccc;
}

/* Right: Image Slider Column */
.acad-hero__image-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(7% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: #111;
}

.acad-hero__slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    object-fit: cover !important;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: block;
    max-width: none;
    max-height: none;
    width: 100% !important;
    height: 100% !important;
}

.acad-hero__slide--active {
    opacity: 1;
    animation: acad-kenBurns 8s ease-out forwards;
}

.acad-hero__image-accent {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 30%, rgba(0,0,0,0.35) 100%),
        linear-gradient(135deg, rgba(152,13,26,0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.acad-hero__image-col::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2), var(--theme-color));
    background-size: 200% 100%;
    animation: acad-shimmerBar 3s linear infinite;
    z-index: 3;
}

/* ================================================================
   SECTION 2: CURRICULAR OVERVIEW
   ================================================================ */
.acad-overview {
    position: relative;
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #fafaf8 0%, #fff 100%);
    overflow: hidden;
}

.acad-overview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0ddd5, transparent);
}

.acad-overview__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

/* Stage Table */
.acad-stage-table {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.acad-stage-table__header {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #6d0813 100%);
    color: #fff;
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.acad-stage-table__row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid #f4f3ef;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.acad-stage-table__row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--theme-color);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 4px 4px 0;
}

.acad-stage-table__row:last-child {
    border-bottom: none;
}

.acad-stage-table__row:hover,
.acad-stage-table__row--active {
    background: rgba(152, 13, 26, 0.03);
    transform: translateX(4px);
}

.acad-stage-table__row:hover::before,
.acad-stage-table__row--active::before {
    width: 4px;
}

.acad-stage-table__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--theme-color);
    background: rgba(152, 13, 26, 0.06);
    transition: all 0.35s ease;
}

.acad-stage-table__row:hover .acad-stage-table__icon {
    background: var(--theme-color);
    color: #fff;
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 20px rgba(152, 13, 26, 0.2);
}

.acad-stage-table__row[data-stage="foundational"] .acad-stage-table__icon { color: #16a34a; background: rgba(22, 163, 74, 0.08); }
.acad-stage-table__row[data-stage="preparatory"] .acad-stage-table__icon { color: #2563eb; background: rgba(37, 99, 235, 0.08); }
.acad-stage-table__row[data-stage="middle"] .acad-stage-table__icon { color: #d97706; background: rgba(217, 119, 6, 0.08); }
.acad-stage-table__row[data-stage="secondary"] .acad-stage-table__icon { color: var(--theme-color); background: rgba(152, 13, 26, 0.08); }

.acad-stage-table__row[data-stage="foundational"]:hover .acad-stage-table__icon { background: #16a34a; color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25); }
.acad-stage-table__row[data-stage="preparatory"]:hover .acad-stage-table__icon { background: #2563eb; color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); }
.acad-stage-table__row[data-stage="middle"]:hover .acad-stage-table__icon { background: #d97706; color: #fff; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25); }
.acad-stage-table__row[data-stage="secondary"]:hover .acad-stage-table__icon { background: var(--theme-color); color: #fff; box-shadow: 0 8px 20px rgba(152, 13, 26, 0.25); }

.acad-stage-table__name {
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--title-color);
}

.acad-stage-table__grade {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    color: #888;
    background: #f8f7f3;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Overview Row: default stage icon */
.acad-stage-table__icon--overview {
    color: var(--theme-color2) !important;
    background: rgba(176, 152, 69, 0.08) !important;
}

.acad-stage-table__row[data-stage="default"]:hover .acad-stage-table__icon--overview,
.acad-stage-table__row[data-stage="default"].acad-stage-table__row--active .acad-stage-table__icon--overview {
    background: var(--theme-color2) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(176, 152, 69, 0.25) !important;
}

/* ── Detail Panel Container ── */
.acad-overview__detail-wrap {
    position: relative;
    min-height: 380px;
}

.acad-detail-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.acad-detail-panel--active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.acad-detail-panel__inner {
    background: #fff;
    border-radius: 20px;
    padding: 38px 36px 34px;
    border: 1px solid #f0ede4;
    box-shadow: 0 16px 50px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease;
}

.acad-detail-panel--active .acad-detail-panel__inner {
    box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}

/* Programme badge */
.acad-detail-panel__badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.acad-detail-panel__badge--green {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.acad-detail-panel__badge--blue {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.acad-detail-panel__badge--amber {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.acad-detail-panel__badge--crimson {
    background: rgba(152, 13, 26, 0.08);
    color: var(--theme-color);
    border: 1px solid rgba(152, 13, 26, 0.15);
}

.acad-detail-panel__title {
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 14px;
    line-height: 1.25;
}

.acad-detail-panel__inner > p {
    font-family: var(--body-font);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.85;
    color: #555;
    margin-bottom: 20px;
}

.acad-detail-panel__inner > p strong {
    color: var(--title-color);
    font-weight: 700;
}

/* Highlights list */
.acad-detail-panel__highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acad-detail-panel__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    color: #444;
}

.acad-detail-panel__highlights li i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color2), #8a7530);
    margin-top: 2px;
}

/* Explore button */
.acad-detail-panel__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px rgba(152, 13, 26, 0.15);
}

.acad-detail-panel__btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.acad-detail-panel__btn:hover {
    background: #6d0813;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(152, 13, 26, 0.25);
}

.acad-detail-panel__btn:hover i {
    transform: translateX(4px);
}

/* Overview Badges (used inside default panel) */
.acad-overview__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.acad-overview__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(152, 13, 26, 0.04), rgba(176, 152, 69, 0.06));
    border: 1px solid rgba(176, 152, 69, 0.15);
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--title-color);
    transition: all 0.3s ease;
}

.acad-overview__badge i {
    color: var(--theme-color2);
    font-size: 14px;
}

.acad-overview__badge:hover {
    background: linear-gradient(135deg, rgba(152, 13, 26, 0.08), rgba(176, 152, 69, 0.12));
    border-color: rgba(176, 152, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ================================================================
   SECTION 3: SCHOOL STRUCTURE – Interactive Accordion Cards
   (Reuses index page pattern with acad- prefix)
   ================================================================ */
.acad-structure-section {
    background-color: var(--smoke-color, #F3F0E5);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(176, 152, 69, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(152, 13, 26, 0.1) 0%, transparent 50%);
    font-family: var(--body-font, 'Poppins', sans-serif);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.acad-structure-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23B09845" fill-opacity="0.12"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.8;
    z-index: -1;
}

.acad-structure-section .relative-z {
    position: relative;
    z-index: 2;
}

.acad-structure-grid {
    display: flex;
    gap: 20px;
    height: 500px;
    width: 100%;
    margin-top: 20px;
}

.acad-structure-card {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.acad-structure-card:hover,
.acad-structure-card--peek {
    flex: 3;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.acad-structure-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.acad-structure-card:hover img,
.acad-structure-card--peek img {
    transform: scale(1.05);
}

.acad-structure-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.acad-structure-card:hover .acad-structure-overlay,
.acad-structure-card--peek .acad-structure-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 60%, rgba(17, 17, 17, 0.2) 100%);
}

.acad-structure-title-vert {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--title-font, 'Poppins', sans-serif);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.acad-structure-card:hover .acad-structure-title-vert,
.acad-structure-card--peek .acad-structure-title-vert {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

.acad-structure-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 6px;
    background: var(--theme-color);
    transform: scaleY(1);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.acad-structure-card:hover::after {
    height: 8px;
    background: #b11f26;
}

.acad-structure-content-full {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    transition-delay: 0s;
    pointer-events: none;
}

.acad-structure-card:hover .acad-structure-content-full,
.acad-structure-card--peek .acad-structure-content-full {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    pointer-events: auto;
}

.acad-structure-content-full h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.acad-structure-badge {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.acad-structure-content-full p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.acad-structure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.acad-structure-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.acad-structure-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.acad-structure-btn:hover i {
    transform: translateX(4px);
}

/* ================================================================
   SECTION 4: STUDENT ENHANCEMENT PROGRAMMES
   ================================================================ */
.acad-enhance {
    position: relative;
    padding: 110px 0;
    background: #fff;
    overflow: hidden;
}

.acad-enhance::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0ddd5, transparent);
}

.acad-enhance__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 50px;
}

.acad-enhance__card {
    position: relative;
    background: #fff;
    border: 1px solid #f0ede4;
    border-radius: 24px;
    padding: 48px 40px 44px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.acad-enhance__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2));
    border-radius: 24px 24px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.acad-enhance__card:hover::before {
    transform: scaleX(1);
}

.acad-enhance__card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(176, 152, 69, 0.06) 0%, transparent 70%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.acad-enhance__card:hover {
    border-color: transparent;
    box-shadow: 0 25px 80px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.acad-enhance__card:hover::after {
    bottom: -40px;
    right: -40px;
}

.acad-enhance__card-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color) 0%, #6d0813 100%);
    box-shadow: 0 10px 30px rgba(152, 13, 26, 0.2);
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.acad-enhance__card:hover .acad-enhance__card-icon {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 14px 36px rgba(152, 13, 26, 0.3);
}

.acad-enhance__card:nth-child(2) .acad-enhance__card-icon {
    background: linear-gradient(135deg, var(--theme-color2) 0%, #76601d 100%);
    box-shadow: 0 10px 30px rgba(176, 152, 69, 0.2);
}

.acad-enhance__card:nth-child(2):hover .acad-enhance__card-icon {
    box-shadow: 0 14px 36px rgba(176, 152, 69, 0.3);
}

.acad-enhance__card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: var(--title-font);
    font-size: 72px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    transition: all 0.4s ease;
    animation: acad-number-glow 4s ease-in-out infinite;
}

.acad-enhance__card:hover .acad-enhance__card-number {
    color: rgba(152, 13, 26, 0.06);
    transform: translateY(-4px);
}

.acad-enhance__card-title {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.acad-enhance__card-text {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.85;
    color: #555;
    margin-bottom: 24px;
}

.acad-enhance__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acad-enhance__card-tags span {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f7f3;
    border: 1px solid #eae7dc;
    border-radius: 20px;
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.acad-enhance__card:hover .acad-enhance__card-tags span {
    border-color: rgba(152, 13, 26, 0.15);
    background: rgba(152, 13, 26, 0.03);
    color: var(--theme-color);
}

/* ================================================================
   SECTION 5: STEAM PROGRAMME
   ================================================================ */
.acad-steam {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a24 50%, #0d0d10 100%);
    overflow: hidden;
}

.acad-steam__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.acad-steam__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.acad-steam__shape--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--theme-color) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: acad-pulse 6s ease-in-out infinite;
}

.acad-steam__shape--2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--theme-color2) 0%, transparent 70%);
    bottom: -100px; left: -50px;
    animation: acad-pulse 8s 1s ease-in-out infinite;
}

.acad-steam__shape--3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: acad-pulse 5s 0.5s ease-in-out infinite;
}

.acad-steam__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.acad-steam__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(152, 13, 26, 0.2), rgba(176, 152, 69, 0.2));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-color2);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.acad-steam__badge i {
    font-size: 16px;
    color: var(--theme-color2);
}

.acad-steam__title {
    font-family: var(--title-font);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.acad-steam__desc {
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.9;
    color: rgba(255,255,255,0.65);
    margin-bottom: 50px;
}

.acad-steam__pillars {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.acad-steam__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.acad-steam__pillar:hover {
    transform: translateY(-6px);
}

.acad-steam__pillar-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.acad-steam__pillar:hover .acad-steam__pillar-icon {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(152, 13, 26, 0.3);
    transform: rotate(6deg);
}

.acad-steam__pillar span {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.acad-steam__pillar:hover span {
    color: #fff;
}

.acad-steam__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--theme-color), #b51028);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 30px rgba(152, 13, 26, 0.3);
    position: relative;
    overflow: hidden;
}

.acad-steam__btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.acad-steam__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(152, 13, 26, 0.4);
    color: #fff;
}

.acad-steam__btn:hover::before {
    left: 100%;
}

/* ================================================================
   SECTION 6: FAQ
   ================================================================ */
.acad-faq {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, #fafaf8 0%, #fff 100%);
    overflow: hidden;
}

.acad-faq::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0ddd5, transparent);
}

.acad-faq__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: flex-start;
}

.acad-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 16px;
}

.acad-faq__eyebrow-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--theme-color);
}

.acad-faq__heading {
    font-family: var(--title-font);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.acad-faq__heading em {
    font-style: normal;
    color: var(--theme-color);
}

.acad-faq__subtext {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* FAQ Accordion */
.acad-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.acad-faq__item {
    background: #fff;
    border: 1px solid #f0ede4;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.acad-faq__item:hover {
    border-color: rgba(152, 13, 26, 0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.acad-faq__item--active {
    border-color: rgba(152, 13, 26, 0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.acad-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    text-align: left;
    transition: all 0.3s ease;
}

.acad-faq__question span {
    flex: 1;
    padding-right: 16px;
}

.acad-faq__question i {
    font-size: 12px;
    color: #aaa;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f7f3;
}

.acad-faq__item--active .acad-faq__question {
    color: var(--theme-color);
}

.acad-faq__item--active .acad-faq__question i {
    transform: rotate(180deg);
    background: var(--theme-color);
    color: #fff;
}

.acad-faq__answer {
    display: none;
    padding: 0 28px 24px;
}

.acad-faq__item--active .acad-faq__answer {
    display: block;
}

.acad-faq__answer p {
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.85;
    color: #555;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #f4f3ef;
    padding-top: 18px;
}

/* ================================================================
   SECTION 7: CTA BANNER
   ================================================================ */
.acad-cta {
    position: relative;
    padding: 120px 0;
    background-image: url('../img/pragati-school-APJ-Abdul-Kalam-and-madavsan-nair-1-scaled.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.acad-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(152, 13, 26, 0.85) 0%, rgba(109, 8, 19, 0.9) 50%, rgba(26, 3, 6, 0.95) 100%);
}

.acad-cta__inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.acad-cta__title {
    font-family: var(--title-font);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 40px;
}

.acad-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    background: #fff;
    color: var(--theme-color);
    border: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.acad-cta__btn:hover {
    background: var(--theme-color2);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .acad-hero__grid {
        flex-direction: column;
        height: auto;
    }

    .acad-hero__text-col {
        flex: unset;
        padding: 56px 24px;
    }

    .acad-hero__image-col {
        order: -1;
        flex: unset;
        height: 380px;
        clip-path: none;
    }

    .acad-overview__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .acad-overview__detail-wrap {
        min-height: auto;
    }

    .acad-detail-panel {
        position: relative;
        display: none;
    }

    .acad-detail-panel--active {
        display: block;
    }

    .acad-structure-grid {
        height: auto;
        flex-direction: column;
    }

    .acad-structure-card {
        height: 200px;
        flex: none;
    }

    .acad-structure-card:hover {
        height: 350px;
        flex: none;
    }

    .acad-structure-title-vert {
        writing-mode: horizontal-tb;
        left: 30px;
        bottom: 30px;
        transform: none;
    }

    .acad-enhance__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .acad-faq__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .acad-steam__pillars {
        gap: 16px;
    }

    .acad-steam__pillar-icon {
        width: 60px; height: 60px;
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .acad-hero__image-col {
        height: 300px;
    }

    .acad-hero__text-col {
        padding: 40px 20px;
    }

    .acad-hero__title {
        font-size: clamp(26px, 8vw, 36px);
    }

    .acad-hero__desc {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    .acad-overview {
        padding: 70px 0 60px;
    }

    .acad-stage-table__row {
        padding: 16px 20px;
        gap: 12px;
    }

    .acad-stage-table__icon {
        width: 40px; height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }

    .acad-stage-table__name {
        font-size: 15px;
    }

    .acad-stage-table__grade {
        font-size: 12px;
        padding: 4px 10px;
    }

    .acad-detail-panel__inner {
        padding: 28px 22px 26px;
    }

    .acad-detail-panel__title {
        font-size: 20px;
    }

    .acad-enhance {
        padding: 70px 0;
    }

    .acad-enhance__card {
        padding: 36px 24px 32px;
    }

    .acad-enhance__card-number {
        font-size: 52px;
    }

    .acad-steam {
        padding: 80px 0;
    }

    .acad-steam__pillars {
        gap: 12px;
    }

    .acad-steam__pillar-icon {
        width: 52px; height: 52px;
        font-size: 20px;
        border-radius: 14px;
    }

    .acad-steam__pillar span {
        font-size: 11px;
    }

    .acad-faq {
        padding: 70px 0;
    }

    .acad-faq__question {
        padding: 18px 20px;
        font-size: 15px;
    }

    .acad-faq__answer {
        padding: 0 20px 20px;
    }

    .acad-cta {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .acad-cta__title {
        font-size: clamp(20px, 6vw, 28px);
    }

    .acad-cta__btn {
        padding: 14px 32px;
        font-size: 14px;
    }
}

/* ================================================================
   ACCESSIBILITY & PERFORMANCE
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .acad-hero__eyebrow,
    .acad-hero__title,
    .acad-hero__desc,
    .acad-hero__breadcrumb {
        opacity: 1 !important;
        transform: none !important;
    }
}
