/* Main Variables - ICC Premium Theme (Indian Flag Colors) */
:root {
    /* Indian Flag Colors */
    --flag-saffron: #FF9933;
    --flag-white: #FFFFFF;
    --flag-green: #138808;

    /* Core Theme Colors - Saffron & Green Focus */
    --primary-accent: #FF9933;
    /* Saffron - Primary Action */
    --primary-hover: #064402;
    /* Dark Green - Hover State */
    --primary-dark: #0b3d04;
    /* Very Dark Green for Headings */
    --text-main: #1f2937;
    /* Slate 800 for readability */
    --text-light: #4b5563;
    /* Slate 600 */
    --bg-body: #ffffff;
    --bg-surface: #fafaf9;
    /* Warm white stone */
    --border-subtle: #e7e5e4;
    /* Stone 200 */

    /* Typography - Modern & Distinct */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Import Modern & Distinct Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

html,
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Navigation (Flag Colors Preserved Here) --- */
.flag-top-strip {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--flag-saffron) 0%, var(--flag-white) 50%, var(--flag-green) 100%);
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 4px;
}

.navbar-brand {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.navbar-brand span {
    font-size: 1.5rem;
    line-height: 1.1;
    transition: all 0.3s ease;
    white-space: nowrap !important;
    display: inline-block;
}

.brand-i {
    color: var(--flag-saffron);
}

.brand-c {
    color: var(--flag-white);
    text-shadow: 0 0 1px #ccc;
}

/* Shadow for visibility if needed */
.brand-c2 {
    color: var(--flag-green);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 15px;
    position: relative;
    padding: 5px 0;
    white-space: nowrap !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-accent);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--primary-accent) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-accent) !important;
}

.btn-premium {
    background-color: var(--primary-accent);
    color: white !important;
    border-radius: 12px;
    padding: 14px 34px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px -10px rgba(255, 153, 51, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap !important;
}

.btn-premium:hover,
.btn-premium.active-btn {
    background-color: var(--primary-hover);
    color: white !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -10px rgba(6, 68, 2, 0.4);
}

/* --- Hero Section Styles --- */
.hero-section {
    position: relative;
    padding: 140px 0 100px;
    background: transparent;
    overflow: hidden;
    z-index: 1;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.page-hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 61, 4, 0.9) 0%, rgba(255, 153, 51, 0.4) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .hero-title {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-hero .hero-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Map Section for Contact Page */
.map-section {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--flag-saffron) 0%, var(--flag-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Abstract Futuristic Shapes (Neutral/Glass) */
.glass-card-hero {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-radius: 24px;
    padding: 2rem;
    position: absolute;
    z-index: 5;
}

/* Creative Hero Video Blob */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    /* Hardware accel */
    animation: blob-bounce 10s ease-in-out infinite alternate;
}

.hero-video-iframe {
    width: 170%;
    /* Zoom in to cover blob */
    height: 170%;
    position: absolute;
    top: -35%;
    left: -35%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent interaction with video */
}

@keyframes blob-bounce {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translateY(0);
    }

    33% {
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
        transform: translateY(-10px);
    }

    66% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translateY(5px);
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translateY(0);
    }
}

/* --- Bento Grid / Modern Cards --- */
.card-bento {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-bento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 153, 51, 0.05) 100%);
    z-index: -1;
    transition: opacity 0.3s;
}

.card-bento:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.08);
}

/* Modern Bento Grid System - "Internet Source" standard */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: clamp(1rem, 3vw, 1.5rem);
}

.bento-item {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-item-md-6 {
        grid-column: span 6;
    }

    .bento-item-md-4 {
        grid-column: span 4;
    }
}

@media (min-width: 992px) {
    .bento-item-lg-8 {
        grid-column: span 8;
    }

    .bento-item-lg-4 {
        grid-column: span 4;
    }

    .bento-item-lg-3 {
        grid-column: span 3;
    }

    .bento-item-lg-6 {
        grid-column: span 6;
    }
}

.icon-modern {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 14px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card-bento:hover .icon-modern {
    background: var(--primary-accent);
    color: white;
}

/* --- Section Styling --- */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 80px 0 40px;
}

footer h5,
footer h4 {
    color: var(--primary-dark);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-accent);
    color: white;
}

/* --- Responsive Text --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-section {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }
}

/* --- Scoped Animation Classes --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Level 2: Advanced Animations --- */

/* Split Text Reveal Base */
.split-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.split-text span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--index) * 0.05s);
}

.visible .split-text span {
    transform: translateY(0);
}

