/* ================================================================
   ABOUT US PAGE - Premium Sections CSS
   Pragati Academy | Poppins font | Crimson #980D1A + Gold #B09845
   ================================================================ */

/* ── A1. Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ================================================================
   REVEAL ANIMATION SYSTEM
   Lightweight scroll-triggered reveals via IntersectionObserver
   ================================================================ */
.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);
}

/* Stagger delays set inline via data-reveal-delay, but also provide utility classes */
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }
.reveal-d5 { transition-delay: 500ms; }
.reveal-d6 { transition-delay: 600ms; }
.reveal-d7 { transition-delay: 700ms; }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes kenBurns1 {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes kenBurns2 {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.10) translate(2%, -2%); }
}

@keyframes kenBurns3 {
    0%   { transform: scale(1.05) translate(-1%, 1%); }
    100% { transform: scale(1.15) translate(1%, -1%); }
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

@keyframes floatYSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(3deg); }
}

@keyframes drawLine {
    0%   { width: 0; }
    100% { width: 60px; }
}

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

@keyframes shineSweep {
    0%   { left: -75%; }
    100% { left: 125%; }
}

@keyframes iconSpin {
    0%   { transform: scale(0) rotate(-90deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ── Hero: Left text + Right image slideshow (like WP) ── */
.about-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: 540px;
}

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

.about-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;
}

.about-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;
}

.about-hero__text-inner {
    max-width: 520px;
}

.about-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;
}

.about-hero__eyebrow-line {
    width: 30px;
    height: 2px;
    background: var(--theme-color);
    border-radius: 2px;
}

.about-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;
}

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

.about-hero__tagline {
    font-family: var(--title-font);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 600;
    color: var(--theme-color2);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-hero__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
    padding-left: 14px;
    border-left: 3px solid var(--theme-color);
}

.about-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;
}

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

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

/* Right: Image slider column */
.about-hero__image-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(7% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: #111;
    /* flex item always has a concrete resolved height → absolute children fill reliably */
}

.about-hero__slide {
    /* Use only offset values – no width/height percentage resolution needed */
    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;
    /* reset any max-width from global img rule */
    max-width: none;
    max-height: none;
    width: 100% !important;
    height: 100% !important;
}

.about-hero__slide--active {
    opacity: 1;
}

.about-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;
}

.about-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: shimmerBar 3s linear infinite;
    z-index: 3;
}

@keyframes shimmerBar {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ================================================================
   SECTION: Our Legacy – A Journey of Excellence
   ================================================================ */
.legacy-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #fafaf8 0%, #fff 100%);
    overflow: hidden;
}

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

.legacy__header {
    text-align: center;
    margin-bottom: 44px;
}

.legacy__body {
    max-width: 900px;
    margin: 0 auto;
}

.legacy__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.95;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.legacy__desc strong {
    color: var(--title-color);
    font-weight: 700;
}

.legacy__quote {
    position: relative;
    text-align: center;
    margin: 48px auto 0;
    max-width: 700px;
    padding: 40px 40px 32px;
    background: linear-gradient(135deg, rgba(152,13,26,0.03) 0%, rgba(176,152,69,0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(176,152,69,0.12);
}

.legacy__quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    line-height: 1;
    color: var(--theme-color2);
    opacity: 0.25;
    font-family: Georgia, serif;
}

.legacy__quote-text {
    font-family: var(--title-font);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: var(--title-color);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legacy__quote-author {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-color);
    letter-spacing: 0.5px;
}

/* ================================================================
   SECTION: Vision & Mission Cards
   ================================================================ */
.vm-section {
    position: relative;
    padding: 90px 0 100px;
    background: #fff;
}

.vm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.vm-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 44px 36px 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transition: height 0.4s ease;
}

.vm-card--vision::before {
    background: linear-gradient(90deg, var(--theme-color), #b51028);
}

.vm-card--mission::before {
    background: linear-gradient(90deg, var(--theme-color2), #c4ac5c);
}

.vm-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(-6px);
}

.vm-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.vm-card--vision .vm-card__icon {
    background: linear-gradient(135deg, var(--theme-color), #b51028);
}

.vm-card--mission .vm-card__icon {
    background: linear-gradient(135deg, var(--theme-color2), #8a7530);
}

.vm-card__title {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 14px;
}

.vm-card__text {
    font-family: var(--body-font);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.9;
    color: #555;
}

/* ================================================================
   SECTION: Dr. APJ Abdul Kalam Tribute
   ================================================================ */
.kalam-section {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, #fafaf8 0%, #fff 100%);
    overflow: hidden;
}

.kalam-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-color2), transparent);
}

