/**
 * Theme Name: Kilimokwanza Digital Hub Pro
 * Theme URI: https://kilimokwanza.org
 * Description: Version 2.0 - Professional agricultural information hub with mega search, data visualizations, hero slider, and mobile-first design for millions of farmers and policy makers
 * Author: Appsvalle.com Team
 * Author URI: https://appsvalle.com
 * Version: 2.0.0
 * Requires at least: 6.0
 * Tested up to: 6.4
 * Requires PHP: 7.4
 * License: GPL v2 or later
 * Text Domain: kilimokwanza
 * Tags: agriculture, data-driven, hero-slider, mega-search, mobile-first, progressive-web-app
 */

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. CSS Variables & Design System
   2. Reset & Base Styles
   3. Typography System
   4. Layout Grid System
   5. Header & Top Bar
   6. Mega Search Section
   7. Navigation System
   8. Hero Slider
   9. Content Cards & Articles
   10. Data Visualizations
   11. Archives Section
   12. Sidebar & Widgets
   13. Footer
   14. Mobile Responsive
   15. Animations & Transitions
   16. Utility Classes
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables & Design System
   ========================================================================== */

:root {
    /* Brand Colors - Enhanced */
    --kh-primary: #1B5E20;
    --kh-primary-dark: #0D3B0D;
    --kh-primary-light: #4CAF50;
    --kh-primary-soft: #E8F5E9;
    --kh-primary-gradient: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #4CAF50 100%);
    
    --kh-secondary: #FF6B35;
    --kh-secondary-dark: #E55100;
    --kh-secondary-light: #FF8A65;
    
    --kh-accent-gold: #FFD700;
    --kh-accent-yellow: #FFC107;
    --kh-accent-orange: #FF9800;
    
    /* Neutral Colors */
    --kh-white: #FFFFFF;
    --kh-gray-50: #FAFAFA;
    --kh-gray-100: #F5F5F5;
    --kh-gray-200: #EEEEEE;
    --kh-gray-300: #E0E0E0;
    --kh-gray-400: #BDBDBD;
    --kh-gray-500: #9E9E9E;
    --kh-gray-600: #757575;
    --kh-gray-700: #616161;
    --kh-gray-800: #424242;
    --kh-gray-900: #212121;
    --kh-black: #000000;
    
    /* Typography - Enhanced Scale */
    --kh-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --kh-font-heading: 'Merriweather', Georgia, serif;
    --kh-font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Fluid Typography */
    --kh-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --kh-text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --kh-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --kh-text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --kh-text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --kh-text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --kh-text-3xl: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
    --kh-text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --kh-text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4.5rem);
    --kh-text-hero: clamp(3.5rem, 2.5rem + 5vw, 6rem);
    
    /* Spacing System */
    --kh-space-xs: 0.25rem;
    --kh-space-sm: 0.5rem;
    --kh-space-md: 1rem;
    --kh-space-lg: 1.5rem;
    --kh-space-xl: 2rem;
    --kh-space-2xl: 3rem;
    --kh-space-3xl: 4rem;
    --kh-space-4xl: 6rem;
    --kh-space-5xl: 8rem;
    
    /* Container Widths */
    --kh-container-xs: 480px;
    --kh-container-sm: 640px;
    --kh-container-md: 768px;
    --kh-container-lg: 1024px;
    --kh-container-xl: 1280px;
    --kh-container-2xl: 1536px;
    --kh-container-full: 100%;
    
    /* Enhanced Shadows */
    --kh-shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --kh-shadow-sm: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --kh-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --kh-shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --kh-shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);
    --kh-shadow-2xl: 0 25px 50px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.08);
    --kh-shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
    --kh-shadow-colored: 0 10px 40px rgba(76, 175, 80, 0.3);
    
    /* Border Radius */
    --kh-radius-sm: 0.25rem;
    --kh-radius-md: 0.5rem;
    --kh-radius-lg: 1rem;
    --kh-radius-xl: 1.5rem;
    --kh-radius-2xl: 2rem;
    --kh-radius-full: 9999px;
    
    /* Transitions */
    --kh-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --kh-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --kh-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --kh-transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --kh-z-dropdown: 1000;
    --kh-z-sticky: 1020;
    --kh-z-fixed: 1030;
    --kh-z-modal-backdrop: 1040;
    --kh-z-modal: 1050;
    --kh-z-popover: 1060;
    --kh-z-tooltip: 1070;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --kh-bg-primary: var(--kh-gray-900);
        --kh-text-primary: var(--kh-gray-100);
    }
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: var(--kh-font-primary);
    font-size: var(--kh-text-base);
    line-height: 1.7;
    color: var(--kh-gray-800);
    background-color: var(--kh-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   3. Typography System
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kh-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--kh-gray-900);
    margin-bottom: var(--kh-space-lg);
}

