/* 
========================================================================
   SUDHAKAR SINGH MP - OFFICIAL DIGITAL PLATFORM
   FIGMA DESIGN SYSTEM & CORE PREMIUM STYLING (LIGHT EMERALD)
   Copyright (c) 2026. All Rights Reserved.
========================================================================
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Mukta:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens & Variables (Light Alabaster Default) --- */
:root {
    /* Main Backgrounds - Ultra Clean & Warm */
    --bg-base: #FAF9F6;
    /* Pristine light Alabaster (Apple-level clean) */
    --bg-surface: #FFFFFF;
    /* Crisp white card structures */
    --bg-surface-elevated: #F2F4F0;
    /* Soft warm gray-green for dividers */

    /* Primary Branding - Vibrant & Trustworthy */
    --primary: #0F7A4D;
    /* Vibrant Emerald Green (RJD Flag & Agrarian pride) */
    --primary-dark: #074B2E;
    /* Deep Forest Green (high-contrast text/borders) */
    --primary-light: #1DB97D;
    /* Bright Mint Green (hover glows) */
    --primary-rgb: 15, 122, 77;

    /* Royal Accent Highlights */
    --accent: #C59B4B;
    /* Champagne Gold (Trust, Dignity, Excellence) */
    --accent-dark: #9A742F;
    --accent-light: #E7C98C;
    --accent-rgb: 197, 155, 75;

    --secondary-red: #D9383A;
    /* RJD Flag Energy Red */

    /* Text Contrast - Crisp & Deep (No muddy text) */
    --text-primary: #121814;
    /* Deep Obsidian Charcoal */
    --text-secondary: #48564E;
    /* Slate Forest Charcoal */
    --text-muted: #788A80;

    /* Spacing & Borders */
    --border: rgba(15, 122, 77, 0.08);
    --border-strong: rgba(15, 122, 77, 0.15);
    --border-gold: rgba(197, 155, 75, 0.3);

    /* Auto Layout Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* High-End Soft Shadows */
    --shadow-sm: 0 4px 12px rgba(15, 122, 77, 0.02);
    --shadow-md: 0 12px 30px rgba(15, 122, 77, 0.04);
    --shadow-lg: 0 24px 60px rgba(15, 122, 77, 0.08);

    /* Glassmorphism settings */
    --glass-bg: rgba(250, 249, 246, 0.85);
    --glass-border: rgba(15, 122, 77, 0.08);

    /* Fonts mapping */
    --font-sans: 'Inter', 'Manrope', sans-serif;
    --font-devanagari: 'Mukta', 'Noto Sans Devanagari', sans-serif;
    --header-height: 90px;

    /* 60fps Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Variables (Obsidian-Gold Glow) --- */
body.dark-mode {
    --bg-base: #0B0E0C;
    /* Obsidian Slate with subtle green backdrop */
    --bg-surface: #131A16;
    /* High-end deep slate cards */
    --bg-surface-elevated: #1B241F;

    --text-primary: #F4F6F4;
    /* Crisp Platinum Off-White */
    --text-secondary: #A0B0A7;
    /* Slate-green secondary text */
    --text-muted: #6B7C73;

    --border: rgba(197, 155, 75, 0.1);
    --border-strong: rgba(197, 155, 75, 0.2);
    --glass-bg: rgba(19, 26, 22, 0.9);
    --glass-border: rgba(197, 155, 75, 0.15);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Layout Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100vw;
}

body {

    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Hindi typography adjustment when active */
body.lang-hi {
    font-family: var(--font-devanagari);
}

body.lang-hi h1,
body.lang-hi h2,
body.lang-hi h3,
body.lang-hi h4 {
    line-height: 1.35;
    font-weight: 700;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--bg-base);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Noise & Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

.aurora-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 10% 20%, rgba(15, 122, 77, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 155, 75, 0.04) 0%, transparent 40%);
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

/* --- Typography & Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.text-gradient-emerald {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* --- Header System (Floating Apple-Style Glass) --- */
/* ── Navbar: transparent + full-width at top ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: top 0.4s ease, height 0.4s ease;
}

.site-header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    box-shadow: none;
    transition:
        width 0.4s ease,
        max-width 0.4s ease,
        margin 0.4s ease,
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        border 0.4s ease,
        border-radius 0.4s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
}

/* Transparent state: use white initially so text is visible on dark/busy hero sections */
.site-header:not(.scrolled) .logo-title,
.site-header:not(.scrolled) .logo-subtitle,
.site-header:not(.scrolled) .nav-link,
.site-header:not(.scrolled) .lang-switcher,
.site-header:not(.scrolled) .theme-toggle {
    color: #ffffff !important;
}

.site-header:not(.scrolled) .nav-link::after {
    background: #ffffff !important;
}

.site-header:not(.scrolled) .nav-link:hover,
.site-header:not(.scrolled) .nav-link.active {
    color: var(--accent) !important;
}

.site-header:not(.scrolled) .nav-link.active::after {
    background: var(--accent) !important;
}

.site-header:not(.scrolled) .lang-switcher {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.site-header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body:not(.dark-mode) .site-header-inner {
    box-shadow: none;
}

/* ── Scrolled: compact pill shape ── */
.site-header.scrolled {
    top: 0.75rem;
    height: 68px;
}

.site-header.scrolled .site-header-inner {
    width: calc(100% - 8rem);
    max-width: 1300px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0 2rem;
    box-shadow: var(--shadow-md);
}

body:not(.dark-mode) .site-header.scrolled .site-header-inner {
    box-shadow: 0 10px 30px rgba(15, 122, 77, 0.12);
    border-color: var(--primary);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2.5px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 4px 12px rgba(15, 122, 77, 0.08);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    transition: transform 0.4s ease;
}

/* Premium Hover Tilt & Zoom Effect */
.logo-wrapper:hover .logo-icon {
    transform: rotate(-12deg) scale(1.08);
    border-color: var(--accent-light);
    box-shadow: 0 8px 24px rgba(197, 155, 75, 0.35);
}

.logo-wrapper:hover .logo-icon img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
}

/* Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

@media (min-width: 1201px) {
    .main-nav {
        position: static;
        margin-left: auto;
        margin-right: 1.5rem;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===== MEGA MENU ===== */

/* Nav group wrapper */
.nav-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Invisible bridge to cover hover gap between trigger and panel */
.nav-group::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    pointer-events: auto;
    z-index: 10;
}

/* Trigger button */
.nav-group-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.1rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-group-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-group:hover .nav-group-trigger,
.nav-group-trigger:focus,
.nav-group-trigger.active {
    color: var(--primary-dark);
}

.nav-group:hover .nav-group-trigger::after,
.nav-group-trigger.active::after {
    width: 100%;
}

/* Chevron */
.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-group:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Transparent navbar trigger color override */
.site-header:not(.scrolled) .nav-group-trigger {
    color: #ffffff !important;
}

.site-header:not(.scrolled) .nav-group-trigger:hover {
    color: var(--accent) !important;
}

/* Mega panel */
.mega-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 480px;
    max-width: calc(100vw - 2rem);
    background: #0E2318;
    border: 1px solid rgba(197, 155, 75, 0.2);
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s;
    z-index: 2000;
    overflow: hidden;
}

/* Panel arrow tip */
.mega-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #0E2318;
    border-left: 1px solid rgba(197, 155, 75, 0.2);
    border-top: 1px solid rgba(197, 155, 75, 0.2);
    rotate: 45deg;
}

/* Hover open state */
.nav-group:hover .mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

/* Inner grid */
.mega-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1.75rem;
}

/* Column */
.mega-col {
    padding: 0 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-col:last-child {
    border-right: none;
}

/* Column heading */
.mega-col-heading {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C59B4B;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(197, 155, 75, 0.25);
}

/* Individual mega link — plain text, no icon box, generous vertical rhythm */
.mega-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.35rem;
    cursor: pointer;
}

.mega-link:hover {
    background: rgba(197, 155, 75, 0.1);
    transform: translateX(3px);
}

