@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Modern HSL */
    --primary: #1a2a6c;
    --primary-hsl: 228, 61%, 26%;
    --secondary: #b21f1f;
    --secondary-hsl: 0, 71%, 41%;
    --accent: #fdbb2d;
    --accent-hsl: 41, 98%, 58%;

    --background: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Glassmorphism */
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --section-padding: 7rem 0;
    --container-max: 1240px;

    /* Transitions */
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
    /* 'clip' prevents horizontal scroll without creating a new stacking context — keeps position:sticky working */
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.heading-serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--primary);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.nav-links {
    color: white;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-toggle {
    color: white;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    /* Align menu to the left */
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

/* Standardized Section Padding */
.section {
    padding: var(--section-padding);
}

.section-title-overlay {
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    text-align: center;
    line-height: 0.8;
    position: relative;
    pointer-events: none;
    margin-bottom: -4rem;
    text-transform: uppercase;
}

.section-title-overlay span {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 4px;
    font-weight: 700;
    margin-top: -1rem;
}

/* Premium Card System */
.premium-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.pc-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pc-red {
    background: rgba(178, 31, 31, 0.1);
    color: var(--secondary);
}

.pc-gold {
    background: rgba(253, 187, 45, 0.1);
    color: var(--accent);
}

/* Vision Cards */
.vision-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-bottom: 4px solid transparent;
}

.vision-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

/* Story Stack (Pinned Panels) */
.story-stack {
    position: relative;
}

.story-panel {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: sticky;
    top: 10vh;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
    padding: 4rem 2rem;
}

.story-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.story-panel__num {
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.1;
    line-height: 1;
}

.story-panel__title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.story-panel__desc p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Lightbox Universal */
.pg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.pg-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.pg-lb-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Mouse Trail (Homepage) */
.mouse-trail-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.trail-image {
    position: absolute;
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: trailPop 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes trailPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

/* Accent Cards (Social Page) */
.accent-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.accent-card i {
    margin-right: 0.75rem;
    color: var(--accent);
}

/* Milestone Cards (Sports Page) */
.milestone-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: var(--transition-base);
}

.milestone-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.milestone-icon {
    width: 50px;
    height: 50px;
    background: rgba(42, 67, 101, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Counters */
.counter-item {
    padding: 2rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: block;
    line-height: 1;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .story-panel__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-panel__num {
        font-size: 4rem;
    }
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* New Split Hero Layout */
.hero {
    min-height: 100vh;
    display: block;
    /* Let container handle the layout */
    padding-bottom: 5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlider 15s linear infinite;
}

/* 3 Images: 15s total (5s each) */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes heroSlider {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
        transform: scale(1.1);
    }

    33% {
        opacity: 1;
        transform: scale(1);
    }

    38% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-split {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--container-max);
    width: 100%;
    padding: 0 1.5rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: nowrap;
    /* Force side-by-side on desktop */
    gap: 2rem;
}

.hero-name-big {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin: 0;
    color: white;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-info-right {
    max-width: 500px;
    padding-bottom: 1rem;
    animation-delay: 0.8s;
}

.hero-info-right h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-social-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-circle {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Mobile Adjustments for Split Hero */
@media (max-width: 992px) {
    .hero-split {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        padding-top: 8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 3rem;
        min-height: auto;
        padding: 8rem 0 4rem 0;
    }

    .hero-name-big {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .hero-info-right {
        max-width: 100%;
        padding-bottom: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 187, 45, 0.3);
}

/* Quote Section */
.quote-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    font-style: italic;
}

.quote-card::before {
    content: '“';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: var(--accent);
    opacity: 0.3;
}

.quote-author {
    display: block;
    margin-top: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    text-align: right;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    color: var(--primary);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu ul li a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* Animations & Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.animate-slide-up {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.word-reveal {
    display: inline-block;
    opacity: 0;
    animation: wordPopIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes wordPopIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.letter-reveal {
    display: inline-block;
    opacity: 0;
    animation: slideInRightLetter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    white-space: pre;
    /* Preserve space if needed */
}

@keyframes slideInRightLetter {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.animate-fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Staggered Reveal via JS or manual delay classes */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Enhanced hover for cards */
.vision-card,
.image-card,
.quote-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--accent);
}

.btn:active {
    transform: scale(0.95);
}

/* Gallery & Interaction */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-md);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.counter-item {
    text-align: center;
}

.counter-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Image Trail Effect */
.mouse-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.trail-image {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
    animation: imageFadeInUp 0.8s forwards;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.trail-image.square {
    width: 350px;
    height: 350px;
}

.trail-image.rectangle {
    width: 480px;
    height: 280px;
}

@keyframes imageFadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-20px);
    }
}

/* Leadership Showcase Section */
.leadership-section {
    padding: 0rem 0;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
}

.leadership-grid {
    display: flex;
    width: 100%;
    min-height: 500px;
    margin-top: 0rem;
    gap: 0;
}

.leader-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    color: white;
    text-align: left;
    transition: all 0.5s ease;
    min-width: 200px;
    height: 500px;
    overflow: hidden;
}

.leader-card:nth-child(1) {
    background: #5a9bd5;
}

.leader-card:nth-child(2) {
    background: #7ba6cd;
}

.leader-card:nth-child(3) {
    background: #5c84b1;
}

.leader-card:nth-child(4) {
    background: #64748b;
}

.leader-card:hover {
    flex: 1.5;
    z-index: 10;
    filter: brightness(1.1);
}

.leader-info {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.leader-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.leader-period {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-image-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 65%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.leader-card:hover .leader-image {
    transform: scale(1.08);
}

.section-title-overlay {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 950;
    color: white;
    text-transform: uppercase;
    line-height: 0.85;
    pointer-events: none;
    z-index: 15;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.section-title-overlay span {
    display: block;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
    color: var(--accent);
    /* Gold/Saffron accent for the journey text */
}

@media (max-width: 1200px) {
    .leadership-grid {
        flex-wrap: wrap;
    }

    .leader-card {
        min-width: 50%;
        height: 500px;
    }

    .section-title-overlay {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .leader-card {
        min-width: 100%;
    }
}

/* Journey Banner Section */
.journey-banner {
    padding: 10rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('library1.jpg');
    /* Thematic darker background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-banner h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 950;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    opacity: 0.9;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Story Narrative Section */
.story-section {
    padding: 8rem 0;
    background: #ffffff;
    color: var(--text-color);
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: var(--primary);
    border-left: 8px solid var(--accent);
    padding-left: 2rem;
}

.story-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
    font-family: 'Inter', sans-serif;
}

.story-content p {
    margin-bottom: 0.8rem;
}

/* Join the Journey Section */
.join-section {
    background-color: #0f111a;
    color: white;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.join-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.join-image-side {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: url('profile.jpg') center top no-repeat;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.bjp-badge-wrap {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 120px;
    height: 120px;
    background: #ff6b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.bjp-badge-pin {
    width: 60%;
    height: auto;
    /* filter: brightness(0) invert(1); */
}

.join-content-side {
    padding: 2rem;
}

.join-heading {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 950;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -2px;
}

.join-sub {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 300;
}

.join-bjp-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.bjp-orange {
    color: #ff6b00;
}

.join-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
}

.join-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.join-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-blue {
    background-color: #0022ff;
}

.btn-pink {
    background-color: #e6007e;
}

.btn-orange {
    background-color: #ff6b00;
}

@media (max-width: 992px) {
    .join-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .join-image-side {
        min-height: 400px;
    }

    .join-desc {
        margin: 0 auto 3rem;
    }

    .join-buttons {
        grid-template-columns: 1fr;
    }
}

/* Responsive Updates */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title-overlay {
        font-size: 3rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .story-heading {
        font-size: 2rem;
    }

    .join-heading {
        font-size: 2.5rem;
    }

    .premium-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

/* ============================================
   PAGE HERO — shared inner-page hero
   ============================================ */
.page-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(26, 42, 108, 0.85) 0%,
            rgba(178, 31, 31, 0.6) 100%);
    z-index: 0;
}

.page-hero--solid {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2460 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.page-hero__tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   IMAGE CARD — improved
   ============================================ */
.image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   PREMIUM CARDS (Political Page)
   ============================================ */
.premium-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.premium-card-right {
    align-items: center;
}

.premium-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.premium-card:hover::after {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.pc-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.4s ease;
}

.premium-card:hover .pc-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Red Icon Variant */
.pc-red {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe4e6 100%);
    color: #e11d48;
    box-shadow: 0 8px 16px rgba(225, 29, 72, 0.15);
}

/* Gold Icon Variant */
.pc-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.15);
}

.pc-content {
    flex: 1;
}

.pc-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
    letter-spacing: 0.5px;
}

.pc-content p {
    font-size: 0.95rem;
    text-align: center;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

/* ============================================
   SPORT PILLARS — Hall of Fame card
   ============================================ */
.hof-card {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 5px solid var(--primary);
}

.hof-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hof-sport-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    background: var(--secondary);
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
}

.hof-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hof-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   JOURNAL ARTICLE CARD — publications
   ============================================ */
.article-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
}

.article-year {
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
}

.article-journal {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h4 {
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.article-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Presentation item */
.presentation-item {
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--accent);
    background: var(--white);
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.presentation-item:hover {
    transform: translateX(4px);
}

.presentation-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* Book card */
.book-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2460 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.book-card i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.book-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.book-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   ADVOCACY / SOCIAL CARE — accent cards
   ============================================ */
.accent-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent);
    transition: transform 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accent-card:hover {
    transform: translateX(5px);
}

.accent-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

/* ============================================
   STAT / COUNTER CARD
   ============================================ */
.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER — improved
   ============================================ */
footer h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

footer p,
footer ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

footer ul li+li {
    margin-top: 0.5rem;
}

footer ul li a:hover {
    color: var(--accent);
    opacity: 1;
}

footer .flex a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

footer .flex a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   MOBILE — 992px (tablet)
   ============================================ */
@media (max-width: 992px) {
    .page-hero {
        padding: 8rem 0 4rem;
        min-height: 45vh;
    }

    /* Fix grids that have minmax(350px, 1fr) — too wide for tablet */
    .grid[style*="minmax(350px"] {
        grid-template-columns: 1fr !important;
    }

    /* Publications grid fix */
    .publications-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MOBILE — 768px (large phones / small tablets)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.25rem;
    }

    .page-hero {
        padding: 7rem 0 3.5rem;
        min-height: 40vh;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    /* Single column for ALL auto-fit grids on mobile */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Profile two-column flex → single column */
    .profile-flex {
        flex-direction: column;
    }

    .profile-flex>div {
        min-width: 100% !important;
        flex: none !important;
    }

    /* Journey banner */
    .journey-banner {
        padding: 5rem 1.5rem;
        background-attachment: scroll;
        /* fix iOS parallax bug */
    }

    /* Feature item */
    .feature-item {
        padding: 1.25rem 1.5rem;
    }

    /* Table scroll */
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Counter grid — 2 columns on mobile */
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery — 1 column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }

    /* Electoral history cards */
    .electoral-grid {
        grid-template-columns: 1fr !important;
    }

    /* Quote card */
    .quote-card {
        padding: 2rem 1.5rem;
    }

    /* Image card */
    .image-card img {
        height: 280px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer .flex {
        gap: 0.75rem;
    }
}

/* ============================================
   MOBILE — 480px (small phones)
   ============================================ */
@media (max-width: 480px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }

    .page-hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }

    .page-hero__tag {
        font-size: 0.68rem;
    }

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

    .counter-number {
        font-size: 2.2rem;
    }

    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
    }

    /* Nav mobile menu wider */
    .mobile-menu {
        width: 100%;
    }

    /* Feature item stack nicely */
    .feature-item {
        padding: 1rem 1.25rem;
    }

    .book-card {
        padding: 2rem 1.5rem;
    }

    .book-card i {
        font-size: 3rem;
    }
}

/* ============================================
   ADVANCED ANIMATIONS & UI SYSTEM
   ============================================ */

/* ── Scroll Progress Bar ──────────────────── */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
    background-size: 200% auto;
    z-index: 99999;
    transition: width 0.1s linear;
    animation: shimmerBar 2s linear infinite;
}

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

    100% {
        background-position: 200% center;
    }
}