h1 { font-size: var(--kh-text-5xl); }
h2 { font-size: var(--kh-text-4xl); }
h3 { font-size: var(--kh-text-3xl); }
h4 { font-size: var(--kh-text-2xl); }
h5 { font-size: var(--kh-text-xl); }
h6 { font-size: var(--kh-text-lg); }

p {
    margin-bottom: var(--kh-space-lg);
}

a {
    color: var(--kh-primary);
    text-decoration: none;
    transition: all var(--kh-transition-fast);
}

a:hover {
    color: var(--kh-primary-light);
}

/* ==========================================================================
   4. Layout Grid System
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--kh-container-xl);
    margin: 0 auto;
    padding: 0 var(--kh-space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--kh-space-lg);
}

.grid {
    display: grid;
    gap: var(--kh-space-xl);
}

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

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5. Header & Top Bar
   ========================================================================== */

.site-header {
    background: var(--kh-white);
    box-shadow: var(--kh-shadow-lg);
    position: sticky;
    top: 0;
    z-index: var(--kh-z-sticky);
}

/* Top Bar */
.header-top-bar {
    background: var(--kh-primary-gradient);
    color: var(--kh-white);
    padding: var(--kh-space-sm) 0;
    font-size: var(--kh-text-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xl);
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.top-bar-links a {
    color: var(--kh-white);
    margin-left: var(--kh-space-lg);
    opacity: 0.9;
    transition: opacity var(--kh-transition-fast);
}

.top-bar-links a:hover {
    opacity: 1;
    color: var(--kh-accent-gold);
}

/* Main Header */
.header-main {
    padding: var(--kh-space-lg) 0;
    background: var(--kh-white);
}

.header-main-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--kh-space-2xl);
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--kh-space-md);
}

.site-logo {
    width: 70px;
    height: 70px;
    background: var(--kh-primary-gradient);
    border-radius: var(--kh-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--kh-shadow-lg);
}

.site-logo img {
    max-width: 50px;
    height: auto;
}

.site-info h1 {
    font-size: var(--kh-text-3xl);
    margin: 0;
    background: var(--kh-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-tagline {
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-600);
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--kh-space-lg);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--kh-space-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--kh-radius-full);
    overflow: hidden;
    border: 2px solid var(--kh-primary);
}

.btn-login {
    padding: var(--kh-space-sm) var(--kh-space-lg);
    background: var(--kh-primary-gradient);
    color: var(--kh-white);
    border-radius: var(--kh-radius-full);
    font-weight: 600;
    transition: all var(--kh-transition-base);
    box-shadow: var(--kh-shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--kh-shadow-xl);
    color: var(--kh-white);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--kh-space-xs);
    background: var(--kh-gray-100);
    border-radius: var(--kh-radius-full);
    padding: var(--kh-space-xs);
}

.language-switcher a {
    padding: var(--kh-space-xs) var(--kh-space-sm);
    border-radius: var(--kh-radius-full);
    font-weight: 500;
    transition: all var(--kh-transition-fast);
}