.mega-link.active {
    background: rgba(197, 155, 75, 0.15);
}

.mega-link span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mega-link strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.mega-link small {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

/* Actions Header */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    background: rgba(15, 122, 77, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.lang-switcher:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(15, 122, 77, 0.04);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(197, 155, 75, 0.12);
    color: var(--accent-dark);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 122, 77, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 122, 77, 0.25);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(197, 155, 75, 0.15);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(197, 155, 75, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(15, 122, 77, 0.04);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-material-subhash {
    background-color: #107348 !important;
    color: #FFFFFF !important;
    border-radius: 100px !important;
    padding: 6px 14px !important;
    font-family: var(--font-sans);
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    letter-spacing: 0.1px !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap !important;
}

.btn-material-subhash:hover {
    background-color: #0b5032 !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-material-subhash::after {
    display: none !important;
}

/* Contact Grievance Form Button Overrides (No box-shadow, no transform/lift-up hover effect) */
#grievanceWizardForm .btn {
    box-shadow: none !important;
    transform: none !important;
    transition: background-color var(--transition-smooth) !important;
}

#grievanceWizardForm .btn:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* --- Page Sections Design --- */
section.page-section {
    position: relative;
    padding: 7.5rem 0;
    overflow: visible;
    min-height: auto;
    height: auto;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
    position: relative;
}

/* --- Section Badge Base (Light Containers) --- */
.section-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(15, 122, 77, 0.08);
    border: 1px solid rgba(15, 122, 77, 0.25);
    border-radius: var(--radius-full, 999px);
    font-size: 0.75rem;
    font-weight: 800;
    color: #0F7A4D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* --- Section Badge for Hero Banners & Dark Backgrounds (Vivid Gold) --- */
.articles-page-hero .section-badge,
.articles-hero-inner .section-badge,
.parliament-hero .section-badge,
.parliament-hero-inner .section-badge,
.hero-section .section-badge,
.hero-container .section-badge,
.site-hero .section-badge,
.about-hero-section .section-badge,
.development-hero .section-badge,
body.dark-mode .section-badge {
    display: inline-block !important;
    background: rgba(197, 155, 75, 0.15) !important;
    color: #C59B4B !important;
    border: 1px solid rgba(197, 155, 75, 0.35) !important;
    padding: 5px 16px !important;
    border-radius: var(--radius-full, 999px) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.milestone-parliament-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

/* Specific overrides for reveal-up animation to preserve centering and vertical alignment */
.milestone-parliament-wrapper.reveal-up {
    opacity: 0;
    transform: translate(-50%, -30%);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-parliament-wrapper.reveal-up.active {
    opacity: 0.18;
    transform: translate(-50%, -50%);
}

.milestone-parliament-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Blends the image with the section background */
    display: block;
}

.section-title {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.section-desc {
    color: var(--text-secondary);
}

/* --- HERO SECTION --- */
section.hero-section {
    position: relative;
    padding-top: 0;
    background: radial-gradient(circle at 80% 20%, rgba(15, 122, 77, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(197, 155, 75, 0.05) 0%, transparent 50%),
        var(--bg-base);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    height: 800px !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* Background Carousel Styles */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 0.99;
    /* Fully transparent of overlay; displays image at full visibility */
}

.hero-bg-overlay {
    display: none;
}

body.dark-mode .hero-bg-overlay {
    display: none;
}

.hero-container {
    display: flex;
    align-items: flex-end;
    gap: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.hero-tag svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border-strong);
    padding-top: 1.5rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Hero Collage Handoff Graphic */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    max-width: 440px;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-strong);
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 122, 77, 0.95) 0%, rgba(15, 122, 77, 0.1) 60%, rgba(15, 122, 77, 0.05) 100%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%25" height="100%25" viewBox="0 0 400 500" style="background:%23FAF9F6;"%3E%3Cdefs%3E%3ClinearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"%3E%3Cstop offset="0%25" stop-color="%230F7A4D"/%3E%3Cstop offset="100%25" stop-color="%23074B2E"/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23g)"/%3E%3Ccircle cx="200" cy="220" r="110" fill="%23C59B4B" opacity="0.15"/%3E%3Cpath d="M100,500 C100,320 300,320 300,500" fill="%23074B2E" opacity="0.9"/%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2.5rem;
}

.hero-overlay-details {
    text-align: center;
    z-index: 2;
}

.hero-overlay-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.hero-overlay-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
}

