/* ================================
   NEPAL GOVERNMENT DATA PORTAL
   Professional & Data-Centric Design
   ================================ */

/* CSS Variables - Nepal Government Theme */
:root {
    /* Nepal Government Colors */
    --nepal-crimson: #DC143C;
    --nepal-blue: #003893;
    --nepal-dark-blue: #002366;
    --nepal-light-blue: #4169E1;
    
    /* Professional Palette */
    --primary: #003893;
    --primary-dark: #002366;
    --primary-light: #1a4d99;
    --secondary: #DC143C;
    --accent: #00539C;
    
    /* Neutral Grays */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --gray-900: #0F1419;
    
    /* Semantic Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Shadows - Subtle & Professional */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Transitions */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ================================
   GOVERNMENT HEADER - Official Design
   ================================ */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--nepal-crimson);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Design */
.logo a {
    text-decoration: none;
    display: block;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nepal-blue);
    line-height: 1.2;
}

.site-tagline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: var(--nepal-crimson);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-address {
    font-size: 0.813rem;
    color: var(--gray-600);
    font-weight: 400;
    line-height: 1.3;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.938rem;
    transition: var(--transition);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--nepal-blue);
    background: var(--gray-100);
}

.admin-link {
    background: var(--nepal-blue) !important;
    color: white !important;
    padding: var(--space-2) var(--space-5) !important;
    font-weight: 600 !important;
}

.admin-link:hover {
    background: var(--nepal-dark-blue) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-900);
    cursor: pointer;
}

/* ================================
   LANGUAGE SWITCHER
   ================================ */

.language-switcher {
    position: fixed;
    top: 50%;
    right: var(--space-4);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 999;
}

.lang-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.813rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.lang-btn:hover {
    border-color: var(--nepal-blue);
    color: var(--nepal-blue);
}

.lang-btn.active {
    background: var(--nepal-blue);
    color: white;
    border-color: var(--nepal-blue);
}

/* ================================
   HERO SECTION - Professional & Clean
   ================================ */

.hero-premium {
    background: linear-gradient(135deg, var(--nepal-blue) 0%, var(--nepal-dark-blue) 100%);
    padding: var(--space-12) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-left {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: var(--space-5);
}

.hero-content-left h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-5);
}

.hero-content-left p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: var(--space-8);
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.cta-primary-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: white;
    color: var(--nepal-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-secondary-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.cta-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero-stat-label {
    font-size: 0.813rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ================================
   STATS SHOWCASE - Data Cards
   ================================ */

.stats-showcase {
    background: var(--gray-50);
    padding: var(--space-12) 0;
    margin-top: calc(-1 * var(--space-12));
    position: relative;
    z-index: 10;
}

.stats-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.stat-card {
    text-align: center;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--nepal-blue);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    background: var(--nepal-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nepal-blue);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* ================================
   SEARCH SECTION
   ================================ */

.search-section {
    padding: var(--space-16) 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--nepal-crimson);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-box-advanced {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-300);
    transition: var(--transition);
}

.search-box-advanced:focus-within {
    border-color: var(--nepal-blue);
    box-shadow: var(--shadow-xl);
}

.search-box-advanced form {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.search-icon {
    color: var(--gray-400);
    font-size: 1.25rem;
    margin-left: var(--space-2);
}

.search-box-advanced input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-900);
    padding: var(--space-2);
}

.search-box-advanced input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--nepal-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--nepal-dark-blue);
}

.search-suggestions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-5);
}

.search-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.813rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.search-tag:hover {
    background: var(--nepal-blue);
    color: white;
    border-color: var(--nepal-blue);
}

/* ================================
   CATEGORIES SECTION
   ================================ */

.categories-showcase {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-10);
}

.category-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.category-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--nepal-blue);
}

.category-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--nepal-blue);
    transition: var(--transition);
}

.category-card-premium:hover .category-icon-wrapper {
    background: var(--nepal-blue);
    color: white;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.category-count {
    font-size: 0.938rem;
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    color: var(--nepal-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.category-card-premium:hover .category-link {
    background: var(--nepal-blue);
    color: white;
}

/* ================================
   DATASETS SECTION
   ================================ */

.datasets-showcase {
    padding: var(--space-16) 0;
    background: white;
}

.datasets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-10);
}

.dataset-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dataset-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--nepal-blue);
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-3);
}

.dataset-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: var(--nepal-blue);
    color: white;
    font-size: 0.688rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.dataset-date {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--gray-500);
    font-size: 0.75rem;
}

.dataset-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.dataset-description {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: var(--space-5);
    flex-grow: 1;
}

.dataset-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
}

.dataset-meta {
    display: flex;
    gap: var(--space-4);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--gray-600);
    font-size: 0.813rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--nepal-blue);
}

.dataset-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--nepal-blue);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.813rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.dataset-action:hover {
    background: var(--nepal-dark-blue);
}

/* ================================
   FEATURES SECTION
   ================================ */

.features-showcase {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-10);
}

.feature-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    background: var(--nepal-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--nepal-crimson) 0%, #b01030 100%);
    position: relative;
    color: var(--white);
}


.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    color: var(--white);
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--space-8);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Center the button wrapper */
.cta-content .hero-cta {
    justify-content: center;
    gap: var(--space-4);
}