.language-switcher a.active,
.language-switcher a:hover {
    background: var(--kh-primary);
    color: var(--kh-white);
}

/* ==========================================================================
   6. Mega Search Section
   ========================================================================== */

.mega-search-section {
    background: var(--kh-primary-gradient);
    padding: var(--kh-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.mega-search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: var(--kh-radius-full);
}

.mega-search-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mega-search-title {
    text-align: center;
    color: var(--kh-white);
    font-size: var(--kh-text-2xl);
    margin-bottom: var(--kh-space-xl);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mega-search-form {
    display: flex;
    background: var(--kh-white);
    border-radius: var(--kh-radius-full);
    overflow: hidden;
    box-shadow: var(--kh-shadow-2xl);
    transition: all var(--kh-transition-base);
}

.mega-search-form:focus-within {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3), var(--kh-shadow-2xl);
}

.mega-search-input {
    flex: 1;
    padding: var(--kh-space-xl) var(--kh-space-2xl);
    font-size: var(--kh-text-lg);
    border: none;
    outline: none;
    background: transparent;
}

.mega-search-filters {
    display: flex;
    align-items: center;
    padding: 0 var(--kh-space-lg);
    border-left: 1px solid var(--kh-gray-200);
}

.search-filter-select {
    padding: var(--kh-space-sm);
    border: none;
    background: transparent;
    font-size: var(--kh-text-base);
    color: var(--kh-gray-600);
    outline: none;
    cursor: pointer;
}

.mega-search-button {
    padding: var(--kh-space-xl) var(--kh-space-3xl);
    background: var(--kh-accent-gold);
    color: var(--kh-black);
    border: none;
    font-size: var(--kh-text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--kh-transition-base);
    display: flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.mega-search-button:hover {
    background: var(--kh-accent-yellow);
    transform: scale(1.05);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    box-shadow: var(--kh-shadow-2xl);
    margin-top: var(--kh-space-md);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: var(--kh-z-dropdown);
}

.search-suggestions.active {
    display: block;
    animation: slideDown var(--kh-transition-base);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: var(--kh-space-md) var(--kh-space-lg);
    border-bottom: 1px solid var(--kh-gray-100);
    transition: all var(--kh-transition-fast);
    cursor: pointer;
}

.suggestion-item:hover {
    background: var(--kh-primary-soft);
    padding-left: var(--kh-space-xl);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--kh-gray-100);
    border-radius: var(--kh-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--kh-space-md);
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: var(--kh-gray-900);
    margin-bottom: var(--kh-space-xs);
}

.suggestion-meta {
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-600);
}

/* Quick Search Tags */
.quick-search-tags {
    text-align: center;
    margin-top: var(--kh-space-xl);
}

.quick-search-label {
    color: rgba(255,255,255,0.8);
    margin-right: var(--kh-space-md);
    font-size: var(--kh-text-sm);
}

.search-tag {
    display: inline-block;
    padding: var(--kh-space-xs) var(--kh-space-md);
    background: rgba(255,255,255,0.2);
    color: var(--kh-white);
    border-radius: var(--kh-radius-full);
    margin: var(--kh-space-xs);
    font-size: var(--kh-text-sm);
    transition: all var(--kh-transition-fast);
    cursor: pointer;
}

.search-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* ==========================================================================
   7. Navigation System
   ========================================================================== */

.main-navigation {
    background: var(--kh-primary-dark);
    box-shadow: var(--kh-shadow-md);
    position: relative;
}

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

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: var(--kh-space-lg) var(--kh-space-xl);
    color: var(--kh-white);
    font-weight: 500;
    font-size: var(--kh-text-base);
    transition: all var(--kh-transition-fast);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--kh-accent-gold);
    transform: translateX(-50%);
    transition: width var(--kh-transition-base);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after {
    width: 80%;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.1);
    color: var(--kh-accent-gold);
}

