/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Outfit', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Font Scaling for accessibility controls */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
    --font-3xl: 2.5rem;

    /* Global content scaling factor */
    --content-scale: 1;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadow styles */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Layout Constants */
    --container-width: 100%;
    --header-height: 100px;
}



/* Light Theme Variables */
.theme-light {
    --bg-primary: hsl(210, 20%, 98%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(210, 14%, 93%);
    --bg-nav: hsl(221, 45%, 31%);
    
    --text-primary: hsl(220, 45%, 12%);
    --text-secondary: hsl(220, 25%, 38%);
    --text-muted: hsl(220, 15%, 55%);
    --text-on-nav: hsl(0, 0%, 100%);
    
    --border-color: hsl(210, 14%, 87%);
    --border-light: hsl(210, 14%, 93%);
    
    --primary-color: hsl(221, 45%, 31%);       /* Brand Navy Blue (#2B4171) */
    --primary-light: hsl(221, 45%, 41%);
    --secondary-color: hsl(35, 38%, 64%);      /* Ash Gold */
    --secondary-light: hsl(35, 45%, 75%);
    
    --accent-saffron: hsl(18, 100%, 56%);       /* Tricolor Saffron */
    --accent-green: hsl(150, 93%, 22%);         /* Tricolor Green */
    --accent-blue: hsl(212, 100%, 48%);
    
    --hero-gradient: linear-gradient(rgba(43, 65, 113, 0.9), rgba(43, 65, 113, 0.97));
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Panel colors */
    --panel-header-bg: var(--primary-color);
    --panel-header-text: #fff;
    --panel-body-bg: hsl(0, 0%, 100%);
    --panel-border: 1px solid hsl(210, 14%, 87%);

    /* Footer colors */
    --footer-bg: var(--primary-color);
    --footer-heading-color: var(--secondary-color);
    --footer-emblem-invert: brightness(0) invert(1);
}

/* Dark Theme Variables */
.theme-dark {
    --bg-primary: hsl(215, 30%, 10%);
    --bg-secondary: hsl(215, 25%, 14%);
    --bg-tertiary: hsl(215, 20%, 18%);
    --bg-nav: hsl(215, 25%, 14%);
    
    --text-primary: hsl(210, 20%, 95%);
    --text-secondary: hsl(210, 15%, 75%);
    --text-muted: hsl(210, 10%, 55%);
    --text-on-nav: hsl(210, 20%, 95%);
    
    --border-color: hsl(215, 20%, 22%);
    --border-light: hsl(215, 15%, 18%);
    
    --primary-color: hsl(212, 90%, 60%);
    --primary-light: hsl(212, 100%, 70%);
    --secondary-color: hsl(35, 45%, 65%);
    --secondary-light: hsl(35, 50%, 75%);
    
    --accent-saffron: hsl(18, 100%, 65%);
    --accent-green: hsl(150, 80%, 40%);
    --accent-blue: hsl(212, 100%, 60%);
    
    --hero-gradient: linear-gradient(rgba(10, 18, 30, 0.93), rgba(10, 18, 30, 0.98));
    --glass-bg: rgba(20, 30, 48, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Panel colors */
    --panel-header-bg: hsl(215, 20%, 18%);
    --panel-header-text: hsl(210, 20%, 95%);
    --panel-body-bg: hsl(215, 25%, 14%);
    --panel-border: 1px solid hsl(215, 20%, 22%);

    /* Footer colors */
    --footer-bg: hsl(215, 30%, 8%);
    --footer-heading-color: var(--secondary-color);
}

/* High Contrast Blue/Gold Theme */
.theme-contrast {
    --bg-primary: hsl(0, 0%, 0%);
    --bg-secondary: hsl(0, 0%, 5%);
    --bg-tertiary: hsl(0, 0%, 12%);
    --bg-nav: hsl(0, 0%, 0%);
    
    --text-primary: hsl(50, 100%, 50%);         /* Bright Gold Text */
    --text-secondary: hsl(0, 0%, 100%);         /* White Secondary */
    --text-muted: hsl(0, 0%, 80%);
    --text-on-nav: hsl(50, 100%, 50%);
    
    --border-color: hsl(50, 100%, 50%);
    --border-light: hsl(0, 0%, 30%);
    
    --primary-color: hsl(50, 100%, 50%);
    --primary-light: hsl(0, 0%, 100%);
    --secondary-color: hsl(50, 100%, 50%);
    --secondary-light: hsl(0, 0%, 100%);
    
    --accent-saffron: hsl(30, 100%, 50%);
    --accent-green: hsl(120, 100%, 50%);
    --accent-blue: hsl(200, 100%, 60%);
    
    --hero-gradient: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.99));
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border: hsl(50, 100%, 50%);
    
    /* Panel colors */
    --panel-header-bg: #000;
    --panel-header-text: var(--text-primary);
    --panel-body-bg: #000;
    --panel-border: 2px solid var(--primary-color);

    /* Footer colors */
    --footer-bg: #000000;
    --footer-heading-color: #ffff00;
}

