/* ==========================================================================
   SAMUCHAYAM FOUNDATION - REDESIGNED STYLESHEET (HERITAGE GRACE SYSTEM)
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Rozha+One&display=swap');

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette */
    --color-bg: #FCF9F1;             /* Warm Parchment Ivory background */
    --color-white: #FFFFFF;          /* Pure White for card surfaces and overlay cards */
    --color-dark: #2D2926;           /* Custom Slate Gray/Charcoal for text (high contrast but soft) */
    --color-text-muted: #5B4040;     /* Muted/Variant text */
    
    /* Brand Colors */
    --color-primary: #9E0027;        /* Regal Deep Red */
    --color-primary-container: #C41E3A; /* Accent Crimson */
    --color-secondary: #7D5700;      /* Warm Earthy Gold */
    --color-secondary-light: #FEB71A; /* Bright Amber Gold */
    --color-tertiary: #A65D00;       /* Earthy Amber/Orange */
    
    /* Theme Accents (tuned to match the regal palette) */
    --color-mint: #2C6E49;           /* Soft Forest Green for safety/success */
    --color-blue: #1D3557;           /* Deep Navy for trust/healthcare */
    --color-gold-light: #FDF0D5;     /* Soft warm gold background tint */

    /* Typography */
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Josefin Sans', sans-serif;
    --font-hindi: 'Rozha One', serif;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;               /* Standard for cards, inputs, and elements */
    --radius-lg: 14px;               /* Tactile buttons */
    --radius-xl: 32px;               /* Section curvature boundaries on mobile */
    --radius-xl-desktop: 60px;       /* Section curvature boundaries on desktop */
    --radius-full: 9999px;

    /* Borders & Hairlines */
    --border-light: 1px solid #E5E0D5;
    --border-thin: 1px solid #E5E0D5;
    --border-accent: 1px solid rgba(158, 0, 39, 0.12);
    
    /* Elegant Soft Shadows with Red Tints to match Color Harmony */
    --shadow-ambient: 0 12px 30px rgba(158, 0, 39, 0.03);
    --shadow-hover: 0 18px 40px rgba(158, 0, 39, 0.07);
    --shadow-modal: 0 24px 60px rgba(45, 41, 38, 0.12);

    /* Layout Constraints */
    --container-max: 1240px;
    
    /* Transitions */
    --transition-graceful: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--color-bg);
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Accessibility: Skip to Content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--color-secondary-light);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-dark);
    z-index: 9999;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
    outline: none;
}

/* Custom Focus States for High Accessibility */
*:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 4px;
}

/* Language Visibility Selector Toggles */
body.lang-en .trn-hi {
    display: none !important;
}

body.lang-hi .trn-en {
    display: none !important;
}

/* Typographic Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.25;
    font-weight: 700;
}

p {
    font-family: var(--font-body);
    color: var(--color-dark);
    opacity: 0.9;
}

strong {
    font-weight: 700;
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION HEADER (GLASSMORPHISM & ACCESSIBLE)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background-color: rgba(252, 249, 241, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-light);
    z-index: 1000;
    transition: var(--transition-graceful);
}

header.scrolled {
    background-color: rgba(252, 249, 241, 0.95);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .navbar {
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-dark);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .logo-img {
    height: 38px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-primary);
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Language Dropdown Selectors */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-white);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.lang-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 130px;
    background: var(--color-white);
    border: var(--border-light);
    box-shadow: var(--shadow-modal);
    border-radius: var(--radius-md);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1020;
}

.lang-dropdown.active {
    display: flex;
}

.lang-opt {
    padding: 12px 18px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-opt:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.lang-opt.selected {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

/* Mobile Nav Toggles */
.mobile-nav-item {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1020;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS (ELEGANT & MINIMALISTIC)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #b8002e;
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--color-secondary-light);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background-color: #e5a517;
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   CURVED SECTION DIVIDERS & SECTION rhythm
   ========================================================================== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-xl-desktop) var(--radius-xl-desktop) 0 0;
    margin-top: calc(-1 * var(--radius-xl-desktop));
    background-color: var(--color-bg);
    box-shadow: 0 -10px 40px rgba(45, 41, 38, 0.02);
    scroll-margin-top: 100px;
    overflow: hidden;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.15);
}