/* ── Hero Floating Orbs ───────────────────── */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: orbFloat linear infinite;
    filter: blur(1px);
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -80px;
    right: 5%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 10%;
    left: 8%;
    animation-duration: 22s;
    animation-delay: -6s;
    opacity: 0.1;
}

.orb-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation-duration: 14s;
    animation-delay: -3s;
    opacity: 0.08;
}

@keyframes orbFloat {
    0% {
        transform: translateY(0px) scale(1);
    }

    33% {
        transform: translateY(-30px) scale(1.05);
    }

    66% {
        transform: translateY(15px) scale(0.97);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* ── Particle Dots (CSS only) ─────────────── */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 70%;
    animation-duration: 15s;
    animation-delay: -4s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 35%;
    animation-duration: 10s;
    animation-delay: -2s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 55%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.particle:nth-child(5) {
    left: 85%;
    top: 15%;
    animation-duration: 13s;
    animation-delay: -1s;
}

.particle:nth-child(6) {
    left: 40%;
    top: 80%;
    animation-duration: 16s;
    animation-delay: -5s;
}

.particle:nth-child(7) {
    left: 90%;
    top: 40%;
    animation-duration: 11s;
    animation-delay: -3s;
}

.particle:nth-child(8) {
    left: 60%;
    top: 10%;
    animation-duration: 20s;
    animation-delay: -8s;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-40px) translateX(20px) scale(1.5);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-80px) translateX(-15px) scale(0.8);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-120px) translateX(10px) scale(1.2);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-160px) translateX(5px) scale(0.5);
        opacity: 0;
    }
}