/* Image Mask Reveal */
.mask-reveal {
    position: relative;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.visible {
    clip-path: inset(0 0 0 0);
}

.mask-reveal img {
    transform: scale(1.2);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.visible img {
    transform: scale(1);
}

/* Magnetic Interaction */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glassmorphism Hover Glow */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 153, 51, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.glow-card:hover::before {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-accent {
    animation: float 4s ease-in-out infinite;
}

.stagger-item {
    transition-delay: calc(var(--order) * 0.1s);
}

/* --- Statistics Section --- */
.stats-section {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--flag-saffron);
    /* Subtle accent */
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Video Background Section --- */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-iframe-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio height for 100vw width */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio width for 100vh height */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.video-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white !important;
    max-width: 800px;
    padding: 2rem;
}

.video-overlay-content h2,
.video-overlay-content p {
    color: white !important;
}

/* --- Realistic Flag Preloader (GIF) --- */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease;
}

.preloader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.flag-gif-container {
    width: 250px;
    height: auto;

    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    background-repeat: no-repeat;
    /* Ensure no tiling if used as background */
}

.flag-gif-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
    /* Slight boost for the new GIF */
}

.preloader-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* --- Testimonials --- */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid var(--border-subtle);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 153, 51, 0.15);
    position: absolute;
    top: 20px;
    left: 20px;
}

/* --- Partners Grid --- */
.partner-logo {
    opacity: 0.5;
    transition: all 0.3s;
    filter: grayscale(100%);
    font-size: 2rem;
    color: var(--text-light);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
    color: var(--primary-accent);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-toggler {
        padding-right: 0;
        margin-right: -5px;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .navbar-collapse.collapsing {
        transition: none !important;
        display: none;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: min(300px, 85%);
        height: 100vh;
        background: white;
        padding: 80px 25px 40px;
        transition: all 0.1s cubic-bezier(0, 0, 0.2, 1);
        display: flex !important;
        visibility: hidden;
        flex-direction: column;
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-radius: 20px 0 0 20px;
    }

    .navbar-collapse.show {
        right: 0;
        visibility: visible;
    }

    .navbar-nav .nav-link {
        position: relative;
        transition: all 0.3s ease;
        padding-left: 15px !important;
        border-radius: 8px;
        overflow: hidden;
        z-index: 1;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 153, 51, 0.08);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: -1;
    }

    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link:active::before {
        left: 0;
    }

    .navbar-nav .nav-link:hover {
        padding-left: 20px !important;
        color: var(--primary-accent) !important;
    }

    .btn-close-mobile {
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 10px;
        z-index: 1100;
        background-color: var(--bg-body);
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Backdrop for mobile menu */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.15s ease;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item {
        margin-bottom: 15px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        display: block;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-section {
        padding: 60px 0 !important;
        text-align: center;
    }

    .hero-section .container {
        padding: 50px 0 !important;
    }

    .page-hero {
        padding: 100px 0 60px !important;
        min-height: 350px !important;
        text-align: center;
        background-attachment: scroll;
    }

    .hero-title,
    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.2rem) !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        padding: 0;
        margin-bottom: 2rem !important;
    }

    .hero-content .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px !important;
    }

    .navbar-brand span {
        font-size: 1.2rem !important;
        white-space: nowrap;
    }

    .navbar-brand img {
        height: 50px !important;
        margin-right: 10px;
    }

    /* Center the hero image/abstract shape on mobile */
    .hero-section .col-lg-6:last-child {
        display: flex;
        justify-content: center;
        margin-top: 3rem !important;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .video-wrapper {
        height: 400px;
    }

    .video-overlay-content h2 {
        font-size: 2rem;
    }

    .stats-section .row>div {
        margin-bottom: 20px;
    }

    /* Modern Impact Rows Mobile */
    .row.flex-lg-row-reverse {
        flex-direction: column !important;
    }

    .mask-reveal {
        border-radius: 20px !important;
        margin-bottom: 30px;
    }

    .ps-lg-5,
    .pe-lg-5 {
        padding: 0 !important;
    }

    .text-lg-end {
        text-align: center !important;
    }

    .justify-content-lg-end {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .card-bento ul li {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2px;
    }

    .card-bento ul li .text-secondary {
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .table td {
        display: block;
        width: 100%;
        text-align: left !important;
        padding-top: 10px !important;
    }

    .table tr {
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-title,
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.75rem !important;
        padding: 5px 15px !important;
    }

    .hero-desc {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 1.75rem !important;
    }

    .navbar-brand img {
        height: 50px !important;
    }

    .navbar-brand span {
        font-size: 1.2rem !important;
    }

    .feature-card {
        padding: 20px;
    }

    /* Button Group Mobile Cleanup */
    .hero-content .d-flex,
    .btn-group-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100%;
    }

    .hero-content .btn,
    .btn-group-mobile .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 !important;
        text-align: center;
        white-space: nowrap;
    }

    .stats-section {
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    footer {
        padding: 50px 0 30px;
        text-align: center;
    }

    footer h6 {
        margin-top: 20px;
        letter-spacing: 1px;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 30px;
    }

    /* Prevent awkward wrapping on mobile */
    .hero-subtitle,
    .badge,
    .btn-premium,
    .navbar-brand span,
    .section-label {
        white-space: nowrap;
    }

    footer form.newsletter-form {
        border-radius: 0 !important;
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        gap: 0;
    }

    footer form.newsletter-form .input-group {
        border-radius: 50px !important;
        background: white !important;
        margin-bottom: 12px !important;
    }

    footer form.newsletter-form .input-group-text,
    footer form.newsletter-form input {
        border: none !important;
        background: transparent !important;
    }

    footer form.newsletter-form .btn {
        width: 100%;
        padding: 12px !important;
        border-radius: 50px !important;
    }

    .hero-bg-video-wrapper {
        height: 100%;
        width: 100%;
    }

    .hero-bg-video-iframe {
        width: 300%;
        height: 100%;
        left: -100%;
    }

    .video-wrapper {
        height: 300px;
    }
}

/* --- Full Background Hero Video --- */
.hero-bg-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: -10;
    pointer-events: none;
}