/* Hero doesn't overlap and has no curved top */
.hero {
    margin-top: 0;
    border-radius: 0;
    z-index: 1;
}

/* Hero decorative floating ring */
.hero-image-frame::before {
    content: "";
    position: absolute;
    top: -24px;
    left: -24px;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(158, 0, 39, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(254, 183, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Set alternating backgrounds to make the curves visible */
.about {
    background: radial-gradient(circle at 10% 20%, rgba(253, 240, 213, 0.35) 0%, rgba(255, 255, 255, 1) 90%);
}

.projects {
    background: radial-gradient(circle at 90% 80%, rgba(253, 240, 213, 0.35) 0%, var(--color-bg) 90%);
}

.programs {
    background: radial-gradient(circle at 10% 80%, rgba(253, 240, 213, 0.25) 0%, rgba(255, 255, 255, 1) 90%);
}

.gallery {
    background: radial-gradient(circle at 80% 20%, rgba(158, 0, 39, 0.015) 0%, var(--color-bg) 90%);
}

.contact {
    background: radial-gradient(circle at 90% 10%, rgba(253, 240, 213, 0.25) 0%, rgba(255, 255, 255, 1) 90%);
}

/* ==========================================================================
   SUBTLE SVG BACKGROUND PATTERNS & WAVE DIVIDERS
   ========================================================================== */

/* Hero subtle dot grid pattern */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(158, 0, 39, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* Bold wave divider at the top of each section */
.programs::before,
.contact::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background-repeat: no-repeat;
    background-size: 100% 80px;
    z-index: 10;
    pointer-events: none;
}

.programs::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCF9F1' d='M0,0 L0,60 Q360,10 720,50 Q1080,80 1440,30 L1440,0 Z'%3E%3C/path%3E%3C/svg%3E");
}

.contact::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23FCF9F1' d='M0,0 L0,45 Q480,80 960,30 Q1200,10 1440,40 L1440,0 Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Decorative floating shapes */
.about .about-content::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(158, 0, 39, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about .about-content {
    position: relative;
}

/* Floating decorative blobs behind sections */
.about::after,
.programs::after,
.gallery::after,
.contact::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.about::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 183, 26, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.programs::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(158, 0, 39, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -80px;
}

.gallery::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(125, 87, 0, 0.07) 0%, transparent 70%);
    top: 20%;
    right: -60px;
}

.contact::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(158, 0, 39, 0.05) 0%, transparent 70%);
    bottom: 5%;
    left: -120px;
}

/* Scroll reveal animation base state */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }

/* Subtle diagonal line pattern for projects */
.projects::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        rgba(158, 0, 39, 0.02) 40px,
        rgba(158, 0, 39, 0.02) 41px
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle concentric circle pattern for programs */
.programs::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 50%, rgba(125, 87, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle cross-hatch pattern for gallery */
.gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 60px,
            rgba(158, 0, 39, 0.018) 60px,
            rgba(158, 0, 39, 0.018) 61px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(158, 0, 39, 0.018) 60px,
            rgba(158, 0, 39, 0.018) 61px
        );
    pointer-events: none;
    z-index: 0;
}

/* Adjust colors of titles inside dark sections */
.section-dark .section-title,
.section-dark .section-subtitle,
.section-dark p {
    color: var(--color-white);
}