/* ── Glassmorphism Card ───────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── Shimmer on Hover ─────────────────────── */
.shimmer-card {
    position: relative;
    overflow: hidden;
}

.shimmer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 80%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.shimmer-card:hover::before {
    left: 160%;
}

/* ── 3D Tilt Card ─────────────────────────── */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ── Gradient Text ────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #f59e0b 0%, var(--accent) 50%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Stagger Helpers (extended) ───────────── */
.delay-5 {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

.delay-7 {
    transition-delay: 0.7s;
    animation-delay: 0.7s;
}

.delay-8 {
    transition-delay: 0.8s;
    animation-delay: 0.8s;
}

/* ── Glow Pulse (for stat numbers) ───────── */
.glow-pulse {
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 0px rgba(253, 187, 45, 0);
    }

    50% {
        text-shadow: 0 0 20px rgba(253, 187, 45, 0.5), 0 0 40px rgba(253, 187, 45, 0.2);
    }
}

/* ── Animated Timeline Line ───────────────── */
.timeline {
    animation: timelineGrow 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes timelineGrow {
    from {
        background-size: 3px 0%;
    }

    to {
        background-size: 3px 100%;
    }
}

.timeline-item::before {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.timeline-item:hover::before {
    transform: scale(1.6);
    box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(253, 187, 45, 0.4);
}

/* ── Counter Number Styling ───────────────── */
.counter-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary), #e05a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* ── Wave Divider ─────────────────────────── */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8fafc' fill-opacity='1' d='M0,30L48,28C96,26,192,22,288,25C384,28,480,38,576,38C672,38,768,28,864,24C960,20,1056,22,1152,26C1248,30,1344,36,1392,39L1440,42L1440,60L0,60Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* ── Feature Item — animated accent line ──── */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0 0 16px 16px;
}