/* Dropdown Menus */
.nav-menu .has-children > a::before {
    content: '▼';
    margin-left: var(--kh-space-xs);
    font-size: 10px;
    transition: transform var(--kh-transition-fast);
}

.nav-menu .has-children:hover > a::before {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--kh-white);
    box-shadow: var(--kh-shadow-2xl);
    border-radius: var(--kh-radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--kh-transition-base);
    z-index: var(--kh-z-dropdown);
    padding: var(--kh-space-sm);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: flex;
    align-items: center;
    padding: var(--kh-space-md) var(--kh-space-lg);
    color: var(--kh-gray-700);
    border-radius: var(--kh-radius-md);
    transition: all var(--kh-transition-fast);
}

.sub-menu a:hover {
    background: var(--kh-primary-soft);
    color: var(--kh-primary);
    padding-left: var(--kh-space-xl);
}

.sub-menu a .menu-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--kh-space-sm);
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--kh-white);
    margin: 5px auto;
    transition: all var(--kh-transition-base);
    border-radius: var(--kh-radius-sm);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   8. Hero Slider
   ========================================================================== */

.hero-slider {
    position: relative;
    height: 600px;
    background: var(--kh-primary-gradient);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--kh-transition-slower);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27,94,32,0.8) 0%, rgba(76,175,80,0.6) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide-inner {
    max-width: 800px;
}

.hero-category {
    display: inline-block;
    padding: var(--kh-space-xs) var(--kh-space-md);
    background: var(--kh-accent-gold);
    color: var(--kh-black);
    border-radius: var(--kh-radius-full);
    font-size: var(--kh-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--kh-space-lg);
}

.hero-title {
    font-size: var(--kh-text-hero);
    color: var(--kh-white);
    margin-bottom: var(--kh-space-xl);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-excerpt {
    font-size: var(--kh-text-xl);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--kh-space-2xl);
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xl);
    color: rgba(255,255,255,0.8);
    font-size: var(--kh-text-base);
    margin-bottom: var(--kh-space-2xl);
}

.hero-author {
    display: flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.hero-author img {
    width: 30px;
    height: 30px;
    border-radius: var(--kh-radius-full);
}

.hero-cta {
    display: flex;
    gap: var(--kh-space-lg);
}

.btn-hero {
    padding: var(--kh-space-md) var(--kh-space-2xl);
    border-radius: var(--kh-radius-full);
    font-weight: 600;
    font-size: var(--kh-text-base);
    transition: all var(--kh-transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.btn-hero-primary {
    background: var(--kh-accent-gold);
    color: var(--kh-black);
    box-shadow: var(--kh-shadow-lg);
}

.btn-hero-primary:hover {
    background: var(--kh-accent-yellow);
    transform: translateY(-3px);
    box-shadow: var(--kh-shadow-2xl);
}

.btn-hero-outline {
    background: transparent;
    color: var(--kh-white);
    border: 2px solid var(--kh-white);
}

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

/* Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: var(--kh-space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--kh-space-md);
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--kh-radius-full);
    background: rgba(255,255,255,0.3);
    border: 2px solid var(--kh-white);
    cursor: pointer;
    transition: all var(--kh-transition-base);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--kh-white);
    width: 40px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid var(--kh-white);
    border-radius: var(--kh-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--kh-transition-base);
    z-index: 3;
}

.slider-nav:hover {
    background: var(--kh-white);
    color: var(--kh-primary);
}

.slider-prev {
    left: var(--kh-space-2xl);
}

.slider-next {
    right: var(--kh-space-2xl);
}

/* ==========================================================================
   9. Content Cards & Articles
   ========================================================================== */

.content-section {
    padding: var(--kh-space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--kh-space-3xl);
}

.section-title {
    font-size: var(--kh-text-4xl);
    background: var(--kh-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--kh-space-lg);
}

.section-subtitle {
    font-size: var(--kh-text-lg);
    color: var(--kh-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--kh-space-2xl);
}

.article-card {
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    overflow: hidden;
    box-shadow: var(--kh-shadow-lg);
    transition: all var(--kh-transition-base);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--kh-shadow-2xl);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--kh-gray-200);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kh-transition-slow);
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-category-badge {
    position: absolute;
    top: var(--kh-space-lg);
    left: var(--kh-space-lg);
    padding: var(--kh-space-xs) var(--kh-space-md);
    background: var(--kh-primary-gradient);
    color: var(--kh-white);
    border-radius: var(--kh-radius-full);
    font-size: var(--kh-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--kh-shadow-lg);
}

.article-card-content {
    padding: var(--kh-space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--kh-space-lg);
    margin-bottom: var(--kh-space-md);
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-600);
}