.section-header {
    margin-bottom: 70px;
    max-width: 750px;
    position: relative;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-light));
    border-radius: 2px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-gold-light);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    border: var(--border-accent);
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-tagline {
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-tagline span {
    color: var(--color-primary);
    font-style: italic;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    display: inline;
}

.hero-desc {
    font-size: 1.12rem;
    line-height: 1.75;
    margin-bottom: 44px;
    max-width: 600px;
    color: var(--color-dark);
    opacity: 0.85;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-image-frame {
    position: relative;
    background-color: var(--color-white);
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-ambient);
    border: var(--border-light);
    width: 100%;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: var(--radius-sm);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-slide-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(158, 0, 39, 0.2);
    z-index: 5;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: var(--border-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.carousel-btn-prev { left: 16px; }
.carousel-btn-next { right: 16px; }

/* ==========================================================================
   ABOUT SECTION & STATS
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-collage {
    position: relative;
    height: 520px;
    width: 100%;
}

.collage-img {
    position: absolute;
    background: var(--color-white);
    padding: 6px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-ambient);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    will-change: transform;
}

.collage-img-1 {
    width: 62%;
    height: 380px;
    top: 0;
    left: 0;
    z-index: 3;
}

.collage-img-2 {
    width: 55%;
    height: 290px;
    bottom: 20px;
    right: 0;
    z-index: 2;
}

.collage-img:hover {
    z-index: 10;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 16px 0;
}

.stat-item {
    background: var(--color-bg);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-ambient);
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(158, 0, 39, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-dark);
    opacity: 0.85;
}

/* ==========================================================================
   PROJECTS SECTION (STACKING CARDS UX)
   ========================================================================== */
.project-card {
    border-bottom: 3.5px solid rgba(125, 87, 0, 0.25) !important;
}

.project-card-content {
    background: radial-gradient(circle at 20% 20%, rgba(254, 183, 26, 0.04) 0%, rgba(253, 240, 213, 0.22) 50%, var(--color-white) 100%);
}

@media (min-width: 993px) {
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 64px;
        max-width: 1000px;
        margin: 0 auto;
        padding-bottom: 80px;
    }

    .project-card {
        position: sticky;
        top: 120px;
        background: var(--color-white);
        border: var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-ambient);
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        height: 380px;
        overflow: hidden;
        transition: var(--transition-graceful);
        z-index: 1;
    }

    /* Stack offsets */
    .project-card:nth-child(1) { top: 120px; z-index: 1; }
    .project-card:nth-child(2) { top: 150px; z-index: 2; }
    .project-card:nth-child(3) { top: 180px; z-index: 3; }
    .project-card:nth-child(4) { top: 210px; z-index: 4; }

    /* Alternating layout spreads (editorial look) */
    .project-card:nth-child(even) {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .project-card:nth-child(even) .project-card-image {
        order: 1;
        border-right: var(--border-light);
        border-left: none;
    }

    .project-card:nth-child(even) .project-card-content {
        order: 2;
    }

    .project-card-image {
        height: 100%;
        border-bottom: none;
        border-left: var(--border-light);
        order: 2;
        position: relative;
        overflow: hidden;
    }

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .project-card-content {
        padding: 40px 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        order: 1;
        flex-grow: 1;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        height: auto;
        background: var(--color-white);
        border: var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-ambient);
        overflow: hidden;
        transition: var(--transition-graceful);
        position: relative;
        top: auto !important; /* Clear sticky on mobile */
    }

    .project-card-image {
        height: 220px;
        position: relative;
        overflow: hidden;
        border-bottom: var(--border-light);
        border-left: none;
    }

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .project-card-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
}



.project-icon {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--color-gold-light);
    border: var(--border-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(125, 87, 0, 0.08);
    z-index: 5;
}

/* On desktop sticky style, project icon floats inside the header corner of the card */
@media (min-width: 993px) {
    .project-icon {
        bottom: auto;
        top: 24px;
        right: 24px;
    }
}

.project-icon span {
    font-size: 1.35rem;
    color: var(--color-secondary);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-title-hi {
    font-family: var(--font-hindi);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: normal;
}

.project-desc {
    font-size: 0.94rem;
    color: var(--color-dark);
    opacity: 0.85;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.65;
}

.project-arrow-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.project-arrow-btn span {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-arrow-btn:hover {
    color: var(--color-tertiary);
}

.project-arrow-btn:hover span {
    transform: translateX(4px);
}

/* Card Accent Borders - Elegant, thin accent marks */
.card-primary { border-top: 3.5px solid var(--color-primary); }
.card-accent { border-top: 3.5px solid var(--color-tertiary); }
.card-gold { border-top: 3.5px solid var(--color-secondary); }
.card-blue { border-top: 3.5px solid var(--color-blue); }

/* ==========================================================================
   KINETIC RUNNING MARQUEE
   ========================================================================== */
.marquee-container {
    background: var(--color-dark);
    overflow: hidden;
    padding: 22px 0;
    margin: 20px 0;
    white-space: nowrap;
    position: relative;
    z-index: 3;
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-right: 50px;
}

.marquee-item span {
    margin-left: 12px;
    color: var(--color-secondary-light);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Add decorative gradient border to blog cards */
.blog-slide {
    border-bottom: none;
}

.programs-intro {
    background: var(--color-bg);
    border: var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-ambient);
    padding: 40px;
    margin-bottom: 80px;
}

.programs-intro-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.programs-intro-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-ambient);
}

.programs-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programs-intro-text h3 {
    font-size: 1.8rem;
    margin-bottom: 18px;
    color: var(--color-primary);
}

.programs-intro-text p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-dark);
}