/* Terracotta Theme (Burnt Orange/Rust) */
.theme-terracotta {
    --bg-primary: hsl(20, 25%, 97%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(20, 20%, 92%);
    --bg-nav: hsl(13, 78%, 43%);                /* Terracotta brand color */
    
    --text-primary: hsl(13, 50%, 15%);
    --text-secondary: hsl(13, 30%, 35%);
    --text-muted: hsl(13, 20%, 55%);
    --text-on-nav: hsl(0, 0%, 100%);
    
    --border-color: hsl(20, 20%, 86%);
    --border-light: hsl(20, 20%, 92%);
    
    --primary-color: hsl(13, 78%, 43%);          /* Brand Terracotta */
    --primary-light: hsl(13, 70%, 53%);
    --secondary-color: hsl(30, 60%, 45%);        /* Sienna Accent */
    --secondary-light: hsl(30, 70%, 60%);
    
    --accent-saffron: hsl(13, 78%, 43%);
    --accent-green: hsl(150, 60%, 30%);
    --accent-blue: hsl(210, 70%, 45%);
    
    --hero-gradient: linear-gradient(rgba(193, 61, 24, 0.9), rgba(120, 30, 5, 0.97));
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(193, 61, 24, 0.15);
    
    /* Panel colors */
    --panel-header-bg: hsl(13, 78%, 43%);
    --panel-header-text: #fff;
    --panel-body-bg: hsl(0, 0%, 100%);
    --panel-border: 1px solid hsl(20, 20%, 86%);

    /* Footer colors */
    --footer-bg: hsl(13, 50%, 15%);
    --footer-heading-color: hsl(35, 60%, 75%);
}

/* Teal Theme Variables */
.theme-teal {
    --bg-primary: hsl(173, 20%, 98%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(173, 15%, 93%);
    --bg-nav: hsl(173, 80%, 25%);                 /* Teal brand color (#0d9488) */
    
    --text-primary: hsl(173, 40%, 12%);
    --text-secondary: hsl(173, 20%, 40%);
    --text-muted: hsl(173, 10%, 60%);
    --text-on-nav: hsl(0, 0%, 100%);
    
    --border-color: hsl(173, 14%, 87%);
    --border-light: hsl(173, 14%, 93%);
    
    --primary-color: hsl(173, 80%, 25%);          /* Brand Teal */
    --primary-light: hsl(173, 70%, 35%);
    --secondary-color: hsl(35, 38%, 64%);         /* Ash Gold Accent */
    --secondary-light: hsl(35, 45%, 75%);
    
    --accent-saffron: hsl(18, 100%, 56%);
    --accent-green: hsl(150, 93%, 20%);
    --accent-blue: hsl(212, 100%, 48%);
    
    --hero-gradient: linear-gradient(rgba(13, 148, 136, 0.9), rgba(15, 118, 110, 0.97));
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(13, 148, 136, 0.15);
    
    /* Panel colors */
    --panel-header-bg: hsl(173, 80%, 25%);
    --panel-header-text: #fff;
    --panel-body-bg: hsl(0, 0%, 100%);
    --panel-border: 1px solid hsl(173, 14%, 87%);

    /* Footer colors */
    --footer-bg: hsl(173, 80%, 12%);
    --footer-heading-color: hsl(35, 45%, 72%);
}

/* Coffee Theme Variables */
.theme-coffee {
    --bg-primary: hsl(30, 20%, 97%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(30, 15%, 92%);
    --bg-nav: hsl(20, 33%, 27%);                  /* Coffee brand color (#5c3d2e) */
    
    --text-primary: hsl(20, 40%, 12%);
    --text-secondary: hsl(20, 25%, 35%);
    --text-muted: hsl(20, 15%, 55%);
    --text-on-nav: hsl(0, 0%, 100%);
    
    --border-color: hsl(30, 15%, 86%);
    --border-light: hsl(30, 15%, 92%);
    
    --primary-color: hsl(20, 33%, 27%);            /* Brand Coffee */
    --primary-light: hsl(20, 30%, 37%);
    --secondary-color: hsl(35, 45%, 60%);          /* Latte Gold Accent */
    --secondary-light: hsl(35, 50%, 72%);
    
    --accent-saffron: hsl(18, 100%, 56%);
    --accent-green: hsl(150, 93%, 20%);
    --accent-blue: hsl(212, 100%, 48%);
    
    --hero-gradient: linear-gradient(rgba(92, 61, 46, 0.9), rgba(58, 35, 25, 0.97));
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(92, 61, 46, 0.15);
    
    /* Panel colors */
    --panel-header-bg: hsl(20, 33%, 27%);
    --panel-header-text: #fff;
    --panel-body-bg: hsl(0, 0%, 100%);
    --panel-border: 1px solid hsl(30, 15%, 86%);

    /* Footer colors */
    --footer-bg: hsl(20, 33%, 15%);
    --footer-heading-color: hsl(35, 50%, 70%);
}

/* Purple Theme Variables */
.theme-purple {
    --bg-primary: hsl(287, 20%, 98%);
    --bg-secondary: #ffffff;
    --bg-tertiary: hsl(287, 15%, 93%);
    --bg-nav: #69247c;                             /* Deep Purple brand color (#69247c) */
    
    --text-primary: hsl(287, 40%, 12%);
    --text-secondary: hsl(287, 20%, 40%);
    --text-muted: hsl(287, 10%, 60%);
    --text-on-nav: #ffffff;
    
    --border-color: hsl(287, 14%, 87%);
    --border-light: hsl(287, 14%, 93%);
    
    --primary-color: #69247c;                      /* Brand Purple (Dark) */
    --primary-light: #7e2f94;                      /* Lighter primary */
    --secondary-color: #A47DAB;                    /* Lavender Accent (Light) */
    --secondary-light: #b994bf;                    /* Lighter secondary */
    
    --accent-saffron: hsl(18, 100%, 56%);
    --accent-green: hsl(150, 93%, 20%);
    --accent-blue: hsl(212, 100%, 48%);
    
    --hero-gradient: linear-gradient(rgba(105, 36, 124, 0.9), rgba(76, 26, 90, 0.97));
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(105, 36, 124, 0.15);
    
    /* Panel colors */
    --panel-header-bg: #69247c;
    --panel-header-text: #ffffff;
    --panel-body-bg: #ffffff;
    --panel-border: 1px solid hsl(287, 14%, 87%);

    /* Footer colors */
    --footer-bg: #2d1035;                          /* Very dark purple overlay for footer */
    --footer-heading-color: #A47DAB;
}

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

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: visible;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: 700;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: visible;
}

#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

body, p, span, a, li, td, th, div, label, input, select, button, textarea {
    font-weight: 700;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

button, input, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to Main Content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background-color: var(--accent-saffron);
    color: white;
    padding: 10px 20px;
    z-index: 10000;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: top var(--transition-normal);
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   BUTTON & UI COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-saffron);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 103, 31, 0.2);
}
.btn-primary:hover {
    background-color: hsl(18, 100%, 48%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 103, 31, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}
.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}
.btn-outline:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 6px 16px;
    font-size: var(--font-xs);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 103, 31, 0.15);
    color: var(--accent-saffron);
    margin-bottom: 12px;
}

.separator {
    color: var(--border-color);
    user-select: none;
    font-weight: 300;
}

/* Common Section Headers */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 45px;
}
.section-subtitle {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-saffron);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}
.section-title-main {
    font-size: var(--font-xxl);
    font-weight: 800;
    color: var(--primary-color);
}
.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   TOP ACCESSIBILITY BAR
   ========================================================================== */
.top-bar {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-xs);
    padding: 8px 0;
    z-index: 1000;
    position: relative;
    color: var(--text-secondary);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gov-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gov-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
a.gov-link:hover {
    color: var(--accent-saffron);
}