.floating-card-hero {
    position: absolute;
    bottom: 8%;
    left: -12%;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.floating-icon {
    width: 38px;
    height: 38px;
    background: rgba(15, 122, 77, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-text-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-text-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- CARDS & GRIDS (Light Apple Clean) --- */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.snapshot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.snapshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.snapshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.snapshot-card:hover::before {
    opacity: 1;
}

.snapshot-icon {
    width: 48px;
    height: 48px;
    background: rgba(15, 122, 77, 0.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.snapshot-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.snapshot-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- VISION PILLARS GRID --- */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vision-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.vision-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vision-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(197, 155, 75, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.vision-card-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
}

.vision-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.vision-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vision-card.span-2 {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(15, 122, 77, 0.02) 0%, rgba(15, 122, 77, 0) 100%), var(--bg-surface);
    border-left: 4px solid var(--primary);
}

.timeline-outer {
    position: relative;
    padding: 1.5rem 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(10, 46, 26, 0.05);
}

.timeline-outer::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.timeline-outer::-webkit-scrollbar-track {
    background: rgba(10, 46, 26, 0.05);
    border-radius: 100px;
}

.timeline-outer::-webkit-scrollbar-thumb {
    background: var(--accent, #c9a84c);
    border-radius: 100px;
}

.timeline-outer::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.timeline-track {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem;
    /* No fixed min-width. Width must come from content (node count * min-width + gaps),
       otherwise this silently desyncs every time a node is added/removed, which is the
       exact bug that caused the line to stop short on the 10-node version. */
    width: max-content;
    min-width: 100%;
    position: relative;
}

.timeline-line {
    /* Positioned via inset, not left/right percentages, so it is pinned to the actual
       rendered edges of .timeline-track regardless of how many nodes are flexed into it. */
    position: absolute;
    top: 34px;
    /* track padding(24px) + dot radius(10px) */
    left: 1.5rem;
    right: 1.5rem;
    height: 4px;
    background: linear-gradient(to right, var(--primary) 0%, var(--accent) 50%, var(--primary-light) 100%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-node {
    flex: 0 0 300px;
    /* fixed width — no grow, no shrink */
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 4px solid var(--primary);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 3;
    /* sits above the line */
    transition: all var(--transition-fast);
    box-shadow: 0 0 0 3px var(--bg-surface);
    /* halo to cleanly mask line */
}

.timeline-node:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.25);
    box-shadow: 0 0 0 3px var(--bg-surface), 0 0 14px rgba(197, 155, 75, 0.6);
}

.timeline-year {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.timeline-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.timeline-node:hover .timeline-card {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timeline-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.timeline-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- STATS IMPACT SECTION --- */
.impact-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #053320 100%);
    color: #FFFFFF;
}

.impact-section .section-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
}

.impact-section h2,
.impact-section p {
    color: #FFFFFF;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.impact-item {
    text-align: center;
}

.impact-num {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.impact-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.impact-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ACHIEVEMENTS & AWARDS SECTION ===== */
.awards-section {
    background: #0B1E12;
    padding: 5rem 0 4rem;
    overflow: hidden;
    position: relative;
}

.awards-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 50%, rgba(16, 120, 70, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 90% 30%, rgba(197, 155, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.awards-section-inner {
    position: relative;
}

/* Header row */
.awards-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.awards-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.awards-badge {
    background: rgba(197, 155, 75, 0.15) !important;
    border-color: rgba(197, 155, 75, 0.35) !important;
    color: #C59B4B !important;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.awards-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.15;
}

.awards-title-accent {
    color: #C59B4B;
}

.awards-title-line {
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #C59B4B, #E8C97A);
    margin-top: 0.35rem;
}

.awards-view-all {
    border: 1.5px solid rgba(197, 155, 75, 0.5);
    color: #C59B4B;
    background: transparent;
    padding: 0.55rem 1.4rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.awards-view-all:hover {
    background: #C59B4B;
    color: #0B1E12;
    transform: translateX(3px);
}

/* Scroll container */
.awards-scroll-container {
    overflow-x: auto;
    padding: 0.5rem 0 2rem;
    scrollbar-width: none;
    cursor: grab;
}

.awards-scroll-container::-webkit-scrollbar {
    display: none;
}

.awards-scroll-container:active {
    cursor: grabbing;
}




.awards-track {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 2.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
}

/* Individual award card */
.award-card {
    position: relative;
    width: 240px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.award-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(197, 155, 75, 0.4);
}

.award-card-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.award-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.award-card:hover .award-card-img {
    transform: scale(1.04);
}

.award-card-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.award-card:hover .award-card-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Bottom overlay with award info */
.award-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1rem 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    transition: padding 0.3s ease;
}

.award-card:hover .award-card-overlay {
    padding-bottom: 1.3rem;
}

.award-card-year {
    display: inline-block;
    background: rgba(197, 155, 75, 0.85);
    color: #0B1E12;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.55rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.award-card-title {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.award-card-org {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    margin: 0;
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 768px) {
    .awards-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .awards-track {
        padding: 0.5rem 1rem;
        gap: 1.2rem;
    }

    .award-card {
        width: 200px;
    }

    .award-card-img {
        height: 185px;
    }
}

/* --- MAGAZINE NEWS GRID --- */

.news-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
}

.news-featured {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.news-img-holder {
    height: 340px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%25" height="100%25" viewBox="0 0 600 300" style="background:%230F7A4D;"%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-featured-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.news-featured-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.news-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item-row {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition-smooth);
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.news-item-row:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.news-item-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    flex-shrink: 0;
}

.news-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

/* --- GALLERY GRID --- */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-strong);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 122, 77, 0.9) 0%, rgba(15, 122, 77, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.gallery-category {
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Video Speeches playlist */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(197, 155, 75, 0.3);
    z-index: 3;
}

/* --- CITIZEN TESTIMONIAL CAROUSEL --- */
.testimonials-section {
    background: var(--bg-surface-elevated);
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    overflow: hidden;
    position: relative;
    height: 320px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--primary);
    margin-bottom: 0.75rem;
}

.testimonial-author-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.testimonial-author-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--primary);
    color: white;
}

.testimonial-nav-prev {
    left: -60px;
}

.testimonial-nav-next {
    right: -60px;
}

@media (max-width: 900px) {
    .testimonial-nav-prev {
        left: -20px;
    }

    .testimonial-nav-next {
        right: -20px;
    }
}

/* --- EVENTS & MAP PINS PANEL --- */
.events-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-card {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.event-date-badge {
    background: var(--primary);
    color: white;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0;
    flex-shrink: 0;
    border-right: 2px solid var(--accent);
}

.event-day {
    font-size: 1.6rem;
    font-weight: 800;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.event-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.events-map-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.events-map-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-placeholder {
    flex: 1;
    background: #E5ECE9;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.dark-mode .map-placeholder {
    background: #1B241F;
}

.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(197, 155, 75, 0.4);
    animation: mapPulse 2s infinite;
}

.pin-buxar {
    top: 48%;
    left: 42%;
}

.pin-dumraon {
    top: 35%;
    left: 68%;
}

.pin-chausa {
    top: 60%;
    left: 28%;
}

@keyframes mapPulse {
    0% {
        box-shadow: 0 0 0 0px rgba(197, 155, 75, 0.5);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(197, 155, 75, 0px);
    }
}

/* --- VOLUNTEER & DASHBOARD MOCKS --- */
.volunteer-cta-section {
    background: linear-gradient(135deg, #093723 0%, #031D12 100%);
    color: #FFFFFF;
}

.volunteer-cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-cta-text h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.volunteer-cta-text p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.volunteer-form-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

body:not(.dark-mode) .volunteer-form-card {
    background: #FFFFFF;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

body:not(.dark-mode) .form-input {
    background: #F4F6F4;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(197, 155, 75, 0.3);
    outline: none;
}

/* Volunteer Dashboard Mock */
.v-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.v-dash-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

body:not(.dark-mode) .v-dash-card {
    background: rgba(15, 122, 77, 0.04);
    border-color: var(--border-strong);
}

.v-badge-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
}

.v-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* --- DUAL-COLUMN WIDGETS --- */
.membership-tool-container,
.constituency-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.card-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px dashed var(--border-strong);
}

#membershipCanvas {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Constituency selectors */
.region-selector {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
}

.region-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.region-btn:hover,
.region-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- STEPS COMPRESSED WIZARDS (Grievance Portal) --- */
.grievance-form-wizard,
.donation-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--border-strong);
    z-index: 1;
}

.wizard-step-node {
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wizard-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.wizard-step-node.active .wizard-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wizard-step-node.completed .wizard-circle {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.wizard-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.wizard-step-node.active .wizard-label {
    color: var(--primary);
}

/* Donation preset buttons */
.donation-grid-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donation-amt-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.donation-amt-btn:hover,
.donation-amt-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- SOCIAL MEDIA GRID WALL --- */
#socialWall {
    height: auto !important;
    padding-bottom: 7.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.social-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 290px;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.social-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.social-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
}

.social-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.social-handle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.social-body {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

/* --- MODERN MULTI-COLUMN FOOTER --- */
.site-footer {
    background: #090E0B;
    color: #FFFFFF;
    padding: 5rem 0 2.5rem;
    border-top: 2px solid var(--accent);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 0.75fr 1fr 1.1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

/* Contact column */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: rgba(197, 155, 75, 0.12);
    border: 1px solid rgba(197, 155, 75, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.footer-contact-icon svg {
    width: 14px;
    height: 14px;
    stroke: #C59B4B;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.footer-contact-item a:hover {
    color: #C59B4B;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.footer-logo-card {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.footer-logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 2px;
}

/* --- Floating Social Bar --- */
.floating-social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 22, 13, 0.95);
    border: 2px solid #C59B4B;
    border-radius: 40px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.floating-social-bar a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.floating-social-bar a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.floating-social-bar a:hover {
    background: #C59B4B;
    color: #05160d;
    transform: scale(1.15);
    border-color: #C59B4B;
    box-shadow: 0 4px 15px rgba(197, 155, 75, 0.4);
}

.floating-social-bar a:hover svg {
    transform: rotate(8deg);
}

/* Tooltips */
.floating-social-bar a::after {
    content: attr(title);
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    background: #05160d;
    border: 1px solid #C59B4B;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-social-bar a:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Mobile responsive - stack horizontally at bottom */
@media (max-width: 768px) {
    .floating-social-bar {
        right: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(50%);
        flex-direction: row;
        padding: 8px 12px;
        border-radius: 50px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .floating-social-bar a {
        width: 38px;
        height: 38px;
    }

    .floating-social-bar a svg {
        width: 16px;
        height: 16px;
    }

    /* Hide tooltips on mobile */
    .floating-social-bar a::after {
        display: none !important;
    }
}

.footer-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
}

.footer-social-btn:hover {
    background: var(--accent);
    color: black !important;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    font-size: 0.85rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- FLOATING AI CHATBOT SYSTEM --- */
.ai-chatbot-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform var(--transition-smooth);
}

.ai-chatbot-toggle:hover {
    transform: scale(1.06) rotate(5deg);
}

.ai-chatbot-toggle svg {
    width: 22px;
    height: 22px;
}

.ai-chat-window {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 350px;
    height: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-smooth);
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-bot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
}

.chat-bot-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.chat-bot-status {
    font-size: 0.65rem;
    color: var(--accent-light);
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-base);
}

.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.4;
}

.chat-bubble-bot {
    background: var(--bg-surface);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-bubble-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-bar {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    gap: 8px;
}

.chat-input-field {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ACCESSIBILITY BAR --- */
.accessibility-bar {
    position: fixed;
    top: 120px;
    right: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acc-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface-elevated);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
}

.acc-btn:hover {
    background: var(--primary);
    color: white;
}

/* High Contrast Accessibility Overrides */
body.high-contrast {
    --bg-base: #000000 !important;
    --bg-surface: #000000 !important;
    --bg-surface-elevated: #111111 !important;
    --text-primary: #FFFF00 !important;
    /* High-visibility yellow text */
    --text-secondary: #FFFFFF !important;
    /* Pure white text */
    --text-muted: #FFFFFF !important;
    --border: #FFFF00 !important;
    --border-strong: #FFFF00 !important;
    --accent: #FFFF00 !important;
    --primary: #00FF00 !important;
    /* High-visibility neon green */
    --accent-light: #FFFF00 !important;
}

body.high-contrast .btn-primary,
body.high-contrast .btn-accent {
    background: #000000 !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFF00 !important;
}

/* --- FIGMA DESIGN SYSTEM PAGE DISPLAY UTILS --- */
.ds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.ds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.ds-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.ds-title {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.swatch-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.swatch-color {
    height: 80px;
}

.swatch-info {
    padding: 0.75rem;
    background: var(--bg-surface-elevated);
}

.swatch-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.swatch-hex {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.typo-spec {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.typo-row {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.typo-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.25rem;
}

/* --- RESPONSIVE ADAPTABILITY --- */

/* Laptop Grid limits (1280px) */
@media (max-width: 1280px) {
    .site-header-inner {
        width: 100%;
        padding: 0 2.5rem;
    }

    .site-header.scrolled .site-header-inner {
        width: calc(100% - 4rem);
        margin: 0 auto;
    }

    .container {
        padding: 0 3rem;
    }
}

/* Tablet Resizing (768px) */
@media (max-width: 1200px) {
    :root {
        --header-height: 80px;
    }

    section.hero-section {
        height: 600px !important;
    }

    .site-header {
        top: 0.5rem;
    }

    .site-header-inner {
        width: 100%;
        padding: 0 1.5rem;
        border-radius: 0;
    }

    .site-header.scrolled .site-header-inner {
        width: calc(100% - 2rem);
        border-radius: var(--radius-md);
        margin: 0 auto;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-md);
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-ctas,
    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        height: 400px;
    }

    .hero-image-container {
        height: 100%;
    }

    .snapshot-grid,
    .vision-grid,
    .gallery-grid,
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-card.span-2 {
        grid-column: span 2;
    }

    .events-container,
    .volunteer-cta-container,
    .membership-tool-container,
    .constituency-info-box,
    .ds-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .milestones-section {
        padding: 5.5rem 0 4.5rem;
    }
}

/* Mobile Screen Sizes (390px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    section.hero-section {
        height: 560px !important;
        min-height: 520px;
    }

    .hero-glass-card {
        min-height: auto;
    }

    .snapshot-grid,
    .vision-grid,
    .gallery-grid,
    .social-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .vision-card.span-2 {
        grid-column: span 1;
    }

    .donation-grid-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .region-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .volunteer-form-card,
    .donation-widget,
    .grievance-form-wizard,
    .membership-tool-container,
    .constituency-info-box,
    .ds-section {
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .milestones-section {
        padding: 4rem 0 3rem;
    }
}

/* ========================================================================
   QUOTE PORTAL SECTION STYLING
======================================================================== */
.quote-portal-section {
    padding: 0 0 2rem;
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 991px) {
    .quote-portal-section {
        margin-top: -4rem;
    }
}

@media (max-width: 480px) {
    .quote-portal-section {
        margin-top: -2rem;
    }
}

.quote-portal-card {
    max-width: 950px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.quote-portal-card:hover {
    border-color: var(--accent-light);
}

.quote-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_bg_pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.quote-card-main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.quote-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-card-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
}

.quote-card-title {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    color: #FFFFFF;
}

.quote-card-quote-box {
    position: relative;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.quote-icon-left {
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2.5rem;
    line-height: 1;
    font-family: serif;
    color: var(--accent-light);
    opacity: 0.8;
}

.quote-card-text {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.45;
}

.quote-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-quote-portal {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(197, 155, 75, 0.2);
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quick links sub-bar */
.quote-portal-links {
    background: rgba(12, 18, 14, 0.95);
    border-top: 1px solid rgba(197, 155, 75, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.6rem 2rem;
    position: relative;
    z-index: 1;
}

.quote-portal-links marquee {
    width: 100%;
}

.quote-portal-links .portal-link-item {
    display: inline-flex;
    margin: 0 2.5rem;
}

.portal-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.portal-link-item:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
}

.portal-link-icon {
    font-size: 1.1rem;
}

/* Responsive adjustments for Quote Portal */
@media (max-width: 991px) {
    .quote-card-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .quote-card-action {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .quote-portal-links {
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .portal-link-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        margin: 0.25rem 0.5rem !important;
    }
}

/* ========================================================================
   PROFILE HIGHLIGHT SECTION STYLING
======================================================================== */
.profile-highlight-section {
    padding: 6.5rem 0;
    background: var(--bg-surface-elevated);
    position: relative;
    z-index: 5;
}

.profile-highlight-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 5rem;
}

.profile-highlight-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-highlight-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.profile-highlight-desc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-highlight-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.profile-highlight-lead strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.profile-highlight-body {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.profile-highlight-action {
    margin-top: 0.5rem;
}

.btn-profile-portal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 122, 77, 0.15);
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-highlight-image-wrapper {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.profile-highlight-image-container {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    aspect-ratio: 1 / 1;
}

.profile-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.profile-portrait-img:hover {
    transform: scale(1.03);
}

/* Elegant gold offset frame behind the image container */
.profile-highlight-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 2.5px solid var(--accent);
    border-radius: var(--radius-md);
    z-index: 1;
    pointer-events: none;
}

/* Responsive adjustments for Profile Highlight */
@media (max-width: 991px) {
    .profile-highlight-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .profile-highlight-image-wrapper {
        order: -1;
        /* Place image above description on mobile */
        max-width: 380px;
    }
}

/* ========================================================================
   MILESTONES TIMELINE SECTION STYLING
======================================================================= */
.milestones-section {
    padding: 7.5rem 0;
    background: #fbf8f6;
    position: relative;
    z-index: 5;
}

.milestones-section .section-title {
    color: var(--text-primary);
}

.milestones-card {
    background: linear-gradient(135deg, #09120E 0%, #041B12 100%);
    border: 1px solid rgba(197, 155, 75, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 240px;
    min-height: 480px;
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-smooth);
    --milestone-bg: url('../images/image10.png');
}

.milestones-card:hover {
    border-color: var(--accent-light);
}

.milestones-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--milestone-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    pointer-events: none;
    transition: background-image 0.6s ease;
}

.milestones-display-panel {
    position: relative;
    width: 100%;
    height: 100%;
}

.milestone-slide {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.6s;
    padding: 4.5rem 5rem;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.milestone-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
    pointer-events: auto;
    position: relative;
}

.milestone-slide-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.milestone-year-big {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    letter-spacing: -0.03em;
}

.milestone-title {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.milestone-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
}

.milestone-action {
    margin-top: 0.5rem;
}

.milestones-nav-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    position: relative;
    background: rgba(0, 0, 0, 0.63);
}

.milestones-nav-scroll-wrapper {
    position: relative;
    height: 290px;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.milestones-nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.milestones-timeline-line-vertical {
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.milestone-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.25rem 0;
    width: 100%;
    text-align: left;
    z-index: 2;
    position: relative;
    outline: none;
}

.milestone-nav-line {
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-smooth);
}

.milestone-nav-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-smooth);
}

.milestone-nav-btn:hover .milestone-nav-year {
    color: rgba(255, 255, 255, 0.8);
}

.milestone-nav-btn.active .milestone-nav-line {
    width: 32px;
    background: var(--accent);
}

.milestone-nav-btn.active .milestone-nav-year {
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 800;
}

/* Dark Mode Overrides for Milestones */
body.dark-mode .milestones-section {
    background: var(--bg-base);
}

body.dark-mode .milestone-parliament-wrapper.reveal-up.active {
    opacity: 0.15;
}

body.dark-mode .milestone-parliament-img {
    mix-blend-mode: screen;
    filter: invert(1) sepia(1) saturate(2) hue-rotate(10deg);
}

body.dark-mode .milestones-section .section-badge {
    background: rgba(15, 122, 77, 0.06);
    border-color: rgba(15, 122, 77, 0.15);
    color: var(--primary-light);
}

body.dark-mode .milestones-section .section-title {
    color: #FFFFFF;
}

body.dark-mode .milestones-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
}

body.dark-mode .milestones-card:hover {
    border-color: var(--accent);
}

body.dark-mode .milestones-card::before {
    opacity: 0.015;
}

body.dark-mode .milestone-year-big {
    color: var(--primary-light);
}

body.dark-mode .milestones-nav-panel {
    border-left: 1px solid var(--border-strong);
    background: var(--bg-surface-elevated);
}

body.dark-mode .milestones-timeline-line-vertical {
    background: var(--border-strong);
}

body.dark-mode .milestone-nav-line {
    background: var(--text-muted);
}

body.dark-mode .milestone-nav-year {
    color: var(--text-muted);
}

body.dark-mode .milestone-nav-btn:hover .milestone-nav-year {
    color: var(--text-primary);
}

body.dark-mode .milestone-nav-btn.active .milestone-nav-line {
    background: var(--primary);
}

body.dark-mode .milestone-nav-btn.active .milestone-nav-year {
    color: var(--primary);
}

/* Responsive adjustments for Milestones */
@media (max-width: 991px) {
    .milestones-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .milestones-display-panel {
        height: auto !important;
        min-height: 420px;
        position: relative;
        overflow: hidden;
    }

    .milestone-slide {
        padding: 1.5rem !important;
    }

    .milestones-nav-panel {
        border-left: none;
        border-top: 1px solid rgba(197, 155, 75, 0.15) !important;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 1rem !important;
        background: rgba(11, 30, 18, 0.95) !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .milestones-nav-scroll-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: auto;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0.5rem 1rem;
        scrollbar-width: none;
    }

    .milestones-nav-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    body.dark-mode .milestones-nav-panel {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.25);
    }

    .milestones-timeline-line-vertical {
        display: none;
    }

    .milestone-nav-btn {
        width: auto;
        padding: 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .milestone-nav-line {
        width: 2px;
        height: 10px;
        background: var(--text-muted);
    }

    body.dark-mode .milestone-nav-line {
        background: rgba(255, 255, 255, 0.2);
    }

    .milestone-nav-btn.active .milestone-nav-line {
        width: 2px;
        height: 18px;
        background: var(--primary);
    }

    body.dark-mode .milestone-nav-btn.active .milestone-nav-line {
        background: var(--accent);
    }
}

@media (max-width: 480px) {
    .milestone-slide {
        padding: 2rem 1.5rem;
    }

    .milestone-nav-year {
        font-size: 0.9rem;
    }

    .milestone-nav-btn.active .milestone-nav-year {
        font-size: 1.1rem;
    }
}

/* ===== JOIN BANNER SECTION ===== */
.join-banner-section {
    background: linear-gradient(135deg, #0A1B12 0%, #030C08 100%);
    border-top: 2px solid var(--accent);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow for extra premium look */
.join-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 122, 77, 0.18) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.join-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.join-banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 620px;
}

.join-banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(197, 155, 75, 0.12);
    border: 1px solid rgba(197, 155, 75, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    box-shadow: 0 8px 32px rgba(15, 122, 77, 0.12);
    flex-shrink: 0;
}

.join-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.join-banner-title {
    font-family: var(--font-sans);
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.02em;
}

.join-banner-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.join-banner-ctas {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.join-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #FFFFFF;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(197, 155, 75, 0.25);
    cursor: pointer;
}

.join-banner-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.2s ease;
}

.join-banner-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.join-banner-socials-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.join-social-list {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.join-social-item {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, color 0.25s ease;
}

.join-social-item:hover {
    background: rgba(197, 155, 75, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-3px);
}

.join-social-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .join-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .join-banner-ctas {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .join-banner-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .join-banner-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .join-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Featured Blog Section --- */
.blog-scroll-container {
    overflow-x: auto;
    padding: 0.5rem 0 2rem;
    scrollbar-width: none;
    /* Hide scrollbar for clean aesthetic */
    cursor: grab;
    width: 100%;
}

.blog-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.blog-scroll-container:active {
    cursor: grabbing;
}

.blog-scroll-container .blog-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    margin-top: 0;
}

.blog-scroll-container .blog-card {
    width: 320px;
    /* Fixed width for cards in the scrollable view */
    flex-shrink: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    margin-top: 1.5rem;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.blog-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(15, 122, 77, 0.2);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-dark);
}

.blog-excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-read-more:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

/* Responsiveness for Blog Section */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-img {
        height: 180px;
    }
}

/* 
========================================================================
   SCROLL REVEAL & PAGE ENTRY ANIMATIONS (PREMIUM STYLING)
========================================================================
*/

/* Core Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Entry Animations (Applied on Load) */
.site-header {
    opacity: 0;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered load for elements in the hero content */
.hero-content.reveal-up .hero-tag {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.hero-content.reveal-up .hero-title {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
}

.hero-content.reveal-up .hero-desc {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.hero-content.reveal-up .hero-ctas {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.55s;
}

/* Scroll Reveal Activation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
========================================================================
   HERO GLASSMORPHISM CARD & CONTENT SLIDES
========================================================================
*/

/* Hero section base: align content bottom-left */
.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}

/* Glass card — tight, wraps only written content area */
.hero-glass-card {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 20, 10, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem 2rem;
    max-width: 600px;
    min-height: 280px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero-glass-card {
    background: rgba(5, 12, 8, 0.45);
    border-color: rgba(197, 155, 75, 0.20);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40);
}

/* Gold shimmer accent line on glass card */
.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), transparent);
    opacity: 0.7;
}

/* Slide container — handles fade between slides */
.hero-content-slide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.7s;
    visibility: hidden;
    pointer-events: none;
    width: calc(100% - 5rem);
}

.hero-content-slide.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

/* Slide badge (Kisan Connect, Constituency First, Youth Power) */
.hero-slide-badge {
    display: none !important;
}

body.dark-mode .hero-slide-badge {
    background: rgba(197, 155, 75, 0.12);
    border-color: rgba(197, 155, 75, 0.3);
    color: var(--accent-light);
}

/* Slide description */
.hero-slide-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(240, 242, 240, 0.88);
    margin-top: 0.25rem;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-slide-desc {
    color: rgba(244, 246, 244, 0.75);
}

/* Hero Title within glass card */
.hero-glass-card .hero-title {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.15;
    margin: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}


/* CTA buttons row always visible at bottom of card */
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .hero-ctas {
    border-top-color: rgba(197, 155, 75, 0.12);
}

/* Responsive hero glass card */
@media (max-width: 768px) {
    .hero-container {
        padding-bottom: 3rem;
    }

    .hero-glass-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .hero-content-slide {
        width: calc(100% - 3rem);
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================
   RESPONSIVE LAYOUT HELPER CLASSES FOR MULTI-PAGE SITES
   ======================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.achievements-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .achievements-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.constituency-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    grid-column: span 2;
}

.constituency-info-subtitle {
    font-weight: 700;
    color: var(--primary);
}

.constituency-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
    grid-column: span 2;
}

.constituency-stat-card {
    background: var(--bg-base);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.constituency-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

@media (max-width: 991px) {
    .constituency-info-header {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .constituency-stats-grid {
        grid-column: span 1;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .constituency-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .constituency-stat-card {
        padding: 1.5rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .v-dash-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================================
   ARTICLES SECTION — APPEND THESE TO THE BOTTOM OF styles.css
   ============================================================ */

/* ── SKELETON SHIMMER (homepage featured section) ─────────── */
.blog-card--skeleton .skeleton-box {
    background: linear-gradient(90deg,
            var(--border-light, #f3f4f6) 25%,
            rgba(255, 255, 255, 0.55) 50%,
            var(--border-light, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 12px 12px 0 0;
}

.skeleton-line {
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(90deg,
            var(--border-light, #f3f4f6) 25%,
            rgba(255, 255, 255, 0.55) 50%,
            var(--border-light, #f3f4f6) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
    margin: 8px 0;
    width: 100%;
}

.skeleton-line--short {
    width: 40%;
}

.skeleton-line--long {
    width: 90%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── ARTICLE CARD ENHANCEMENTS ────────────────────────────── */
.articles-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.articles-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.articles-card__img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.articles-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.42) 100%);
}

.articles-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.articles-card__source-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.88);
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.articles-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-md, 1rem);
}

.articles-card__date {
    display: flex;
    align-items: center;
    font-size: 0.73rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 0.45rem;
}

.articles-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.38;
    color: var(--text-heading, #111827);
    margin: 0 0 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card__excerpt {
    font-size: 0.81rem;
    line-height: 1.6;
    color: var(--text-muted, #6b7280);
    margin: 0 0 auto;
    padding-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary, #1a7a4a);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-light, #f0f0f0);
    transition: gap 0.18s ease, color 0.18s ease;
}

.articles-card__cta:hover {
    color: var(--primary-dark, #0a2e1a);
    gap: 10px;
}

/* ── VIEW ALL BUTTON IN BLOG HEADER ───────────────────────── */
.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ========================================================================
   ARTICLES & NEWS REDESIGN EXTENSIONS (DYNAMIC static implementation)
   ======================================================================== */

/* --- Interior Page White Header Navigation --- */
body.interior-page-layout .site-header {
    background: var(--bg-surface, #ffffff) !important;
    border-bottom: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15)) !important;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(15, 122, 77, 0.02)) !important;
}

body.interior-page-layout .site-header .logo-title,
body.interior-page-layout .site-header .logo-subtitle,
body.interior-page-layout .site-header .nav-link,
body.interior-page-layout .site-header .lang-switcher,
body.interior-page-layout .site-header .theme-toggle {
    color: var(--primary-dark, #074B2E) !important;
}

body.interior-page-layout .site-header .nav-link::after {
    background: var(--primary-dark, #074B2E) !important;
}

body.interior-page-layout .site-header:not(.scrolled) {
    top: 0;
    height: 80px;
}

body.interior-page-layout.dark-mode .site-header {
    background: var(--bg-surface, #131A16) !important;
    border-bottom: 1px solid var(--glass-border, rgba(197, 155, 75, 0.15)) !important;
}

body.interior-page-layout.dark-mode .site-header .logo-title,
body.interior-page-layout.dark-mode .site-header .logo-subtitle,
body.interior-page-layout.dark-mode .site-header .nav-link,
body.interior-page-layout.dark-mode .site-header .lang-switcher,
body.interior-page-layout.dark-mode .site-header .theme-toggle {
    color: var(--text-primary, #F4F6F4) !important;
}

body.interior-page-layout.dark-mode .site-header .nav-link::after {
    background: var(--accent, #C59B4B) !important;
}

/* --- Premium Filters Styling --- */
.filters-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-dropdown-wrap {
    position: relative;
}

.filter-select-custom {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    border-radius: 100px;
    padding: 0.5rem 2.5rem 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #121814);
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
}

body.dark-mode .filter-select-custom {
    background-color: var(--bg-surface, #131A16);
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
    color: var(--text-primary, #F4F6F4);
}

.filter-select-custom:hover,
.filter-select-custom:focus {
    border-color: var(--primary, #0F7A4D);
    box-shadow: 0 0 0 3px rgba(15, 122, 77, 0.1);
}

body.dark-mode .filter-select-custom:hover,
body.dark-mode .filter-select-custom:focus {
    border-color: var(--accent, #C59B4B);
    box-shadow: 0 0 0 3px rgba(197, 155, 75, 0.15);
}

.filter-dropdown-wrap::after {
    content: '▼';
    font-size: 0.65rem;
    color: var(--primary, #0F7A4D);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

body.dark-mode .filter-dropdown-wrap::after {
    color: var(--accent, #C59B4B);
}

/* Custom Date Picker Dropdown style */
.date-picker-btn {
    background-color: var(--bg-surface, #ffffff);
    border: 1.5px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #121814);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
}

body.dark-mode .date-picker-btn {
    background-color: var(--bg-surface, #131A16);
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
    color: var(--text-primary, #F4F6F4);
}

.date-picker-btn:hover {
    border-color: var(--primary, #0F7A4D);
}

body.dark-mode .date-picker-btn:hover {
    border-color: var(--accent, #C59B4B);
}

.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    border-radius: var(--radius-md, 16px);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 122, 77, 0.08));
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    width: 280px;
    cursor: default;
}

body.dark-mode .date-picker-dropdown {
    background: var(--bg-surface, #131A16);
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(0, 0, 0, 0.5));
}

.date-picker-dropdown.active {
    display: flex;
}

.date-picker-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.date-picker-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-picker-field label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #788A80);
    text-transform: uppercase;
    text-align: left;
}

.date-picker-field input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    border-radius: var(--radius-sm, 8px);
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--bg-base, #FAF9F6);
    color: var(--text-primary, #121814);
}

body.dark-mode .date-picker-field input {
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
    background: var(--bg-base, #0B0E0C);
    color: var(--text-primary, #F4F6F4);
}

.date-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.date-picker-btn-apply {
    background: var(--primary, #0F7A4D);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.date-picker-btn-clear {
    background: transparent;
    color: var(--text-muted, #788A80);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.date-picker-btn-apply:hover {
    background: var(--primary-dark, #074B2E);
}

body.dark-mode .date-picker-btn-apply {
    background: var(--accent, #C59B4B);
    color: #121814;
}

body.dark-mode .date-picker-btn-apply:hover {
    background: var(--accent-dark, #9A742F);
}

.date-picker-btn-clear:hover {
    color: var(--secondary-red, #D9383A);
}

/* Premium Filter Chips matching screenshot */
.articles-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    border: 1.5px solid var(--primary, #0F7A4D);
    background: transparent;
    color: var(--primary, #0F7A4D);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip-btn:hover {
    background: rgba(15, 122, 77, 0.06);
    transform: translateY(-1px);
}

.chip-btn.active {
    background: var(--primary, #0F7A4D);
    color: #ffffff;
}

body.dark-mode .chip-btn {
    border-color: var(--accent, #C59B4B);
    color: var(--accent, #C59B4B);
}

body.dark-mode .chip-btn:hover {
    background: rgba(197, 155, 75, 0.1);
}

body.dark-mode .chip-btn.active {
    background: var(--accent, #C59B4B);
    color: #121814;
}

/* --- Articles Two-Column Layout --- */
.articles-columns-container {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .articles-columns-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.articles-column-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark, #074B2E);
    margin: 0 0 1.5rem;
    border-bottom: 2px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

body.dark-mode .articles-column-title {
    color: var(--text-primary, #F4F6F4);
    border-bottom-color: var(--border-strong, rgba(197, 155, 75, 0.2));
}

/* Trending Column Styling */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border, rgba(15, 122, 77, 0.08));
    border-radius: var(--radius-md, 16px);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

body.dark-mode .trending-item {
    background: var(--bg-surface, #131A16);
    border-color: var(--border, rgba(197, 155, 75, 0.1));
}

.trending-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.02));
    border-color: var(--primary, #0F7A4D);
}

body.dark-mode .trending-item:hover {
    border-color: var(--accent, #C59B4B);
}

.trending-item__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent, #C59B4B);
    flex-shrink: 0;
}

.trending-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-item__date {
    font-size: 0.72rem;
    color: var(--text-muted, #788A80);
    font-weight: 600;
    text-transform: uppercase;
}

.trending-item__title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary, #121814);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .trending-item__title {
    color: var(--text-primary, #F4F6F4);
}

/* --- Article Detail Page Source Block --- */
.article-source-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    border-radius: var(--radius-md, 16px);
    box-shadow: var(--shadow-md, 0 12px 30px rgba(15, 122, 77, 0.04));
    text-decoration: none;
    margin: 3.5rem auto 1.5rem;
    max-width: 500px;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-source-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 122, 77, 0.08));
    border-color: var(--primary, #0F7A4D);
}

body.dark-mode .article-source-card:hover {
    border-color: var(--accent, #C59B4B);
}

.article-source-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-dark, #074B2E);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .article-source-card {
    background: var(--bg-surface, #131A16);
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
    box-shadow: var(--shadow-md, 0 12px 30px rgba(0, 0, 0, 0.3));
}

body.dark-mode .article-source-text {
    color: var(--accent, #C59B4B);
}

/* Meta Line & Share styling in article detail */
.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary, #48564E);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

body.dark-mode .article-meta-line {
    color: var(--text-secondary, #A0B0A7);
}

.article-share-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    padding-bottom: 1.25rem;
}

.share-btn-wrap {
    display: flex;
    gap: 0.5rem;
}

.share-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--bg-surface-elevated, #F2F4F0);
    border: 1px solid var(--border-strong, rgba(15, 122, 77, 0.15));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #121814);
    text-decoration: none;
    transition: all var(--transition-fast);
}

body.dark-mode .share-circle-btn {
    background-color: var(--bg-surface-elevated, #1B241F);
    color: var(--text-primary, #F4F6F4);
    border-color: var(--border-strong, rgba(197, 155, 75, 0.2));
}

.share-circle-btn:hover {
    background-color: var(--primary, #0F7A4D);
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .share-circle-btn:hover {
    background-color: var(--accent, #C59B4B);
    color: #121814;
}

/* ========================================================================
   MEDIA EXTENSIONS — PRINT & ELECTRONIC MEDIA PAGES
   ======================================================================== */

/* --- Card Image Badges & Play Buttons --- */
.media-card__img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.media-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.42) 100%);
}

.media-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
    z-index: 3;
}

.media-card:hover .media-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.media-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent, #C59B4B);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 122, 77, 0.2);
    color: var(--primary, #0F7A4D);
    font-size: 1.4rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
}

.media-play-btn svg {
    margin-left: 4px;
    /* offset play icon slightly to visual center */
    fill: currentColor;
}

.media-card:hover .media-play-btn {
    transform: scale(1.1);
    background: var(--accent, #C59B4B);
    color: #121814;
}

/* --- Media Modals Overlay --- */
.media-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Print modal styling */
.media-modal-inner {
    position: relative;
    width: 90vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.media-zoom-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(0, 0, 0, 0.6));
}

.media-zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.media-zoom-image.zoom-active {
    cursor: grab;
}

.media-zoom-image.zoom-active:active {
    cursor: grabbing;
}

/* Controls panel overlay */
.media-modal-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(19, 26, 22, 0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(197, 155, 75, 0.25);
    border-radius: 100px;
    padding: 6px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.media-modal-controls-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast, 0.2s);
    font-family: inherit;
}

.media-modal-controls-btn:hover {
    background: var(--accent, #C59B4B);
    color: #121814;
    transform: translateY(-2px);
}

.media-modal-controls-btn.close-btn {
    background: var(--secondary-red, #D9383A);
    color: #FFFFFF;
    font-size: 0.85rem;
}

.media-modal-controls-btn.close-btn:hover {
    background: #B82527;
    transform: scale(1.05);
}

.media-modal-title-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    max-width: 600px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Video modal container */
.media-video-container {
    width: 90%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md, 16px);
    border: 1.5px solid rgba(197, 155, 75, 0.25);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg, 0 24px 60px rgba(0, 0, 0, 0.7));
}

.media-video-container iframe,
.media-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.media-video-close-btn-floating {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(19, 26, 22, 0.8);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(197, 155, 75, 0.25);
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    z-index: 10001;
}

.media-video-close-btn-floating:hover {
    background: var(--secondary-red, #D9383A);
    border-color: var(--secondary-red, #D9383A);
    transform: rotate(90deg);
}

/* ==========================================================================
   CUSTOM EXTENSIONS AND REDESIGNS
   ========================================================================== */

/* 1. Language Visibility Utilities */
body.lang-en .hi-only,
body:not(.lang-hi) .hi-only {
    display: none !important;
}

body.lang-hi .en-only {
    display: none !important;
}

/* 2. Custom Quote Portal Width */
.quote-portal-card {
    max-width: 75rem !important;
    /* 1200px */
    width: 100% !important;
}

/* 3. Achievements Slider Layout */
.awards-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (min-width: 992px) {
    .awards-scroll-container {
        overflow: hidden !important;
        cursor: default;
    }

    .awards-track {
        padding: 0.5rem 0 !important;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-width: unset !important;
    }

    .award-card {
        width: 220px !important;
        /* Fixed width — 5 cards visible at a time in ~1300px container */
        flex-shrink: 0 !important;
    }
}

@media (max-width: 991px) {
    .awards-slider-wrapper {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .awards-scroll-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .awards-nav-btn {
        display: none !important;
        /* Hide slide buttons on mobile */
    }
}

.awards-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 30, 18, 0.9);
    border: 1px solid rgba(197, 155, 75, 0.4);
    color: #C59B4B;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.awards-nav-btn:hover:not(:disabled) {
    background: #C59B4B;
    color: #0B1E12;
    border-color: #C59B4B;
    transform: translateY(-50%) scale(1.08);
}

.awards-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.awards-nav-btn.prev-btn {
    left: 1.5rem;
}

.awards-nav-btn.next-btn {
    right: 1.5rem;
}

.awards-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.award-dot {
    width: 10px;
    background: rgba(197, 155, 75, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.award-dot:hover {
    background: rgba(197, 155, 75, 0.6);
}

.award-dot.active {
    background: #C59B4B;
    transform: scale(1.25);
}

/* 4. About Us Scroll Hero Animation Styles */
.about-scroll-section {
    position: relative;
    height: 220vh;
    /* Scroll timeline depth */
    background: #05160d;
    /* RJD deep green */
}

.about-sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05160d;
}

.about-hero-image-wrapper {
    position: absolute;
    top: calc(50% + 25px);
    left: 12%;
    transform: translateY(-50%);
    width: 76%;
    height: 65vh;
    max-height: 520px;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(197, 155, 75, 0.25);
    will-change: width, left, transform;
}

.about-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.about-hero-content-wrapper {
    position: absolute;
    top: calc(50% + 25px);
    right: 4%;
    width: 46%;
    transform: translateY(-50%);
    opacity: 0;
    z-index: 3;
    color: white;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    pointer-events: none;
    will-change: opacity, transform;
}

@media (max-width: 991px) {
    .about-scroll-section {
        height: auto !important;
    }

    .about-sticky-container {
        position: relative !important;
        height: auto !important;
        flex-direction: column;
        padding: 7rem 1.5rem 4rem;
        gap: 2rem;
    }

    .about-hero-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 380px !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }

    .about-hero-content-wrapper {
        position: relative !important;
        width: 100% !important;
        right: 0 !important;
        top: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0 !important;
        pointer-events: auto !important;
    }
}

/* --- Milestones, Header, and News Grid Responsiveness --- */

/* 1. Header Logo scaling on mobile viewports */
@media (max-width: 768px) {
    .logo-title {
        font-size: 1.02rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 0.88rem;
    }

    .logo-subtitle {
        font-size: 0.48rem;
        letter-spacing: 0.06em;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-wrapper {
        gap: 6px;
    }
}

/* 2. News Grid responsiveness */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .news-img-holder {
        height: 220px;
    }

    .news-featured-content {
        padding: 1.5rem;
    }

    .news-featured-title {
        font-size: 1.25rem;
    }

    .news-item-row {
        gap: 1rem;
        padding: 0.75rem;
    }

    .news-item-thumb {
        width: 60px;
        height: 60px;
    }

    .news-item-title {
        font-size: 0.85rem;
    }
}

/* 3. Mobile Header & Menu Visibility fixes */
@media (max-width: 991px) {

    /* Force mobile header to always use the scrolled/glass layout structure */
    .site-header {
        top: 0.5rem !important;
        left: 0 !important;
        width: 100% !important;
        height: 68px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .site-header .site-header-inner {
        width: calc(100% - 1.5rem) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        background: var(--glass-bg, #ffffff) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid var(--glass-border, rgba(15, 122, 77, 0.15)) !important;
        border-radius: var(--radius-md) !important;
        padding: 0 1.5rem !important;
        box-shadow: var(--shadow-md) !important;
    }

    .lang-flag {
        display: none !important;
    }

    body:not(.dark-mode) .site-header .site-header-inner {
        box-shadow: 0 10px 30px rgba(15, 122, 77, 0.12) !important;
        border-color: var(--primary) !important;
    }

    /* Force text colors to be active (readable green/dark) regardless of scroll position */
    .site-header .logo-title {
        color: var(--primary-dark) !important;
    }

    .site-header .logo-subtitle {
        color: var(--primary) !important;
    }

    .site-header .theme-toggle,
    .site-header .lang-switcher,
    .site-header .mobile-menu-btn {
        color: var(--primary-dark) !important;
        border-color: rgba(15, 122, 77, 0.25) !important;
        background: rgba(15, 122, 77, 0.03) !important;
    }

    /* Force proper text colors inside mobile menu card regardless of scroll state */
    .site-header .main-nav .nav-link,
    .site-header .main-nav .nav-group-trigger {
        color: var(--text-primary) !important;
    }

    .site-header .main-nav .nav-link:hover,
    .site-header .main-nav .nav-link.active,
    .site-header .main-nav .nav-group-trigger:hover,
    .site-header .main-nav .nav-group-trigger.active {
        color: var(--accent) !important;
    }

    /* Chevron color inside mobile nav */
    .site-header .main-nav .nav-chevron {
        color: var(--text-primary) !important;
    }

    .site-header .main-nav .nav-group-trigger:hover .nav-chevron,
    .site-header .main-nav .nav-group-trigger.active .nav-chevron {
        color: var(--accent) !important;
    }

    /* Dark mode overrides */
    body.dark-mode .site-header .site-header-inner {
        background: var(--bg-surface-elevated) !important;
        border-color: var(--border-strong) !important;
    }

    body.dark-mode .site-header .logo-title {
        color: var(--text-primary) !important;
    }

    body.dark-mode .site-header .logo-subtitle {
        color: var(--primary-light) !important;
    }

    body.dark-mode .site-header .theme-toggle,
    body.dark-mode .site-header .lang-switcher,
    body.dark-mode .site-header .mobile-menu-btn {
        color: var(--text-primary) !important;
        border-color: var(--border-strong) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
}

/* --- Social Feed Card & Embed Container Globals --- */
.social-feed-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 320px;
    /* Unified fixed height */
}

.social-feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.social-feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    height: 50px;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

.social-feed-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-feed-platform.instagram {
    color: #e1306c;
}

.social-feed-platform.twitter {
    color: #1da1f2;
}

.social-feed-platform.facebook {
    color: #1877f2;
}

.social-feed-platform.youtube {
    color: #ff0000;
}

.social-feed-platform.other {
    color: var(--primary, #1a7a4a);
}

.social-feed-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading, #1f2937);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.social-feed-card-body {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    height: 270px;
    /* Take remaining height */
    width: 100%;
    overflow: hidden;
}

.social-embed-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.social-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 8px;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-embed-container blockquote {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden;
}

body.dark-mode .social-feed-card {
    background: var(--bg-surface-elevated, #121212);
    border-color: var(--border-strong, #333333);
}

body.dark-mode .social-feed-card-header {
    border-bottom-color: var(--border-strong, #333333);
}

body.dark-mode .social-feed-title {
    color: var(--text-primary, #ffffff);
}

body.dark-mode .social-feed-card-body {
    background: var(--bg-surface-elevated, #121212);
}

/* --- Social Cards v2 (RJD Custom Styling) --- */
.social-card-v2 {
    height: 340px;
    /* Unified fixed height to match static cards */
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light, #e5e7eb);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.social-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Header */
.social-card-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.social-card-v2-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-card-v2-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.social-card-v2-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-card-v2-info {
    display: flex;
    flex-direction: column;
}

.social-card-v2-name {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.social-card-v2-handle {
    font-size: 0.68rem;
    opacity: 0.7;
}

.social-card-v2-platform-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Body */
.social-card-v2-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0.5rem 0;
    position: relative;
}

.social-card-v2-text {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Limit clamp to fit card */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Platform Specific Styles */

/* X/Twitter Card */
.social-card-v2.platform-twitter {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card-v2.platform-twitter .social-card-v2-name {
    color: #ffffff;
}

.social-card-v2.platform-twitter .social-card-v2-text {
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.social-card-v2-btn-twitter {
    background: #ffffff;
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Facebook Card */
.social-card-v2.platform-facebook {
    background: #1877f2;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card-v2.platform-facebook .social-card-v2-name {
    color: #ffffff;
}

.social-card-v2.platform-facebook .social-card-v2-text {
    color: #ffffff;
}

.social-card-v2-fb-arrow {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    color: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-card-v2-btn-facebook {
    background: #e9ecef;
    color: #1877f2 !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Instagram Card */
.social-card-v2.platform-instagram {
    background: #ffffff;
    color: #333333;
    border: 1px solid #eaeaea;
}

.social-card-v2.platform-instagram .social-card-v2-name {
    color: #333333;
}

.social-card-v2.platform-instagram .social-card-v2-text {
    color: #555555;
    font-size: 0.8rem;
}

.social-card-v2-ig-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.social-card-v2-ig-img {
    height: 55px;
    /* Image thumbs to fit Card height */
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-card-v2-btn-instagram {
    color: #e1306c !important;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-top: 1px solid #eaeaea;
    margin-top: 4px;
}

/* YouTube Card */
.social-card-v2.platform-youtube {
    background: linear-gradient(180deg, #1f1f1f 0%, #050505 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card-v2.platform-youtube .social-card-v2-name {
    color: #ffffff;
}

.social-card-v2.platform-youtube .social-card-v2-text {
    color: rgba(255, 255, 255, 0.9);
}

.social-card-v2-yt-play {
    width: 40px;
    height: 40px;
    background: #ff0000;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.social-card-v2-yt-play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 1px;
}

.social-card-v2-btn-youtube {
    color: #ff0000 !important;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 5px;
}

body.dark-mode .social-card-v2.platform-instagram {
    background: var(--bg-surface-elevated, #121212);
    border-color: var(--border-strong, #333333);
    color: var(--text-primary, #ffffff);
}

body.dark-mode .social-card-v2.platform-instagram .social-card-v2-name {
    color: var(--text-primary, #ffffff);
}

body.dark-mode .social-card-v2.platform-instagram .social-card-v2-text {
    color: var(--text-secondary, #cccccc);
}

body.dark-mode .social-card-v2-btn-instagram {
    border-top-color: var(--border-strong, #333333);
}








/* ========================================================================
   GLOBAL MOBILE RESPONSIVE OVERFLOW GUARD
   ======================================================================== */
html,
body {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    .site-header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    .site-header .site-header-inner {
        width: calc(100% - 1.5rem) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .articles-columns-container,
    .articles-main,
    .articles-full-grid,
    .achievements-grid,
    .articles-card,
    .blog-card,
    .achievement-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}