.article-date {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xs);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xs);
}

.article-card-title {
    font-size: var(--kh-text-xl);
    margin-bottom: var(--kh-space-md);
    line-height: 1.3;
    flex: 0;
}

.article-card-title a {
    color: var(--kh-gray-900);
    transition: color var(--kh-transition-fast);
}

.article-card-title a:hover {
    color: var(--kh-primary);
}

.article-card-excerpt {
    color: var(--kh-gray-600);
    line-height: 1.7;
    margin-bottom: var(--kh-space-xl);
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--kh-space-lg);
    border-top: 1px solid var(--kh-gray-100);
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--kh-radius-full);
    overflow: hidden;
}

.author-name {
    font-weight: 500;
    color: var(--kh-gray-700);
    font-size: var(--kh-text-sm);
}

.article-stats {
    display: flex;
    gap: var(--kh-space-md);
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-500);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xs);
}

/* Featured Article Card */
.featured-article-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    overflow: hidden;
    box-shadow: var(--kh-shadow-xl);
    transition: all var(--kh-transition-base);
}

.featured-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--kh-shadow-2xl);
}

.featured-article-content {
    padding: var(--kh-space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-image {
    background: var(--kh-gray-200);
    position: relative;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kh-transition-slow);
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: var(--kh-space-xl);
    right: var(--kh-space-xl);
    padding: var(--kh-space-sm) var(--kh-space-lg);
    background: var(--kh-accent-gold);
    color: var(--kh-black);
    font-weight: 700;
    font-size: var(--kh-text-sm);
    text-transform: uppercase;
    border-radius: var(--kh-radius-md);
    box-shadow: var(--kh-shadow-lg);
}

/* ==========================================================================
   10. Data Visualizations & Widgets
   ========================================================================== */

.data-dashboard {
    background: linear-gradient(135deg, var(--kh-gray-50) 0%, var(--kh-white) 100%);
    padding: var(--kh-space-4xl) 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--kh-space-xl);
}

.dashboard-widget {
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    padding: var(--kh-space-xl);
    box-shadow: var(--kh-shadow-lg);
    transition: all var(--kh-transition-base);
}

.dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--kh-shadow-xl);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--kh-space-xl);
    padding-bottom: var(--kh-space-md);
    border-bottom: 2px solid var(--kh-primary-soft);
}

.widget-title {
    font-size: var(--kh-text-lg);
    font-weight: 700;
    color: var(--kh-gray-900);
    display: flex;
    align-items: center;
    gap: var(--kh-space-sm);
}

.widget-icon {
    width: 30px;
    height: 30px;
    background: var(--kh-primary-gradient);
    border-radius: var(--kh-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kh-white);
}

.widget-action {
    padding: var(--kh-space-xs) var(--kh-space-sm);
    background: var(--kh-gray-100);
    border-radius: var(--kh-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--kh-transition-fast);
}

.widget-action:hover {
    background: var(--kh-primary-soft);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--kh-space-lg);
    margin-bottom: var(--kh-space-3xl);
}

.stat-card {
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    padding: var(--kh-space-xl);
    text-align: center;
    box-shadow: var(--kh-shadow-md);
    transition: all var(--kh-transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--kh-primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--kh-shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--kh-primary-soft);
    border-radius: var(--kh-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--kh-space-md);
    font-size: var(--kh-text-2xl);
    color: var(--kh-primary);
}