.programs-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    border: var(--border-light);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-ambient);
    overflow: hidden;
    transition: var(--transition-graceful);
}

.accordion-header {
    width: 100%;
    padding: 24px 32px;
    background: var(--color-white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.accordion-header-content span.icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-gold-light);
    border: var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.accordion-title {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 700;
}

.accordion-trigger {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: var(--border-light);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-dark);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-trigger {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-inner {
    padding: 0 32px 32px 32px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.accordion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.accordion-info h4 {
    font-size: 1.15rem;
    color: var(--color-tertiary);
}

.accordion-info p {
    color: var(--color-dark);
    opacity: 0.85;
}

.accordion-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-ambient);
}

.accordion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   JOURNEY / GALLERY SECTION
   ========================================================================== */
.gallery-grid {
    column-count: 3;
    column-gap: 28px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 28px;
    position: relative;
    background: var(--color-white);
    border: var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-ambient);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-graceful);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(158, 0, 39, 0.15);
}



.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-graceful);
}

.gallery-item-info {
    padding: 20px;
    border-top: var(--border-light);
    background: var(--color-white);
}

.gallery-item-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-gold-light);
    color: var(--color-secondary);
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: var(--border-accent);
    margin-bottom: 8px;
}

.gallery-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
/* Redesigned Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-location-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-ambient);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-panel {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-ambient);
}

.contact-map-wrapper {
    min-height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: var(--border-light);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.social-pill:hover {
    transform: translateY(-1px);
}

.social-pill svg {
    flex-shrink: 0;
}

.social-pill-linkedin {
    background: #E8F1FA;
    color: #0A66C2;
}

.social-pill-linkedin:hover {
    background: #0A66C2;
    color: #fff;
}

.social-pill-telegram {
    background: #E8F0FA;
    color: #0088CC;
}

.social-pill-telegram:hover {
    background: #0088CC;
    color: #fff;
}

.social-pill-instagram {
    background: #FCE8F2;
    color: #E4405F;
}

.social-pill-instagram:hover {
    background: #E4405F;
    color: #fff;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-location-panel {
        grid-template-columns: 1fr;
    }
}

/* Form Styling - Minimalist & Warm */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #DCD8CF;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FAF8F5;
    color: var(--color-dark);
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(158, 0, 39, 0.06);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   FOOTER (ELEGANT MINIMALIST)
   ========================================================================== */
footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    border-top: 3px solid var(--color-primary);
    padding: 100px 0 40px 0;
    border-radius: var(--radius-xl-desktop) var(--radius-xl-desktop) 0 0;
    margin-top: calc(-1 * var(--radius-xl-desktop));
    position: relative;
    z-index: 3;
}

footer p {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.footer-links-col h4,
.footer-payment-badges h4 {
    color: var(--color-secondary-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-payment-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 41, 38, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 32px);
    max-width: 550px;
    background: var(--color-white);
    border: var(--border-light);
    box-shadow: var(--shadow-modal);
    border-radius: var(--radius-md);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAF8F5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
}

.modal-close {
    background: var(--color-white);
    border: var(--border-light);
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-dark);
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

/* Donate Preset Grid */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.donation-preset {
    padding: 12px 6px;
    border: var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--color-white);
    color: var(--color-dark);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.donation-preset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg);
}