.kalam__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.kalam__image-wrap {
    position: relative;
}

.kalam__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.12);
    display: block;
}

/* ================================================================
   KALAM 2×2 LIGHTBOX PHOTO GRID (full-width)
   ================================================================ */
.kalam__photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 50px;
}

.kalam__photo-grid-item {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.kalam__photo-grid-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.92);
}

.kalam__photo-grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(152,13,26,0) 40%, rgba(152,13,26,0.45) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.kalam__photo-grid-item:hover .kalam__photo-grid-img {
    transform: scale(1.05);
    filter: brightness(1);
}

.kalam__photo-grid-item:hover::after {
    opacity: 1;
}

.kalam__photo-zoom {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.7) translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

.kalam__photo-grid-item:hover .kalam__photo-zoom {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── Zoom control bar ───────────────────────*/
.mfp-zoom-bar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10,10,15,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 60px;
    padding: 8px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.mfp-zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.mfp-zoom-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: scale(1.12);
}

.mfp-zoom-reset-btn:hover {
    background: var(--theme-color2);
    border-color: var(--theme-color2);
}

.mfp-zoom-btn--off {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

.mfp-zoom-num {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    min-width: 42px;
    text-align: center;
    letter-spacing: 0.5px;
    user-select: none;
}

/* ── Magnific Popup premium overrides ─────── */
.mfp-bg {
    background: rgba(5, 5, 10, 0.92) !important;
    backdrop-filter: blur(6px);
}

.mfp-container {
    padding: 30px 20px;
}

.mfp-figure figure {
    background: transparent;
}

.mfp-figure::after {
    box-shadow: 0 30px 80px rgba(0,0,0,0.6) !important;
    border-radius: 12px;
}

.mfp-img {
    border-radius: 12px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55) !important;
    transform-origin: center center;
    will-change: transform;
}

.mfp-kalam .mfp-content {
    overflow: visible;
}

.mfp-kalam .mfp-figure {
    overflow: visible;
}

.mfp-title {
    font-family: var(--body-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.75) !important;
    letter-spacing: 0.5px;
    text-align: center;
    padding-top: 10px;
}

.mfp-counter {
    font-family: var(--body-font) !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.45) !important;
    top: 10px;
    right: 20px;
}

.mfp-arrow {
    opacity: 0.75;
    transition: opacity 0.25s, transform 0.25s;
}

.mfp-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.mfp-arrow::before,
.mfp-arrow::after {
    border-top-width: 16px !important;
    border-bottom-width: 16px !important;
}

.mfp-arrow-left { left: 16px; }
.mfp-arrow-right { right: 16px; }

button.mfp-close {
    font-size: 32px !important;
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.2s, transform 0.2s;
    right: 10px;
    top: 6px;
}

button.mfp-close:hover {
    color: #fff !important;
    transform: rotate(90deg) scale(1.1);
}

.mfp-zoom-in .mfp-content {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mfp-zoom-in.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}

.mfp-zoom-in.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.95);
}

.kalam__quote-badge {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background: linear-gradient(135deg, var(--theme-color2), #76601d);
    color: #fff;
    padding: 20px 28px;
    border-radius: 14px;
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    max-width: 280px;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(176,152,69,0.3);
    z-index: 2;
}

.kalam__quote-badge::before {
    content: '\201C';
    font-size: 48px;
    line-height: 0;
    vertical-align: -12px;
    opacity: 0.4;
    margin-right: 6px;
}

.kalam__content {
    padding-right: 20px;
}

.kalam__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-color2);
    margin-bottom: 16px;
}

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

.kalam__title {
    font-family: var(--title-font);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.kalam__name {
    font-family: var(--title-font);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 24px;
}

.kalam__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.95;
    color: #555;
    margin-bottom: 16px;
    text-align: justify;
}

/* ================================================================
   SECTION: "We Are Dedicated To" + students enrolled counter
   ================================================================ */