.flag-icon {
    width: 16px;
    height: 10px;
    display: inline-block;
    background: linear-gradient(to bottom, #FF671F 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #046A38 66.6%);
    border: 1px solid #ddd;
    border-radius: 1px;
}

.sarnath-logo {
    height: 22px;
    width: auto;
    display: inline-block;
    object-fit: contain;
    filter: brightness(0);
}

.theme-dark .sarnath-logo,
.theme-contrast .sarnath-logo {
    filter: brightness(0) invert(1);
}

.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ctrl-link {
    font-weight: 500;
}
.ctrl-link:hover {
    color: var(--accent-saffron);
}

.text-resize {
    display: flex;
    gap: 4px;
}
.ctrl-btn {
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.ctrl-btn:hover, .ctrl-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.theme-selectors {
    display: flex;
    gap: 6px;
    align-items: center;
}
.theme-btn {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--text-secondary);
    transition: transform var(--transition-fast);
}
.theme-btn:hover, .theme-btn.active {
    transform: scale(1.25);
    box-shadow: 0 0 4px var(--primary-color);
}
.theme-btn.light { background-color: #2B4171; border-color: #2B4171; }
.theme-btn.contrast { background-color: #ffff00; border-color: #ffff00; }
.theme-btn.terracotta { background-color: #dc2626; border-color: #dc2626; }
.theme-btn.skyblue { background-color: #00a2e8; border-color: #00a2e8; }
.theme-btn.teal { background-color: #0d9488; border-color: #0d9488; }
.theme-btn.coffee { background-color: #5c3d2e; border-color: #5c3d2e; }
.theme-btn.purple { background-color: #69247c; border-color: #69247c; }
.theme-btn.peach { background-color: #e8cfb5; border-color: #e8cfb5; }

.lang-selector {
    display: flex;
    gap: 4px;
}
.lang-btn {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent-saffron);
    color: #fff;
}

/* ==========================================================================
   MAIN BRANDING HEADER
   ========================================================================== */
.main-header {
    background-color: var(--bg-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.branding {
    width: fit-content;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.header-sarnath-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    transition: transform var(--transition-fast);
}

.theme-dark .header-sarnath-logo,
.theme-contrast .header-sarnath-logo {
    filter: brightness(0) invert(1);
}

.theme-contrast .mobile-nav-logo {
    filter: brightness(0) !important;
}

.theme-contrast .mobile-nav-hi,
.theme-contrast .mobile-nav-en,
.theme-contrast .mobile-nav-state {
    color: #000000 !important;
}

.branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--border-color);
    padding-left: 12px;
}

.gov-title-hi {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
}

.gov-title-en {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.gov-title-state {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 3px;
}

/* Swachh Bharat Emblem and Global Search */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Top Bar Search styling */
.top-bar-search {
    display: flex;
    align-items: center;
}

.top-bar-search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0 4px 0 10px;
    height: 28px;
    width: 140px;
    transition: all var(--transition-fast);
}

.top-bar-search-form:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
    width: 180px;
}

.top-bar-search-form input {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.top-bar-search-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.top-bar-search-btn {
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: 11px;
}

.top-bar-search-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.theme-skyblue .top-bar-search-btn {
    color: #ffffff !important;
}

.theme-contrast .top-bar-search-btn {
    color: #000000 !important;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.main-nav {
    background-color: var(--bg-nav);
    color: var(--text-on-nav);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--secondary-color);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header {
    display: none;
}

.mobile-nav-brand {
    display: none;
}

.menu-toggle {
    display: none;
    padding: 15px 20px;
    font-weight: 700;
    width: auto;
    text-align: left;
    color: var(--text-on-nav);
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-search-btn {
    display: none;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 9px;
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--secondary-color);
}
.theme-terracotta .nav-link:hover,
.theme-terracotta .nav-link.active {
    color: #ffe2a6;
}
.theme-skyblue .nav-link:hover,
.theme-skyblue .nav-link.active {
    color: #ffffff;
}
.theme-teal .nav-link:hover,
.theme-teal .nav-link.active {
    color: #ffffff;
}
.theme-coffee .nav-link:hover,
.theme-coffee .nav-link.active {
    color: #ffffff;
}
.theme-purple .nav-link:hover,
.theme-purple .nav-link.active {
    color: #ffffff;
}
.theme-peach .nav-link:hover,
.theme-peach .nav-link.active {
    color: #8c583c;
    background-color: rgba(0, 0, 0, 0.04);
}

.dropdown-icon {
    font-size: 10px;
    margin-top: 1px;
}

/* Dropdown Menu styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: 460px;
    min-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 10000;
}
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}


.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
    border-bottom: 1px solid var(--border-light);
}
.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a, .dropdown-submenu-title {
    display: block;
    padding: 12px 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.1px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.dropdown-menu a:hover, .dropdown-submenu-title:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-saffron);
    padding-left: 24px;
}

/* Submenu nesting */
.has-nested-dropdown {
    position: relative;
}
.dropdown-submenu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 220px;
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}
.has-nested-dropdown:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ==========================================================================
   ANNOUNCEMENT TICKER
   ========================================================================== */
.announcement-ticker {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-label {
    flex-shrink: 0;
    font-weight: 700;
    font-size: var(--font-sm);
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.theme-contrast .ticker-label {
    color: #000;
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-items {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    animation: ticker-slide 12s infinite;
}

.ticker-item {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    height: 24px;
    line-height: 24px;
}
.ticker-item:hover {
    color: var(--accent-saffron);
}

.ticker-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-view-all {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--primary-color) !important;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.ticker-view-all:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
}

.ticker-view-all i {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.ticker-view-all:hover i {
    transform: translateX(2px);
}
.ticker-ctrl-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.ticker-ctrl-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

@keyframes ticker-slide {
    0%, 30% { transform: translateY(0); }
    33%, 63% { transform: translateY(-24px); }
    66%, 96% { transform: translateY(-48px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   HERO / INTRO SECTION & LEADERS
   ========================================================================== */
.hero-section {
    background-color: var(--bg-tertiary);
    padding: 60px 0;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-saffron), var(--primary-color), var(--accent-green));
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-intro {
    padding-right: 20px;
}

.hero-title {
    font-size: var(--font-xxl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title-top {
    color: var(--primary-color);
}
.hero-title-bottom {
    color: var(--secondary-color);
    text-transform: uppercase;
}

.hero-desc {
    font-size: var(--font-sm);
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-secondary);
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Leadership Minister Cards */
.ministers-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.section-subtitle-small {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.ministers-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.minister-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 12px;
    border-left: 3px solid var(--secondary-color);
    transition: transform var(--transition-fast);
}
.minister-card:hover {
    transform: translateX(5px);
    background: var(--border-color);
}

.minister-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    flex-shrink: 0;
}
.minister-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minister-info {
    flex-grow: 1;
}
.minister-name {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.minister-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.minister-dept {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.minister-profile-btn {
    font-size: 10px;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.minister-profile-btn:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   STATS COUNTER DASHBOARD
   ========================================================================== */
.stats-dashboard {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    margin-top: -10px;
    position: relative;
    z-index: 20;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.02);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 2px;
    border-right: 1px solid var(--border-color);
}
.stat-card:last-child {
    border-right: none;
}

.stat-card.clickable-stat-card {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card.clickable-stat-card:hover {
    transform: translateY(-2px);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: var(--font-base);
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.stat-number {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 1px;
}

.stat-label {
    font-size: calc(0.75rem * var(--font-scale));
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   DYNAMIC PORTAL SECTION (TABS)
   ========================================================================== */
.portal-section {
    padding: 60px 0;
}

.portal-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

/* Left Panel - Tabs */
.portal-left-panel {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.tab-header h2 {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--primary-color);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    background-color: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.tab-btn {
    padding: 8px 16px;
    font-size: var(--font-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.tab-btn:hover {
    color: var(--accent-saffron);
}
.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--text-on-nav);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fade-in var(--transition-normal);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.tab-title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--primary-color);
}

.filter-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    background-color: var(--bg-primary);
    font-size: var(--font-xs);
    width: 250px;
}
.filter-box i {
    color: var(--text-muted);
    margin-right: 8px;
}
.filter-box input {
    width: 100%;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    transition: all var(--transition-fast);
}
.doc-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary-color);
}

.doc-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-on-nav);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}
.doc-date .day {
    font-size: var(--font-md);
    line-height: 1.1;
}
.doc-date .month {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-details {
    flex-grow: 1;
}
.doc-title-link {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.4;
    margin-bottom: 4px;
}
.doc-title-link:hover {
    color: var(--accent-saffron);
}
.doc-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.doc-download {
    font-size: var(--font-xl);
    color: var(--accent-saffron);
    padding: 10px;
    transition: transform var(--transition-fast);
}
.doc-download:hover {
    transform: scale(1.15);
}

/* Event timeline style */
.events-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 25px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--accent-saffron);
    border: 2px solid var(--bg-secondary);
}

.timeline-date {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.event-title {
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: 6px;
}
.event-title a:hover {
    color: var(--accent-saffron);
}

.event-desc {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

/* Right Panel - Sidebar */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.widget-header h3 {
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-link {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--primary-color);
}
.widget-link:hover {
    color: var(--accent-saffron);
}

.text-saffron { color: var(--accent-saffron); }
.text-blue { color: var(--accent-blue); }

.whats-new-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.whats-new-list li {
    display: flex;
    gap: 12px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 12px;
}
.whats-new-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 10px;
    font-weight: 700;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    height: fit-content;
    white-space: nowrap;
}

.news-text {
    font-size: var(--font-xs);
    font-weight: 600;
    line-height: 1.4;
}
.news-text:hover {
    color: var(--accent-saffron);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.report-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.report-box i {
    font-size: var(--font-lg);
    color: var(--secondary-color);
    margin-bottom: 8px;
}
.report-box span {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.report-box:hover {
    border-color: var(--accent-saffron);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CORE ADMINISTRATIVE DIVISIONS
   ========================================================================== */
.divisions-section {
    background-color: var(--bg-tertiary);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.division-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-color);
    transition: height var(--transition-fast);
    z-index: -1;
}
.division-card:hover::before {
    height: 100%;
    opacity: 0.03;
}
.division-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.div-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 168, 128, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}
.division-card:hover .div-icon {
    background-color: var(--accent-saffron);
    color: #fff;
    transform: scale(1.05);
}

.division-card h3 {
    font-size: var(--font-md);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.division-card p {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.div-link {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.div-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   OTHER PORTALS GRID
   ========================================================================== */
.quick-portals {
    padding: 50px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.portals-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.portal-header-title {
    font-size: var(--font-md);
    font-weight: 800;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.portal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition-fast);
}
.portal-item:hover {
    background-color: var(--bg-secondary);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.portal-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: rgba(52, 80, 137, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-md);
    flex-shrink: 0;
}
.portal-item:hover .portal-avatar {
    background-color: var(--accent-saffron);
    color: #fff;
}

.portal-info h4 {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.portal-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================================================
   SOCIAL FEEDS & VIDEO HUB
   ========================================================================== */
.social-media-hub {
    padding: 60px 0;
}

.social-hub-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.panel-header h3 {
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-btn {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--accent-blue);
}

.video-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-mockup {
    background-size: cover;
    background-position: center;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button-overlay {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 103, 31, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
    padding-left: 4px; /* visually centered play icon */
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(255, 103, 31, 0.4);
}
.video-mockup:hover .play-button-overlay {
    background-color: hsl(18, 100%, 48%);
    transform: scale(1.1);
}

.video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 20px;
    color: #fff;
}
.video-overlay-text h4 {
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: 2px;
}
.video-overlay-text p {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* Twitter Mock Style */
.twitter-feed-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.tweet-card {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}
.tweet-card:last-child {
    border-bottom: none;
}

.tweet-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    color: var(--text-on-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.author-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.author-name {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-primary);
}
.author-handle {
    font-size: 10px;
    color: var(--text-secondary);
}

.tweet-text {
    font-size: var(--font-xs);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER AREA
   ========================================================================== */
.footer {
    --footer-bg-val: var(--footer-bg, var(--primary-color));
    --footer-text-val: var(--footer-text, #fff);
    --footer-title-val: var(--footer-title-color, #fff);
    --footer-link-val: var(--footer-link-color, rgba(255, 255, 255, 0.75));
    --footer-muted-val: var(--footer-text-muted, rgba(255, 255, 255, 0.6));
    --footer-card-bg-val: var(--footer-card-bg, rgba(255, 255, 255, 0.04));
    --footer-card-border-val: var(--footer-card-border, rgba(255, 255, 255, 0.08));
    --footer-card-hover-bg-val: var(--footer-card-hover-bg, rgba(255, 255, 255, 0.07));
    --footer-card-hover-border-val: var(--footer-card-hover-border, rgba(212, 175, 55, 0.25));
    --footer-bottom-bg-val: var(--footer-bottom-bg, rgba(0, 0, 0, 0.2));
    --footer-bottom-border-val: var(--footer-bottom-border, rgba(255, 255, 255, 0.05));
    --footer-emblem-filter: var(--footer-emblem-invert, brightness(0) invert(1));

    background-color: var(--footer-bg-val);
    color: var(--footer-text-val);
    margin-top: auto;
    border-top: 5px solid var(--footer-heading-color, var(--secondary-color));
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.85fr 1.1fr;
    gap: 28px;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
}

.branding-footer {
    display: flex;
    flex-direction: column;
}
.branding-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.branding-footer-text {
    display: flex;
    flex-direction: column;
}
.footer-emblem {
    height: 78px;
    width: auto;
    align-self: center;
    filter: var(--footer-emblem-filter, none);
}
.branding-footer h3 {
    font-size: var(--font-md);
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.branding-footer p {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-address-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    font-size: var(--font-xs);
    color: var(--footer-link-val);
    line-height: 1.45;
}

.footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-address-item i {
    color: var(--footer-heading-color, var(--secondary-color));
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer-address-text {
    display: flex;
    flex-direction: column;
}

.footer-address-text a {
    color: var(--footer-link-val);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-address-text a:hover {
    color: var(--footer-heading-color, var(--secondary-color));
    text-decoration: underline;
}

.app-col {
    display: flex;
    flex-direction: column;
}

.app-banner-wrapper {
    margin-top: 6px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.app-banner-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
}

.footer-app-banner {
    max-height: 52px;
    width: auto;
    border-radius: var(--radius-sm);
}

.app-banner-label {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-app-banner:hover {
    transform: scale(1.05);
}

.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--footer-card-bg-val);
    color: var(--footer-title-val);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    transition: all var(--transition-fast);
}
.footer-socials a:hover {
    background-color: var(--footer-heading-color, var(--secondary-color));
    color: var(--footer-bg, var(--primary-color));
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--footer-heading-color, var(--secondary-color));
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--footer-heading-color, var(--secondary-color));
}

.footer-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
}
.footer-menu-links a {
    font-size: var(--font-sm);
    color: var(--footer-link-val);
}
.footer-menu-links a:hover {
    color: var(--footer-heading-color, var(--secondary-color));
    padding-left: 4px;
}
.footer-menu-links a i {
    color: var(--footer-heading-color, var(--secondary-color)) !important;
}

.contact-col .address {
    font-size: var(--font-xs);
    color: rgba(255,255,255,0.75);
    margin-bottom: 15px;
    line-height: 1.6;
}
.contact-col i {
    color: var(--footer-heading-color, var(--secondary-color));
    margin-right: 4px;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg-val);
    padding: 10px 0;
    font-size: var(--font-xs);
    color: var(--footer-muted-val);
    border-top: 1px solid var(--footer-bottom-border-val);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-info strong {
    color: var(--footer-title-val);
}
.hosting-credits {
    margin-top: 4px;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-badge {
    background-color: var(--footer-card-bg-val);
    border: 1px solid var(--footer-card-border-val);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    color: var(--footer-muted-val);
}
.footer-badge strong {
    color: var(--footer-heading-color, var(--secondary-color));
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-intro {
        padding-right: 0;
    }
    .portal-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .social-hub-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    /* Responsive Mobile Menu */
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 4px 12px 4px 0;
        background-color: var(--bg-nav);
        gap: 6px;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-on-nav);
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        flex-shrink: 0;
    }
    .mobile-nav-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--text-on-nav);
        padding: 2px 4px;
        min-width: 0;
        flex: 1;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .main-nav.is-stuck .mobile-nav-brand {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mobile-nav-brand:hover {
        opacity: 0.9;
    }
    .mobile-nav-logo {
        height: 32px;
        width: auto;
        object-fit: contain;
        filter: brightness(0) invert(1);
        flex-shrink: 0;
    }
    .mobile-nav-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.15;
        min-width: 0;
        text-align: left;
    }
    .mobile-nav-hi {
        font-family: 'Noto Sans', sans-serif;
        font-size: 13.5px;
        font-weight: 800;
        color: var(--text-on-nav);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-nav-en {
        font-family: 'Outfit', sans-serif;
        font-size: 9px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        letter-spacing: 0.3px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }
    .mobile-nav-state {
        font-family: 'Noto Sans', sans-serif;
        font-size: 8px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        margin-top: 1px;
    }
    .mobile-search-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: var(--text-on-nav);
        background: rgba(255, 255, 255, 0.15);
        font-size: 1rem;
        text-decoration: none;
        transition: all var(--transition-fast);
        flex-shrink: 0;
    }
    .mobile-search-btn:hover, .mobile-search-btn:focus {
        background: var(--secondary-color);
        color: #ffffff;
        transform: scale(1.08);
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-nav);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.15);
        border-top: none;
    }
    .dropdown-menu a, .dropdown-submenu-title {
        color: var(--text-on-nav);
    }
    .dropdown-menu a:hover, .dropdown-submenu-title:hover {
        color: var(--secondary-color);
        background-color: rgba(255, 255, 255, 0.08);
        padding-left: 24px;
    }
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.1);
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .has-nested-dropdown.active .dropdown-submenu {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Hide Top Accessibility / Gov Bar and Header Promotional Logos in Mobile View */
    .top-bar {
        display: none !important;
    }
    .header-right,
    .header-logos {
        display: none !important;
    }

    /* Main Branding Header Mobile Center Alignment */
    .header-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0;
        padding-top: 4px;
        padding-bottom: 4px;
    }
    .branding {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }
    .logo-link {
        justify-content: center;
        text-align: center;
    }
    .branding-text {
        align-items: center;
        text-align: center;
    }
    .gov-title-hi, .gov-title-en, .gov-title-state {
        text-align: center;
    }
    .search-form {
        width: 100%;
        max-width: 320px;
    }
    
    /* Mobile Announcement Ticker compact label */
    .ticker-label-text {
        display: none;
    }
    .ticker-label {
        padding: 4px 8px;
    }
    
    /* Stats Layout */
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 8px;
    }
    .stat-card:nth-child(even) {
        border-left: 1px solid var(--border-color);
    }
    .stat-card:nth-child(n+3) {
        border-bottom: none;
        padding-top: 8px;
    }
    
    /* Footer Layout Mobile Center Alignment */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .branding-footer-logo-row {
        justify-content: center;
        text-align: center;
    }
    .branding-footer-text {
        align-items: center;
        text-align: center;
    }
    .footer-address-details {
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }
    .footer-address-item {
        justify-content: center;
        text-align: center;
    }
    .footer-address-text {
        align-items: center;
        text-align: center;
    }
    .footer-col h4 {
        margin-bottom: 12px;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .nodal-contact-card {
        margin: 5px auto;
        max-width: 320px;
        text-align: center;
    }
    .nodal-contact-header {
        justify-content: center;
    }
    .nodal-contact-body p {
        justify-content: center;
    }
    .app-col {
        align-items: center;
        text-align: center;
    }
    .app-banner-wrapper {
        justify-content: center;
        width: 100%;
    }
    .app-banner-link {
        align-items: center;
        margin: 0 auto;
    }
    .footer-app-banner {
        margin: 0 auto;
    }
    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    .copyright-info {
        text-align: center;
    }
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        padding: 8px 8px;
        font-size: 0.92rem;
        gap: 6px;
    }
    .mobile-nav-brand {
        gap: 6px;
        padding: 2px 0;
    }
    .mobile-nav-logo {
        height: 28px;
    }
    .mobile-nav-hi {
        font-size: 12px;
    }
    .mobile-nav-en {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    .mobile-nav-state {
        font-size: 7.5px;
    }
    .mobile-search-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .top-bar-container {
        justify-content: center;
        text-align: center;
    }
    .swachh-logo-container {
        display: none; /* Hide search support logo */
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
    .stat-card, 
    .stat-card:nth-child(even), 
    .stat-card:nth-child(n+3) {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tab-buttons {
        width: 100%;
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
        text-align: left;
    }
}

/* ==========================================================================
   IMAGE SLIDER COMPONENT
   ========================================================================== */
.image-slider-section {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 370;
    max-height: 370px;
    overflow: hidden;
    border-radius: 0;
    background-color: #000;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.slide img,
.slide a img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(52, 80, 137, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 20px 25px;
    border-radius: var(--radius-md);
    z-index: 10;
    max-width: 600px;
    animation: fadeInUp 0.8s ease forwards;
}
.theme-dark .slide-caption {
    background: rgba(20, 30, 48, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}
.theme-contrast .slide-caption {
    background: #000;
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
}
.theme-terracotta .slide-caption {
    background: rgba(120, 30, 5, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme-skyblue .slide-caption {
    background: rgba(0, 80, 130, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme-teal .slide-caption {
    background: rgba(15, 118, 110, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme-coffee .slide-caption {
    background: rgba(58, 35, 25, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme-purple .slide-caption {
    background: rgba(105, 36, 124, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.theme-peach .slide-caption {
    background: rgba(60, 36, 21, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.slide-caption h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-light);
}
.theme-contrast .slide-caption h3 {
    color: var(--text-primary);
}
.slide-caption p {
    font-size: var(--font-sm);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}
.theme-contrast .slide-caption p {
    color: var(--text-secondary);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}
.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}
.theme-contrast .slider-arrow {
    background: #000;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.theme-contrast .slider-arrow:hover {
    background: var(--primary-color);
    color: #000;
}
.prev-arrow {
    left: 20px;
}
.next-arrow {
    right: 20px;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.theme-contrast .slider-dots .dot {
    background: rgba(255, 255, 255, 0.3);
}
.theme-contrast .slider-dots .dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: auto;
        aspect-ratio: 1920 / 370;
    }
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    .slide-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    .slide-caption h3 {
        font-size: var(--font-sm);
        margin-bottom: 4px;
    }
    .slide-caption p {
        font-size: var(--font-xs);
    }
    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .prev-arrow {
        left: 8px;
    }
    .next-arrow {
        right: 8px;
    }
    .slider-dots {
        bottom: 6px;
        gap: 5px;
    }
    .slider-dots .dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    .prev-arrow {
        left: 4px;
    }
    .next-arrow {
        right: 4px;
    }
    .slider-dots {
        bottom: 4px;
        gap: 4px;
    }
    .slider-dots .dot {
        width: 5px;
        height: 5px;
    }
}

/* ==========================================================================
   DASHBOARD INFO BLOCKS SECTION
   ========================================================================== */
.info-blocks-section {
    padding: 30px 0 50px 0;
    background-color: var(--bg-primary);
}

.info-blocks-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Dashboard Tabs styling (Folder layout style) */
.info-block-header.tabbed-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    padding: 0 12px;
    align-items: flex-end;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
}
.info-block-header.tabbed-header::-webkit-scrollbar {
    display: none;
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

/* Tab Scroll Indicator (Hidden specifically for dashboard tabs) */
.info-block-header.tabbed-header .tab-scroll-indicator-wrapper {
    display: none !important;
}

.dashboard-tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    color: var(--text-secondary);
    font-size: var(--font-xs); /* Reduced from var(--font-sm) to fit all tabs */
    font-weight: 700;
    height: 47px;
    padding: 0 12px; /* Reduced from 18px to save horizontal space */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: -1px;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}

.dashboard-tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
}

.dashboard-tab-btn.active {
    background-color: var(--panel-header-bg);
    color: var(--panel-header-text) !important;
    border: 1px solid var(--panel-header-bg);
    border-bottom: none;
    border-top: 3px solid var(--secondary-color);
    z-index: 2;
}

@media (max-width: 700px) {
    .info-block-header.tabbed-header .tab-scroll-indicator-wrapper {
        display: none !important;
    }

    .info-block-header.tabbed-header {
        height: auto !important;
        min-height: auto !important;
        padding: 8px !important;
        overflow: visible !important;
    }

    .dashboard-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .dashboard-tab-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 42px !important;
        padding: 6px 4px !important;
        font-size: 11.5px !important;
        white-space: normal !important;
        text-align: center !important;
        border-radius: var(--radius-sm) !important;
        border: 1px solid var(--border-color) !important;
        margin-bottom: 0 !important;
        line-height: 1.25 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: none !important;
    }

    .dashboard-tab-btn.active {
        background-color: var(--panel-header-bg) !important;
        color: var(--panel-header-text) !important;
        border: 1px solid var(--panel-header-bg) !important;
        border-top: 3px solid var(--secondary-color) !important;
        border-radius: var(--radius-sm) !important;
    }
}

/* Hide inactive tab contents */
.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Tab block body container - dynamic height to fit active tab content */
.tab-block-body {
    min-height: 399px;
    position: relative;
}

.tab-block-body .dashboard-tab-content {
    display: none;
}

.tab-block-body .dashboard-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-block-card {
    background-color: var(--panel-body-bg);
    border: var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-block-card:hover {
    box-shadow: var(--shadow-md);
}

.info-block-header {
    background-color: var(--panel-header-bg);
    color: var(--panel-header-text);
    height: 48px;
    padding: 0 16px;
    font-size: var(--font-base);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--panel-header-bg);
    box-sizing: border-box;
}

.info-block-header-title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 700;
}

.info-block-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block-header-link {
    color: var(--panel-header-text);
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: none;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.info-block-header-link:hover {
    opacity: 1;
}

.info-block-header-icon {
    font-size: var(--font-sm);
    cursor: pointer;
    opacity: 0.8;
}

.info-block-header-icon:hover {
    opacity: 1;
}

.info-block-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.info-links-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .info-links-list {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

#db-tab-budget .info-links-list {
    grid-template-columns: 1fr;
}

#db-tab-budget .info-link-item a {
    padding: 10px 16px;
}

.info-link-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.info-link-item:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-link-item a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-link-item a:hover {
    color: var(--accent-saffron);
}

/* Three column list layout for Circulars card */
.info-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

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

@media (max-width: 768px) {
    .info-links-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

.info-grid-cell {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.info-grid-cell:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-grid-cell a {
    display: block;
    padding: 12px 16px;
    font-size: var(--font-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-grid-cell a:hover {
    color: var(--accent-saffron);
}

.info-card-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.info-card-footer-left {
    justify-content: flex-start !important;
}

.info-footer-link {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-footer-link:hover {
    color: var(--accent-saffron);
    text-decoration: underline;
}

/* Latest News styles */
.news-ticker-container {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.news-ticker-container table {
    width: 100%;
    border-collapse: collapse;
}

.news-ticker-container table tr {
    transition: background-color var(--transition-fast);
}

.news-ticker-container table tr:hover {
    background-color: var(--bg-primary);
}

.news-ticker-container table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--text-primary);
}

.news-ticker-container table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    text-align: center;
}

.news-ticker-container table td a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-ticker-container table td a:hover {
    color: var(--accent-saffron);
}

#db-tab-budget div {
    border-bottom: 1px solid var(--border-light) !important;
    padding: 12px 20px !important;
    transition: background-color var(--transition-fast);
}

#db-tab-budget div:hover {
    background-color: var(--bg-primary);
}

#db-tab-budget div a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

#db-tab-budget div a:hover {
    color: var(--accent-saffron);
    padding-left: 5px;
}

/* Custom scrollbar for news ticker container */
.news-ticker-container::-webkit-scrollbar {
    width: 6px;
}

.news-ticker-container::-webkit-scrollbar-track {
    background: transparent;
}

.news-ticker-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: var(--radius-full);
}

.news-ticker-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.news-item-row {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: background-color var(--transition-fast);
}

.news-item-row:hover {
    background-color: var(--bg-primary);
}

.news-date-badge {
    background-color: var(--panel-header-bg);
    color: var(--panel-header-text);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.news-date-badge i {
    font-size: 14px;
    margin-bottom: 3px;
    opacity: 0.9;
}

.news-date-text {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}

.news-item-content {
    font-size: var(--font-sm);
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    flex-grow: 1;
}

.news-item-content:hover {
    color: var(--accent-saffron);
}

.new-badge {
    background-color: var(--accent-saffron);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sub-links style for Quick Links pay committee */
.sub-links-span {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.sub-link-btn {
    color: var(--accent-blue) !important;
    font-weight: 700;
    padding: 0 4px !important;
    display: inline !important;
}

.sub-link-btn:hover {
    text-decoration: underline !important;
    background-color: transparent !important;
}



/* ==========================================================================
   LOGO CAROUSEL SLIDER
   ========================================================================== */
.logo-slider-section {
    padding: 15px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 15px;
}

.logo-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.logo-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.logo-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

/* Custom styled flat logos */
.logo-slide-card {
    flex: 0 0 200px;
    width: 200px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.logo-slide-card:hover {
    border-color: var(--secondary-color);
}

/* Dynamic Theme Background for Transparent Logos (Jan Soochna, RFSDL, ACB, IndiaGov, Sampark, IFMS, Jan Aadhaar, State Portal, Web Directory, SHPP) */
.logo-card-jansoochna,
.logo-card-rfsdl,
.logo-card-acb,
.logo-card-indiagov,
.logo-card-sampark,
.logo-card-ifms,
.logo-card-janaadhaar,
.logo-card-stateportal,
.logo-card-webdirectory,
.logo-card-shpp {
    background-color: #e8f0fe !important; /* Default Light Blue for Dark Blue Theme (theme-light) */
    transition: background-color var(--transition-normal), border-color var(--transition-fast), transform var(--transition-fast) !important;
}

.theme-light .logo-card-jansoochna,
.theme-light .logo-card-rfsdl,
.theme-light .logo-card-acb,
.theme-light .logo-card-indiagov,
.theme-light .logo-card-sampark,
.theme-light .logo-card-ifms,
.theme-light .logo-card-janaadhaar,
.theme-light .logo-card-stateportal,
.theme-light .logo-card-webdirectory,
.theme-light .logo-card-shpp {
    background-color: #e8f0fe !important; /* Light Blue tint for Dark Navy Blue theme */
}

.theme-teal .logo-card-jansoochna,
.theme-teal .logo-card-rfsdl,
.theme-teal .logo-card-acb,
.theme-teal .logo-card-indiagov,
.theme-teal .logo-card-sampark,
.theme-teal .logo-card-ifms,
.theme-teal .logo-card-janaadhaar,
.theme-teal .logo-card-stateportal,
.theme-teal .logo-card-webdirectory,
.theme-teal .logo-card-shpp {
    background-color: #e0f7f5 !important; /* Light Teal tint */
}

.theme-coffee .logo-card-jansoochna,
.theme-coffee .logo-card-rfsdl,
.theme-coffee .logo-card-acb,
.theme-coffee .logo-card-indiagov,
.theme-coffee .logo-card-sampark,
.theme-coffee .logo-card-ifms,
.theme-coffee .logo-card-janaadhaar,
.theme-coffee .logo-card-stateportal,
.theme-coffee .logo-card-webdirectory,
.theme-coffee .logo-card-shpp {
    background-color: #f5ebe6 !important; /* Light Coffee tint */
}

.theme-contrast .logo-card-jansoochna,
.theme-contrast .logo-card-rfsdl,
.theme-contrast .logo-card-acb,
.theme-contrast .logo-card-indiagov,
.theme-contrast .logo-card-sampark,
.theme-contrast .logo-card-ifms,
.theme-contrast .logo-card-janaadhaar,
.theme-contrast .logo-card-stateportal,
.theme-contrast .logo-card-webdirectory,
.theme-contrast .logo-card-shpp {
    background-color: #000000 !important; /* High Contrast Black */
    border-color: #ffff00 !important;
}

.theme-purple .logo-card-jansoochna,
.theme-purple .logo-card-rfsdl,
.theme-purple .logo-card-acb,
.theme-purple .logo-card-indiagov,
.theme-purple .logo-card-sampark,
.theme-purple .logo-card-ifms,
.theme-purple .logo-card-janaadhaar,
.theme-purple .logo-card-stateportal,
.theme-purple .logo-card-webdirectory,
.theme-purple .logo-card-shpp {
    background-color: #f5ebf8 !important; /* Light Purple tint */
}

.theme-dark .logo-card-jansoochna,
.theme-dark .logo-card-rfsdl,
.theme-dark .logo-card-acb,
.theme-dark .logo-card-indiagov,
.theme-dark .logo-card-sampark,
.theme-dark .logo-card-ifms,
.theme-dark .logo-card-janaadhaar,
.theme-dark .logo-card-stateportal,
.theme-dark .logo-card-webdirectory,
.theme-dark .logo-card-shpp {
    background-color: #1e293b !important; /* Dark Slate tint */
}

.theme-terracotta .logo-card-jansoochna,
.theme-terracotta .logo-card-rfsdl,
.theme-terracotta .logo-card-acb,
.theme-terracotta .logo-card-indiagov,
.theme-terracotta .logo-card-sampark,
.theme-terracotta .logo-card-ifms,
.theme-terracotta .logo-card-janaadhaar,
.theme-terracotta .logo-card-stateportal,
.theme-terracotta .logo-card-webdirectory,
.theme-terracotta .logo-card-shpp {
    background-color: #ffedd5 !important; /* Light Terracotta tint */
}

.theme-skyblue .logo-card-jansoochna,
.theme-skyblue .logo-card-rfsdl,
.theme-skyblue .logo-card-acb,
.theme-skyblue .logo-card-indiagov,
.theme-skyblue .logo-card-sampark,
.theme-skyblue .logo-card-ifms,
.theme-skyblue .logo-card-janaadhaar,
.theme-skyblue .logo-card-stateportal,
.theme-skyblue .logo-card-webdirectory,
.theme-skyblue .logo-card-shpp {
    background-color: #e0f2fe !important; /* Light Sky Blue tint */
}

.theme-peach .logo-card-jansoochna,
.theme-peach .logo-card-rfsdl,
.theme-peach .logo-card-acb,
.theme-peach .logo-card-indiagov,
.theme-peach .logo-card-sampark,
.theme-peach .logo-card-ifms,
.theme-peach .logo-card-janaadhaar,
.theme-peach .logo-card-stateportal,
.theme-peach .logo-card-webdirectory,
.theme-peach .logo-card-shpp {
    background-color: #ffe4e6 !important; /* Light Peach tint */
}

/* Logo images fit rules */
.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px 8px;
}

/* Arrows styling */
.logo-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.logo-slider-arrow:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.logo-slider-arrow.prev {
    left: 10px;
}

.logo-slider-arrow.next {
    right: 10px;
}

@media (max-width: 1024px) {
    /* Logo cards remain 200x80, track scrolls horizontally */
}

@media (max-width: 768px) {
    .logo-slider-container {
        padding: 0 40px;
    }
}



/* Responsive grid for new dashboard layout */
@media (max-width: 1200px) {
    .info-blocks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar-search {
        width: 100%;
        margin-top: 5px;
    }
    .top-bar-search-form {
        width: 100% !important;
    }
}

/* ==========================================================================
   SPEECHES SECTION (Merged Cards Layout - Horizontal Flow)
   ========================================================================== */
.speeches-section {
    padding: 10px 0;
    background-color: var(--bg-primary);
}

.speeches-container-merged {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.speech-merged-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px 8px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    min-width: 0;
}

.speech-merged-card:hover {
    box-shadow: var(--shadow-md);
}

/* Left accent colors */
.speech-merged-card.cm-merged {
    border-left: 4px solid var(--primary-color); /* Matches theme color dynamically */
}

.speech-merged-card.dcm-merged {
    border-left: 4px solid var(--primary-color); /* Deep Blue accent for DCM */
}

/* Vertical layout inside card (Profile on top, Speech text on bottom) */
.speech-merged-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.speech-merged-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
}

.speech-merged-avatar-wrapper {
    width: 117px; /* Enlarged avatar width to 117px (30% increase) */
    height: 117px; /* Enlarged avatar height to 117px (30% increase) */
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.cm-merged .speech-merged-avatar-wrapper {
    border: 2px solid var(--primary-color);
}

.dcm-merged .speech-merged-avatar-wrapper {
    border: 2px solid var(--primary-color);
}

.speech-merged-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speech-merged-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.speech-merged-name {
    font-size: 18px; /* Enlarged name font size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.speech-merged-role {
    font-size: 13px; /* Enlarged role font size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: normal;
}

.cm-merged .speech-merged-role {
    color: var(--primary-color);
}

.dcm-merged .speech-merged-role {
    color: var(--primary-color);
}

.speech-merged-dept {
    font-size: 14.5px; /* Enlarged department font size */
    color: var(--primary-color);
    line-height: 1.25;
}

/* Speech body column */
.speech-merged-body {
    flex: 1;
    position: relative;
    padding-right: 35px;
    width: 100%;
    margin-top: 0;
    min-width: 0;
}

.speech-merged-text {
    font-size: 16.5px;
    line-height: 1.4;
    color: var(--primary-color);
    font-style: normal;
    font-weight: bold;
    margin: 0;
    text-align: justify;
}

.speech-merged-quote-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 26px;
    opacity: 0.12;
    pointer-events: none;
}

.cm-merged .speech-merged-quote-icon {
    color: var(--primary-color);
}

.dcm-merged .speech-merged-quote-icon {
    color: var(--primary-color);
}

/* Dashed divider line at bottom */
.speech-merged-divider {
    border-bottom: 1px dashed var(--border-color);
    width: 100%;
    margin-top: 4px;
    opacity: 0.7;
}

/* Responsive style */
@media (max-width: 992px) {
    .speech-merged-body {
        padding-right: 15px;
    }
    .speech-merged-quote-icon {
        top: 0;
        right: 0;
        transform: none;
    }
    .speech-merged-avatar-wrapper {
        width: 90px;
        height: 90px;
    }
    .speech-merged-name {
        font-size: 16.5px;
    }
    .speech-merged-dept {
        font-size: 13.5px;
    }
    .speech-merged-text {
        font-size: 15px;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .speeches-container-merged {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .speech-merged-card {
        padding: 14px 16px 10px 16px;
    }
    .speech-merged-avatar-wrapper {
        width: 82px;
        height: 82px;
    }
    .speech-merged-name {
        font-size: 16.5px;
        font-weight: 800;
    }
    .speech-merged-role {
        font-size: 13px;
        font-weight: 800;
    }
    .speech-merged-dept {
        font-size: 13.5px;
        font-weight: 700;
    }
    .speech-merged-body {
        padding-right: 0;
        margin-top: 4px;
    }
    .speech-merged-text {
        font-size: 14.5px;
        line-height: 1.45;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .speech-merged-card {
        padding: 12px 14px 10px 14px;
    }
    .speech-merged-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .speech-merged-avatar-wrapper {
        width: 72px;
        height: 72px;
    }
    .speech-merged-info {
        align-items: center;
        text-align: center;
    }
    .speech-merged-name {
        font-size: 15.5px;
        font-weight: 800;
        margin-bottom: 2px;
    }
    .speech-merged-role {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }
    .speech-merged-dept {
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.3;
    }
    .speech-merged-body {
        padding-right: 0;
        margin-top: 6px;
    }
    .speech-merged-text {
        font-size: 13.5px;
        line-height: 1.45;
        font-weight: 700;
        text-align: justify;
    }
}

/* ==========================================================================
   MODERN FOOTER EXTENSIONS
   ========================================================================== */
.nodal-contact-card {
    background-color: var(--footer-card-bg-val);
    border: 1px solid var(--footer-card-border-val);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 5px;
    width: 100%;
    min-width: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.nodal-contact-card:hover {
    background-color: var(--footer-card-hover-bg-val);
    border-color: var(--footer-card-hover-border-val);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nodal-contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--footer-card-border-val);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.nodal-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-heading-color, var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-heading-color, var(--secondary-color));
    font-size: 13px;
    flex-shrink: 0;
}

.nodal-meta {
    display: flex;
    flex-direction: column;
}

.nodal-meta .nodal-name {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--footer-title-val);
    margin: 0 0 2px 0 !important;
}

.nodal-meta .nodal-designation {
    font-size: var(--font-xs);
    color: var(--footer-muted-val);
    margin: 0 !important;
    line-height: 1.2;
}

.nodal-contact-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nodal-contact-body p {
    font-size: var(--font-xs);
    color: var(--footer-text-val);
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nodal-contact-body i {
    color: var(--footer-heading-color, var(--secondary-color));
    width: 14px;
    text-align: center;
}

.nodal-contact-body strong {
    color: var(--footer-title-val);
}

/* Global Responsive Improvements */
.page-title-banner h1 {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Consistent Table Heading Font Size & White Text */
.tbl th,
.tbl thead th,
.results-grid th,
.table th,
table.tbl th,
table th {
    font-size: var(--font-sm);
    font-weight: 700;
    color: #ffffff !important;
}

.theme-contrast .tbl th,
.theme-contrast .tbl thead th,
.theme-contrast .results-grid th,
.theme-contrast .table th,
.theme-contrast table.tbl th,
.theme-contrast table th {
    color: #000000 !important;
}

/* Global Table Row Hover Highlight (Light Color) */
.tbl tr,
.results-grid tr,
.table tr,
table.tbl tr,
table tr {
    transition: background-color var(--transition-fast, 0.15s ease);
}

.tbl tbody tr:not(.section-header-row):hover td,
.tbl tr:not(.section-header-row):hover td,
.results-grid tbody tr:hover td,
.results-grid tr:hover td,
.table tbody tr:hover td,
.table tr:hover td,
table.tbl tbody tr:hover td,
table.tbl tr:hover td,
table tbody tr:hover td {
    background-color: #bbdefb !important;
}

.theme-terracotta .tbl tr:not(.section-header-row):hover td,
.theme-terracotta .results-grid tr:hover td,
.theme-terracotta .table tr:hover td,
.theme-terracotta table.tbl tr:hover td,
.theme-terracotta table tr:hover td {
    background-color: #fecaca !important;
}

.theme-teal .tbl tr:not(.section-header-row):hover td,
.theme-teal .results-grid tr:hover td,
.theme-teal .table tr:hover td,
.theme-teal table.tbl tr:hover td,
.theme-teal table tr:hover td {
    background-color: #b2dfdb !important;
}

.theme-coffee .tbl tr:not(.section-header-row):hover td,
.theme-coffee .results-grid tr:hover td,
.theme-coffee .table tr:hover td,
.theme-coffee table.tbl tr:hover td,
.theme-coffee table tr:hover td {
    background-color: #ebd5cb !important;
}

.theme-purple .tbl tr:not(.section-header-row):hover td,
.theme-purple .results-grid tr:hover td,
.theme-purple .table tr:hover td,
.theme-purple table.tbl tr:hover td,
.theme-purple table tr:hover td {
    background-color: #e9d5ff !important;
}

.theme-peach .tbl tr:not(.section-header-row):hover td,
.theme-peach .results-grid tr:hover td,
.theme-peach .table tr:hover td,
.theme-peach table.tbl tr:hover td,
.theme-peach table tr:hover td {
    background-color: #fed7aa !important;
}

.theme-dark .tbl tr:not(.section-header-row):hover td,
.theme-dark .results-grid tr:hover td,
.theme-dark .table tr:hover td,
.theme-dark table.tbl tr:hover td,
.theme-dark table tr:hover td {
    background-color: rgba(255, 255, 255, 0.16) !important;
}

.theme-contrast .tbl tr:not(.section-header-row):hover td,
.theme-contrast .results-grid tr:hover td,
.theme-contrast .table tr:hover td,
.theme-contrast table.tbl tr:hover td,
.theme-contrast table tr:hover td {
    background-color: rgba(255, 255, 0, 0.45) !important;
}

/* Peach Theme Specific: High-contrast white text on all dark brown backgrounds */
.theme-peach .tbl th,
.theme-peach .tbl th *,
.theme-peach .tbl thead th,
.theme-peach .results-grid th,
.theme-peach .results-grid th *,
.theme-peach .table th,
.theme-peach .table th *,
.theme-peach table.tbl th,
.theme-peach table th,
.theme-peach .open-map-btn,
.theme-peach .open-map-btn i,
.theme-peach .btn-primary,
.theme-peach .btn,
.theme-peach .btn *,
.theme-peach .btn-submit,
.theme-peach .btn-submit *,
.theme-peach .ctrl-btn:hover,
.theme-peach .ctrl-btn.active,
.theme-peach .info-block-header,
.theme-peach .info-block-header *,
.theme-peach .category-header,
.theme-peach .category-header h2,
.theme-peach .category-header span,
.theme-peach .category-header p,
.theme-peach .page-title-banner,
.theme-peach .page-title-banner *,
.theme-peach .dashboard-tab-btn.active,
.theme-peach .slider-arrow,
.theme-peach .logo-slider-arrow,
.theme-peach .badge-primary {
    color: #ffffff !important;
}

.theme-peach .category-header {
    background: linear-gradient(135deg, #5c3d2e 0%, #8c583c 100%) !important;
}

.theme-peach .category-header i {
    color: #e8cfb5 !important;
}

.theme-peach .page-title-banner {
    background: linear-gradient(135deg, #5c3d2e 0%, #8c583c 100%) !important;
}

.theme-peach .info-footer-link,
.theme-peach .widget-link,
.theme-peach .news-ticker-container table td a,
.theme-peach .news-ticker-container table td:first-child,
.theme-peach .info-links-list a,
.theme-peach .info-grid-cell a,
.theme-peach #db-tab-budget div a {
    color: #5c3d2e !important;
    font-weight: 700;
}

.theme-peach .info-footer-link:hover,
.theme-peach .widget-link:hover,
.theme-peach .news-ticker-container table td a:hover,
.theme-peach .info-links-list a:hover,
.theme-peach .info-grid-cell a:hover,
.theme-peach #db-tab-budget div a:hover {
    color: var(--accent-saffron) !important;
}

.open-map-btn {
    color: #ffffff !important;
}

/* ==========================================================================
   Universal Light Gray Table Column Borders
   ========================================================================== */
.custom-revenue-table,
.custom-majordept-table,
.data-card table,
.results-grid,
.tbl,
.tbl1,
table.tbl,
table.tbl1 {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Header Vertical Separator Lines */
.custom-revenue-table th,
.custom-majordept-table th,
.data-card table th,
.results-grid th,
.tbl th,
.tbl1 th,
table.tbl th {
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Light Gray Vertical Lines Between Table Columns */
.custom-revenue-table td,
.custom-majordept-table td,
.data-card table td,
.results-grid td,
.tbl td,
.tbl1 td,
table.tbl td {
    border-left: 1px solid var(--border-light, #e2e8f0) !important;
    border-right: 1px solid var(--border-light, #e2e8f0) !important;
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
}

.file-number,
.results-grid td .file-number {
    font-size: var(--font-sm) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    display: inline-block;
    margin-top: 3px;
    line-height: 1.5;
}