.donation-preset.selected {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Lightbox Visuals */
.lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 32px);
    max-width: 800px;
    background: var(--color-white);
    border: var(--border-light);
    box-shadow: var(--shadow-modal);
    border-radius: var(--radius-md);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-content {
    position: relative;
    border-bottom: var(--border-light);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lightbox-info {
    padding: 20px 24px;
    background: #FAF8F5;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: var(--border-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1210;
    transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.lightbox-nav-btn-prev { left: 16px; }
.lightbox-nav-btn-next { right: 16px; }

/* ==========================================================================
   TABLET / RESPONSIVE OVERRIDES (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* Responsive curve scales */
    :root {
        --radius-xl-desktop: 40px;
    }

    .container {
        padding: 0 20px;
    }

    .navbar {
        height: 76px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Drawer Menu Overlap */
    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 28px;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 999;
        padding: 40px 20px;
        overflow-y: auto;
        border-top: var(--border-light);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.12rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

    .mobile-nav-item {
        display: list-item;
        list-style: none;
        width: 100%;
        max-width: 280px;
        margin-top: 10px;
    }

    /* Hide desktop action components inside main actions wrapper */
    .nav-actions .lang-selector,
    .nav-actions > .btn {
        display: none;
    }

    /* Grid collapses */
    .hero-grid,
    .about-grid,
    .programs-intro-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .programs-intro-img {
        height: 260px;
    }

    .hero {
        padding-top: 40px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-carousel {
        height: 380px;
    }

    .about-collage {
        height: 380px;
    }

    .collage-img-1 {
        height: 260px;
    }

    .collage-img-2 {
        height: 200px;
    }

    .accordion-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .accordion-img {
        height: 200px;
        width: 100%;
    }

    .gallery-grid {
        column-count: 2;
    }

    .gallery-item img {
        max-height: 260px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form-card {
        order: 1;
    }

    .contact-info-panel {
        order: 2;
    }

    .contact-map-card {
        order: 3;
        min-height: 320px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (max-width: 576px)
   ========================================================================== */
@media (max-width: 576px) {
    :root {
        --radius-xl-desktop: 28px;
    }

    html {
        font-size: 15px;
    }

    .section {
        padding: 80px 0;
    }

    .navbar {
        height: 64px;
    }

    .nav-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .logo-img {
        height: 34px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero-carousel {
        height: 280px;
    }

    .programs-intro-img {
        height: 200px;
    }

    .accordion-img {
        height: 180px;
    }

    .gallery-item img {
        max-height: 200px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 8px 14px;
        top: -12px;
        right: 12px;
    }

    .about-collage {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: auto;
    }

    .collage-img {
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 20px;
    }

    .gallery-grid {
        column-count: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    footer {
        padding: 30px 0 30px 0;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.88rem;
    }

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

    .modal-body {
        padding: 20px;
    }

}

/* ==========================================================================
   BLOG / FEATURED STORIES SECTION STYLES
   ========================================================================== */
.blog {
    background: var(--color-bg);
    position: relative;
}

.blog-scribble-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.blog-scribble-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog .container {
    position: relative;
    z-index: 2;
}

.blog-carousel-container {
    position: relative;
    width: 100%;
}

.blog-carousel {
    position: relative;
    width: 100%;
}

.blog-slide {
    position: relative;
    border-bottom: 3.5px solid transparent;
    border-left: 3.5px solid transparent;
    border-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary-light)) 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    align-items: stretch;
    background: radial-gradient(circle at 20% 20%, rgba(254, 183, 26, 0.08) 0%, rgba(253, 240, 213, 0.2) 100%);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.06);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.blog-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-slide:hover .blog-image {
    transform: scale(1.01);
}

.blog-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.blog-slide:hover {
    box-shadow: 0 12px 36px rgba(45, 41, 38, 0.08);
}

/* Left Column: Image with organic watercolor background */
.blog-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.watercolor-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    opacity: 0.35;
}

.watercolor-bg svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    overflow: hidden;
}

.blog-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(254, 183, 26, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding-left: 10px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-slide:hover .blog-image {
    transform: scale(1.04);
}

/* Right Column: Excerpt & Editorial content */
.blog-content-wrapper {
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    padding: 40px;
    justify-content: center;
}

.blog-content-wrapper::before {
    content: "";
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-light));
    margin-bottom: 18px;
    border-radius: 2px;
}

.blog-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: var(--color-primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    display: inline-block;
    align-self: flex-start;
}

.blog-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--color-dark);
    position: relative;
}

.blog-title::before {
    content: none;
}

.blog-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    font-style: italic;
}