/* BUTTON STYLES (Matching your HTML classes) */

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--white);
    color: var(--nepal-crimson); /* Red text to match background theme */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid var(--white);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--gray-50);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}
/* ================================
   FOOTER - Professional
   ================================ */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-col h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: var(--space-3);
    font-size: 0.938rem;
}

.social-links {
    display: flex;
    gap: var(--space-2);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--nepal-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.938rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: 0.938rem;
}

.contact-info i {
    color: var(--nepal-blue);
    margin-top: var(--space-1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--nepal-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--nepal-dark-blue);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
}

/* =================================================================
   RESPONSIVE & MOBILE MENU FIXES
   (Paste at the very bottom of your CSS file)
   ================================================================= */

/* Tablet & Mobile Styles (Screens smaller than 992px) */
@media screen and (max-width: 992px) {

    /* --- 1. MOBILE NAVIGATION FIX --- */
    
    /* Show the hamburger button */
    .mobile-menu-toggle {
        display: block;
        font-size: 1.75rem;
        color: var(--nepal-blue);
        padding: var(--space-2);
        z-index: 1001;
    }

    /* Transform the row menu into a vertical slide-out menu */
    .nav-menu {
        position: fixed;
        top: 80px; /* Height of the navbar */
        left: -100%; /* Hidden by default */
        width: 100%;
        height: calc(100vh - 80px); /* Full height minus header */
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        transition: 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        overflow-y: auto;
        gap: 0; /* Reset gap */
    }

    /* Class added via JavaScript to show menu */
    .nav-menu.active {
        left: 0;
    }

    /* Mobile Links Styling */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu a {
        display: block;
        padding: var(--space-4) 0;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 0;
    }

    .nav-menu a:hover {
        background: transparent;
        color: var(--nepal-crimson);
        padding-left: var(--space-2); /* Slide effect on hover */
    }

    /* Adjust Admin Link for mobile */
    .admin-link {
        margin-top: var(--space-4);
        text-align: center;
        width: 100%;
        border-radius: var(--radius-md) !important;
    }

    /* --- 2. LAYOUT & GRIDS FIX --- */

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        gap: var(--space-8);
    }

    .hero-content-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Stats Cards (4 cols -> 2 cols) */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Categories & Datasets (3 cols -> 1 col) */
    .categories-grid, 
    .datasets-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features (4 cols -> 1 col) */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Search Box */
    .search-box-advanced form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-col h3::after {
        /* Centering underline if you have one, or just centering text */
        margin: 0 auto;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Language Switcher - Move to bottom right or hide if needed */
    .language-switcher {
        top: auto;
        bottom: var(--space-4);
        right: var(--space-4);
        transform: none;
        flex-direction: row;
    }
}

/* Mobile Phones (Very small screens < 576px) */
@media screen and (max-width: 576px) {
    /* Logo adjustments */
    .site-name { font-size: 1rem; }
    .site-address { display: none; } /* Hide address on tiny screens to save space */
    
    /* Make stats 1 column on tiny screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content-left h1 {
        font-size: 2rem;
    }
}

/* =================================================================
   FIXES & MISSING VARIABLES
   (Paste at the very bottom of style.css)
   ================================================================= */

:root {
    /* Missing variables for the Footer Premium */
    --gradient-primary: linear-gradient(135deg, var(--nepal-blue) 0%, var(--nepal-crimson) 100%);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition-base: all 0.3s ease;
}

/* Ensure Footer Text wraps correctly on mobile */
.footer-heading {
    word-break: break-word;
}

/* --- MOBILE MENU CLICK FIX --- */

@media screen and (max-width: 992px) {
    /* Ensure the toggle button is visible and clickable */
    .mobile-menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 1002; /* Higher than menu */
    }

    /* Force the menu styles */
    .nav-menu {
        display: flex; /* Override previous flex settings */
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: -100% !important; /* Force hide */
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
    }

    /* When active class is added by JS, slide it in */
    .nav-menu.active {
        left: 0 !important; /* Force show */
    }
}

.footer-premium {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: var(--space-16) 0 var(--space-12);
}

.footer-grid-premium {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
}

/* Footer Columns */
.footer-col-premium {
    display: flex;
    flex-direction: column;
}

.footer-col-about {
    padding-right: var(--space-6);
}

/* Footer Logo */
.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-4);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
}

/* Footer Heading */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-5);
    letter-spacing: -0.01em;
}

/* Footer Description */
.footer-description {
    font-size: 0.938rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-5);
}

/* Social Links */
.social-links-premium {
    display: flex;
    gap: var(--space-3);
}

.social-links-premium a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-premium a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.4);
}

/* Footer Links */
.footer-links-premium {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links-premium li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.footer-links-premium li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-links-premium li a i {
    font-size: 0.625rem;
    color: var(--primary);
}

/* Contact Info */
.contact-info-premium {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-info-premium li {
    display: flex;
    gap: var(--space-3);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-text strong {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text span {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.5;
}

/* Footer Stats */
.footer-stats-premium {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon-footer {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: blue;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content-footer {
    display: flex;
    flex-direction: column;
}

.stat-value-footer {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.stat-label-footer {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom-premium {
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright-text {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 56px;
    height: 56px;
    background: blue;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid-premium {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .footer-grid-premium {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-col-about {
        padding-right: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: var(--space-5);
        right: var(--space-5);
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .social-links-premium a {
        width: 40px;
        height: 40px;
    }
}