.stat-number {
    font-size: var(--kh-text-4xl);
    font-weight: 700;
    color: var(--kh-primary);
    margin-bottom: var(--kh-space-xs);
}

.stat-label {
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--kh-space-xs);
    padding: var(--kh-space-xs) var(--kh-space-sm);
    background: var(--kh-primary-soft);
    border-radius: var(--kh-radius-full);
    margin-top: var(--kh-space-md);
    font-size: var(--kh-text-xs);
    font-weight: 600;
}

.trend-up {
    color: var(--kh-primary);
}

.trend-down {
    color: var(--kh-secondary);
}

/* Price Ticker */
.price-ticker {
    background: var(--kh-primary-dark);
    color: var(--kh-white);
    padding: var(--kh-space-lg) 0;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 var(--kh-space-2xl);
    white-space: nowrap;
}

.ticker-commodity {
    font-weight: 600;
    margin-right: var(--kh-space-sm);
}

.ticker-price {
    color: var(--kh-accent-gold);
    font-family: var(--kh-font-mono);
    margin-right: var(--kh-space-sm);
}

.ticker-change {
    display: flex;
    align-items: center;
    gap: var(--kh-space-xs);
}

.ticker-change.positive {
    color: #4CAF50;
}

.ticker-change.negative {
    color: #F44336;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #1E88E5, #42A5F5);
    color: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    padding: var(--kh-space-xl);
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--kh-space-xl);
}

.weather-temp {
    font-size: var(--kh-text-5xl);
    font-weight: 700;
}

.weather-icon {
    width: 80px;
    height: 80px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--kh-space-lg);
    padding-top: var(--kh-space-lg);
    border-top: 1px solid rgba(255,255,255,0.3);
}

.weather-detail {
    text-align: center;
}

.weather-detail-label {
    font-size: var(--kh-text-xs);
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: var(--kh-space-xs);
}

.weather-detail-value {
    font-size: var(--kh-text-lg);
    font-weight: 600;
}

/* ==========================================================================
   11. Archives Section
   ========================================================================== */

.archives-section {
    background: var(--kh-gray-50);
    padding: var(--kh-space-4xl) 0;
}

.archives-container {
    background: var(--kh-white);
    border-radius: var(--kh-radius-lg);
    padding: var(--kh-space-3xl);
    box-shadow: var(--kh-shadow-lg);
}

.archives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--kh-space-2xl);
    padding-bottom: var(--kh-space-lg);
    border-bottom: 3px solid var(--kh-primary);
}

.archives-title {
    font-size: var(--kh-text-3xl);
    color: var(--kh-primary);
}

.year-selector {
    display: flex;
    gap: var(--kh-space-sm);
    background: var(--kh-gray-100);
    border-radius: var(--kh-radius-full);
    padding: var(--kh-space-xs);
}

.year-btn {
    padding: var(--kh-space-sm) var(--kh-space-lg);
    background: transparent;
    border: none;
    border-radius: var(--kh-radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--kh-transition-fast);
}

.year-btn.active,
.year-btn:hover {
    background: var(--kh-primary);
    color: var(--kh-white);
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--kh-space-lg);
}

.archive-month {
    background: var(--kh-white);
    border: 2px solid var(--kh-gray-200);
    border-radius: var(--kh-radius-lg);
    padding: var(--kh-space-xl);
    text-align: center;
    transition: all var(--kh-transition-base);
    cursor: pointer;
}

.archive-month:hover {
    border-color: var(--kh-primary);
    transform: translateY(-5px);
    box-shadow: var(--kh-shadow-lg);
}

.month-name {
    font-size: var(--kh-text-xl);
    font-weight: 700;
    color: var(--kh-gray-900);
    margin-bottom: var(--kh-space-sm);
}