.blog-subtitle::after {
    content: none;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-dark);
    opacity: 0.85;
    margin-top: 16px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-read-more-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-weight: 700;
    background: none;
    color: var(--color-primary);
    border: none;
    box-shadow: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.blog-read-more-btn::after {
    content: "\2192";
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.blog-read-more-btn::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-read-more-btn:hover::before {
    transform: scaleX(1);
}

.blog-read-more-btn:hover {
    color: var(--color-tertiary);
}

.blog-read-more-btn:hover::after {
    transform: translateX(4px);
}

/* Pagination Chevron Buttons */
.blog-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: var(--border-light);
    box-shadow: 0 4px 12px rgba(45, 41, 38, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.blog-carousel-btn-prev {
    left: -25px;
}

.blog-carousel-btn-next {
    right: -25px;
}

.blog-carousel-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(158, 0, 39, 0.12);
    transform: translateY(-50%) scale(1.05);
}

.blog-article-wrapper {
    padding: 0;
    margin-bottom: 60px;
}

.blog-article-header {
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-back-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.blog-back-btn .material-symbols-outlined {
    font-size: 20px;
}

.blog-article-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 12px;
    max-width: 800px;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-primary), #c4003a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-article-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-author {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
}

.blog-author::before {
    content: none;
}

.blog-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--color-dark);
    position: relative;
}

.blog-title::before {
    content: none;
}

.blog-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 20px;
    max-width: 700px;
}

.blog-article-meta {
    display: flex;
    gap: 24px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-article-media {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.blog-article-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.blog-article-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(45, 41, 38, 0.08);
    border: 6px solid var(--color-white);
}

.blog-article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-body {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-body);
}

.blog-article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-secondary);
    padding-left: 14px;
    font-weight: 700;
}

.blog-article-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 24px;
    opacity: 0.95;
}

.blog-article-body p strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Drop caps styling for the first letter of first paragraph */
.blog-article-body > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    margin-right: 12px;
    line-height: 0.85;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

/* Other Stories Grid styling */
.other-stories-section {
    margin-top: 80px;
    border-top: var(--border-light);
    padding-top: 60px;
}

.other-stories-heading {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.other-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.other-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-ambient);
    transition: var(--transition-graceful);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--color-dark);
}

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

.other-card-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.other-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-graceful);
}

.other-card:hover .other-card-image img {
    transform: scale(1.05);
}

.other-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.other-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.other-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.other-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.other-card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* Responsive adjustment for Mobile viewports */
@media (max-width: 991px) {
    .blog-image-wrapper {
        padding: 0;
    }

    .blog-image-container {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .blog-content-wrapper {
        padding: 28px 24px;
    }
    
    .blog-carousel-btn-prev {
        left: auto;
        right: 80px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .blog-carousel-btn-next {
        right: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .blog-carousel-btn:hover {
        transform: scale(1.05);
    }
    
    .watercolor-bg {
        top: -5%;
        left: -5%;
        width: 110%;
        height: 110%;
    }
}
@media (max-width:650px){
        .blog-slide {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px;
    }
}
/* ==========================================================================
   REDUCED MOTION ACCESSIBILITY SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    .marquee-content {
        animation: none !important;
        white-space: normal !important;
    }
}