.feature-item:hover::after {
    width: 100%;
}

/* ── Stat Card — animated ring ────────────── */
.stat-card {
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* ── HOF Card — sport color glow ─────────── */
.hof-card {
    position: relative;
    overflow: hidden;
}

.hof-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: height 0.4s ease;
}

.hof-card:hover::after {
    height: 8px;
}

/* ── Article Card animated top border ──────── */
.article-card {
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    transition: left 0.5s ease;
    border-radius: 16px 16px 0 0;
}

.article-card:hover::before {
    left: 0;
}

/* ── Book Card — shimmer glow ─────────────── */
.book-card {
    position: relative;
    overflow: hidden;
}

.book-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.06);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

.book-card:hover::after {
    left: 160%;
}

/* ── Milestone Card — icon glow ───────────── */
.milestone-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.milestone-card:hover .milestone-icon {
    transform: scale(1.2) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(253, 187, 45, 0.4);
}

/* ── Page Hero — animated gradient overlay ── */
.page-hero::after {
    animation: heroOverlayPulse 6s ease-in-out infinite alternate;
}

@keyframes heroOverlayPulse {
    from {
        background: linear-gradient(135deg, rgba(26, 42, 108, 0.85) 0%, rgba(178, 31, 31, 0.6) 100%);
    }

    to {
        background: linear-gradient(135deg, rgba(26, 42, 108, 0.9) 0%, rgba(178, 31, 31, 0.45) 100%);
    }
}

/* ── Page Hero Tag — blink border ─────────── */
.page-hero__tag {
    animation: tagPulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes tagPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(253, 187, 45, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(253, 187, 45, 0);
    }
}

/* ── Accent Card — slide hover ────────────── */
.accent-card {
    transition: transform 0.3s ease, border-left-width 0.3s ease, box-shadow 0.3s ease;
}

.accent-card:hover {
    transform: translateX(6px);
    border-left-width: 8px;
    box-shadow: var(--shadow-md);
}

/* ── Hover lift for HoF cards ─────────────── */
.hof-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ── Section headings — underline slide ───── */
.heading-serif {
    position: relative;
    display: inline-block;
}

.section .heading-serif::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section .heading-serif.active::after,
.section.active .heading-serif::after {
    width: 60%;
}

/* ── Typed cursor blink ───────────────────── */
.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Count-up number glow ─────────────────── */
.count-up {
    display: inline-block;
    position: relative;
}

/* ── Entrance animations (extended) ──────── */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Nav links — active highlight ─────────── */
.nav-links a.active,
.mobile-menu ul li a.active {
    color: var(--accent);
    font-weight: 700;
}

/* ── Presentation item — pulse left border ── */
.presentation-item {
    border-left-color: var(--accent);
    animation: borderBreath 3s ease-in-out infinite;
}

@keyframes borderBreath {

    0%,
    100% {
        border-left-color: var(--accent);
    }

    50% {
        border-left-color: var(--secondary);
    }
}

/* ── Image card — parallax shimmer ───────── */
.image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.07) 60%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.image-card:hover::after {
    opacity: 1;
}

/* ── Floating label on image cards ───────── */
.image-card {
    position: relative;
}