.hero-bg-video-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
}

/* --- Logo Brand Colors (Tricolor) --- */
.brand-word-indian,
.brand-i {
    color: var(--flag-saffron) !important;
    font-weight: 800;
}

.brand-word-christian,
.brand-c {
    color: var(--flag-white) !important;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-word-council,
.brand-c2 {
    color: var(--flag-green) !important;
    font-weight: 800;
}

/* Soft Backgrounds for Bento Cards */
.bg-primary-soft {
    background-color: rgba(255, 153, 51, 0.1) !important;
}

.bg-success-soft {
    background-color: rgba(19, 136, 8, 0.1) !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 153, 51, 0.15) !important;
}

/* Custom Badge adjustments */
.badge.bg-primary-soft {
    color: var(--flag-saffron) !important;
}

.badge.bg-success-soft {
    color: var(--flag-green) !important;
}

/* Bootstrap Overrides for Theme Consistency */
.text-primary {
    color: var(--primary-accent) !important;
}

.bg-primary {
    background-color: var(--primary-accent) !important;
    color: white !important;
}

.btn-primary {
    background-color: var(--primary-accent) !important;
    border-color: var(--primary-accent) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-accent) !important;
    border-color: var(--primary-accent) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-accent) !important;
    color: white !important;
}

.bg-primary-subtle {
    background-color: rgba(255, 153, 51, 0.1) !important;
}

/* Info Overrides - Avoid Blue, use Saffron/Light Green */
.text-info {
    color: var(--flag-green) !important;
}

.bg-info {
    background-color: var(--flag-green) !important;
    color: white !important;
}

.bg-info-soft,
.bg-info-subtle {
    background-color: rgba(19, 136, 8, 0.1) !important;
}

.badge.bg-info-soft {
    color: var(--flag-green) !important;
}

/* --- Newsletter Form Enhancements --- */
.newsletter-form .input-group {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border-color: var(--border-subtle);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-accent);
}

.newsletter-form .input-group-text {
    border-color: var(--border-subtle);
}

/* Section Header Marker */
.section-header h2 {
    position: relative;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--flag-saffron), var(--flag-green));
    border-radius: 10px;
}

.section-header.text-start h2::after {
    left: 0;
    transform: none;
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    height: 380px;
    cursor: pointer;
    background: #f1f1f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-weight: 800;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 20px;
    }
}

/* Swiper Styles */
.gallery-swiper {
    padding: 20px 0 60px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-accent) !important;
    background: white;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-accent);
    color: white !important;
    transform: scale(1.1);
}

.swiper-pagination-bullet-active {
    background: var(--primary-accent) !important;
}

.swiper-pagination {
    bottom: 0 !important;
}

/* --- New: Cinematic Perspective Gallery (Bible College Special) --- */
.perspective-gallery-container {
    padding: 60px 0;
}

.perspective-slide {
    width: auto;
    max-width: 450px;
    height: 550px !important;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.perspective-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
}

.perspective-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.8s ease;
}

.perspective-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    z-index: 10;
}

.perspective-content h4 {
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #ff9933);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.perspective-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* Swiper Active State for Perspective */
.swiper-slide-active .perspective-card {
    box-shadow: 0 40px 100px rgba(255, 153, 51, 0.2);
    border-color: rgba(255, 153, 51, 0.4);
}

.swiper-slide-active .perspective-card img {
    opacity: 1;
    transform: scale(1.05);
}

.swiper-slide-active .perspective-content {
    opacity: 1;
}

/* Glossy Shine Effect */
.perspective-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.perspective-card:hover::after {
    left: 100%;
    top: 100%;
}

@media (max-width: 768px) {
    .perspective-slide {
        height: 400px !important;
    }

    .perspective-content {
        padding: 30px 20px;
    }

    .perspective-content h4 {
        font-size: 1.4rem;
    }
}