.dedicated-section {
    position: relative;
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.dedicated__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ── Dedicated images collage ─── */
.dedicated__images {
    position: relative;
}

.dedicated__img-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dedicated__img-main {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    transition: transform 0.4s ease;
}

.dedicated__img-main:hover {
    transform: translateY(-4px);
}

.dedicated__img-sub {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform 0.4s ease;
}

.dedicated__img-sub:hover {
    transform: translateY(-3px);
}

.dedicated__img-accent {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform 0.4s ease;
}

.dedicated__img-accent:hover {
    transform: translateY(-3px);
}

.dedicated__heading {
    font-family: var(--title-font);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 30px;
}

.dedicated__heading span {
    color: var(--theme-color);
}

.dedicated__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dedicated__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--body-font);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.85;
    color: #555;
}

.dedicated__list li:last-child {
    border-bottom: none;
}

.dedicated__list-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), #b51028);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    margin-top: 3px;
}

.dedicated__counter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dedicated__counter-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color) 0%, #6d0813 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(152,13,26,0.25);
    margin-bottom: 24px;
}

.dedicated__counter-number {
    font-family: var(--title-font);
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.dedicated__counter-number span {
    color: var(--theme-color2);
}

.dedicated__counter-label {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
}

/* ================================================================
   SECTION: Guiding Principles heading banner
   ================================================================ */
.principles-banner {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(135deg, #fafaf8 0%, #f5f3ed 100%);
    text-align: center;
    overflow: hidden;
}

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

.principles-banner__title {
    font-family: var(--title-font);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    color: var(--title-color);
    margin: 0;
}

.principles-banner__title span {
    color: var(--theme-color);
}

/* ================================================================
   SECTION: ISRO Space Tutor
   ================================================================ */
.isro-section {
    position: relative;
    padding: 100px 0 110px;
    background: #fff;
    overflow: hidden;
}

.isro__header {
    text-align: center;
    margin-bottom: 50px;
}

.isro__header .sec-title {
    font-size: clamp(22px, 2.6vw, 32px);
    max-width: 800px;
    margin: 0 auto;
}

.isro__rocket-banner {
    max-width: 700px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.isro__rocket-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.isro__logo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.isro__logo-banner img {
    height: 70px;
    width: auto;
}

.isro__logo-banner-text {
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: 900;
    color: var(--title-color);
    letter-spacing: 2px;
}

.isro__body {
    max-width: 900px;
    margin: 0 auto 50px;
}

.isro__desc {
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.95;
    color: #555;
    margin-bottom: 16px;
    text-align: justify;
}

.isro__desc strong {
    color: var(--title-color);
    font-weight: 700;
}

.isro__gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.isro__gallery-img {
    grid-column: span 2;
}

.isro__gallery-img:nth-child(4) {
    grid-column: 2 / span 2;
}

.isro__gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.isro__gallery-img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* ================================================================
   SECTION: Stats Counter
   ================================================================ */
.about-stats {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--theme-color) 0%, #6d0813 50%, #1a0306 100%);
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.about-stats .container {
    position: relative;
    z-index: 1;
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.about-stat {
    position: relative;
    padding: 30px 20px;
}

.about-stat + .about-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

.about-stat__number {
    font-family: var(--title-font);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat__number span {
    color: var(--theme-color2);
}

.about-stat__label {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ================================================================
   HERO ENTRANCE ANIMATIONS
   ================================================================ */
.about-hero__eyebrow-line {
    width: 0;
    animation: eyebrowGrow 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-hero__eyebrow {
    opacity: 0;
    animation: fadeInCustom 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-hero__title {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-hero__desc {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.7s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-hero__breadcrumb {
    opacity: 0;
    animation: fadeInCustom 0.5s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInCustom {
    to { opacity: 1; }
}

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

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

/* Ken Burns on hero slides */
.about-hero__slide--active {
    opacity: 1;
    animation: kenBurns1 8s ease-out forwards;
}

.about-hero__slide--kb2.about-hero__slide--active {
    animation-name: kenBurns2;
}

.about-hero__slide--kb3.about-hero__slide--active {
    animation-name: kenBurns3;
}

/* ================================================================
   ENHANCED HOVER EFFECTS
   ================================================================ */

/* VM card glow + icon rotation on hover */
.vm-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(176,152,69,0.12);
    transform: translateY(-6px);
}

.vm-card__icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vm-card:hover .vm-card__icon {
    transform: rotate(8deg) scale(1.08);
}

/* VM card top bar animates on reveal */
.vm-card.is-visible::before {
    animation: none;
}

/* Gallery images: grayscale to color on reveal */
.isro__gallery-img {
    filter: grayscale(60%) brightness(0.95);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, filter 0.8s ease;
}

.isro__gallery-img.is-visible,
.isro__gallery-img:hover {
    filter: grayscale(0%) brightness(1);
}

.isro__gallery-img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Kalam image subtle vignette pulse */
.kalam__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.kalam__image-wrap.is-visible::after {
    opacity: 1;
}

/* Counter circle pulse after reveal */
.dedicated__counter-circle.is-visible {
    animation: counterPulse 3s ease-in-out 1s infinite;
}

/* Keep .global-btn hover behavior consistent with index/style.css.
   The two-sided fill effect relies on .global-btn::before + ::after in style.css. */

/* ================================================================
   FLOATING DECORATIVE ELEMENTS
   ================================================================ */
.deco-float {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.deco-float--circle {
    border: 2px solid var(--theme-color2);
    border-radius: 50%;
    animation: floatY 6s ease-in-out infinite;
}

.deco-float--dots {
    background-image: radial-gradient(circle, var(--theme-color2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: floatYSlow 8s ease-in-out infinite;
}

/* ================================================================
   SECTION WAVE DIVIDERS
   ================================================================ */
.wave-divider {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -1px;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 50px;
}

.wave-divider--flip svg {
    transform: scaleY(-1);
}

/* ================================================================
   PARALLAX UTILITY (JS-driven via style transform)
   ================================================================ */
.parallax-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ================================================================
   CTA SECTION CLASSES (was inline-only)
   ================================================================ */
.cta-section {
    position: relative;
    padding: 140px 0 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(152,13,26,0.45);
    transition: background 0.3s;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-section__gold-line {
    width: 0;
    height: 3px;
    background: #B09845;
    margin: 0 auto 30px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-section__gold-line.is-visible {
    width: 60px;
}

/* ================================================================
   ISRO PHOTO SLIDER (full-width, 2.5 slides)
   ================================================================ */
.isro-slider-section {
    position: relative;
    padding: 60px 0 70px;
    background: #f8f6f1;
}

.isro-slider {
    position: relative;
}

/* Each slide has outer padding for the gap */
.isro-slider__slide {
    padding: 0 10px;
    outline: none;
}

/* Inner frame clips the image to rounded corners */
.isro-slider__frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    line-height: 0;
}

.isro-slider__frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.9);
}

.isro-slider .slick-slide:hover .isro-slider__frame img {
    transform: scale(1.04);
    filter: brightness(1);
}

/* Give the track a small left/right padding so first/last slides don't touch edge */
.isro-slider .slick-list {
    padding: 0 40px;
}

.isro-slider .slick-slide.slick-active .isro-slider__frame img {
    filter: brightness(1);
}

/* Nav buttons */
.isro-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    color: var(--theme-color);
    font-size: 18px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.isro-slider__btn:hover {
    background: var(--theme-color);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(152,13,26,0.35);
}

.isro-slider__btn--prev {
    left: 20px;
}

.isro-slider__btn--next {
    right: 20px;
}

/* Dots (mobile fallback) */
.isro-slider .slick-dots {
    bottom: 14px;
}

.isro-slider .slick-dots li button::before {
    color: #fff;
    opacity: 0.5;
    font-size: 8px;
}

.isro-slider .slick-dots li.slick-active button::before {
    opacity: 1;
    color: #fff;
}

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

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

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

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

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

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

    /* Top bar/header cleanup on tablet/mobile */
    .top-bar .top-bar-inner {
        gap: 12px;
        align-items: center;
    }

    .top-bar .contact-info > a img {
        width: 210px !important;
        max-width: 62vw;
        height: auto;
    }

    .top-bar .admission-cta .global-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .legacy-section {
        padding: 70px 0;
    }

    .vm__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .kalam__image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }

    .kalam__photo-grid-img {
        height: 240px;
    }

    .isro-slider__frame img {
        height: 300px;
    }

    .isro-slider .slick-list {
        padding: 0 20px;
    }

    .isro-slider__btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .isro__rocket-banner img {
        height: 240px;
    }

    .isro__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .isro__gallery-img {
        grid-column: auto;
    }

    .isro__gallery-img:nth-child(4) {
        grid-column: auto;
    }

    .kalam__content {
        padding-right: 0;
    }

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

    .dedicated__images {
        order: 3;
    }

    .dedicated__img-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dedicated__img-main {
        height: 200px;
        flex: 1 1 100%;
    }

    .dedicated__img-sub,
    .dedicated__img-accent {
        flex: 1 1 calc(50% - 7px);
        height: 140px;
    }

    .dedicated__counter-wrap {
        order: -1;
    }

    .isro__gallery {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat + .about-stat::before {
        display: none;
    }

    .deco-float { display: none; }

    .cta-section {
        padding: 100px 0 120px;
    }

    .cta-section .cta-section__inner > h2.text-white {
        font-size: 28px !important;
        line-height: 1.45 !important;
    }

    .cta-section .cta-section__inner > p.text-white {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    .cta-section .cta-section__inner .global-btn {
        padding: 14px 26px !important;
        font-size: 14px !important;
    }
}

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

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

    .about-hero__title {
        font-size: clamp(34px, 9vw, 42px);
        line-height: 1.1;
    }

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

    .about-hero__breadcrumb {
        font-size: 12px;
        margin-top: 18px;
    }

    .top-bar .contact-info > div {
        display: none;
    }

    .top-bar .contact-info > a img {
        width: 170px !important;
        max-width: 52vw;
    }

    .top-bar .admission-cta .global-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .legacy-section {
        padding: 50px 0;
    }

    .legacy__quote {
        padding: 30px 24px 24px;
    }

    .legacy__quote-text {
        font-size: 16px;
    }

    .vm-section {
        padding: 60px 0 70px;
    }

    .vm-card {
        padding: 32px 24px 28px;
    }

    .kalam-section {
        padding: 70px 0;
    }

    .dedicated-section {
        padding: 70px 0;
    }

    .dedicated__img-sub,
    .dedicated__img-accent {
        flex: 1 1 100%;
        height: 130px;
    }

    .dedicated__counter-circle {
        width: 180px;
        height: 180px;
    }

    .dedicated__counter-number {
        font-size: 42px;
    }

    .isro-section {
        padding: 70px 0;
    }

    .isro__gallery {
        grid-template-columns: 1fr;
    }

    .isro__gallery-img,
    .isro__gallery-img:nth-child(4) {
        grid-column: auto;
        height: 220px;
    }

    .isro__rocket-banner img {
        height: 180px;
    }

    .kalam__photo-grid {
        grid-template-columns: 1fr;
    }

    .kalam__photo-grid-img {
        height: 240px;
    }

    .kalam__quote-badge {
        max-width: calc(100% - 20px);
        font-size: 11px;
        line-height: 1.45;
        padding: 10px 12px;
    }

    .kalam__photo-zoom {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .isro-slider__frame img {
        height: 220px;
    }

    .isro-slider .slick-list {
        padding: 0 10px;
    }

    .isro-slider-section {
        padding: 46px 0 56px;
    }

    .isro-slider__slide {
        padding: 0 6px;
    }

    .isro-slider__btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .about-stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .about-stat {
        padding: 20px 10px;
    }

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

    .cta-section .cta-section__inner > span {
        font-size: 16px !important;
        letter-spacing: 2px !important;
    }

    .cta-section .cta-section__inner > h2.text-white {
        font-size: 23px !important;
        line-height: 1.4 !important;
    }

    .cta-section .cta-section__inner > p.text-white {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 30px !important;
    }

    .cta-section .cta-section__inner > div {
        gap: 10px !important;
    }

    .cta-section .cta-section__inner .global-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    /* Avoid overlap from fixed actions */
    .vertical-brochure-btn {
        display: none !important;
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    body {
        padding-bottom: 74px;
    }

    .sticky-admission-btn {
        right: 10px !important;
        bottom: 86px !important;
        z-index: 998 !important;
    }

    .sticky-admission-btn .global-btn {
        padding: 11px 16px !important;
        font-size: 12px !important;
    }

    .wave-divider svg {
        height: 30px;
    }
}