/* ── Milestone card border animation ─────── */
.milestone-card {
    border-left: 3px solid transparent;
    background-clip: padding-box;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-card:hover {
    border-left-color: var(--accent);
}

/* ============================================
   MY JOURNEY BANNER
   ============================================ */
.journey-banner {
    position: relative;
    width: 100%;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0f2460 40%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Diagonal light sweep */
.journey-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 120%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 195, 0, 0.06) 50%,
            transparent 60%);
    animation: jb-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jb-sweep {
    0% {
        transform: translateX(-20%);
    }

    50% {
        transform: translateX(20%);
    }

    100% {
        transform: translateX(-20%);
    }
}

/* Decorative top & bottom ruled lines */
.journey-banner::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 195, 0, 0.4), transparent);
}

.journey-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #ffffff;
    line-height: 1;
    margin: 0;
    position: relative;
    text-transform: uppercase;
}

/* Gold underline accent */
.journey-banner h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    border-radius: 4px;
    margin: 1.25rem auto 0;
    transition: width 0.6s ease;
}

.journey-banner:hover h2::after {
    width: 200px;
}

/* Decorative star row */
.journey-banner__stars {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: rgba(255, 195, 0, 0.55);
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

.journey-banner__stars::before,
.journey-banner__stars::after {
    content: '\2726  \2726  \2726';
    letter-spacing: 0.4em;
}


/* ============================================
   STORY STACK / SCROLL-STACKING PANELS
   Global — applies to index.php & sports.php
   ============================================ */
.story-stack {
    position: relative;
}

/* Each panel — EXACT height forces full-viewport, prevents overlap */
.story-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    /* exact 100vh — panels cannot collapse */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* safe here: panels are children, not ancestors of sticky */
}

/* z-index: each panel slides over the previous */
.story-panel:nth-child(1) {
    z-index: 1;
}

.story-panel:nth-child(2) {
    z-index: 2;
}

.story-panel:nth-child(3) {
    z-index: 3;
}

.story-panel:nth-child(4) {
    z-index: 4;
}

.story-panel:nth-child(5) {
    z-index: 5;
}

.story-panel:nth-child(6) {
    z-index: 6;
}

/* ── Colour themes ─────────────────────────────── */
.story-panel--light {
    background: #f5f5f0;
    color: #111;
}

.story-panel--mid {
    background: #ffffff;
    color: #111;
}

.story-panel--dark {
    background: var(--primary);
    color: #fff;
}

/* Dark panel separator line */
.story-panel--dark::before {
    background: rgba(255, 255, 255, 0.15);
}

/* Link colour on dark panels */
.story-panel--dark .story-panel__link {
    color: var(--accent);
}

.story-panel--dark .story-panel__desc p {
    opacity: 0.75;
}

.story-panel--dark .story-panel__desc strong {
    color: var(--accent);
}

.story-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
}

/* Inner 3-column grid */
.story-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr 2fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    width: 100%;
}

/* Ghost large number */
.story-panel__num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: inherit;
    opacity: 0.12;
    letter-spacing: -4px;
    user-select: none;
    transition: opacity 0.4s ease;
}

.story-panel:hover .story-panel__num {
    opacity: 0.22;
}

/* Title */
.story-panel__title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
    color: inherit;
    margin: 0;
}

.story-panel__title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 1rem;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.story-panel:hover .story-panel__title h2::after {
    width: 100%;
}

/* Description */
.story-panel__desc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-panel__desc p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: inherit;
    opacity: 0.8;
    margin: 0;
}

.story-panel__desc strong {
    color: var(--accent);
    font-weight: 700;
}

/* Arrow link */
.story-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.story-panel__link:hover {
    gap: 0.9rem;
    color: var(--accent);
}

/* Mobile — disable sticky, single column */
@media (max-width: 900px) {
    .story-panel {
        height: auto;
        /* revert to auto on mobile — panels flow naturally */
        position: relative;
    }

    .story-panel__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 4rem 0;
    }

    .story-panel__num {
        font-size: 5rem;
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    .story-panel__inner {
        padding: 3rem 0;
    }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE OVERHAUL
   Fixes all layout, grid, and inline-style issues across
   all pages: index, profile, political, sports, social, publications
   ============================================================ */

/* ── Mosaic (Spotlight) Cards on Homepage ─────────────────── */
/* The inline style uses gap:22rem which completely breaks mobile */
.mc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .mc-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mc-col-right {
        margin-top: 0;
    }
}

/* ── Hero CTAs on mobile ──────────────────────────────────── */
@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-social-row {
        gap: 0.75rem;
    }
}