.month-posts {
    font-size: var(--kh-text-3xl);
    font-weight: 700;
    color: var(--kh-primary);
    margin-bottom: var(--kh-space-xs);
}

.posts-label {
    font-size: var(--kh-text-sm);
    color: var(--kh-gray-600);
    text-transform: uppercase;
}

/* ==========================================================================
   12. Topic Cloud
   ========================================================================== */

.topic-cloud-section {
    padding: var(--kh-space-3xl) 0;
    background: var(--kh-white);
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--kh-space-md);
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--kh-space-sm) var(--kh-space-lg);
    background: var(--kh-gray-100);
    border-radius: var(--kh-radius-full);
    text-decoration: none;
    transition: all var(--kh-transition-fast);
    position: relative;
}

.topic-tag:hover {
    background: var(--kh-primary-gradient);
    color: var(--kh-white);
    transform: scale(1.1);
}

.topic-count {
    margin-left: var(--kh-space-sm);
    padding: var(--kh-space-xs) var(--kh-space-sm);
    background: var(--kh-primary);
    color: var(--kh-white);
    border-radius: var(--kh-radius-full);
    font-size: var(--kh-text-xs);
    font-weight: 700;
}

/* ==========================================================================
   13. Newsletter Section
   ========================================================================== */

.newsletter-section {
    background: var(--kh-primary-gradient);
    padding: var(--kh-space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: var(--kh-radius-full);
}

.newsletter-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: var(--kh-text-4xl);
    color: var(--kh-white);
    margin-bottom: var(--kh-space-lg);
}

.newsletter-subtitle {
    font-size: var(--kh-text-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--kh-space-2xl);
}

.newsletter-form {
    display: flex;
    gap: var(--kh-space-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--kh-space-lg);
    border-radius: var(--kh-radius-full);
    border: none;
    font-size: var(--kh-text-base);
    outline: none;
}

.newsletter-submit {
    padding: var(--kh-space-lg) var(--kh-space-2xl);
    background: var(--kh-accent-gold);
    color: var(--kh-black);
    border: none;
    border-radius: var(--kh-radius-full);
    font-weight: 700;
    font-size: var(--kh-text-base);
    cursor: pointer;
    transition: all var(--kh-transition-base);
}

.newsletter-submit:hover {
    background: var(--kh-accent-yellow);
    transform: scale(1.05);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, var(--kh-primary-dark) 0%, var(--kh-black) 100%);
    color: var(--kh-gray-300);
    padding: var(--kh-space-4xl) 0 var(--kh-space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--kh-space-3xl);
    margin-bottom: var(--kh-space-3xl);
}

.footer-about h3 {
    color: var(--kh-white);
    font-size: var(--kh-text-2xl);
    margin-bottom: var(--kh-space-lg);
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: var(--kh-space-xl);
}

.footer-social {
    display: flex;
    gap: var(--kh-space-sm);
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--kh-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kh-white);
    transition: all var(--kh-transition-fast);
}

.social-link:hover {
    background: var(--kh-primary-gradient);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--kh-white);
    font-size: var(--kh-text-lg);
    margin-bottom: var(--kh-space-lg);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--kh-space-sm);
}

.footer-column a {
    color: var(--kh-gray-400);
    transition: all var(--kh-transition-fast);
}

.footer-column a:hover {
    color: var(--kh-accent-gold);
    padding-left: var(--kh-space-sm);
}