/* ── Hero Split — better small-phone layout ───────────────── */
@media (max-width: 480px) {
    .hero-split {
        gap: 1.5rem;
        padding-top: 6rem;
    }

    .hero-name-big {
        font-size: clamp(2.5rem, 14vw, 3.5rem);
    }

    .hero-info-right h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* ── Publications grid: 1fr 2fr → single col on tablet/mobile ── */
.publications-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ── Profile page stat cards: repeat(3,1fr) → responsive ─── */
/* Targets inline style grid-template-columns: repeat(3,1fr) in profile.php */
@media (max-width: 680px) {

    .stat-card-grid,
    [style*="grid-template-columns: repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Inline grid used for profile stats on profile.php ─────── */
@media (max-width: 680px) {

    /* profile page top stat cards */
    section .grid[style*="repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 400px) {
    section .grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Profile two-column flex ───────────────────────────────── */
@media (max-width: 768px) {
    .profile-flex {
        flex-direction: column !important;
    }

    .profile-flex>div {
        min-width: 100% !important;
        flex: none !important;
    }
}

/* ── Inline profile At-a-Glance flex ─────────────────────── */
/* The "At a Glance" section uses inline flex with min-width:300px */
@media (max-width: 640px) {

    /* force wrap on very small screens */
    section .flex[style*="flex-wrap"]>div[style*="min-width: 300px"] {
        min-width: 100% !important;
    }
}

/* ── At-a-Glance sub-grid (2 col → 1 col on mobile) ───────── */
@media (max-width: 480px) {
    section .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Leadership / Moments of Impact section ────────────────── */
@media (max-width: 900px) {
    .leadership-grid {
        flex-wrap: wrap;
    }

    .leader-card {
        flex: 1 1 50%;
        min-width: 50%;
        height: 480px;
    }

    .section-title-overlay {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
}

@media (max-width: 600px) {
    .leader-card {
        flex: 1 1 50%;
        min-width: 50%;
        height: 380px;
    }

    .leader-image-wrap {
        height: 100%;
    }

    .section-title-overlay {
        font-size: clamp(1.8rem, 8vw, 3rem);
        left: 1.5rem;
        bottom: 5.5rem;
    }

    .section-title-overlay span {
        font-size: 0.9rem;
    }
}
.join-heading, .join-bjp-title{
    color:#fff;
}
/* ── Join the Journey section ──────────────────────────────── */
@media (max-width: 992px) {
    
    .join-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
        text-align: center;
    }
    .join-content-side{
            padding: 0.2rem
    }

    .join-image-side {
        min-height: 380px;
    }

    .join-heading {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .join-sub {
        font-size: 1.25rem;
    }

    .join-desc {
        margin: 0 auto 2.5rem;
        max-width: 100%;
    }

    .join-buttons {
        grid-template-columns: 1fr !important;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .join-image-side {
        min-height: 280px;
    }

    .join-heading {
        font-size: clamp(2rem, 12vw, 3rem);
        letter-spacing: -1px;
    }
}

/* ── Meet Section ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .meet-section {
        padding: 5rem 0;
    }

    .meet-content {
        padding: 3rem 1.5rem;
    }

    .meet-content h2 {
        font-size: 2rem;
    }
}

/* ── Story Section (narrative) ─────────────────────────────── */
@media (max-width: 768px) {
    .story-section {
        padding: 4rem 0;
    }

    .story-heading {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding-left: 1.25rem;
        border-left-width: 5px;
        margin-bottom: 2rem;
    }

    .story-content {
        font-size: 0.9rem;
    }
}

/* ── Counter items flex wrap ────────────────────────────────── */
@media (max-width: 480px) {
    .section .flex[style*="justify-content: center"] {
        gap: 1.5rem;
    }

    .counter-item {
        min-width: 120px;
    }
}

/* ── Vision cards ────────────────────────────────────────── */
.vision-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

@media (max-width: 480px) {
    .vision-card {
        padding: 1.75rem 1.25rem;
    }
}

/* ── Navbar mobile: toggle always visible below 992px ─────── */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-container {
        justify-content: space-between;
    }
}

/* ── Story panels — ensure no overflow issues ─────────────── */
@media (max-width: 768px) {
    .story-panel__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 3.5rem 0;
    }

    .story-panel__num {
        font-size: 4rem;
    }

    .story-panel__title h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .story-panel {
        height: auto;
        position: relative;
    }
}

/* ── Political + Sports page grids ───────────────────────── */
@media (max-width: 768px) {

    /* Inline grid styles with repeat(auto-fit, minmax(300px,1fr)) already handle this
       but minmax(350px) or 300px may overflow on very small phones */
    .grid[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Image card heights ───────────────────────────────────── */
@media (max-width: 768px) {

    .image-card img[style*="height: 500px"],
    .image-card img[style*="height:500px"] {
        height: 300px !important;
    }

    .image-card img[style*="height: 420px"],
    .image-card img[style*="height:420px"] {
        height: 280px !important;
    }
}

@media (max-width: 480px) {

    .image-card img[style*="height: 280px"],
    .image-card img[style*="height:280px"],
    .image-card img[style*="height: 260px"],
    .image-card img[style*="height:260px"] {
        height: 200px !important;
    }
}

/* ── Section padding ─────────────────────────────────────── */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 1rem;
    }
}

/* ── Journey Banner ─────────────────────────────────────── */
@media (max-width: 768px) {
    .journey-banner {
        padding: 4rem 1.5rem;
        background-attachment: scroll;
    }

    .journey-banner__stars {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .journey-banner {
        padding: 3rem 1rem;
    }
}

/* ── Footer ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }
}

/* ── General utility — prevent horizontal scrollbars ─────── */
html,
body {
    max-width: 100%;
}

/* ── Mobile menu full width on small phones ──────────────── */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}

/* ── Quote card on very small screens ───────────────────── */
@media (max-width: 480px) {
    .quote-card {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ── Inline style flex items on index.php ("At a Glance") ─── */
@media (max-width: 640px) {

    /* At-a-Glance section: flex-wrap layout with min-width:300px items */
    .section .flex>[style*="min-width: 300px"] {
        min-width: 100% !important;
        flex: none !important;
    }
}

/* ── Book card ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .book-card {
        padding: 2rem 1.5rem;
    }

    .book-card h3 {
        font-size: 1.1rem;
    }
}

/* ── Accent cards and milestone cards ───────────────────── */
@media (max-width: 480px) {
    .accent-card {
        padding: 1rem;
        font-size: 0.88rem;
    }

    .milestone-card {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ── Hero section min-height on mobile ─────────────────── */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-split {
        position: relative;
        bottom: unset;
        left: unset;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 8rem 1.25rem 3rem;
        gap: 2rem;
    }

    .hero-info-right {
        max-width: 100%;
    }
}

/* ── Page hero heading on very small screens ────────────── */
@media (max-width: 360px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
}

/* ── Leadership grid on small screens ───────────────────── */
@media (max-width: 480px) {
    .leader-card {
        height: 320px;
    }

    .leader-name {
        font-size: 1.2rem;
    }
}

/* ── BJD Badge wrap on mobile ──────────────────────────── */
@media (max-width: 480px) {
    .bjp-badge-wrap {
        width: 80px;
        height: 80px;
        bottom: 10%;
        left: 15%;
    }
}

/* ── Table inside profile stat section ─────────────────── */
@media (max-width: 480px) {

    table th,
    table td {
        padding: 0.75rem 0.75rem !important;
        font-size: 0.85rem;
    }
}

/* ── Ensure profile stat-card grid is responsive ────────── */
@media (max-width: 680px) {

    /* profile.php inline: grid-template-columns: repeat(3,1fr) */
    .grid[style*="repeat(3,1fr)"],
    .grid[style*="repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 420px) {

    .grid[style*="repeat(3,1fr)"],
    .grid[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Photo Gallery Grid (pg-grid) ───────────────────────── */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pg-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.pg-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.pg-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.pg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
    pointer-events: none;
}

.pg-item:hover .pg-overlay {
    opacity: 1;
}

/* Lightbox UI */
.pg-lb-close,
.pg-lb-prev,
.pg-lb-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100000;
}

.pg-lb-close:hover,
.pg-lb-prev:hover,
.pg-lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pg-lb-close {
    top: 1.25rem;
    right: 1.25rem;
}

.pg-lb-prev {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.pg-lb-next {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.pg-lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
}

#pgLbImg {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .pg-lb-prev {
        left: 0.5rem;
    }

    .pg-lb-next {
        right: 0.5rem;
    }

    .pg-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .pg-item img {
        height: 150px;
    }
}

/* ── Journey Slider (Extracted from profile.php) ────────────────────────────────────── */
.journey-slider-section {
    position: relative;
    width: 100%;
    background: #111;
    user-select: none;
}

.js-slides {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .js-slides {
        height: 440px;
    }
}

@media (max-width: 480px) {
    .js-slides {
        height: 400px;
    }
}

.js-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 90px 0;
}

.js-slide.active {
    opacity: 1;
    z-index: 2;
}

.js-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.20) 100%);
    z-index: 0;
}

.js-slide__content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 4rem;
    max-width: 680px;
}

@media (max-width: 768px) {
    .js-slide__content {
        padding: 1.5rem;
        max-width: 100%;
    }
}

.js-slide__label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.js-slide__year {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    word-break: break-word;
}

.js-slide__desc {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 560px;
}

.js-nav {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: 64px;
    position: relative;
    z-index: 10;
    gap: 0;
}

.js-nav__arrow {
    flex-shrink: 0;
    width: 56px;
    height: 64px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.js-nav__arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.js-nav__years-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.js-nav__years {
    display: flex;
    gap: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-nav__year {
    flex-shrink: 0;
    padding: 0 2rem;
    height: 64px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
    white-space: nowrap;
}

.js-nav__year::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease;
}

.js-nav__year:hover {
    color: rgba(255, 255, 255, 0.8);
}

.js-nav__year.active {
    color: #fff;
    font-weight: 800;
}

.js-nav__year.active::after {
    width: 80%;
}

@media (max-width: 480px) {
    .js-nav__year {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    .js-nav__arrow {
        width: 44px;
    }
}

/* ============================================================
   ADVOCACY SECTION - REFERENCE INSPIRED
   ============================================================ */
:root {
    --adv-bg: #efe9e1;
    --adv-card-bg: #ffffff;
    --adv-highlight-bg: #1b2a2a;
    --adv-cta-bg: #72f1a6;
    --adv-text-dark: #1e1e1e;
}

.advocacy-section {
    background-color: var(--adv-bg);
    padding: 8rem 0;
}

.advocacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.advocacy-intro {
    padding-right: 2rem;
}

.advocacy-intro h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--adv-text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
}

.advocacy-intro p {
    font-size: 1.15rem;
    color: var(--adv-text-dark);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.adv-cta-btn {
    display: inline-block;
    background: var(--adv-cta-bg);
    color: var(--adv-text-dark);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(114, 241, 166, 0.3);
}

.advocacy-card {
    background: var(--adv-card-bg);
    padding: 3.5rem;
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.advocacy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.advocacy-card .card-icon {
    font-size: 2.2rem;
    color: var(--adv-text-dark);
    margin-bottom: 0.5rem;
}

.advocacy-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--adv-text-dark);
    margin: 0;
}

.advocacy-card p {
    font-size: 1.05rem;
    color: var(--adv-text-dark);
    opacity: 0.7;
    margin: 0;
    line-height: 1.7;
}

.advocacy-card .read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 1rem;
    color: var(--adv-text-dark);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

/* Highlight Card Style */
.advocacy-card.highlight {
    background: var(--adv-highlight-bg);
    color: white;
    transform: rotate(-1.5deg);
}

.advocacy-card.highlight:hover {
    transform: rotate(0) translateY(-10px);
}

.advocacy-card.highlight h3,
.advocacy-card.highlight .card-icon,
.advocacy-card.highlight .read-more {
    color: white;
}

.advocacy-card.highlight p {
    color: white;
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .advocacy-intro h2 {
        font-size: 2.5rem;
    }

    .advocacy-card {
        padding: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .advocacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advocacy-grid {
        grid-template-columns: 1fr;
    }

    .advocacy-intro {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
}
/* ============================================================
   MODERN PROFILE & EDUCATION SECTION
   ============================================================ */
:root {
    --edu-phd-bg: #dbeafe;
    --edu-mphil-bg: #ffedd5;
    --edu-mped-bg: #dcfce7;
    --edu-bped-bg: #fee2e2;
    --edu-net-bg: #fef9c3;
    
    --edu-phd-text: #1e40af;
    --edu-mphil-text: #9a3412;
    --edu-mped-text: #166534;
    --edu-bped-text: #991b1b;
    --edu-net-text: #854d0e;
}

.modern-profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-img-wrap {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.profile-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-details-info {
    text-align: center;
}

.profile-details-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.edu-modern-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-card-half-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edu-modern-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.edu-modern-card:hover {
    transform: translateY(-5px);
}

.edu-modern-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

.edu-modern-card .subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.edu-modern-card .subject {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

.edu-modern-card .desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Card Variants */
.card-phd { background-color: var(--edu-phd-bg); color: var(--edu-phd-text); }
.card-phd h3, .card-phd .subtitle { color: var(--edu-phd-text); }

.card-mphil { background-color: var(--edu-mphil-bg); color: var(--edu-mphil-text); }
.card-mphil h3, .card-mphil .subtitle { color: var(--edu-mphil-text); }

.card-mped { background-color: var(--edu-mped-bg); color: var(--edu-mped-text); }
.card-mped h3, .card-mped .subtitle { color: var(--edu-mped-text); }

.card-bped { background-color: var(--edu-bped-bg); color: var(--edu-bped-text); }
.card-bped h3, .card-bped .subtitle { color: var(--edu-bped-text); }

.card-net { background-color: var(--edu-net-bg); color: var(--edu-net-text); }
.card-net h3, .card-net .subtitle { color: var(--edu-net-text); }

@media (max-width: 1024px) {
    .modern-profile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .profile-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .edu-card-half-row {
        grid-template-columns: 1fr;
    }
    .edu-modern-card {
        padding: 2rem;
    }
    .edu-modern-card h3 {
        font-size: 1.8rem;
    }
}