.footer-bottom {
    padding-top: var(--kh-space-2xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: var(--kh-text-sm);
}

/* ==========================================================================
   15. Mobile Responsive Design
   ========================================================================== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--kh-white);
    border-top: 1px solid var(--kh-gray-200);
    padding: var(--kh-space-sm) 0;
    z-index: var(--kh-z-fixed);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--kh-space-sm);
    color: var(--kh-gray-600);
    text-decoration: none;
    transition: all var(--kh-transition-fast);
    position: relative;
}

.mobile-nav-item.active {
    color: var(--kh-primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--kh-primary);
    border-radius: var(--kh-radius-sm);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: var(--kh-space-xs);
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
    .container {
        max-width: var(--kh-container-lg);
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--kh-text-4xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-article-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--kh-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--kh-space-2xl) 0;
        box-shadow: var(--kh-shadow-2xl);
        transition: left var(--kh-transition-base);
        z-index: var(--kh-z-modal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li > a {
        color: var(--kh-gray-800);
        padding: var(--kh-space-md) var(--kh-space-xl);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--kh-gray-50);
        margin-left: var(--kh-space-xl);
        display: none;
    }
    
    .has-children.active .sub-menu {
        display: block;
    }
    
    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    /* Header adjustments */
    .header-main-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .site-branding {
        justify-content: center;
    }
    
    /* Mega Search Mobile */
    .mega-search-section {
        padding: var(--kh-space-2xl) 0;
    }
    
    .mega-search-title {
        font-size: var(--kh-text-xl);
    }
    
    .mega-search-form {
        flex-direction: column;
        border-radius: var(--kh-radius-lg);
    }
    
    .mega-search-input {
        padding: var(--kh-space-lg);
    }
    
    .mega-search-filters {
        border-left: none;
        border-top: 1px solid var(--kh-gray-200);
        padding: var(--kh-space-md);
    }
    
    .mega-search-button {
        padding: var(--kh-space-lg);
        border-radius: 0 0 var(--kh-radius-lg) var(--kh-radius-lg);
    }
    
    /* Hero Slider Mobile */
    .hero-slider {
        height: 500px;
    }
    
    .hero-title {
        font-size: var(--kh-text-3xl);
    }
    
    .hero-excerpt {
        font-size: var(--kh-text-base);
    }
    
    .slider-nav {
        display: none;
    }
    
    /* Grid adjustments */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Archives Mobile */
    .archives-header {
        flex-direction: column;
        gap: var(--kh-space-lg);
    }
    
    .archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archives-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input,
    .newsletter-submit {
        width: 100%;
    }
}

/* ==========================================================================
   16. Animations & Transitions
   ========================================================================== */

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Scroll animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ==========================================================================
   17. Utility Classes
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--kh-space-sm) !important; }
.mt-2 { margin-top: var(--kh-space-md) !important; }
.mt-3 { margin-top: var(--kh-space-lg) !important; }
.mt-4 { margin-top: var(--kh-space-xl) !important; }
.mt-5 { margin-top: var(--kh-space-2xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--kh-space-sm) !important; }
.mb-2 { margin-bottom: var(--kh-space-md) !important; }
.mb-3 { margin-bottom: var(--kh-space-lg) !important; }
.mb-4 { margin-bottom: var(--kh-space-xl) !important; }
.mb-5 { margin-bottom: var(--kh-space-2xl) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--kh-space-sm) !important; }
.pt-2 { padding-top: var(--kh-space-md) !important; }
.pt-3 { padding-top: var(--kh-space-lg) !important; }
.pt-4 { padding-top: var(--kh-space-xl) !important; }
.pt-5 { padding-top: var(--kh-space-2xl) !important; }

/* Text */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--kh-primary) !important; }
.text-secondary { color: var(--kh-secondary) !important; }
.text-white { color: var(--kh-white) !important; }
.text-muted { color: var(--kh-gray-600) !important; }

/* Backgrounds */
.bg-primary { background: var(--kh-primary) !important; }
.bg-gradient { background: var(--kh-primary-gradient) !important; }
.bg-white { background: var(--kh-white) !important; }
.bg-light { background: var(--kh-gray-50) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--kh-space-md) var(--kh-space-xl);
    border-radius: var(--kh-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--kh-transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--kh-primary-gradient);
    color: var(--kh-white);
    box-shadow: var(--kh-shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--kh-shadow-xl);
}

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

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

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

/* Screen Reader Only */
.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;
}

/* Print Styles */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .mega-search-section,
    .mobile-bottom-nav {
        display: none !important;
    }
}