/* Mjengo Hub - Build Smart CSS */

/* Design System - CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary-blue: #4A90E2;
  --primary-orange: #ff6b35;
  --primary-dark: #2c3e50;
  
  /* Secondary Colors */
  --secondary-blue: #357abd;
  --secondary-orange: #f7931e;
  --secondary-gray: #f8f9fa;
  
  /* Semantic Colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --info: #17a2b8;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes (Mobile-First) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Responsive Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-base: 0.5rem; /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: var(--leading-normal);
    color: var(--primary-dark);
    background-color: var(--secondary-gray);
    font-size: var(--text-base);
}

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Bloomberg-Inspired Article Typography */
.article-content {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--gray-800);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.article-content h1 { font-size: var(--text-3xl); }
.article-content h2 { font-size: var(--text-2xl); }
.article-content h3 { font-size: var(--text-xl); }
.article-content h4 { font-size: var(--text-lg); }

.article-content p {
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: var(--space-6);
    margin: var(--space-8) 0;
    font-style: italic;
    color: var(--gray-700);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
}

.article-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.article-content a:hover {
    color: var(--secondary-blue);
}

/* Responsive Image System - Prevent Horizontal Scrolling */
img {
    max-width: 100%;
    height: auto;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-base);
    margin: var(--space-8) 0;
}

/* Responsive Media Elements */
iframe,
embed,
object,
video {
    max-width: 100%;
    height: auto;
}

/* Responsive Video Containers */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Tables */
.table-container {
    overflow-x: auto;
    margin: var(--space-4) 0;
}

table {
    width: 100%;
    min-width: 600px; /* Minimum width before horizontal scroll */
    border-collapse: collapse;
}

/* Image Gallery Responsive */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-base);
}

/* Lazy Loading Styles */
.lazy {
    opacity: 0;
    transition: opacity var(--transition-base);
    background: var(--gray-200);
}

.lazy-loaded {
    opacity: 1;
}

/* Loading Placeholder */
.image-placeholder {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Image Containers */
.responsive-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-base);
}

.responsive-image-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.responsive-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content code {
    background: var(--gray-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--gray-100);
    padding: var(--space-4);
    border-radius: var(--radius-base);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Navigation Styles - Clean Implementation */
.desktop-nav {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: var(--font-semibold);
    font-size: var(--text-xl);
}

.brand-logo {
    height: 55px; /* Increased from 45px for better visibility */
    width: auto;
    margin-right: var(--space-4); /* Increased spacing */
    /* Enhanced logo visibility with subtle outline */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) brightness(1.05);
    transition: filter var(--transition-base);
}

.brand-logo:hover {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2)) brightness(1.1);
    transform: scale(1.02);
}

.brand-icon {
    font-size: var(--text-3xl);
    margin-right: var(--space-2);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
    justify-content: center;
    margin: 0 var(--space-4);
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    padding: var(--space-2) var(--space-3);
    position: relative;
    border-radius: var(--radius-base);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.05); /* Subtle background on hover */
    transform: translateY(-1px);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
    animation: slideIn var(--transition-base);
}

/* Contact button styling */
.nav-link[href*="contact"] {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: white !important;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

/* Authentication button styling */
.signin-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.signin-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #2968a3 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.nav-link[href*="contact"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.nav-link[href*="contact"]:hover::after {
    display: none;
}

/* Cart Icon Styles */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-orange);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-count:empty {
    display: none;
}

/* Mobile Navigation Styles */
.mobile-nav-wrapper {
    display: none;
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6); /* Increased padding */
    height: 70px; /* Fixed height for consistency */
}

.mobile-brand {
    display: flex;
    align-items: center;
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mobile-brand:hover {
    opacity: 0.8;
    color: #2c3e50;
    text-decoration: none;
}

.mobile-brand:visited {
    color: #2c3e50;
}

.mobile-brand-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #eee;
}

.mobile-nav-menu.show {
    display: flex;
}

.mobile-nav-link {
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #4A90E2;
}

.mobile-nav-link.contact-btn {
    background: #ff6b35;
    color: white !important;
    font-weight: 600;
    margin: 0.5rem 1rem;
    border-radius: 25px;
    text-align: center;
}

.mobile-nav-link.contact-btn:hover {
    background: #e55a2b;
    color: white !important;
}

/* Mobile Authentication button styling */
.mobile-nav-link.signin-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white !important;
    font-weight: 600;
    margin: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.mobile-nav-link.signin-btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    color: white !important;
}

/* Alerts Section Styling */
.alerts-section {
    padding: 3rem 0;
}

.alerts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ddd;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.alert-card.alert-info {
    border-left-color: #17a2b8;
}

.alert-card.alert-success {
    border-left-color: #28a745;
}

.alert-card.alert-warning {
    border-left-color: #ffc107;
}

.alert-card.alert-error {
    border-left-color: #dc3545;
}

.alert-card.alert-announcement {
    border-left-color: #6f42c1;
}

.alert-header {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.alert-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.alert-date {
    color: #666;
    font-size: 0.9rem;
}

.alert-priority {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.alert-dismiss {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.alert-dismiss:hover {
    background: #f8f9fa;
    color: #666;
}

.alert-message {
    padding: 0 1.5rem 1.5rem 4rem;
}

.alert-message p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.6;
}

.alert-action-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.alert-action-btn:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
}

/* Alert Interactions Styling */
.alert-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.alert-voting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vote-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.upvote-btn:hover {
    color: #28a745;
    border-color: #28a745;
}

.downvote-btn:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.vote-btn.active.upvote-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.vote-btn.active.upvote-btn {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.vote-btn.active.downvote-btn {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.net-votes {
    font-weight: var(--font-bold);
    color: var(--gray-700);
    padding: 0 var(--space-2);
    font-size: var(--text-base);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    min-width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Voting System */
.voting-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background: white;
    border: 2px solid var(--gray-200);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    min-height: 36px;
}

.vote-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.upvote-btn:hover {
    color: var(--success);
    border-color: var(--success);
}

.downvote-btn:hover {
    color: var(--error);
    border-color: var(--error);
}

.vote-count {
    font-weight: var(--font-medium);
    min-width: 20px;
    text-align: center;
}

/* Vote Feedback Animation */
.vote-feedback {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-base);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    z-index: 1000;
    animation: voteSlideUp 0.3s ease;
}

@keyframes voteSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Professional Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-base);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-paragraph {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-paragraph:last-child {
    width: 80%;
}

.skeleton-image {
    height: 200px;
    margin-bottom: var(--space-4);
}

.skeleton-card {
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

/* Micro-interactions */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
}

.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-2);
}

/* Notification System */
.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-blue);
    z-index: var(--z-modal);
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.error {
    border-left-color: var(--error);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.notification-title {
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notification-message {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-base);
    font-size: var(--text-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-tooltip);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--primary-dark);
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Professional Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--primary-dark);
}

.badge-error {
    background: var(--error);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* Additional Animations */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

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

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

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Mobile Touch Interactions */
@media (max-width: 768px) {
    .btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve touch targets */
    .nav-link,
    .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better mobile form inputs */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: var(--radius-base);
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .mobile-nav-wrapper,
    .footer,
    .btn,
    .vote-btn,
    .notification {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card,
    .article-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --primary-orange: #cc4400;
        --gray-600: #333333;
        --gray-500: #666666;
    }
    
    .card,
    .btn,
    .form-input {
        border-width: 2px !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-skeleton {
        animation: none;
        background: var(--gray-200);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #ffffff;
        --secondary-gray: #1a1a1a;
        --gray-50: #2a2a2a;
        --gray-100: #333333;
        --gray-200: #404040;
    }
    
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .card,
    .form-input,
    .btn-secondary {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
}



/* Responsive design for alerts */
@media (max-width: 768px) {
    .alerts-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 1rem;
    }

    .alert-header {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .alert-message {
        padding: 0 1rem 1rem 3rem;
    }

    .alert-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .alert-title {
        font-size: 1rem;
    }

    .alert-interactions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .alert-voting {
        justify-content: center;
    }


}

@media (max-width: 480px) {
    .alerts-container {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
        gap: 1rem;
    }
}

.mobile-nav-link.mobile-sub-item {
    padding-left: 2rem;
    background: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    border-left: 3px solid #ff6b35;
}

.mobile-nav-link.mobile-sub-item:hover {
    background: #f1f3f4;
    color: #4A90E2;
}

.mobile-dropdown-toggle {
    position: relative;
}

.mobile-dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    float: right;
}

.mobile-dropdown-toggle.active::after {
    transform: rotate(180deg);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-wrapper {
        display: block;
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}



/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Homepage Styles */
.hero-section {
    /* Fallback gradient background */
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    /* Hero image with gradient overlay */
    background:
        linear-gradient(135deg, rgba(74, 144, 226, 0.7) 0%, rgba(46, 91, 186, 0.7) 100%),
        url('/static/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    min-height: 300px;
    max-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #2E5BBA;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styles - Mobile First */
.section {
    padding: var(--space-8) 0; /* Mobile: 32px */
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4); /* Mobile: 16px */
}

.section-title {
    font-size: var(--text-2xl); /* Mobile: 24px */
    font-weight: var(--font-semibold);
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--gray-600);
}

/* Desktop Section Improvements */
@media (min-width: 768px) {
    .section {
        padding: var(--space-12) 0; /* Desktop: 48px */
    }
    
    .section-container {
        padding: 0 var(--space-6); /* Desktop: 24px */
    }
    
    .section-title {
        font-size: var(--text-3xl); /* Desktop: 30px */
        margin-bottom: var(--space-8);
    }
    
    .section-subtitle {
        font-size: var(--text-lg); /* Desktop: 18px */
        margin-bottom: var(--space-10);
    }
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* Responsive Grid Utilities */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Spacing Utilities */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Content Organization Utilities */
.content-section {
    margin-bottom: var(--space-12);
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: var(--space-12) 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Improved Comment Section Spacing */
.comments-section {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

.comment-item {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-base);
    background: var(--gray-50);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-semibold);
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-1);
}

.comment-date {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.comment-content {
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
}

/* Professional Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.article-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.article-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: var(--leading-normal);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

/* Mobile Article Optimizations */
@media (max-width: 768px) {
    .article-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-3);
    }
    
    .article-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .comments-section {
        margin-top: var(--space-6);
        padding-top: var(--space-6);
    }
    
    .comment-item {
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--radius-base);
    padding: var(--space-6);
    box-shadow: var(--shadow-base);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Service cards with background images */
.card.service-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dark overlay for better text readability */
.card.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Ensure content is above the overlay */
.card.service-card>* {
    position: relative;
    z-index: 2;
}

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

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

.card-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    display: block;
}

.card-icon-img {
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: center;
}

.service-icon-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* Additional Card Variants */
.card-news {
    border-left: 4px solid var(--primary-blue);
}

.card-article {
    border-left: 4px solid var(--primary-orange);
}

.card-review {
    border-left: 4px solid var(--success);
}

.card-product {
    border-left: 4px solid var(--secondary-orange);
}

/* Card with image */
.card-with-image {
    padding: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: var(--space-6);
}

/* Compact card variant */
.card-compact {
    padding: var(--space-4);
    min-height: auto;
}

/* Card header and footer */
.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide the small service icon image when using background */
.card.service-card .card-icon-img,
.card.service-card .card-icon {
    display: none;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--primary-dark);
}

.card.service-card .card-title {
    color: white;
    font-weight: var(--font-bold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.card-description {
    color: var(--gray-600);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
}

.card.service-card .card-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Button styling for service cards */
.card.service-card .btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border: none;
    font-weight: var(--font-semibold);
    margin-top: var(--space-2);
    margin-right: var(--space-2);
    backdrop-filter: blur(10px);
}

.card.service-card .btn:hover {
    background: white;
    transform: translateY(-1px);
}

/* Enhanced Card Variants */
.card-compact {
    padding: var(--space-4);
    min-height: auto;
}

.card-elevated {
    box-shadow: var(--shadow-lg);
}

.card-bordered {
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.card-rounded {
    border-radius: var(--radius-lg);
}

/* Professional Card Grid Layouts */
.cards-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .cards-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
}

.card-actions .btn {
    flex: 1;
    text-align: center;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.card-header-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin: 0;
}

.card-header-action {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--primary-orange);
    color: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    z-index: 3;
}

/* Modern Icon System */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

/* Icon Sizes */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-base { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 48px; height: 48px; }

/* Icon Colors */
.icon-primary { color: var(--primary-blue); }
.icon-secondary { color: var(--primary-orange); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-error { color: var(--error); }
.icon-muted { color: var(--gray-500); }

/* Icon with Text */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.icon-text .icon {
    flex-shrink: 0;
}

/* Service Icons */
.service-icon {
    width: var(--space-12);
    height: var(--space-12);
    padding: var(--space-3);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.service-icon .icon {
    width: var(--space-6);
    height: var(--space-6);
    color: var(--primary-blue);
}

/* Navigation Icons */
.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-2);
}

/* Button Icons */
.btn .icon {
    margin-right: var(--space-2);
}

.btn .icon:only-child {
    margin-right: 0;
}

/* Card Icons */
.card-icon-modern {
    width: var(--space-10);
    height: var(--space-10);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.card-icon-modern .icon {
    width: var(--space-5);
    height: var(--space-5);
    color: white;
}

/* YouTube Video Cards */
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.video-card-modern {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    height: 310px;
    display: flex;
    flex-direction: column;
}

.video-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.video-card-modern:hover .video-play-overlay {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration-badge {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.video-content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
    color: var(--primary-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.video-description {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-3);
    line-height: var(--leading-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    margin-top: auto;
}

.video-category-badge {
    background: var(--gray-100);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-weight: var(--font-medium);
}

.video-date {
    color: var(--gray-400);
    font-size: var(--text-xs);
}

/* Responsive Video Grid */
@media (max-width: 768px) {
    .video-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .video-card-modern {
        height: 360px;
    }
    
    .video-thumbnail-container {
        height: 140px;
    }
    
    .video-content {
        padding: var(--space-3);
    }
    
    .video-title {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
        -webkit-line-clamp: unset;
        max-height: unset;
        overflow: visible;
    }
    
    .video-description {
        display: none;
    }
    
    .video-date {
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .video-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.news-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.news-summary {
    color: #666;
    margin-bottom: 1rem;
}

.news-date {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button Styles */
.btn {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-base);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

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

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

.btn-secondary:hover {
    background: var(--gray-700);
}

/* Button Sizes */
.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    min-height: 36px;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    min-height: 52px;
}

/* Button Variants */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

/* Enhanced Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-blue);
    border: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--secondary-blue);
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-icon .icon {
    width: 16px;
    height: 16px;
}

/* Disabled button state */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading button state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Professional Form Styles */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-base);
    font-size: var(--text-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input:invalid {
    border-color: var(--error);
}

.form-input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-2) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-8);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

.form-help {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Professional Card Enhancements */
.card-professional {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card-professional:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-feature {
    text-align: center;
    padding: var(--space-8);
}

.card-feature .icon {
    width: var(--space-12);
    height: var(--space-12);
    margin: 0 auto var(--space-4);
    color: var(--primary-blue);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-4);
    text-align: center;
}

.stat-item {
    padding: var(--space-4);
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-1);
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.analytics-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-200);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.analytics-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
}

.analytics-icon {
    width: var(--space-8);
    height: var(--space-8);
    background: var(--primary-blue);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.analytics-metric {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
}

.analytics-change {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.analytics-change.positive {
    color: var(--success);
}

.analytics-change.negative {
    color: var(--error);
}

.analytics-change.neutral {
    color: var(--gray-500);
}

.analytics-period {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-6);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.chart-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
}

.chart-filters {
    display: flex;
    gap: var(--space-2);
}

.chart-filter {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-base);
    background: white;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.chart-filter:hover,
.chart-filter.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-50);
    padding: var(--space-4);
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
}

.data-table tr:hover {
    background: var(--gray-50);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Analytics Optimizations */
@media (max-width: 768px) {
    .analytics-dashboard {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .analytics-card {
        padding: var(--space-4);
    }
    
    .analytics-metric {
        font-size: var(--text-2xl);
    }
    
    .chart-container {
        padding: var(--space-4);
    }
    
    .chart-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
    
    .chart-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .data-table {
        font-size: var(--text-sm);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-2);
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Newsletter Signup */
.newsletter-signup {
    margin-top: 1.5rem;
}

.newsletter-signup h4 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.newsletter-signup p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #34495e;
    color: white;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: #bbb;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: #3c5a78;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background: #e55a2b;
}

.newsletter-name-field {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.newsletter-name-field.show {
    display: block;
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
}

.social-links a:hover {
    transform: translateY(-2px) scale(1.2);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Official Social Media Brand Colors */
.social-links a[href*="linkedin"] {
    color: #0077B5;
}

.social-links a[href*="facebook"] {
    color: #1877F2;
}

.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
    color: #1DA1F2;
}

.social-links a[href*="instagram"] {
    color: #E4405F;
}

.social-links a[href*="youtube"] {
    color: #FF0000;
}

.social-links a[href*="tiktok"] {
    color: #000000;
}

.social-links a[href*="whatsapp"] {
    color: #25D366;
}

/* Contact Info */
.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff6b35;
}

/* Mobile Apps Section */
.mobile-apps {
    margin-top: 0.5rem;
}

.app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-badge {
    position: relative;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.app-badge.coming-soon {
    cursor: not-allowed;
}

.app-badge-img {
    width: 135px;
    height: 40px;
    border-radius: 5px;
}

.coming-soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-description {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #bbb;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 1px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links-list a:hover {
    color: var(--primary-orange);
    padding-left: 0.5rem;
}

.footer-links-list a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.footer-links-list a:hover::before {
    width: 0.25rem;
}

/* Contact Section */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-orange);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-details {
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-details strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-orange);
}

/* Footer CTA */
.footer-cta {
    margin-top: 1rem;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.footer-cta-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-icon {
    width: 16px;
    height: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: #bbb;
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-orange);
}

.footer-credits p {
    margin: 0;
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Official Social Media Brand Colors - Default State */
.social-links a[href*="linkedin"] {
    color: #0077B5;
}

.social-links a[href*="facebook"] {
    color: #1877F2;
}

.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
    color: #1DA1F2;
}

.social-links a[href*="instagram"] {
    color: #E4405F;
}

.social-links a[href*="youtube"] {
    color: #FF0000;
}

.social-links a[href*="tiktok"] {
    color: #000000;
}

/* Hover Effect - Scale Up */
.social-links a:hover {
    transform: translateY(-2px) scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #bbb;
}

/* Mobile Apps Section */
.mobile-apps {
    margin-top: 0.5rem;
}

.app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-badge {
    position: relative;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.app-badge.coming-soon {
    cursor: not-allowed;
}

.app-badge-img {
    width: 135px;
    height: 40px;
    border-radius: 5px;
}

.coming-soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-description {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.4;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
    /* Container and Layout */
    .section-container {
        padding: 0 var(--space-4);
    }

    /* Grid Adjustments */
    .grid {
        gap: var(--space-4);
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Card Mobile Optimizations */
    .card {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }

    /* Typography Mobile Adjustments */
    .section-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }

    .section-subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--space-6);
    }
    
    .card-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }
    
    .card-description {
        font-size: var(--text-sm);
    }

    /* Touch Target Improvements */
    .btn {
        min-height: 48px; /* Increased for better touch targets */
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Form Mobile Optimizations */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-3);
        border-radius: var(--radius-base);
    }

    /* Table Responsiveness */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: var(--text-sm);
    }
    
    th,
    td {
        padding: var(--space-2);
        white-space: nowrap;
    }

    /* Reduce margins between sections */
    .calculator-embed {
        margin: 1.5rem 0;
    }

    /* Reduce news grid margins */
    .news-grid {
        margin-bottom: 1.2rem;
    }

    /* Reduce youtube grid margins */
    .youtube-grid {
        margin-bottom: 1.2rem;
    }

    /* Reduce section CTA margins */
    .section-cta {
        margin-top: 1.2rem;
    }

    /* Reduce featured article margins */
    .featured-news {
        margin-bottom: 1.5rem;
    }

    /* Reduce category section padding */
    .category-section {
        padding: 1.2rem;
    }

    /* Reduce category header margins */
    .category-header {
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }

    /* Mobile font size reductions for main headings */
    .hero-title {
        font-size: 1.6rem;
    }

    /* Reduce other large title font sizes */

    /* Reduce featured title sizes */
    .featured-title {
        font-size: 0.84rem;
    }

    /* Reduce video and card title sizes */
    .video-title,
    .card-title {
        font-size: 0.6rem;
    }

    /* Reduce category title sizes */
    .category-title {
        font-size: 0.72rem;
    }

    /* Reduce playlist title sizes */
    .playlist-title {
        font-size: 0.66rem;
    }

    /* Reduce job title sizes */
    .job-title {
        font-size: 0.66rem;
    }

    /* Reduce news title sizes */
    .news-title {
        font-size: 0.66rem;
    }

    /* Reduce search results title */
    .search-results-title {
        font-size: 0.84rem;
    }

    /* Reduce form section titles */
    .form-section-title {
        font-size: 0.72rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {

    /* Even tighter spacing for very small screens */
    .section {
        padding: 1rem 0;
    }

    .hero-section {
        padding: 1rem 0;
    }

    .section-title {
        font-size: 0.84rem;
        margin-bottom: 0.6rem;
    }

    .section-subtitle {
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-actions {
        margin-top: 1.2rem;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 0.8rem;
    }

    /* Reduce gaps further */
    .grid {
        gap: 0.6rem;
    }

    /* Tighter spacing for specific sections */
    .featured-news {
        margin-bottom: 1rem;
    }

    .news-grid {
        margin-bottom: 1rem;
    }

    .youtube-grid {
        margin-bottom: 1rem;
    }

    .section-cta {
        margin-top: 1rem;
    }

    .category-section {
        padding: 1rem;
    }

    .category-header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }

    /* Reduce alert section spacing */
    .alerts-section {
        padding: 1rem 0;
    }

    /* Reduce services section spacing */
    .services-grid-7 {
        gap: 0.6rem;
    }

    /* Reduce spacing between service cards and text */
    .card-icon {
        margin-bottom: 0.5rem;
    }

    .card-icon-img {
        margin-bottom: 0.5rem;
    }

    .card-title {
        margin-bottom: 0.5rem;
    }

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .footer-section h3 {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }

    .footer-section ul li {
        padding: 0.25rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .app-store-badges {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form {
        gap: 0.5rem;
    }

    .newsletter-input,
    .newsletter-btn {
        padding: 0.6rem;
    }
}
}

/* Enha
nced Homepage Styles */

/* Hero Section Enhancements */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #ff6b35;
}

/* News Section Styles */
.news-section {
    background: #f8f9fa;
}

.featured-news {
    margin-bottom: 3rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.featured-image {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    min-height: 300px;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-summary {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a2b;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: center;
    align-items: start;
}

.news-card.small {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 280px;
}

.news-image.small {
    height: 120px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
}

.news-title.small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.news-summary.small {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* YouTube Section Styles */
.youtube-section {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 107, 53, 1);
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.video-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.video-category {
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.watch-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.watch-link:hover {
    color: #e55a2b;
}

/* Categories Section Styles */
.categories-section {
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.category-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.report-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.report-link:hover {
    color: #e55a2b;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-article {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
    transition: background 0.3s ease;
}

.mini-article:hover {
    background: #f1f3f4;
}

.mini-article h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mini-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mini-article h4 a:hover {
    color: #ff6b35;
    text-decoration: none;
}

.mini-article p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-date {
    font-size: 0.8rem;
    color: #999;
}

/* Category Read More Link Styles */
.category-read-more {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.category-read-more-link {
    display: inline-flex;
    align-items: center;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.category-read-more-link:hover {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Section CTA Styles */
.section-cta {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 200px;
        font-size: 2rem;
    }

    .featured-content {
        padding: 0.75rem;
    }

    .featured-badge {
        margin-bottom: 0.25rem;
    }

    .featured-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 1rem;
    }
    
    .news-card.small {
        max-width: none;
        min-height: auto;
    }

    .youtube-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .category-section {
        padding: 1.5rem;
    }

    .mini-article {
        padding: 0.8rem;
    }
}

/* 
Enhanced Footer Styles */
.newsletter-signup {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.newsletter-signup h4 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.newsletter-signup p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: #34495e;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #bbb;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.newsletter-name-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.newsletter-name-field.show {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
    margin-bottom: 0.5rem;
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.newsletter-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.newsletter-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.newsletter-success {
    background: #27ae60;
    color: white;
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.newsletter-error {
    background: #e74c3c;
    color: white;
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #bbb;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ff6b35;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    flex-direction: column;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

/* Mobile Footer Enhancements */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        margin-bottom: 0.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Homepa
ge Calculator Embed Styles */
.tools-section {
    background: #f8f9fa;
}

.calculator-embed {
    margin: 3rem 0;
}

.calculator-container.homepage {
    max-width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.calculator-container.homepage .calculator-header {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.calculator-container.homepage .calculator-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calculator-container.homepage .calculator-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.calculator-container.homepage .form-container {
    padding: 2rem;
}

.calculator-container.homepage .input-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.calculator-container.homepage .section-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.calculator-container.homepage .radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.calculator-container.homepage .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.calculator-container.homepage .radio-option input[type="radio"] {
    transform: scale(1.1);
}

.calculator-container.homepage .input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.calculator-container.homepage .input-group.two-column {
    grid-template-columns: 1fr 1fr;
}

.calculator-container.homepage .input-group.three-column {
    grid-template-columns: 1fr 1fr 1fr;
}

.calculator-container.homepage .input-field {
    display: flex;
    flex-direction: column;
}

.calculator-container.homepage .input-field label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.calculator-container.homepage .input-field input,
.calculator-container.homepage .input-field select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.calculator-container.homepage .input-field input:focus,
.calculator-container.homepage .input-field select:focus {
    outline: none;
    border-color: #ff6b35;
}

.calculator-container.homepage .calculate-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.calculator-container.homepage .calculate-btn:hover {
    transform: translateY(-2px);
}

.calculator-container.homepage .results {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2d5a27;
}

.calculator-container.homepage .results-title {
    font-size: 1.3rem;
    color: #2d5a27;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-container.homepage .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (min-width: 900px) {
    .calculator-container.homepage .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calculator-container.homepage .material-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator-container.homepage .material-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.calculator-container.homepage .material-details {
    list-style: none;
}

.calculator-container.homepage .material-details li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.calculator-container.homepage .material-details li:last-child {
    border-bottom: none;
}

.calculator-container.homepage .project-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator-container.homepage .error {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.calculator-container.homepage .loading {
    text-align: center;
    padding: 1.5rem;
}

.calculator-container.homepage .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Other Tools Section */
.other-tools {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #eee;
}

/* Mobile Responsive for Homepage Calculator */
@media (max-width: 768px) {
    .calculator-container.homepage .form-container {
        padding: 1.5rem;
    }

    .calculator-container.homepage .calculator-header {
        padding: 1.5rem;
    }

    .calculator-container.homepage .calculator-header h3 {
        font-size: 1.5rem;
    }

    .calculator-container.homepage .input-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .calculator-container.homepage .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .calculator-container.homepage .input-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .calculator-container.homepage .input-group.two-column {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .calculator-container.homepage .input-group.three-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.8rem;
    }

    .calculator-container.homepage .input-group.three-column .input-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .calculator-container.homepage .input-field input,
    .calculator-container.homepage .input-field select {
        padding: 0.75rem 0.5rem;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .calculator-container.homepage .calculate-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .calculator-container.homepage .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calculator-container.homepage .material-card {
        padding: 1rem;
    }

    .calculator-container.homepage .project-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .calculator-container.homepage .input-group.two-column {
        grid-template-columns: 1fr;
    }

    .calculator-container.homepage .calculator-header h3 {
        font-size: 1.3rem;
    }

    .calculator-container.homepage .input-field input,
    .calculator-container.homepage .input-field select {
        padding: 1rem 0.75rem;
    }
}

/* Corp
orate Section Styles */
.corporate-section {
    padding: 3rem 0;
    background: #f8f9fa;
    border-top: 3px solid #2c3e50;
}

.corporate-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.corporate-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: left;
}

.view-all-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #4A90E2;
}

.corporate-layout {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Featured Article (Left Column) */
.corporate-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.corporate-featured:hover {
    transform: translateY(-3px);
}

.corporate-featured .article-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.corporate-featured .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.corporate-featured .image-placeholder p {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.corporate-featured .article-content {
    padding: 1.5rem;
}

.corporate-featured .article-category-badge {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-block;
}

.corporate-featured .featured-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.corporate-featured .article-meta {
    color: #666;
    font-size: 0.85rem;
}

/* Middle Column Articles */
.corporate-middle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.corporate-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    gap: 1rem;
}

.corporate-item:hover {
    transform: translateY(-2px);
}

.corporate-item .article-image-small {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.corporate-item .article-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corporate-item .image-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.corporate-item .article-content-small {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.corporate-item .article-category-badge {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: fit-content;
}

.corporate-item .prime-badge {
    background: #2c5aa0;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    display: inline-block;
}

.corporate-item .corporate-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.corporate-item .corporate-meta {
    color: #666;
    font-size: 0.75rem;
}

/* Right Column Articles */
.corporate-right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.corporate-item-small {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border-left: 3px solid #f8f9fa;
}

.corporate-item-small:hover {
    transform: translateY(-1px);
    border-left-color: #4A90E2;
}

.corporate-item-small .prime-badge {
    background: #2c5aa0;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.corporate-item-small .corporate-title-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.corporate-item-small .corporate-meta-small {
    color: #666;
    font-size: 0.7rem;
}

/* Responsive Design for Corporate Section */
@media (max-width: 1024px) {
    .corporate-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 1.5rem;
    }

    .corporate-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .corporate-section {
        padding: 2rem 0;
    }

    .corporate-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .corporate-featured .article-image {
        height: 200px;
    }

    .corporate-featured .featured-title {
        font-size: 1.2rem;
    }

    .corporate-middle {
        gap: 1rem;
    }

    .corporate-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .corporate-item .article-image-small {
        width: 70px;
        height: 50px;
    }

    .corporate-item .corporate-title {
        font-size: 0.9rem;
    }

    .corporate-right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0;
    }

    .corporate-item-small {
        padding: 0.8rem;
    }

    .corporate-item-small .corporate-title-small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .corporate-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .corporate-section .section-title {
        font-size: 1.5rem;
    }

    .corporate-featured .article-content {
        padding: 1rem;
    }

    .corporate-featured .featured-title {
        font-size: 1.1rem;
    }

    .corporate-item {
        flex-direction: column;
        gap: 0.8rem;
    }

    .corporate-item .article-image-small {
        width: 100%;
        height: 120px;
    }

    .corporate-item .corporate-title {
        font-size: 0.95rem;
    }
}

/ * Corporate Person Avatar Styles */ .corporate-person {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef;
}

.person-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 50%;
    margin: 4px;
}

.person-avatar span {
    font-size: 1.8rem;
    filter: grayscale(20%);
}

/* Enhanced styling for corporate items with avatars */
.corporate-item .article-image-small {
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

/* Articles page image size constraints */
.trending-avatar2 {
    width: 25% !important;
    height: auto !important;
    min-width: 25% !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    overflow: hidden;
    border-radius: 8px;
}

.trending-avatar2 img {
    width: 100% !important;
    height: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.trending-featured .article-image {
    position: relative;
    height: 280px;
    max-height: 280px;
    overflow: hidden;
}

.trending-featured .article-image img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
}

/* General image size constraints for articles page */
.trending-section img,
.articles-hero-section img,
.breaking-news-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure featured images don't exceed container bounds */
.trending-layout img {
    max-width: 100%;
    object-fit: cover;
}

.corporate-item .image-placeholder-small.corporate-person {
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
}

.corporate-item .person-avatar {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    margin: 4px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

/* Responsive adjustments for avatars */
@media (max-width: 768px) {
    .corporate-item .person-avatar span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .corporate-item .person-avatar span {
        font-size: 1.3rem;
    }
}

/* Trend
ing Section Avatar Styles */
.trending-item {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trending-item:hover {
    transform: translateY(-2px);
}

.trending-content {
    flex: 1;
}

.trending-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

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

.trending-placeholder-avatar {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-placeholder-avatar .person-avatar {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.trending-placeholder-avatar .person-avatar span {
    font-size: 1.2rem;
    filter: grayscale(10%);
}

/* Ensure trending titles and meta are properly styled */
.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.trending-meta {
    color: #666;
    font-size: 0.8rem;
}

/* Responsive adjustments for trending avatars */
@media (max-width: 768px) {
    .trending-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .trending-avatar {
        width: 40px;
        height: 40px;
    }

    .trending-placeholder-avatar .person-avatar span {
        font-size: 1rem;
    }

    .trending-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .trending-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .trending-avatar {
        align-self: flex-end;
        margin-top: -2rem;
    }
}

/* F
ix Trending Section Category Badge Overlapping */
.trending-content {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.trending-content .article-category-badge {
    background: #e8f4f8;
    color: #2c5aa0;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.trending-content .prime-badge {
    background: #2c5aa0;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

/* Ensure proper spacing for trending titles */
.trending-content .trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    margin-top: 0;
    word-wrap: break-word;
    clear: both;
}

.trending-content .trending-meta {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    clear: both;
}

/* Badge container to prevent overlap */
.trending-badges {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Str
ong fix for trending badge and title overlap */
.trending-badges {
    margin-bottom: 1.2rem !important;
    display: block !important;
    width: 100%;
    clear: both;
}

.trending-badges .article-category-badge,
.trending-badges .prime-badge {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-right: 0.5rem;
    float: none !important;
}

.trending-content .trending-title {
    margin-top: 0.8rem !important;
    clear: both !important;
    display: block !important;
    width: 100%;
}

.trending-content .trending-meta {
    margin-top: 0.6rem !important;
    clear: both !important;
}

/* Ensure no floating elements interfere */
.trending-content::after {
    content: "";
    display: table;
    clear: both;
}

/ * Final fix for trending badge and title overlap - Maximum separation */ .trending-badges {
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    overflow: hidden !important;
}

.trending-content .trending-title {
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

.trending-content .trending-meta {
    margin-top: 0.8rem !important;
    padding-top: 0.3rem !important;
    clear: both !important;
    display: block !important;
}

/* Ensure badges stay in their container */
.trending-badges .article-category-badge,
.trending-badges .prime-badge {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 0.3rem !important;
    display: inline-block !important;
    float: none !important;
}

/* Force complete separation */
.trending-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
}

.trending-content>* {
    flex-shrink: 0 !important;
}

/ * Balanced spacing fix for trending section - Remove excessive spacing */ .trending-badges {
    margin-bottom: 0.6rem !important;
    padding-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.trending-content .trending-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0.4rem !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

.trending-content .trending-meta {
    margin-top: 0 !important;
    padding-top: 0 !important;
    clear: both !important;
    display: block !important;
}

/* Reduce flexbox gap */
.trending-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
}

/* Keep badges compact */
.trending-badges .article-category-badge,
.trending-badges .prime-badge {
    margin-bottom: 0 !important;
    display: inline-block !important;
    margin-right: 0.5rem;
}

/* Ad
just left margin and PRIME badge positioning for trending section */
.trending-content {
    padding-left: 0.8rem !important;
    padding-right: 0.5rem !important;
}

/* Reposition PRIME badge between category and avatar */
.trending-badges {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.trending-badges .badge-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-badges .prime-badge {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2 !important;
}

.trending-badges .article-category-badge {
    order: 1 !important;
    margin-right: 0 !important;
}

/* Mov
e avatar to align with article title */
.trending-item {
    align-items: flex-start !important;
}

.trending-avatar {
    margin-top: 1.8rem !important;
    /* Push avatar down to align with title */
    align-self: flex-start !important;
}

/* Fine-tune avatar positioning for better alignment */
@media (max-width: 768px) {
    .trending-avatar {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .trending-avatar {
        margin-top: 1.2rem !important;
    }
}

/* Ma
ke avatar bigger to span from title to meta information */
.trending-avatar {
    width: 70px !important;
    height: 70px !important;
    margin-top: 1.4rem !important;
    /* Adjust position for larger size */
}

.trending-placeholder-avatar .person-avatar {
    width: calc(100% - 6px) !important;
    height: calc(100% - 6px) !important;
    margin: 3px !important;
}

.trending-placeholder-avatar .person-avatar span {
    font-size: 1.8rem !important;
    /* Increase emoji size for larger avatar */
}

/* Responsive adjustments for larger avatars */
@media (max-width: 768px) {
    .trending-avatar {
        width: 60px !important;
        height: 60px !important;
        margin-top: 1.2rem !important;
    }

    .trending-placeholder-avatar .person-avatar span {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .trending-avatar {
        width: 55px !important;
        height: 55px !important;
        margin-top: 1rem !important;
    }

    .trending-placeholder-avatar .person-avatar span {
        font-size: 1.3rem !important;
    }
}

/*
 Square placeholder styles for trending and corporate sections */

/* Trending section square placeholders */
.trending-placeholder-square {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px !important;
    /* Square with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.trending-avatar {
    border-radius: 8px !important;
    /* Make container square */
}

/* Corporate section square placeholders */
.corporate-placeholder-square {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 6px !important;
    /* Square with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.corporate-item .article-image-small {
    border-radius: 6px !important;
    /* Make container square */
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

/* Responsive adjustments for square placeholders */
@media (max-width: 768px) {
    .trending-placeholder-square {
        font-size: 1.8rem;
        border-radius: 6px !important;
    }

    .corporate-placeholder-square {
        font-size: 1.3rem;
        border-radius: 4px !important;
    }
}

@media (max-width: 480px) {
    .trending-placeholder-square {
        font-size: 1.5rem;
        border-radius: 4px !important;
    }

    .corporate-placeholder-square {
        font-size: 1.1rem;
        border-radius: 3px !important;
    }
}

/* Mob
ile layout - one article per row */
@media (max-width: 768px) {

    /* Trending section mobile layout */
    .trending-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .trending-middle {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .trending-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 0 !important;
    }

    /* Corporate section mobile layout */
    .corporate-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .corporate-middle {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .corporate-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 0 !important;
    }

    /* Ensure trending items take full width on mobile */
    .trending-item {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    /* Ensure corporate items take full width on mobile */
    .corporate-item {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .corporate-item-small {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile adjustments */
    .trending-layout {
        gap: 1rem !important;
    }

    .corporate-layout {
        gap: 1rem !important;
    }

    .trending-middle {
        gap: 1rem !important;
    }

    .corporate-middle {
        gap: 1rem !important;
    }

    .trending-item {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .corporate-item {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .corporate-item-small {
        padding: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
}

/* 
Force Trending Now section to single column on mobile - Stronger rules */
@media (max-width: 768px) {

    /* Override trending layout completely */
    .trending-section .trending-layout {
        display: block !important;
        grid-template-columns: none !important;
    }

    .trending-section .trending-featured,
    .trending-section .trending-middle,
    .trending-section .trending-right {
        width: 100% !important;
        margin-bottom: 2rem !important;
        display: block !important;
    }

    /* Force trending middle items to stack vertically */
    .trending-section .trending-middle {
        display: block !important;
    }

    .trending-section .trending-middle .trending-item {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1.5rem !important;
    }

    /* Force trending right items to stack vertically */
    .trending-section .trending-right {
        display: block !important;
    }

    .trending-section .trending-right .trending-item-small {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {

    /* Extra mobile specificity */
    .trending-section .trending-layout {
        display: block !important;
    }

    .trending-section .trending-middle .trending-item,
    .trending-section .trending-right .trending-item-small {
        margin-bottom: 1rem !important;
    }
}

/* Mobile 
optimization for Industry Articles & Analysis and Breaking sections */

/* Breaking News Section Mobile Optimization */
@media (max-width: 768px) {
    .breaking-news-section {
        padding: 1rem 0 !important;
    }

    .breaking-news-container {
        padding: 0 1rem !important;
        margin: 0 !important;
    }

    .breaking-label {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        min-width: auto !important;
    }

    .breaking-content {
        padding: 0.8rem 1rem !important;
        gap: 0.8rem !important;
    }

    .breaking-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .breaking-link {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        white-space: nowrap !important;
    }
}

/* Industry Articles & Analysis Hero Section Mobile */
@media (max-width: 768px) {
    .articles-hero-section {
        padding: 2rem 0 !important;
    }

    .articles-hero-container {
        padding: 0 1rem !important;
    }

    .articles-hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .articles-hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-categories {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }

    .category-pill {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile adjustments */
    .breaking-news-section {
        padding: 0.8rem 0 !important;
    }

    .breaking-news-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .breaking-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
    }

    .breaking-text {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .breaking-link {
        align-self: flex-end !important;
    }

    .articles-hero-title {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    .articles-hero-subtitle {
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .hero-content {
        margin-bottom: 0.2rem !important;
    }

    .articles-hero-subtitle {
        margin-bottom: 0 !important;
    }

    .hero-categories {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0 0.5rem !important;
    }

    .category-pill {
        flex: 0 0 auto !important;
        min-width: auto !important;
        max-width: none !important;
        text-align: center !important;
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }
}

/* Card heights and spacing optimization for mobile */
@media (max-width: 768px) {

    /* General card adjustments */
    .card {
        padding: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .card-title {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
    }

    .card-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* News card mobile optimization */
    .news-card {
        margin-bottom: 1.5rem !important;
    }

    .news-image {
        height: 150px !important;
    }

    .news-content {
        padding: 1rem !important;
    }

    .news-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
    }

    .news-summary {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.8rem !important;
    }

    .news-date {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    .card-description {
        font-size: 0.85rem !important;
    }

    .news-image {
        height: 120px !important;
    }

    .news-content {
        padding: 0.8rem !important;
    }

    .news-title {
        font-size: 1rem !important;
    }

    .news-summary {
        font-size: 0.8rem !important;
    }
}

/* I
nfo Cards Section Styles */
.info-cards-section {
    padding: 3rem 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.info-cards-wrapper {
    position: relative;
}

/* Desktop Layout - 4 cards side by side */
.info-cards-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.info-cards-mobile {
    display: none;
}

/* Individual Info Card Styles */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: fit-content;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2 0%, #2E5BBA 100%);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Trending Now Card Styles */
.trending-card {
    background: white;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.trending-item-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.trending-item-info:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    background: #4A90E2;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.trending-content-info {
    flex: 1;
}

.trending-title-info {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.trending-meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Industry Newsletter Card Styles */
.newsletter-card {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    color: white;
}

.newsletter-card .info-card-title {
    color: white;
}

.newsletter-card .info-card-divider {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.newsletter-form-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input-info {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-input-info::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-info:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-btn-info {
    padding: 1rem;
    background: white;
    color: #4A90E2;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn-info:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.newsletter-note-info {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Article Categories Card Styles */
.categories-card {
    background: white;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.category-item-info:last-child {
    border-bottom: none;
}

.category-name {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.category-count {
    background: #4A90E2;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Popular Tags Card Styles */
.tags-card {
    background: white;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-item {
    background: #f1f3f4;
    color: #666;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-item:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-1px);
}

/* Mobile Layout - Infinite Sliding */
@media (max-width: 768px) {
    .info-cards-desktop {
        display: none;
    }

    .info-cards-mobile {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .info-cards-slider {
        display: flex;
        animation: infiniteSlide 15s linear infinite;
        gap: 1.5rem;
        scroll-behavior: smooth;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .info-cards-slider::-webkit-scrollbar {
        display: none;
    }

    .info-cards-slider .info-card {
        min-width: 280px;
        flex-shrink: 0;
        padding: 1.5rem;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    @keyframes infiniteSlide {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* Pause animation on hover */
    .info-cards-slider:hover {
        animation-play-state: paused;
    }

    /* Mobile card adjustments */
    .info-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .info-card-divider {
        margin-bottom: 1rem;
    }

    .trending-list {
        gap: 1rem;
    }

    .trending-item-info {
        gap: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .trending-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .trending-title-info {
        font-size: 0.9rem;
    }

    .trending-meta-info {
        font-size: 0.75rem;
        gap: 0.8rem;
    }

    .newsletter-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .newsletter-input-info,
    .newsletter-btn-info {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .category-item-info {
        padding: 0.6rem 0;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .category-count {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }

    .tag-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .info-cards-section {
        padding: 2rem 0;
    }

    .info-cards-slider .info-card {
        min-width: 260px;
        padding: 1.2rem;
    }

    .info-card-title {
        font-size: 1.1rem;
    }

    .trending-title-info {
        font-size: 0.85rem;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }
}

/* Clean mo
bile horizontal slider - no navigation buttons or dots */
@media (max-width: 768px) {
    .info-cards-mobile {
        display: block !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .info-cards-slider {
        display: flex !important;
        animation: infiniteSlide 15s linear infinite !important;
        gap: 1.5rem !important;
        scroll-behavior: smooth !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }

    .info-cards-slider::-webkit-scrollbar {
        display: none !important;
    }

    .info-cards-slider .info-card {
        min-width: calc(100vw - 0.5rem) !important;
        max-width: calc(100vw - 0.5rem) !important;
        flex-shrink: 0 !important;
        padding: 1.5rem !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        margin: 0 0.25rem !important;
    }

    /* Pause animation on touch/hover */
    .info-cards-slider:hover,
    .info-cards-slider.paused {
        animation-play-state: paused !important;
    }

    /* Hide any navigation elements */
    .slider-controls,
    .slider-progress {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .info-cards-slider .info-card {
        min-width: calc(100vw - 0.5rem) !important;
        max-width: calc(100vw - 0.5rem) !important;
        padding: 1.2rem !important;
        margin: 0 0.25rem !important;
    }
}

/* Re
move excessive margins/padding on mobile for info cards section */
@media (max-width: 768px) {
    .info-cards-section {
        padding: 2rem 0 !important;
    }

    .info-cards-section .section-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .info-cards-mobile {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .info-cards-slider {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* Desktop Navigation */
.desktop-nav {
    background: white;
    color: #2c3e50;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

.brand-logo {
    height: 36px !important;
    width: auto !important;
    margin-right: 0.4rem !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 140px !important;
}

.brand-icon {
    font-size: 1.5rem;
    margin-right: 0.4rem;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-link.contact-btn {
    background: #ff6b35;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link.contact-btn:hover {
    background: #e55a2b;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #4A90E2;
}

/* YouTube Section Styles */
.youtube-slider-container {
    position: relative;
    overflow: hidden;
}

.youtube-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    height: 460px;
    /* Increased by ~60px (3 lines) to accommodate full content */
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    /* Remove truncation - show full title */
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.video-category {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    color: #666;
}

.watch-link {
    color: #4A90E2;
    font-weight: 500;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #FF0000 !important;
    /* YouTube red - force override */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-btn-prev {
    left: 10px;
}

.slider-btn-next {
    right: 10px;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile YouTube Cards */
@media (max-width: 768px) {
    .youtube-slider {
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .video-card {
        width: 280px;
        /* Further reduced for optimal mobile viewing */
        height: 400px;
        /* Increased by ~40px (2 lines) to accommodate full titles */
    }

    .video-thumbnail {
        height: 300px;
        /* Significantly increased height to fill the white space */
    }

    .video-content {
        padding: 0.5rem 0.75rem;
        /* Reduced padding to minimize empty space */
        display: flex;
        flex-direction: column;
        height: 60px;
        /* Reduced content height to accommodate larger thumbnail */
        justify-content: space-between;
        /* Distribute space evenly */
    }

    .video-title {
        font-size: 0.95rem;
        /* Slightly smaller font */
        margin-bottom: 0.4rem;
        /* Reduced margin */
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .video-description {
        display: none;
        /* Hide description on mobile */
    }

    .video-meta {
        margin-top: 0;
        /* Remove auto margin */
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .video-category {
        font-size: 0.75rem;
        /* Smaller category text */
        padding: 0.2rem 0.6rem;
        /* Reduced padding */
    }

    .watch-link {
        font-size: 0.8rem;
        /* Smaller watch link */
    }

    .slider-btn {
        display: none;
        /* Hide navigation buttons on mobile */
    }
}

/* New YouTube Grid Section Styles */
.youtube-grid-container {
    position: relative;
    overflow: hidden;
}

/* Navigation buttons for YouTube grid */
.grid-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.grid-nav-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.grid-nav-btn-prev {
    left: -25px;
}

.grid-nav-btn-next {
    right: -25px;
}

/* Hide navigation buttons on mobile */
@media (max-width: 768px) {
    .grid-nav-btn {
        display: none;
    }
}

/* YouTube Subscribe Button Styling - Normal button styling */
.youtube-subscribe-btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.youtube-subscribe-btn:hover {
    transform: translateY(-2px);
}

/* Section CTA buttons layout */
.section-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Mobile responsive for CTA buttons */
@media (max-width: 768px) {
    .section-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

.youtube-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Hide scrollbar but keep functionality */
.youtube-grid::-webkit-scrollbar {
    display: none;
}

.youtube-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-grid-card-link {
    text-decoration: none;
    color: inherit;
}

.video-grid-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 310px;
    /* Increased by ~60px (3 lines) to accommodate full content */
    width: 280px;
    /* Fixed width for horizontal scrolling */
    flex-shrink: 0;
    /* Prevent cards from shrinking */
    display: flex;
    flex-direction: column;
}

.video-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-grid-thumbnail {
    position: relative;
    width: 100%;
    height: 150px;
    /* Reduced height to eliminate black sections */
    overflow: hidden;
    flex-shrink: 0;
}

.video-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.video-grid-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-grid-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #2c3e50;
    /* Remove truncation - show full title */
}

.video-grid-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: auto;
}

.video-grid-category {
    background: #f0f0f0;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    color: #666;
    font-weight: 500;
}

.video-grid-date {
    color: #999;
    font-size: 0.75rem;
}

.grid-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #FF0000 !important;
    /* YouTube red - force override */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-grid-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile YouTube Grid */
@media (max-width: 768px) {
    .youtube-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0.5rem 0;
        grid-template-columns: none;
        /* Override grid for mobile */
    }

    .video-grid-card {
        width: 240px;
        /* Fixed width for mobile - shows about 1.5 cards */
        height: 310px;
        /* Increased by ~40px (2 lines) to accommodate full titles */
        flex-shrink: 0;
    }

    .video-grid-thumbnail {
        height: 160px;
        /* Reduced height to eliminate black sections on mobile */
    }

    .video-grid-content {
        padding: 0.75rem;
    }

    .video-grid-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        /* Allow title to display on multiple lines to fill white space */
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        line-height: 1.3;
        height: auto;
        max-height: 4.68rem;
        /* 4 lines * 1.3 line-height * 0.9rem font-size */
    }

    .video-grid-description {
        display: none;
        /* Hide description on mobile */
    }

    .video-grid-meta {
        font-size: 0.75rem;
    }

    .video-grid-category {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .video-grid-date {
        font-size: 0.7rem;
    }

    /* Hide scrollbar but keep functionality */
    .youtube-grid::-webkit-scrollbar {
        display: none;
    }

    .youtube-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Mobile Navigation */
.mobile-nav-wrapper {
    display: none;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
    transition: opacity 0.3s ease;
}

.mobile-brand:hover {
    opacity: 0.8;
    color: #2c3e50;
    text-decoration: none;
}

.mobile-brand:visited {
    color: #2c3e50;
}

.mobile-brand-icon {
    font-size: 1.5rem;
}

.mobile-brand-text {
    color: #2c3e50;
}

.mobile-brand-logo {
    height: 35px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 120px !important;
}

.mobile-brand-fallback {
    font-size: 1.2rem;
    color: #2c3e50;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #f8f9fa;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 1rem 0 2rem 0;
}

.mobile-nav-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-section {
    margin-bottom: 1.5rem;
}

.mobile-nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #4A90E2;
    padding-left: 2rem;
}

.mobile-nav-link:active {
    background: #e9ecef;
}

.mobile-nav-cta {
    padding: 0.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem;
}

.mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #4A90E2;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.mobile-cta-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.mobile-cta-btn:active {
    transform: translateY(0);
}

/* Show desktop nav on desktop, mobile nav on mobile */
.desktop-nav {
    display: block;
}

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

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-wrapper {
        display: block;
    }

    /* Reduce mobile navigation header height */
    .mobile-nav-header {
        padding: 0.5rem 1rem;
    }

    .mobile-brand {
        font-size: 1.1rem;
    }

    .mobile-brand-logo {
        height: 30px;
    }

    /* Add padding to main content to account for fixed mobile nav */
    .main-content {
        padding-top: 60px;
    }

    /* Adjust hero section for mobile nav */
    .hero-section {
        margin-top: 0;
    }
}

/*
 Featured Articles Section */
.articles-section {
    padding: 2rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-card.featured-article {
    grid-column: span 2;
}

.article-image {
    position: relative;
    height: 200px;
    max-height: 200px;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
}

.article-placeholder {
    font-size: 3rem;
    opacity: 0.8;
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Featured article specific styles */
.article-card.featured-article .article-image {
    height: 250px;
}

.article-card.featured-article .article-title {
    font-size: 1.5rem;
}

.article-card.featured-article .article-excerpt {
    font-size: 1.1rem;
}

/* Mobile responsive for articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .article-card.featured-article {
        grid-column: span 2;
    }

    .article-image {
        height: 120px;
        max-height: 120px;
    }

    .article-image img {
        max-height: 120px;
    }

    .article-card.featured-article .article-image {
        height: 140px;
        max-height: 140px;
    }

    .article-card.featured-article .article-image img {
        max-height: 140px;
    }

    .trending-featured .article-image {
        height: 200px;
        max-height: 200px;
    }

    .trending-featured .article-image img {
        max-height: 200px;
    }

    .trending-avatar2 {
        width: 25% !important;
        max-width: 100px !important;
    }

    .trending-avatar2 img {
        height: 70px !important;
        max-height: 70px !important;
    }

    .article-content {
        padding: 0.8rem;
    }

    .article-title {
        font-size: 0.9rem;
    }

    .article-card.featured-article .article-title {
        font-size: 1rem;
    }

    .article-excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.3rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .article-card.featured-article {
        grid-column: span 2;
    }

    .article-image {
        height: 100px;
        max-height: 100px;
    }

    .article-image img {
        max-height: 100px;
    }

    .trending-featured .article-image {
        height: 150px;
        max-height: 150px;
    }

    .trending-featured .article-image img {
        max-height: 150px;
    }

    .trending-avatar2 {
        width: 30% !important;
        max-width: 80px !important;
    }

    .trending-avatar2 img {
        height: 60px !important;
        max-height: 60px !important;
    }

    .article-content {
        padding: 0.6rem;
    }

    .article-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .article-excerpt {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
}

/* Ser
vices Grid - 6 cards in one row on desktop */
.services-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

/* Mobile responsive for services grid */
@media (max-width: 1200px) {
    .services-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .services-grid-6 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Services Grid - 7 cards layout for all services */
.services-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

/* Mobile responsive for services grid with 7 items */
@media (max-width: 1400px) {
    .services-grid-7 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .services-grid-7 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .services-grid-7 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Services Page Grid - 3 cards per row layout */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Services Page Card Styling */
.services-page-card {
    min-height: 350px;
    padding: 1.5rem;
}

.services-page-card .card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.services-page-card .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Enhanced button styling for services page */
.services-page-card .btn {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    border: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-page-card .btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services-page-card .btn-primary {
    background: rgba(74, 144, 226, 0.9);
    color: white;
}

.services-page-card .btn-primary:hover {
    background: #4A90E2;
    color: white;
}

/* Mobile responsive for services page grid */
@media (max-width: 992px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page-card {
        min-height: 320px;
    }
}

@media (max-width: 576px) {
    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-page-card {
        min-height: 300px;
        padding: 1.2rem;
    }

    .services-page-card .card-actions {
        flex-direction: column;
    }

    .services-page-card .btn {
        width: 100%;
        text-align: center;
    }
}

/ * YouTube Horizontal Slider */ .youtube-slider-container {
    position: relative;
    margin: 2rem 0;
}

.youtube-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.youtube-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.video-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.video-card-link:visited {
    color: inherit;
}

.youtube-slider .video-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.video-card-link:hover .video-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.video-card-link:hover .play-button {
    background: rgba(255, 107, 53, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-slider .video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.play-button {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.video-content {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.video-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

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

.video-category {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.watch-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.watch-link:hover {
    text-decoration: underline;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #4A90E2;
    color: #4A90E2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: -20px;
}

.slider-btn-next {
    right: -20px;
}

/* Mobile responsive for YouTube slider */
@media (max-width: 768px) {
    .youtube-slider .video-card {
        flex: 0 0 240px;
    }

    .video-thumbnail {
        height: 140px;
    }

    .video-content {
        padding: 0.8rem;
    }

    .video-title {
        font-size: 0.9rem;
    }

    .video-description {
        font-size: 0.8rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slider-btn-prev {
        left: -15px;
    }

    .slider-btn-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .youtube-slider .video-card {
        flex: 0 0 200px;
    }

    .video-thumbnail {
        height: 120px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .slider-btn-prev {
        left: -10px;
    }

    .slider-btn-next {
        right: -10px;
    }
}

/* Service 
Card Enhancements */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* Service Detail Page Styles */
.service-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-description h2,
.service-description h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:before {
    content: "✓";
    color: #4A90E2;
    font-weight: bold;
    margin-right: 0.5rem;
}

.process-steps {
    margin-top: 1rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.step-number {
    background: #4A90E2;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.step-content p {
    margin: 0;
    color: #666;
}

.request-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 2rem;
}

.request-form-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.service-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Service Request Form Styles */
.request-header {
    text-align: center;
    margin-bottom: 3rem;
}

.request-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.service-summary {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    text-align: center;
    margin-bottom: 2rem;
}

.service-card .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.why-choose-us {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.why-choose-us h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.why-choose-us ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-us li {
    padding: 0.5rem 0;
    color: #4A90E2;
    font-weight: 500;
}

.request-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.contact-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-option {
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #4A90E2;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Service Pages */
@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .request-form-card {
        position: static;
    }

    .service-icon {
        font-size: 3rem;
    }

    .request-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-small {
        width: 100%;
        text-align: center;
    }
}

/ * Donation/Support Section Styles */ .support-section {
    padding: 4rem 0;
    text-align: center;
}

.support-content {
    max-width: 1000px;
    margin: 0 auto;
}

.support-header {
    margin-bottom: 3rem;
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.donation-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.donation-card.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.donation-card.popular {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.donation-card.popular:hover {
    background: rgba(255, 215, 0, 0.15);
}

.donation-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.donation-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.donation-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.donation-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.donation-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.custom-amount-input {
    max-width: 300px;
    margin: 1rem auto 2rem;
}

.custom-amount-input input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    text-align: center;
}

.custom-amount-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.custom-amount-input input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.payment-methods {
    margin-top: 2rem;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.payment-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-icon {
    font-size: 1.2rem;
}

.mpesa-btn:hover {
    background: rgba(0, 128, 0, 0.2);
    border-color: #00ff00;
}

.paypal-btn:hover {
    background: rgba(0, 48, 135, 0.2);
    border-color: #0070ba;
}

.stripe-btn:hover {
    background: rgba(99, 91, 255, 0.2);
    border-color: #635bff;
}

.support-message {
    max-width: 600px;
    margin: 0 auto;
}

/* Donation Modal Styles */
.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.donation-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.donation-modal-content #modalMessage {
    text-align: left;
    line-height: 1.6;
}

.donation-modal h3 {
    color: #333;
    margin-bottom: 1rem;
}

.donation-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.donation-modal .close-btn:hover {
    color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .donation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .donation-card {
        padding: 1rem;
    }

    .donation-icon {
        font-size: 2rem;
    }

    .donation-amount {
        font-size: 1.2rem;
    }

    .payment-buttons {
        flex-direction: column;
        align-items: center;
    }

    .payment-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .donation-cards {
        grid-template-columns: 1fr;
    }

    .support-section {
        padding: 2rem 0;
    }
}

/* Budge
t Calculator Section Styles */
.budget-calculator-section {
    padding: 4rem 0;
}

.budget-calculator-embed {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-container.budget-homepage {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calculator-container.budget-homepage .calculator-header {
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.calculator-container.budget-homepage .calculator-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.calculator-container.budget-homepage .calculator-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.calculator-container.budget-homepage .disclaimer-notice {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.calculator-container.budget-homepage .form-container {
    padding: 2rem;
}

.calculator-container.budget-homepage .input-section {
    margin-bottom: 2rem;
}

.calculator-container.budget-homepage .input-group {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-container.budget-homepage .input-group.two-column {
    grid-template-columns: 1fr 1fr;
}

.calculator-container.budget-homepage .input-field {
    display: flex;
    flex-direction: column;
}

.calculator-container.budget-homepage .input-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.calculator-container.budget-homepage .input-field input,
.calculator-container.budget-homepage .input-field select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calculator-container.budget-homepage .input-field input:focus,
.calculator-container.budget-homepage .input-field select:focus {
    outline: none;
    border-color: #2e8b57;
}

.calculator-container.budget-homepage .calculate-btn {
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.calculator-container.budget-homepage .calculate-btn:hover {
    transform: translateY(-2px);
}

.calculator-container.budget-homepage .loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

.calculator-container.budget-homepage .loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2e8b57;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.calculator-container.budget-homepage .error {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.calculator-container.budget-homepage .results {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2e8b57;
    display: none;
}

.calculator-container.budget-homepage .results-title {
    font-size: 1.3rem;
    color: #2e8b57;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Mobile Responsiveness for Budget Calculator */
@media (max-width: 768px) {
    .calculator-container.budget-homepage .input-group.two-column {
        grid-template-columns: 1fr;
    }

    .calculator-container.budget-homepage .calculator-header {
        padding: 1.5rem;
    }

    .calculator-container.budget-homepage .calculator-header h3 {
        font-size: 1.5rem;
    }

    .calculator-container.budget-homepage .form-container {
        padding: 1.5rem;
    }
}



/* Guest Writer Modal */
.guest-writer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.writer-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #4a90e2;
}

.writer-intro p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.char-counter {
    text-align: right;
    color: #999;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.application-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.application-success h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

.application-success p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.application-success ul {
    text-align: left;
    max-width: 400px;
    margin: 1rem auto;
    color: #555;
}

.application-success li {
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/*
 Service Icon Styles */
.service-icon-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-icon-img {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.service-icon-small {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.service-icon-text {
    margin-right: 5px;
    font-size: 16px;
}

.service-link {
    display: flex;
    align-items: center;
}

/* Community Engagement Section */
.community-engagement-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.engagement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.engagement-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.engagement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.engagement-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.incident-report-card .card-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.engagement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.engagement-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.card-benefits li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
}

.card-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.engagement-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.secondary-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-content {
    padding: 2rem;
}

.modal-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.engagement-form .form-group {
    margin-bottom: 1.5rem;
}

.engagement-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.engagement-form input,
.engagement-form select,
.engagement-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.engagement-form input:focus,
.engagement-form select:focus,
.engagement-form textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #357abd;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .engagement-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .engagement-card {
        padding: 2rem;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-header,
    .modal-content {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Mob
ile Spacing Optimization - Reduce vertical space to minimize scrolling */
@media (max-width: 768px) {

    /* General section padding reduction */
    .section {
        padding: 2rem 0 !important;
    }

    /* Hero section optimization */
    .hero-section {
        padding: 1.5rem 0 !important;
        margin-top: 0 !important;
    }

    .hero-content {
        padding: 1rem 0 !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }

    .hero-actions {
        margin-top: 1rem !important;
        gap: 0.75rem !important;
    }

    /* Section titles and subtitles */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.4 !important;
    }

    /* Card spacing optimization */
    .card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .card-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    /* Grid spacing */
    .services-grid-7,
    .services-grid-6,
    .articles-grid,
    .engagement-cards {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    /* News and articles sections */
    .featured-news,
    .news-grid,
    .articles-section {
        margin-bottom: 1.5rem !important;
    }

    .news-item,
    .article-item {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }

    /* YouTube section */
    .youtube-section {
        padding: 2rem 0 !important;
    }

    .video-card {
        margin-bottom: 1rem !important;
    }

    /* Tools section */
    .tools-grid {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    /* Calculator sections */
    .calculator-section {
        padding: 1.5rem 0 !important;
    }

    .calculator-container {
        padding: 1.25rem !important;
        margin: 1rem 0 !important;
    }

    /* Community engagement section */
    .community-engagement-section {
        padding: 2.5rem 0 !important;
    }

    .engagement-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .engagement-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }

    .engagement-card p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }

    .card-benefits {
        margin: 1rem 0 !important;
    }

    .card-benefits li {
        padding: 0.25rem 0 !important;
        font-size: 0.85rem !important;
    }

    /* Support section */
    .support-section {
        padding: 2.5rem 0 !important;
    }

    .donation-cards {
        gap: 0.75rem !important;
        margin: 1.5rem 0 !important;
    }

    .donation-card {
        padding: 1rem !important;
    }

    .job-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* CTA sections */
    .section-cta {
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Button spacing */
    .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .btn-large {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Form spacing */
    .form-group {
        margin-bottom: 1rem !important;
    }

    .form-section {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    /* Modal spacing */
    .modal-header {
        padding: 1.25rem !important;
    }

    .modal-content {
        padding: 1.25rem !important;
    }

    /* Footer spacing */
    .footer {
        padding: 2rem 0 1rem !important;
    }

    .footer-section {
        margin-bottom: 1.5rem !important;
    }

    .footer-section h3 {
        margin-bottom: 0.75rem !important;
        font-size: 1.1rem !important;
    }

    .footer-section ul li {
        padding: 0.25rem 0 !important;
    }

    /* Newsletter section */
    .newsletter-signup {
        margin-top: 1rem !important;
    }

    .newsletter-form {
        margin-top: 0.75rem !important;
    }

    /* Social links */
    .social-links {
        margin-top: 1rem !important;
        gap: 0.75rem !important;
    }

    /* Footer bottom */
    .footer-bottom {
        padding: 1rem 0 !important;
        margin-top: 1.5rem !important;
    }

    .footer-links {
        margin-top: 0.75rem !important;
        gap: 1rem !important;
    }

    /* Specific homepage sections */
    .breaking-news-section {
        padding: 1.5rem 0 !important;
    }

    .trending-section {
        padding: 2rem 0 !important;
    }

    .articles-hero-section {
        padding: 1.5rem 0 !important;
    }

    /* Info cards section */
    .info-cards-section {
        padding: 1.5rem 0 !important;
    }

    /* Client reviews */
    .reviews-section {
        padding: 2rem 0 !important;
    }

    .review-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Reduce margins between consecutive sections */
    .section+.section {
        margin-top: -0.5rem !important;
    }

    /* Compact list items */
    ul li,
    ol li {
        margin-bottom: 0.25rem !important;
    }

    /* Compact paragraphs */
    p {
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }

    /* Compact headings */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 0.5rem !important;
        margin-top: 1rem !important;
    }

    h1:first-child,
    h2:first-child,
    h3:first-child {
        margin-top: 0 !important;
    }
}

/* Extra small mobile devices - even more compact */
@media (max-width: 480px) {
    .section {
        padding: 1.5rem 0 !important;
    }

    .hero-section {
        padding: 1rem 0 !important;
    }

    .section-title {
        font-size: 1.4rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .card {
        padding: 1rem !important;
    }

    .engagement-card {
        padding: 1.25rem !important;
    }

    .services-grid-7,
    .services-grid-6 {
        gap: 0.75rem !important;
    }

    .section-cta {
        margin-top: 1rem !important;
    }

    .footer {
        padding: 1.5rem 0 0.75rem !important;
    }
}

/* Social Media Section Styles */
.social-media-section {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
}

.social-media-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-media-section .social-links {
    justify-content: center;
}

/ * Reviews Page Styles */ .reviews-header {
    text-align: center;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.reviewer-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.reviewer-service {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.review-rating {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.review-date {
    color: #999;
    font-size: 0.8rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

/* Mobile Responsive - 2 per row */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .review-card {
        padding: 1rem;
    }

    .review-header {
        gap: 0.75rem;
    }

    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .reviewer-name {
        font-size: 0.9rem;
    }

    .reviewer-service {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .reviews-stats {
        gap: 1.5rem;
    }

    .reviews-cta {
        padding: 1.5rem;
    }

    .reviews-cta div {
        flex-direction: column;
        align-items: center;
    }

    .reviews-cta .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reviews-stats {
        gap: 1rem;
    }

    .stat-item div:first-child {
        font-size: 1.5rem;
    }
}







/ * Industry Newsletter Card Styles */ .newsletter-card {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5BBA 100%);
    color: white;
}

.newsletter-card .info-card-title {
    color: white;
}

.newsletter-card .info-card-divider {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-input-info {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input-info::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-info:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-form-info .newsletter-name-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.newsletter-form-info .newsletter-name-field.show {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
}

.newsletter-btn-info {
    padding: 1rem;
    background: white;
    color: #2E5BBA;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn-info:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.newsletter-btn-info:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.newsletter-note-info {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Newsletter Widget Styles for Article Detail Page */
.newsletter-widget .newsletter-name-field {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    margin-top: 10px;
}

.newsletter-widget .newsletter-name-field.show {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
}

/* Newsletter Message Styles */
#articlesNewsletterMessage,
#articleDetailNewsletterMessage,
.newsletter-message {
    margin-top: 0.75rem;
}

#articlesNewsletterMessage .newsletter-success,
#articleDetailNewsletterMessage .newsletter-success,
.newsletter-message .newsletter-success {
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#articlesNewsletterMessage .newsletter-error,
#articleDetailNewsletterMessage .newsletter-error,
.newsletter-message .newsletter-error {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Mobile Newsletter Styles */
@media (max-width: 768px) {
    .newsletter-form-info .newsletter-name-field.show {
        max-height: 90px;
    }

    .newsletter-widget .newsletter-name-field.show {
        max-height: 80px;
    }

    .newsletter-input-info {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .newsletter-btn-info {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
/* E-Commerce Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--space-2);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--success);
}

.notification.notification-error {
    border-left-color: var(--error);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.notification-content .icon {
    flex-shrink: 0;
}

.notification-success .icon {
    color: var(--success);
}

.notification-error .icon {
    color: var(--error);
}

/* E-Commerce Utility Classes */
.flex-1 {
    flex: 1;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Mobile E-Commerce Adjustments */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}
/* =====================================================
   PERFORMANCE OPTIMIZATIONS
   ===================================================== */

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* ==============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================== */

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Focus Indicators */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --primary-orange: #cc4400;
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Color contrast improvements */
.text-muted {
    color: #495057 !important; /* Improved contrast ratio */
}

.text-secondary {
    color: #495057 !important; /* Improved contrast ratio */
}

/* Ensure minimum touch target sizes */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
a.btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
}

/* Mobile touch targets */
@media (max-width: 768px) {
    .nav-link,
    .mobile-nav-link,
    button,
    .btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem 1rem;
    }
}

/* Keyboard navigation improvements */
.nav-link:focus,
.mobile-nav-link:focus {
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
}

/* Form accessibility improvements */
label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

input[required],
textarea[required],
select[required] {
    border-left: 4px solid var(--primary-blue);
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: "⚠";
    font-weight: bold;
}

/* ARIA live regions */
.live-region {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Status messages */
.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.status-message.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.status-message.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.status-message.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.status-message.info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Table accessibility */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: var(--gray-100);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
}

td {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
}

/* Caption styling */
caption {
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Modal accessibility */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal[aria-hidden="true"] {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus {
    background-color: var(--gray-100);
}

/* Tooltip accessibility */
.tooltip {
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gray-900);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip:hover .tooltip-content,
.tooltip:focus .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-900);
}

/* Print accessibility */
@media print {
    .skip-link,
    .sr-only {
        display: none !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ==============================================
   CROSS-BROWSER COMPATIBILITY & PROGRESSIVE ENHANCEMENT
   ============================================== */

/* CSS Feature Detection and Fallbacks */
@supports not (display: grid) {
    /* Fallback for browsers without CSS Grid support */
    .grid,
    .services-page-grid,
    .image-gallery,
    .youtube-grid,
    .news-grid {
        display: block !important;
    }
    
    .grid > *,
    .services-page-grid > *,
    .image-gallery > *,
    .youtube-grid > *,
    .news-grid > * {
        display: inline-block;
        width: 48%;
        margin: 1%;
        vertical-align: top;
    }
    
    @media (max-width: 768px) {
        .grid > *,
        .services-page-grid > *,
        .image-gallery > *,
        .youtube-grid > *,
        .news-grid > * {
            width: 98%;
            margin: 1%;
        }
    }
}

@supports not (display: flex) {
    /* Fallback for browsers without Flexbox support */
    .flex,
    .navbar,
    .card-actions,
    .form-actions,
    .search-filters {
        display: block !important;
    }
    
    .flex > *,
    .navbar > *,
    .card-actions > *,
    .form-actions > *,
    .search-filters > * {
        display: inline-block;
        vertical-align: top;
    }
}

@supports not (var(--custom-property)) {
    /* Fallback colors for browsers without CSS custom properties */
    :root,
    body {
        color: #1a202c;
        background-color: #f7fafc;
    }
    
    .btn-primary {
        background-color: #4299e1 !important;
        color: white !important;
    }
    
    .btn-secondary {
        background-color: #e2e8f0 !important;
        color: #2d3748 !important;
    }
    
    .text-primary {
        color: #4299e1 !important;
    }
    
    .bg-primary {
        background-color: #4299e1 !important;
    }
    
    .border-primary {
        border-color: #4299e1 !important;
    }
}

/* Internet Explorer 11 specific fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE11 Grid fallback */
    .grid {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .grid > * {
        -ms-flex: 0 0 48%;
        flex: 0 0 48%;
        margin: 1%;
    }
    
    /* IE11 Flexbox fixes */
    .flex {
        display: -ms-flexbox;
        display: flex;
    }
    
    .flex-1 {
        -ms-flex: 1;
        flex: 1;
    }
    
    /* IE11 object-fit fallback */
    .service-icon-image,
    .card-image {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    /* Safari form styling */
    input[type="search"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Safari sticky positioning fix */
    .sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    /* Firefox flexbox fixes */
    .flex {
        display: -moz-flex;
        display: flex;
    }
    
    /* Firefox form styling */
    input[type="number"] {
        -moz-appearance: textfield;
    }
    
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Edge Legacy specific fixes */
@supports (-ms-ime-align: auto) {
    /* Edge Legacy grid fallback */
    .grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr;
        -ms-grid-rows: auto;
    }
    
    .grid > *:nth-child(odd) {
        -ms-grid-column: 1;
    }
    
    .grid > *:nth-child(even) {
        -ms-grid-column: 2;
    }
}

/* Graceful degradation for older browsers */
.no-js {
    /* Styles for when JavaScript is disabled */
}

.no-js .mobile-menu {
    display: block !important;
}

.no-js .dropdown-content {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.no-js .search-filters {
    display: block !important;
}

.no-js .lazy-load {
    opacity: 1 !important;
}

/* Print styles for better cross-browser printing */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .no-print,
    .navbar,
    .footer,
    .sidebar,
    .btn,
    .search-form {
        display: none !important;
    }
    
    .article-content,
    .service-detail {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* Additional horizontal scrolling prevention */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.section-container,
.container,
.content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all embedded content is responsive */
iframe,
embed,
object,
video,
audio {
    max-width: 100% !important;
    height: auto;
}

/* Fix for any pre-formatted text that might overflow */
pre,
code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

/* Ensure tables are responsive */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
}

/* Fix for any content that might cause horizontal scroll */
.article-content,
.content-area,
.post-content {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.article-content img,
.content-area img,
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* WebP support styles */
.webp img[data-webp] {
    /* WebP images will be loaded via JavaScript */
}

/* Critical CSS for above-the-fold content */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preload important fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/inter-var.woff2') format('woff2');
}

/* Reduce layout shift */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for smooth animations */
.smooth-animation {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize scrolling performance */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Critical resource hints */
.preload-font {
    font-display: swap;
}

/* Optimize images for different screen densities */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .high-dpi-image {
        /* High DPI image optimizations */
    }
}

/* Service Worker update notification */
.sw-update-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.sw-update-notification.show {
    transform: translateY(0);
}

.sw-update-notification .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    margin-left: 1rem;
}

.sw-update-notification .btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Performance monitoring styles */
.performance-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 9999;
    display: none;
}

.performance-indicator.show {
    display: block;
}

.performance-indicator.good {
    background: rgba(34, 197, 94, 0.9);
}

.performance-indicator.needs-improvement {
    background: rgba(251, 191, 36, 0.9);
}

.performance-indicator.poor {
    background: rgba(239, 68, 68, 0.9);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f59e0b;
    color: white;
    text-align: center;
    padding: 0.5rem;
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Print styles for better performance */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Memory optimization for large lists */
.virtual-scroll {
    overflow-y: auto;
    height: 400px;
}

.virtual-scroll-item {
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Optimize CSS containment for better performance */
.card {
    contain: layout style paint;
}

.article-content {
    contain: layout style;
}

/* Intersection Observer loading states */
.fade-in-observer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-observer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Critical CSS for Core Web Vitals optimization */
.above-fold {
    /* Styles for above-the-fold content */
    min-height: 100vh;
}

.below-fold {
    /* Styles for below-the-fold content */
    /* These can be loaded asynchronously */
}

/* Optimize for Largest Contentful Paint (LCP) */
.lcp-element {
    /* Ensure LCP elements load quickly */
    font-display: swap;
}

/* Optimize for Cumulative Layout Shift (CLS) */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .aspect-ratio-16-9 {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
    }
    
    .aspect-ratio-4-3 {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 75%;
    }
    
    .aspect-ratio-1-1 {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .aspect-ratio-16-9 > *,
    .aspect-ratio-4-3 > *,
    .aspect-ratio-1-1 > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ==============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERRIDES
   ============================================== */

/* COMPREHENSIVE MOBILE RESPONSIVENESS - ALL PAGES */
@media (max-width: 768px) {
    /* Base Layout */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Grid Systems Mobile */
    .grid,
    .news-grid,
    .articles-grid,
    .services-grid,
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Two column grids for smaller items */
    .reviews-grid,
    .donation-cards,
    .engagement-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Cards Mobile */
    .card,
    .news-card,
    .article-card,
    .service-card,
    .product-card,
    .category-card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }
    
    .card-image,
    .news-card-image,
    .article-image,
    .product-image,
    .category-image {
        height: 200px !important;
    }
    
    .card-title,
    .news-card-title,
    .article-title,
    .product-title,
    .category-title {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card-description,
    .news-card-excerpt,
    .article-excerpt,
    .product-description,
    .category-description {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Buttons Mobile */
    .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    
    .btn-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        width: 100% !important;
        font-size: 16px !important;
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .form-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    /* Page Headers Mobile */
    .page-header,
    .articles-header,
    .news-header,
    .services-header,
    .products-header,
    .merch-hero {
        padding: 2rem 0 !important;
        text-align: center !important;
    }
    
    .page-title,
    .articles-title,
    .news-title,
    .services-title,
    .products-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .page-subtitle,
    .articles-subtitle,
    .news-subtitle,
    .services-subtitle,
    .products-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Filters Mobile */
    .filters-section,
    .filters-container {
        padding: 1rem 0 !important;
    }
    
    .filters-container {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .filters-left {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .filter-select {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 16px !important;
    }
    
    .search-form {
        width: 100% !important;
    }
    
    .search-input {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 16px !important;
    }
    
    /* Navigation Mobile */
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav-wrapper {
        display: block !important;
    }
    
    .mobile-nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hero Sections Mobile */
    .hero-section {
        padding: 3rem 0 !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    
    /* Section Headers Mobile */
    .section-header {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.875rem !important;
        color: var(--gray-600) !important;
        line-height: 1.5 !important;
    }
    
    /* Tables Mobile */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    table {
        font-size: 0.875rem !important;
        min-width: 600px !important;
    }
    
    th, td {
        padding: 0.5rem !important;
        white-space: nowrap !important;
    }
    
    /* Images Mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .responsive-image-container {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-section {
        margin-bottom: 1.5rem !important;
    }
    
    .footer-section h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-section ul {
        text-align: center !important;
    }
    
    .footer-section li {
        margin-bottom: 0.5rem !important;
    }
    
    .social-links {
        justify-content: center !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .newsletter-input {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 16px !important;
    }
    
    .newsletter-btn {
        width: 100% !important;
        padding: 0.75rem !important;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    .pagination .btn {
        width: auto !important;
        min-width: 120px !important;
    }
    
    /* Meta Information Mobile */
    .meta,
    .article-meta,
    .news-meta,
    .product-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Actions Mobile */
    .actions,
    .card-actions,
    .product-actions,
    .service-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-top: 1rem !important;
    }
    
    .actions .btn,
    .card-actions .btn,
    .product-actions .btn,
    .service-actions .btn {
        width: 100% !important;
    }
    
    /* Content Spacing Mobile */
    .content-section {
        padding: 1.5rem 0 !important;
    }
    
    .content-wrapper {
        padding: 0 1rem !important;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all containers fit */
    .section-container,
    .page-container,
    .content-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 1rem !important;
    }
}

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
    
    .btn {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    .card {
        padding: 0.75rem !important;
    }
    
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr !important;
    }
    
    .reviews-grid,
    .donation-cards {
        grid-template-columns: 1fr !important;
    }
    
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    .footer-section h3 {
        font-size: 1rem !important;
    }
}

/* ADDITIONAL MOBILE FIXES FOR ARTICLES AND NEWS PAGES */
@media (max-width: 768px) {
    /* Articles Page Specific Mobile Fixes */
    .articles-hero-section {
        padding: 2rem 0 !important;
    }
    
    .articles-hero-container {
        padding: 0 1rem !important;
    }
    
    .articles-hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .articles-hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-categories {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .category-pill {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
        margin: 0.25rem !important;
    }
    
    /* Breaking News Mobile */
    .breaking-news-section {
        padding: 0.75rem 0 !important;
    }
    
    .breaking-news-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0 1rem !important;
    }
    
    .breaking-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .breaking-text {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    .breaking-link {
        font-size: 0.875rem !important;
        align-self: flex-end !important;
    }
    
    /* Trending Section Mobile Layout */
    .trending-section {
        padding: 1.5rem 0 !important;
    }
    
    .trending-layout {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .trending-featured,
    .trending-middle,
    .trending-right {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    .trending-featured .article-image {
        height: 200px !important;
    }
    
    .trending-featured .article-content {
        padding: 1rem !important;
    }
    
    .featured-title {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Middle Column Mobile */
    .trending-middle {
        display: block !important;
    }
    
    .trending-item {
        flex-direction: row !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .trending-avatar {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        flex-shrink: 0 !important;
    }
    
    .trending-content {
        flex: 1 !important;
    }
    
    .trending-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .trending-badges {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Right Column Mobile */
    .trending-right {
        display: block !important;
    }
    
    .trending-item-small {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .trending-title-small {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Info Cards Mobile */
    .info-cards-section {
        padding: 2rem 0 !important;
    }
    
    .info-cards-desktop {
        display: none !important;
    }
    
    .info-cards-mobile {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .info-cards-slider {
        display: flex !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .info-card {
        flex: 0 0 280px !important;
        padding: 1rem !important;
    }
    
    .info-card-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Newsletter Form Mobile */
    .newsletter-form-info {
        gap: 0.75rem !important;
    }
    
    .newsletter-input-info {
        padding: 0.75rem !important;
        font-size: 16px !important;
    }
    
    .newsletter-btn-info {
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    /* Categories List Mobile */
    .categories-list {
        gap: 0.5rem !important;
    }
    
    .category-item-info {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Tags Cloud Mobile */
    .tags-cloud {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .tag-item {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* News Page Specific Mobile Fixes */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .news-card {
        margin-bottom: 1rem !important;
    }
    
    .news-image {
        height: 180px !important;
    }
    
    .news-content {
        padding: 1rem !important;
    }
    
    .news-title {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .news-summary {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .news-date {
        font-size: 0.75rem !important;
    }
    
    .news-category {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Services Page Mobile Fixes */
    .services-grid,
    .services-grid-6,
    .services-grid-7 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-card {
        margin-bottom: 1rem !important;
        min-height: 200px !important;
    }
    
    .service-card .card-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .service-card .card-description {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    /* Store/Merch Page Mobile Fixes */
    .merch-hero {
        padding: 2rem 0 !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .product-card {
        padding: 0.75rem !important;
    }
    
    .product-image {
        height: 150px !important;
    }
    
    .product-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-price {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
    }
    
    .product-actions .btn {
        width: 100% !important;
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Cart and Checkout Mobile */
    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .cart-item-image {
        width: 100% !important;
        height: 150px !important;
    }
    
    .cart-item-details {
        width: 100% !important;
    }
    
    .cart-item-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* YouTube/Videos Page Mobile */
    .youtube-grid,
    .video-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .video-card,
    .video-card-modern {
        margin-bottom: 1rem !important;
    }
    
    .video-thumbnail-container {
        height: 200px !important;
    }
    
    .video-content {
        padding: 1rem !important;
    }
    
    .video-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .video-description {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Modal Mobile */
    .youtube-modal-content {
        width: 95% !important;
        height: auto !important;
        margin: 1rem !important;
    }
    
    .youtube-modal-video {
        height: 250px !important;
    }
    
    .youtube-modal-video iframe {
        height: 100% !important;
    }
}

/* Extra Small Mobile Fixes */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .trending-item {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .trending-avatar {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .breaking-news-container {
        padding: 0 0.75rem !important;
    }
    
    .category-pill {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.625rem !important;
    }
    
    .info-card {
        flex: 0 0 250px !important;
    }
    
    .youtube-modal-video {
        height: 200px !important;
    }
}

/* MOBILE NAVIGATION ENHANCEMENTS */
@media (max-width: 768px) {
    /* Ensure mobile nav is always visible */
    .mobile-nav-wrapper {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .mobile-nav-header {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .mobile-brand {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        color: var(--primary-dark) !important;
        text-decoration: none !important;
    }
    
    .mobile-brand-logo {
        height: 35px !important;
        width: auto !important;
        margin-right: 0.5rem !important;
    }
    
    .mobile-menu-btn {
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }
    
    .hamburger-line {
        width: 25px !important;
        height: 3px !important;
        background: var(--primary-dark) !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-menu {
        display: none !important;
        flex-direction: column !important;
        background: white !important;
        border-top: 1px solid #eee !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    
    .mobile-nav-menu.show {
        display: flex !important;
    }
    
    .mobile-nav-link {
        padding: 0.875rem 1rem !important;
        text-decoration: none !important;
        color: var(--primary-dark) !important;
        border-bottom: 1px solid #f8f9fa !important;
        transition: background 0.3s ease !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-nav-link:hover {
        background: #f8f9fa !important;
        color: var(--primary-blue) !important;
    }
    
    .mobile-nav-link.contact-btn {
        background: var(--primary-orange) !important;
        color: white !important;
        font-weight: 600 !important;
        margin: 0.5rem 1rem !important;
        border-radius: 25px !important;
        text-align: center !important;
        border-bottom: none !important;
    }
    
    .mobile-nav-link.contact-btn:hover {
        background: var(--secondary-orange) !important;
        color: white !important;
    }
    
    .mobile-nav-link.signin-btn {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        margin: 0.5rem 1rem !important;
        border-radius: 20px !important;
        text-align: center !important;
        border-bottom: none !important;
    }
    
    .mobile-nav-link.signin-btn:hover {
        background: linear-gradient(135deg, var(--secondary-blue) 0%, #2968a3 100%) !important;
        color: white !important;
    }
    
    /* Mobile Search */
    .mobile-nav-search {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f8f9fa !important;
    }
    
    .mobile-search-form {
        position: relative !important;
    }
    
    .mobile-search-input-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-search-input {
        width: 100% !important;
        padding: 0.75rem 3rem 0.75rem 1rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 25px !important;
        font-size: 16px !important;
        background: white !important;
    }
    
    .mobile-search-input:focus {
        outline: none !important;
        border-color: var(--primary-orange) !important;
        box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1) !important;
    }
    
    .mobile-search-btn {
        position: absolute !important;
        right: 0.75rem !important;
        background: none !important;
        border: none !important;
        color: #6b7280 !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
        transition: all 0.2s ease !important;
    }
    
    .mobile-search-btn:hover {
        color: var(--primary-orange) !important;
        background: rgba(255, 107, 53, 0.1) !important;
    }
}

/* MOBILE TOUCH IMPROVEMENTS */
@media (max-width: 768px) {
    /* Better touch targets */
    a, button, .btn, .nav-link, .mobile-nav-link {
        min-height: 44px !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    
    .btn, .mobile-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Improve form inputs for mobile */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none !important;
        border-radius: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    /* Better spacing for touch */
    .card, .news-card, .article-card, .service-card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Improve button spacing */
    .btn {
        margin-bottom: 0.75rem !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.75rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Better image handling */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 0.5rem !important;
    }
    
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Container improvements */
    .container, .section-container, .page-container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* FINAL MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Ensure no elements cause horizontal scrolling */
    .section-container,
    .articles-hero-container,
    .breaking-news-container,
    .trending-layout,
    .info-cards-wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Fix any remaining grid issues */
    .trending-layout,
    .corporate-layout {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    /* Ensure all cards are mobile-friendly */
    .card,
    .news-card,
    .article-card,
    .service-card,
    .product-card,
    .trending-featured,
    .trending-item,
    .trending-item-small {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix image containers */
    .article-image,
    .news-image,
    .product-image,
    .service-image,
    .trending-avatar {
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Ensure text doesn't overflow */
    .featured-title,
    .trending-title,
    .trending-title-small,
    .card-title,
    .news-title,
    .article-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Fix any flex layout issues */
    .trending-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .trending-content {
        flex: 1 !important;
        min-width: 0 !important; /* Allows text to wrap properly */
    }
    
    /* Ensure buttons are properly sized */
    .btn,
    .newsletter-btn,
    .newsletter-btn-info {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    /* Fix navigation spacing */
    .mobile-nav-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mobile-nav-menu {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure proper spacing between sections */
    .section {
        margin-bottom: 0 !important;
    }
    
    .trending-section {
        margin-bottom: 0 !important;
    }
    
    /* Fix any remaining overflow issues */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ACCESSIBILITY IMPROVEMENTS FOR MOBILE */
@media (max-width: 768px) {
    /* Improve focus states for keyboard navigation */
    .mobile-nav-link:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--primary-blue) !important;
        outline-offset: 2px !important;
    }
    
    /* Improve contrast for better readability */
    .trending-meta,
    .trending-meta-small,
    .article-meta,
    .news-meta {
        color: #4b5563 !important; /* Darker gray for better contrast */
    }
    
    /* Ensure sufficient color contrast for badges */
    .article-category-badge,
    .prime-badge {
        font-weight: 700 !important;
        text-shadow: none !important;
    }
    
    /* Improve readability of small text */
    .publish-time,
    .publish-time-small,
    .view-count,
    .view-count-small {
        font-size: 0.875rem !important;
        color: #4b5563 !important;
    }
}

/* PERFORMANCE OPTIMIZATIONS FOR MOBILE */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .card:hover,
    .news-card:hover,
    .trending-featured:hover,
    .trending-item:hover,
    .trending-item-small:hover {
        transform: none !important;
    }
    
    /* Simplify transitions */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: optimizeQuality !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* FINAL SAFETY NET FOR MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    /* Catch-all for any remaining issues */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all containers are responsive */
    div, section, article, main, header, footer, nav {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Final grid reset for mobile */
    .grid,
    .trending-layout,
    .corporate-layout,
    [class*="grid"] {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .grid > *,
    .trending-layout > *,
    .corporate-layout > * {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
}
/* T-SHIRT STORE SPECIFIC STYLES */
.tshirt-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

.tshirt-placeholder .tshirt-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.tshirt-placeholder .tshirt-text {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

/* T-Shirt specific product card enhancements */
.product-card.tshirt-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-card.tshirt-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-4px);
}

.product-sizes, .product-colors {
    margin: 0.75rem 0;
}

.size-badge, .color-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.size-badge {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

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

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* T-Shirt category specific colors */
.category-classic { border-left: 4px solid #007bff; }
.category-construction { border-left: 4px solid #fd7e14; }
.category-limited { border-left: 4px solid #6f42c1; }

/* Store focus indicator */
.store-focus-banner {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.store-focus-banner .focus-icon {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Additional Mobile Enhancements */
@media (max-width: 768px) {
    /* Improved mobile navigation spacing */
    .mobile-nav-menu {
        padding: var(--space-2) 0;
    }
    
    .mobile-nav-link {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        border-bottom: 1px solid var(--gray-100);
    }
    
    /* Better mobile search */
    .mobile-search-input-container {
        margin: var(--space-4) var(--space-6);
        position: relative;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        border: 2px solid var(--gray-200);
        border-radius: var(--radius-lg);
        font-size: var(--text-base);
    }
    
    .mobile-search-btn {
        position: absolute;
        right: var(--space-2);
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary-blue);
        color: white;
        border: none;
        padding: var(--space-2);
        border-radius: var(--radius-base);
    }
    
    /* Enhanced mobile card spacing */
    .card {
        margin-bottom: var(--space-6);
        border-radius: var(--radius-lg);
    }
    
    /* Better mobile typography */
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }
    
    /* Improved mobile forms */
    .form-group {
        margin-bottom: var(--space-6);
    }
    
    .form-input {
        padding: var(--space-4);
        font-size: var(--text-base);
        border-radius: var(--radius-lg);
    }
    
    /* Mobile-optimized grid layouts */
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    /* Better mobile spacing */
    .section {
        padding: var(--space-12) var(--space-4);
    }
    
    .container {
        padding: 0 var(--space-4);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Single column layout for very small screens */
    .grid-3,
    .grid-4,
    .alerts-container,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Smaller text on tiny screens */
    .nav-container {
        height: 70px;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    /* Compact mobile cards */
    .card {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    /* Better mobile button sizing */
    .btn {
        width: 100%;
        margin-bottom: var(--space-3);
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }
}
/* Accessibility Enhancements */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-dark);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-base);
    z-index: 1000;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.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;
}

/* Live region for dynamic content announcements */
.live-region {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Better focus for interactive elements */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--gray-400);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link:hover::after {
        height: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn:hover,
    .card:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #ffffff;
        --secondary-gray: #1a1a1a;
        --gray-50: #2a2a2a;
        --gray-100: #3a3a3a;
        --gray-200: #4a4a4a;
        --gray-800: #e0e0e0;
        --gray-900: #f0f0f0;
    }
    
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .card {
        background: #2a2a2a;
        border: 1px solid #4a4a4a;
    }
    
    .desktop-nav,
    .mobile-nav-wrapper {
        background: #2a2a2a;
        border-bottom: 1px solid #4a4a4a;
    }
}

/* Icon accessibility */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* Ensure minimum color contrast */
.text-muted {
    color: var(--gray-600);
}

.text-light {
    color: var(--gray-500);
}

/* Better link styling for accessibility */
a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--secondary-blue);
    text-decoration-thickness: 2px;
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    text-decoration: none;
}

/* Form accessibility */
.form-label {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    display: block;
}

.form-input:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Table accessibility */
table {
    border-collapse: collapse;
}

th {
    background: var(--gray-100);
    font-weight: var(--font-semibold);
    text-align: left;
    padding: var(--space-3);
    border: 1px solid var(--gray-200);
}

td {
    padding: var(--space-3);
    border: 1px solid var(--gray-200);
}

/* Loading states */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}
/* Performance Optimizations */

/* CSS Containment for better performance */
.card {
    contain: layout style paint;
}

.nav-container {
    contain: layout style;
}

/* GPU acceleration for animations */
.btn,
.card,
.nav-link {
    will-change: transform;
}

.btn:hover,
.card:hover {
    will-change: auto;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
}

/* Critical CSS inlining support */
.above-fold {
    contain: layout style paint;
}

/* Lazy loading placeholder */
.lazy-placeholder {
    background: var(--gray-200);
    background-image: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Optimize repaints */
.scroll-container {
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

/* Reduce layout thrashing */
.grid-container {
    contain: layout;
}

/* Optimize animations */
@keyframes slideIn {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Critical path optimization */
.hero-section {
    contain: layout style paint;
    transform: translateZ(0);
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth scrolling with performance consideration */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Optimize transforms */
.transform-gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Content visibility for better performance */
.below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

/* Optimize reflows */
.layout-stable {
    contain: layout;
    min-height: 200px;
}

/* Print styles for better performance */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .desktop-nav,
    .mobile-nav-wrapper,
    .btn,
    .footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
/* Enhanced Mobile Logo */
.mobile-brand-logo {
    height: 45px; /* Increased mobile logo size */
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Better mobile menu button */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-3); /* Increased padding for better touch target */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Slightly increased gap */
    border-radius: var(--radius-base);
    transition: background var(--transition-base);
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
    width: 28px; /* Increased from 25px */
    height: 3px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Enhanced search bar styling */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    transition: border-color var(--transition-base);
    min-width: 280px; /* Increased minimum width */
}

.search-input-container:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.search-btn {
    background: var(--primary-blue);
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.search-btn:hover {
    background: var(--secondary-blue);
}

/* Enhanced navigation responsiveness */
@media (max-width: 1200px) {
    .nav-container {
        max-width: 100%;
        padding: 0 var(--space-4);
    }
    
    .nav-menu {
        gap: var(--space-4);
    }
    
    .nav-link {
        font-size: var(--text-base);
        padding: var(--space-2) var(--space-1);
    }
    
    .search-input-container {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: var(--space-3);
    }
    
    .search-input-container {
        min-width: 180px;
    }
}
/* Professional Navigation Design - Clean Override */

/* Navigation Container */
.desktop-nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

/* Logo Section */
.nav-brand {
    flex-shrink: 0;
}

.brand-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

/* Main Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.05);
}

/* Right Actions Section */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Search Bar */
.nav-search {
    position: relative;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    width: 200px;
    height: 40px;
    transition: all 0.2s ease;
}

.search-input-container:focus-within {
    background: white;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 1rem;
    font-size: 14px;
    color: #2c3e50;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-btn {
    background: #4A90E2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #357abd;
}

.search-btn .icon {
    width: 16px;
    height: 16px;
    color: white;
}

/* Sign In Button - Primary Blue */
.signin-btn,
a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

.signin-btn:hover,
a[href*="signin"]:hover {
    background: #357abd !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Contact Button - Primary Orange */
.contact-btn,
a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

.contact-btn:hover,
a[href*="contact"]:hover {
    background: #f7931e !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Remove any conflicting hover effects on buttons */
.signin-btn:hover::after,
.contact-btn:hover::after,
a[href*="signin"]:hover::after,
a[href*="contact"]:hover::after {
    display: none !important;
}

/* Hide cart and other unwanted elements */
.cart-link,
.cart-count,
a[href*="cart"],
.mobile-cart-count {
    display: none !important;
}

/* User Profile Styles */
.user-profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #f8f9fa;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.2s ease;
}

.user-profile-link:hover {
    background: #e9ecef;
}

.nav-profile-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-profile-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4A90E2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        margin: 0 1rem;
    }
    
    .search-input-container {
        width: 160px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input-container {
        width: 140px;
    }
    
    .signin-btn,
    .contact-btn,
    a[href*="signin"],
    a[href*="contact"] {
        padding: 0.4rem 1rem;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* Accessibility */
.nav-link:focus,
.signin-btn:focus,
.contact-btn:focus,
.search-input:focus,
a[href*="signin"]:focus,
a[href*="contact"]:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Ensure proper text color inheritance */
.nav-link,
.nav-link:visited {
    color: #2c3e50;
}

.signin-btn,
.signin-btn:visited,
a[href*="signin"],
a[href*="signin"]:visited {
    color: white !important;
}

.contact-btn,
.contact-btn:visited,
a[href*="contact"],
a[href*="contact"]:visited {
    color: white !important;
}
/* Fix Navigation Link Visibility - Override Previous Styles */

.nav-container {
    max-width: 1600px !important; /* Increased width */
    margin: 0 auto;
    padding: 0 2.5rem !important; /* Increased padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 3rem !important; /* Increased gap */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem !important; /* Increased gap between links */
    flex: 1;
    justify-content: center;
    margin: 0 3rem !important; /* Increased margin */
    overflow: visible !important; /* Ensure no clipping */
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 0.5rem 1.2rem !important; /* Increased padding */
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content !important; /* Ensure full width */
    overflow: visible !important;
    display: inline-block !important;
}

/* Ensure search bar doesn't take too much space */
.search-input-container {
    width: 180px !important; /* Reduced width */
}

/* Reduce button padding slightly to save space */
.signin-btn,
a[href*="signin"] {
    padding: 0.5rem 1rem !important; /* Slightly reduced */
}

.contact-btn,
a[href*="contact"] {
    padding: 0.5rem 1rem !important; /* Slightly reduced */
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .nav-container {
        max-width: 100% !important;
        padding: 0 2rem !important;
        gap: 2rem !important;
    }
    
    .nav-menu {
        gap: 2rem !important;
        margin: 0 2rem !important;
    }
    
    .search-input-container {
        width: 160px !important;
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem !important;
        gap: 1.5rem !important;
    }
    
    .nav-menu {
        gap: 1.5rem !important;
        margin: 0 1.5rem !important;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 14px;
    }
    
    .search-input-container {
        width: 140px !important;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem !important;
        margin: 0 1rem !important;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 13px;
    }
    
    .search-input-container {
        width: 120px !important;
    }
}
/* Store Link - Coming Soon Styling */
.nav-link-disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    position: relative;
}

.nav-link-disabled:hover {
    color: #6c757d !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

.nav-link-disabled::after {
    content: "Coming Soon";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.nav-link-disabled:hover::after {
    opacity: 1;
}

/* Adjust navigation spacing to accommodate Store link */
.nav-menu {
    gap: 2rem !important; /* Slightly reduced to fit Store */
}

@media (max-width: 1400px) {
    .nav-menu {
        gap: 1.8rem !important;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 1.2rem !important;
    }
    
    .nav-link {
        font-size: 13px !important;
        padding: 0.4rem 0.7rem !important;
    }
}

/* Future-ready: When Store is enabled, remove disabled styling */
.nav-link-enabled {
    color: #2c3e50 !important;
    cursor: pointer;
}

.nav-link-enabled:hover {
    color: #4A90E2 !important;
    background: rgba(74, 144, 226, 0.05) !important;
}

.nav-link-enabled::after {
    display: none !important;
}
/* Mobile Store Link - Coming Soon Styling */
.mobile-nav-link-disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    position: relative;
}

.mobile-nav-link-disabled:hover {
    color: #6c757d !important;
    background: rgba(108, 117, 125, 0.05) !important;
}

.mobile-nav-link-disabled::before {
    content: "🔒 ";
    margin-right: 0.5rem;
}

/* Future Development Instructions */
/* 
To enable the Store when ready:
1. Replace href="#" with href="{{ url_for('store') }}" or appropriate route
2. Remove onclick="alert..." 
3. Change class from "nav-link-disabled" to "nav-link-enabled"
4. Change class from "mobile-nav-link-disabled" to "mobile-nav-link"
*/
/* Force Sign in and Contact buttons to be visible - Override any conflicting styles */

.signin-btn,
a.signin-btn {
    background: #4A90E2 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.signin-btn:hover,
a.signin-btn:hover {
    background: #357abd !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
    text-decoration: none !important;
}

.contact-btn,
a.contact-btn {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.contact-btn:hover,
a.contact-btn:hover {
    background: #f7931e !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
    text-decoration: none !important;
}

/* Ensure nav-actions container is visible */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any link styles that might be hiding the buttons */
.signin-btn:visited,
.contact-btn:visited,
a.signin-btn:visited,
a.contact-btn:visited {
    color: white !important;
}

.signin-btn:focus,
.contact-btn:focus,
a.signin-btn:focus,
a.contact-btn:focus {
    color: white !important;
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* Debug: Add temporary border to see if buttons are there */
.signin-btn,
.contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    min-width: 80px !important;
    text-align: center !important;
}

/* Mobile buttons visibility */
.mobile-nav-link.signin-btn,
.mobile-nav-link.contact-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0.5rem 1rem !important;
    text-align: center !important;
}
/* Emergency button visibility fix - Very specific selectors */

/* Target the exact buttons in nav-actions */
.nav-actions .signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-left: 10px !important;
    border: 2px solid #4A90E2 !important;
}

.nav-actions .contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-left: 10px !important;
    border: 2px solid #ff6b35 !important;
}

/* Hover states */
.nav-actions .signin-btn:hover,
.nav-actions a[href*="signin"]:hover {
    background: #357abd !important;
    border-color: #357abd !important;
    color: white !important;
}

.nav-actions .contact-btn:hover,
.nav-actions a[href*="contact"]:hover {
    background: #f7931e !important;
    border-color: #f7931e !important;
    color: white !important;
}

/* Make sure nav-actions has proper layout */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important; /* Remove gap, use margins instead */
    flex-shrink: 0 !important;
    min-width: 200px !important; /* Ensure enough space */
}

/* Debug: Add background to nav-actions to see if it's there */
.nav-actions {
    background: rgba(255, 0, 0, 0.1) !important; /* Temporary red background */
    padding: 5px !important;
    border: 1px dashed red !important; /* Temporary border */
}
/* Modern, Sleek Navigation - Tighter Spacing */

/* Override previous spacing with modern, compact design */
.nav-container {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 1.5rem !important; /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px !important; /* Reduced height for sleeker look */
    gap: 1.5rem !important; /* Much smaller gap */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem !important; /* Much tighter spacing between links */
    flex: 1;
    justify-content: center;
    margin: 0 1rem !important; /* Reduced margin */
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px !important; /* Slightly smaller for modern look */
    padding: 0.4rem 0.8rem !important; /* Much tighter padding */
    border-radius: 6px !important; /* Smaller radius */
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
}

/* Compact logo */
.brand-logo {
    height: 50px !important; /* Smaller logo for sleeker look */
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Compact search */
.search-input-container {
    width: 160px !important; /* Smaller search bar */
    height: 36px !important;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px !important; /* More rounded for modern look */
}

.search-input {
    padding: 0 0.8rem !important; /* Tighter padding */
    font-size: 13px !important;
}

.search-btn {
    width: 28px !important;
    height: 28px !important;
    margin-right: 4px;
}

/* Compact buttons */
.nav-actions .signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    padding: 0.4rem 1rem !important; /* Much tighter padding */
    border-radius: 18px !important; /* More rounded */
    font-size: 13px !important; /* Smaller text */
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-left: 0.5rem !important; /* Smaller margin */
    border: none !important;
}

.nav-actions .contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    padding: 0.4rem 1rem !important; /* Much tighter padding */
    border-radius: 18px !important; /* More rounded */
    font-size: 13px !important; /* Smaller text */
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-left: 0.5rem !important; /* Smaller margin */
    border: none !important;
}

/* Remove debug styling */
.nav-actions {
    background: transparent !important; /* Remove red debug background */
    border: none !important; /* Remove debug border */
    padding: 0 !important; /* Remove debug padding */
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* Small gap */
    flex-shrink: 0 !important;
}

/* Responsive - even tighter on smaller screens */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem !important; /* Even tighter */
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem !important;
        font-size: 13px !important;
    }
    
    .search-input-container {
        width: 140px !important;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 0.8rem !important; /* Very tight */
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 12px !important;
    }
    
    .search-input-container {
        width: 120px !important;
    }
    
    .nav-actions .signin-btn,
    .nav-actions .contact-btn {
        padding: 0.3rem 0.8rem !important;
        font-size: 12px !important;
    }
}

/* Modern hover effects */
.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(74, 144, 226, 0.1);
}

.nav-actions .signin-btn:hover,
.nav-actions .contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* CLEAN NAVIGATION OVERRIDE - Final Version */

/* Reset all previous navigation styles */
.desktop-nav {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.nav-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
    gap: 0 !important;
}

/* Logo */
.nav-brand {
    flex-shrink: 0 !important;
}

.brand-logo {
    height: 45px !important;
    width: auto !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
}

/* Navigation Links */
.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 2rem !important;
}

.nav-link {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.nav-link:hover {
    color: #4A90E2 !important;
    background: rgba(74, 144, 226, 0.1) !important;
    text-decoration: none !important;
}

/* Right side actions */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Compact Search */
.search-input-container {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    width: 180px !important;
    height: 36px !important;
    padding: 0 !important;
    transition: border-color 0.2s ease !important;
}

.search-input-container:focus-within {
    border-color: #4A90E2 !important;
    background: white !important;
}

.search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.search-input::placeholder {
    color: #999 !important;
}

.search-btn {
    background: #4A90E2 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.search-btn:hover {
    background: #357abd !important;
}

.search-btn .icon {
    width: 14px !important;
    height: 14px !important;
    color: white !important;
}

/* Sign In Button */
.signin-btn,
a.signin-btn,
.nav-actions .signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.signin-btn:hover,
a.signin-btn:hover,
.nav-actions .signin-btn:hover,
.nav-actions a[href*="signin"]:hover {
    background: #357abd !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Contact Button */
.contact-btn,
a.contact-btn,
.nav-actions .contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.contact-btn:hover,
a.contact-btn:hover,
.nav-actions .contact-btn:hover,
.nav-actions a[href*="contact"]:hover {
    background: #f7931e !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Store link disabled state */
.nav-link-disabled {
    color: #999 !important;
    cursor: not-allowed !important;
}

.nav-link-disabled:hover {
    color: #999 !important;
    background: rgba(153, 153, 153, 0.1) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem !important;
        margin: 0 1rem !important;
    }
    
    .search-input-container {
        width: 150px !important;
    }
    
    .signin-btn,
    .contact-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
}
/* Fix Navigation Button Visibility - Emergency Fix */

/* Ensure nav-container has enough width and doesn't cut off buttons */
.nav-container {
    max-width: 1400px !important; /* Increased width */
    padding: 0 2rem !important; /* More padding */
    overflow: visible !important; /* Prevent cutoff */
}

/* Ensure nav-actions has enough space and is visible */
.nav-actions {
    min-width: 300px !important; /* Ensure enough space for search + buttons */
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
    overflow: visible !important;
}

/* Make search smaller to leave room for buttons */
.search-input-container {
    width: 140px !important; /* Smaller search */
    flex-shrink: 0 !important;
}

/* Ensure buttons are visible and properly sized */
.signin-btn,
a.signin-btn,
.nav-actions .signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    padding: 6px 14px !important; /* Slightly smaller */
    border-radius: 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 60px !important;
    text-align: center !important;
}

.contact-btn,
a.contact-btn,
.nav-actions .contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    padding: 6px 14px !important; /* Slightly smaller */
    border-radius: 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 60px !important;
    text-align: center !important;
}

/* Reduce navigation link spacing to make more room */
.nav-menu {
    gap: 1.2rem !important; /* Slightly tighter */
    margin: 0 1rem !important; /* Less margin */
}

.nav-link {
    padding: 0.4rem 0.6rem !important; /* Tighter padding */
    font-size: 14px !important; /* Slightly smaller */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .nav-container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .nav-actions {
        min-width: 250px !important;
    }
    
    .search-input-container {
        width: 120px !important;
    }
    
    .nav-menu {
        gap: 1rem !important;
    }
}

/* Debug: Temporary border to see nav-actions area */
.nav-actions {
    border: 1px dashed rgba(255, 0, 0, 0.3) !important; /* Temporary - remove after testing */
    background: rgba(255, 255, 0, 0.1) !important; /* Temporary - remove after testing */
}

/* ========================================
   FINAL NAVIGATION - CLEAN OVERRIDE
   ======================================== */

/* Reset and override ALL previous navigation styles */
.desktop-nav,
.desktop-nav *,
.nav-container,
.nav-container *,
.nav-brand,
.nav-brand *,
.nav-menu,
.nav-menu *,
.nav-actions,
.nav-actions * {
    box-sizing: border-box !important;
}

.desktop-nav {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    overflow: visible !important;
}

.nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
}

/* Logo - Left Side */
.nav-brand {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

.brand-logo {
    height: 45px !important;
    width: auto !important;
    display: block !important;
}

/* Navigation Links - Center */
.nav-menu {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 0 20px !important;
    list-style: none !important;
    padding: 0 !important;
}

.nav-link {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.nav-link:hover {
    color: #4A90E2 !important;
    background: rgba(74, 144, 226, 0.1) !important;
    text-decoration: none !important;
}

.nav-link-disabled {
    color: #999 !important;
    cursor: not-allowed !important;
}

.nav-link-disabled:hover {
    color: #999 !important;
    background: rgba(153, 153, 153, 0.1) !important;
}

/* Right Actions - Search + Buttons */
.nav-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 280px !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Search */
.nav-search {
    flex: 0 0 auto !important;
    display: block !important;
}

.search-form {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.search-input-container {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    width: 140px !important;
    height: 36px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    height: 100% !important;
    margin: 0 !important;
}

.search-input::placeholder {
    color: #999 !important;
}

.search-btn {
    background: #4A90E2 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.search-btn .icon {
    width: 14px !important;
    height: 14px !important;
    color: white !important;
}

/* Sign In Button */
.signin-btn,
a.signin-btn,
.nav-actions .signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 !important;
}

.signin-btn:hover,
a.signin-btn:hover,
.nav-actions .signin-btn:hover,
.nav-actions a[href*="signin"]:hover {
    background: #357abd !important;
    color: white !important;
    text-decoration: none !important;
}

/* Contact Button */
.contact-btn,
a.contact-btn,
.nav-actions .contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 !important;
}

.contact-btn:hover,
a.contact-btn:hover,
.nav-actions .contact-btn:hover,
.nav-actions a[href*="contact"]:hover {
    background: #f7931e !important;
    color: white !important;
    text-decoration: none !important;
}

/* Ensure visited states don't change colors */
.signin-btn:visited,
.contact-btn:visited,
a.signin-btn:visited,
a.contact-btn:visited {
    color: white !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 15px !important;
    }
    
    .nav-menu {
        gap: 15px !important;
        margin: 0 15px !important;
    }
    
    .nav-actions {
        min-width: 250px !important;
    }
    
    .search-input-container {
        width: 120px !important;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 12px !important;
        margin: 0 10px !important;
    }
    
    .nav-link {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    
    .nav-actions {
        min-width: 220px !important;
        gap: 8px !important;
    }
    
    .signin-btn,
    .contact-btn,
    a.signin-btn,
    a.contact-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
}

/* ======================================== */

/* ========================================
   CLEAN NAVIGATION IMPLEMENTATION - FINAL
   ======================================== */

/* Override all previous navigation styles with clean implementation */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-3) !important;
    flex-shrink: 0 !important;
    min-width: 280px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Search Bar Styling */
.nav-search {
    flex-shrink: 0;
}

.search-form {
    margin: 0;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    width: 160px;
    height: 36px;
    padding: 0;
    transition: all var(--transition-base);
}

.search-input-container:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--primary-dark);
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-btn {
    background: var(--primary-blue);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    cursor: pointer;
    transition: background var(--transition-base);
}

.search-btn:hover {
    background: var(--secondary-blue);
}

.search-btn .icon {
    width: 14px;
    height: 14px;
    color: white;
}

/* Sign In Button - Blue */
.signin-btn,
a.signin-btn,
a[href*="signin"] {
    background: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--text-sm) !important;
    font-weight: var(--font-medium) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    height: 36px !important;
    transition: all var(--transition-base) !important;
    box-shadow: var(--shadow-sm) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.signin-btn:hover,
a.signin-btn:hover,
a[href*="signin"]:hover {
    background: var(--secondary-blue) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    text-decoration: none !important;
}

/* Contact Button - Orange */
.contact-btn,
a.contact-btn,
a[href*="contact"] {
    background: var(--primary-orange) !important;
    color: white !important;
    border: none !important;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-lg) !important;
    font-size: var(--text-sm) !important;
    font-weight: var(--font-medium) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    height: 36px !important;
    transition: all var(--transition-base) !important;
    box-shadow: var(--shadow-sm) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-btn:hover,
a.contact-btn:hover,
a[href*="contact"]:hover {
    background: var(--secondary-orange) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
    text-decoration: none !important;
}

/* Remove any conflicting hover effects */
.signin-btn:hover::after,
.contact-btn:hover::after,
a[href*="signin"]:hover::after,
a[href*="contact"]:hover::after {
    display: none !important;
}

/* Focus states for accessibility */
.signin-btn:focus,
.contact-btn:focus,
a[href*="signin"]:focus,
a[href*="contact"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .nav-actions {
        min-width: 250px !important;
        gap: var(--space-2) !important;
    }
    
    .search-input-container {
        width: 140px;
    }
    
    .signin-btn,
    .contact-btn,
    a[href*="signin"],
    a[href*="contact"] {
        padding: var(--space-2) var(--space-3) !important;
        font-size: 13px !important;
        min-width: 60px !important;
    }
}

@media (max-width: 1024px) {
    .nav-actions {
        min-width: 220px !important;
    }
    
    .search-input-container {
        width: 120px;
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-wrapper {
        display: block;
    }
}

/* Show desktop nav on larger screens */
@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-nav-wrapper {
        display: none;
    }
}

/* ========================================
   END CLEAN NAVIGATION IMPLEMENTATION
   ======================================== */
/* ========================================
   PRODUCTION NAVIGATION FIX - DECEMBER 2024
   EXACT COPY FROM WORKING TEST
   ======================================== */

/* Reset any existing navigation styles */
.desktop-nav,
.nav-container,
.nav-brand,
.nav-menu,
.nav-link,
.nav-actions,
.search-input-container,
.search-input,
.search-btn,
.signin-btn,
.contact-btn,
.mobile-nav-wrapper,
.mobile-nav-header,
.mobile-nav-menu,
.mobile-nav-link {
    all: unset !important;
}

/* Desktop Navigation */
.desktop-nav {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    display: block !important;
}

.nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Logo Section */
.nav-brand {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.brand-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
}

.brand-logo {
    height: 55px !important;
    width: auto !important;
    display: block !important;
}

/* Navigation Menu */
.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 1rem !important;
}

.nav-link {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.nav-link:hover {
    color: #4A90E2 !important;
    background: rgba(74, 144, 226, 0.1) !important;
    text-decoration: none !important;
}

.nav-link-disabled {
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Right Actions Section */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    min-width: 280px !important;
}

/* Search Bar */
.nav-search {
    flex-shrink: 0 !important;
}

.search-form {
    margin: 0 !important;
    padding: 0 !important;
}

.search-input-container {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    width: 140px !important;
    height: 36px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #333 !important;
    font-family: inherit !important;
}

.search-input::placeholder {
    color: #999 !important;
}

.search-btn {
    background: #4A90E2 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.search-btn:hover {
    background: #357abd !important;
}

.search-btn .icon {
    width: 14px !important;
    height: 14px !important;
    color: white !important;
}

/* Sign In Button - Blue - Clean Contained Design */
.signin-btn,
a.signin-btn,
a[href*="signin"] {
    background: #4A90E2 !important;
    background-color: #4A90E2 !important;
    background-image: none !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 75px !important;
    width: auto !important;
    height: 36px !important;
    max-height: 36px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.signin-btn:hover,
a.signin-btn:hover,
a[href*="signin"]:hover {
    background: #357abd !important;
    background-color: #357abd !important;
    background-image: none !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Contact Button - Orange */
.contact-btn,
a.contact-btn,
a[href*="contact"] {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 75px !important;
    height: 36px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.contact-btn:hover,
a.contact-btn:hover,
a[href*="contact"]:hover {
    background: #f7931e !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Mobile Navigation */
.mobile-nav-wrapper {
    display: none !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

.mobile-nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    height: 65px !important;
    box-sizing: border-box !important;
}

.mobile-brand {
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.mobile-brand-logo {
    height: 45px !important;
    width: auto !important;
}

.mobile-menu-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
}

.hamburger-line {
    width: 25px !important;
    height: 3px !important;
    background: #2c3e50 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

.mobile-nav-menu {
    display: none !important;
    flex-direction: column !important;
    background: white !important;
    border-top: 1px solid #eee !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}

.mobile-nav-menu.show {
    display: flex !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.mobile-nav-link {
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #f8f9fa !important;
    transition: background 0.2s ease !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.mobile-nav-link:hover {
    background: #f8f9fa !important;
    color: #4A90E2 !important;
    text-decoration: none !important;
}

.mobile-nav-link.signin-btn {
    background: #4A90E2 !important;
    color: white !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.mobile-nav-link.signin-btn:hover {
    background: #357abd !important;
    color: white !important;
}

.mobile-nav-link.contact-btn {
    background: #ff6b35 !important;
    color: white !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.mobile-nav-link.contact-btn:hover {
    background: #f7931e !important;
    color: white !important;
}

/* Mobile Search */
.mobile-nav-search {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.mobile-search-form {
    margin: 0 !important;
}

.mobile-search-input-container {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    height: 40px !important;
    padding: 0 !important;
}

.mobile-search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    color: #333 !important;
}

.mobile-search-btn {
    background: #4A90E2 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    cursor: pointer !important;
}

.mobile-search-btn .icon {
    width: 16px !important;
    height: 16px !important;
    color: white !important;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .nav-actions {
        min-width: 260px !important;
        gap: 0.6rem !important;
    }
    
    .search-input-container {
        width: 120px !important;
    }
    
    .signin-btn,
    .contact-btn,
    a[href*="signin"],
    a[href*="contact"] {
        padding: 7px 14px !important;
        font-size: 12px !important;
        min-width: 70px !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.5rem !important;
    }
    
    .nav-link {
        font-size: 13px !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .nav-actions {
        min-width: 240px !important;
        gap: 0.5rem !important;
    }
    
    .search-input-container {
        width: 110px !important;
    }
    
    .signin-btn,
    .contact-btn,
    a[href*="signin"],
    a[href*="contact"] {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: 65px !important;
        height: 34px !important;
    }
}

/* Mobile First - Hide desktop nav on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav-wrapper {
        display: block !important;
    }
}

/* Show desktop nav on larger screens */
@media (min-width: 769px) {
    .desktop-nav {
        display: block !important;
    }
    
    .mobile-nav-wrapper {
        display: none !important;
    }
}

/* Focus states for accessibility */
.nav-link:focus,
.signin-btn:focus,
.contact-btn:focus,
.search-input:focus,
.search-btn:focus,
.mobile-menu-btn:focus,
.mobile-nav-link:focus {
    outline: 2px solid #4A90E2 !important;
    outline-offset: 2px !important;
}

/* Remove any conflicting hover effects */
.signin-btn:hover::after,
.contact-btn:hover::after,
a[href*="signin"]:hover::after,
a[href*="contact"]:hover::after {
    display: none !important;
}

/* Ensure buttons are always visible */
.signin-btn,
.contact-btn,
a[href*="signin"],
a[href*="contact"] {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Ensure Contact button stays orange - Override any conflicting styles */
.contact-btn,
a.contact-btn,
a[href*="contact"],
.nav-actions .contact-btn,
.nav-actions a.contact-btn,
.nav-actions a[href*="contact"] {
    background: #ff6b35 !important;
    background-color: #ff6b35 !important;
    background-image: none !important;
    color: white !important;
}

.contact-btn:hover,
a.contact-btn:hover,
a[href*="contact"]:hover,
.nav-actions .contact-btn:hover,
.nav-actions a.contact-btn:hover,
.nav-actions a[href*="contact"]:hover {
    background: #f7931e !important;
    background-color: #f7931e !important;
    background-image: none !important;
    color: white !important;
}

/* Remove any pseudo-elements that might interfere with Contact button */
.contact-btn::after,
a.contact-btn::after,
a[href*="contact"]::after {
    display: none !important;
}

/* Ensure mobile Contact button is also orange */
.mobile-nav-link.contact-btn {
    background: #ff6b35 !important;
    background-color: #ff6b35 !important;
    color: white !important;
}

.mobile-nav-link.contact-btn:hover {
    background: #f7931e !important;
    background-color: #f7931e !important;
    color: white !important;
}

/* ========================================
   SIGN IN BUTTON ONLY - PREVENT BLUE OVERFLOW
   ======================================== */

/* Remove any pseudo-elements that cause blue overflow on Sign in button ONLY */
.signin-btn::before,
.signin-btn::after,
a.signin-btn::before,
a.signin-btn::after,
a[href*="signin"]::before,
a[href*="signin"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure Sign in button container is clean */
.nav-actions .signin-btn,
.nav-actions a.signin-btn,
.nav-actions a[href*="signin"] {
    background: #4A90E2 !important;
    background-color: #4A90E2 !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.nav-actions .signin-btn:hover,
.nav-actions a.signin-btn:hover,
.nav-actions a[href*="signin"]:hover {
    background: #357abd !important;
    background-color: #357abd !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* Prevent any nav-link styles from affecting Sign in button */
.signin-btn.nav-link,
a.signin-btn.nav-link,
a[href*="signin"].nav-link {
    background: #4A90E2 !important;
    background-color: #4A90E2 !important;
    color: white !important;
}

.signin-btn.nav-link:hover,
a.signin-btn.nav-link:hover,
a[href*="signin"].nav-link:hover {
    background: #357abd !important;
    background-color: #357abd !important;
    color: white !important;
}

/* ========================================
   END PRODUCTION NAVIGATION FIX
   ======================================== */
/* ========================================
   SIGNED-IN USER NAVIGATION WITH DROPDOWN
   ======================================== */

/* User Dropdown Container */
.user-dropdown {
    position: relative !important;
    display: inline-block !important;
}

/* User Profile Button */
.user-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #333 !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    max-width: 140px !important;
    height: 36px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.user-profile-btn:hover {
    background: #e9ecef !important;
    border-color: #4A90E2 !important;
    color: #4A90E2 !important;
}

.user-profile-btn.active {
    background: #4A90E2 !important;
    color: white !important;
    border-color: #4A90E2 !important;
}

/* User Name in Button */
.user-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 80px !important;
}

/* Dropdown Icon */
.dropdown-icon {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

.user-profile-btn.active .dropdown-icon {
    transform: rotate(180deg) !important;
}

/* User Profile Image */
.nav-profile-image {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* User Profile Placeholder (initials) */
.nav-profile-placeholder {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #4A90E2 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}

/* Logout Button - Compact Design */
.logout-btn,
a.logout-btn {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    background-image: none !important;
    color: white !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 55px !important;
    height: 32px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.logout-btn:hover,
a.logout-btn:hover {
    background: #c82333 !important;
    background-color: #c82333 !important;
    background-image: none !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Adjust nav-actions for signed-in users */
.nav-actions {
    min-width: 320px !important; /* Optimized for dropdown */
    gap: 0.75rem !important; /* Good spacing */
}

/* Responsive adjustments for signed-in navigation */
@media (max-width: 1200px) {
    .nav-actions {
        min-width: 300px !important;
        gap: 0.5rem !important;
    }
    
    .user-profile-link,
    a.user-profile-link {
        max-width: 100px !important;
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    .logout-btn,
    a.logout-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        min-width: 55px !important;
        height: 32px !important;
    }
    
    .contact-btn,
    a.contact-btn,
    a[href*="contact"] {
        padding: 5px 10px !important;
        font-size: 11px !important;
        min-width: 55px !important;
        height: 32px !important;
    }
}

@media (max-width: 1024px) {
    .nav-actions {
        min-width: 280px !important;
        gap: 0.4rem !important;
    }
    
    .user-profile-link,
    a.user-profile-link {
        max-width: 80px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    
    .logout-btn,
    a.logout-btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
        min-width: 50px !important;
        height: 30px !important;
    }
    
    .contact-btn,
    a.contact-btn,
    a[href*="contact"] {
        padding: 4px 8px !important;
        font-size: 10px !important;
        min-width: 50px !important;
        height: 30px !important;
    }
    
    .search-input-container {
        width: 100px !important;
    }
}

/* Mobile signed-in navigation */
.mobile-nav-link.user-profile-link {
    background: #f5f5f5 !important;
    color: #333 !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: left !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.mobile-nav-link.user-profile-link:hover {
    background: #e9ecef !important;
    color: #4A90E2 !important;
}

.mobile-nav-link.logout-btn {
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: white !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.mobile-nav-link.logout-btn:hover {
    background: #c82333 !important;
    background-color: #c82333 !important;
    color: white !important;
}

/* Remove any pseudo-elements from user navigation */
.user-profile-link::before,
.user-profile-link::after,
.logout-btn::before,
.logout-btn::after,
a.user-profile-link::before,
a.user-profile-link::after,
a.logout-btn::before,
a.logout-btn::after {
    display: none !important;
    content: none !important;
}

/* ========================================
   END SIGNED-IN USER NAVIGATION FIX
   ======================================== */
/* ========================================
   CLEAN MOBILE NAVIGATION - OVERRIDE ALL CONFLICTS
   ======================================== */

/* Force reset all mobile navigation styles */
.mobile-nav-wrapper,
.mobile-nav-header,
.mobile-brand,
.mobile-brand-logo,
.mobile-menu-btn,
.hamburger-line,
.mobile-nav-menu,
.mobile-nav-link,
.mobile-nav-search,
.mobile-search-form,
.mobile-search-input-container,
.mobile-search-input,
.mobile-search-btn {
    all: unset !important;
}

/* Mobile Navigation Wrapper */
.mobile-nav-wrapper {
    display: none !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

/* Mobile Navigation Header */
.mobile-nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    height: 65px !important;
    box-sizing: border-box !important;
}

/* Mobile Brand */
.mobile-brand {
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.mobile-brand-logo {
    height: 45px !important;
    width: auto !important;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hamburger Lines */
.hamburger-line {
    width: 25px !important;
    height: 3px !important;
    background: #2c3e50 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Hamburger Animation - Active State */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none !important;
    flex-direction: column !important;
    background: white !important;
    border-top: 1px solid #eee !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
}

.mobile-nav-menu.show {
    display: flex !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Mobile Navigation Links */
.mobile-nav-link {
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #f8f9fa !important;
    transition: background 0.2s ease !important;
    display: block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.mobile-nav-link:hover {
    background: #f8f9fa !important;
    color: #4A90E2 !important;
    text-decoration: none !important;
}

/* Mobile Sign In Button */
.mobile-nav-link.signin-btn {
    background: #4A90E2 !important;
    color: white !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.mobile-nav-link.signin-btn:hover {
    background: #357abd !important;
    color: white !important;
}

/* Mobile Contact Button */
.mobile-nav-link.contact-btn {
    background: #ff6b35 !important;
    color: white !important;
    margin: 0.5rem 1rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.mobile-nav-link.contact-btn:hover {
    background: #f7931e !important;
    color: white !important;
}

/* Mobile Search */
.mobile-nav-search {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.mobile-search-form {
    margin: 0 !important;
}

.mobile-search-input-container {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    height: 40px !important;
    padding: 0 !important;
}

.mobile-search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    color: #333 !important;
}

.mobile-search-btn {
    background: #4A90E2 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 4px !important;
    cursor: pointer !important;
}

.mobile-search-btn .icon {
    width: 16px !important;
    height: 16px !important;
    color: white !important;
}

/* Mobile Responsive - Show/Hide Navigation */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav-wrapper {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block !important;
    }
    
    .mobile-nav-wrapper {
        display: none !important;
    }
}

/* ========================================
   END CLEAN MOBILE NAVIGATION
   ======================================== */
/* ========================================
   FIX CHAT WIDGET POSITIONING
   ======================================== */

/* Push chat widget below navigation */
.chat-widget,
.chat-bubble,
.tawk-widget,
.crisp-client,
.intercom-launcher,
[id*="chat"],
[class*="chat"],
[id*="tawk"],
[class*="tawk"] {
    top: 80px !important; /* Below navigation */
    z-index: 999 !important; /* Below navigation z-index */
}

/* Ensure chat doesn't interfere with navigation */
.nav-container {
    position: relative !important;
    z-index: 1001 !important;
}

/* ========================================
   END CHAT WIDGET FIX
   ======================================== */
/* ========================================
   SIGNED-IN NAVIGATION BUTTON ALIGNMENT
   ======================================== */

/* Ensure all buttons in signed-in state have same height */
.nav-actions .user-profile-link,
.nav-actions .logout-btn,
.nav-actions .contact-btn,
.nav-actions a.user-profile-link,
.nav-actions a.logout-btn,
.nav-actions a.contact-btn,
.nav-actions a[href*="contact"] {
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contact button specific adjustments for signed-in state */
.nav-actions .contact-btn,
.nav-actions a.contact-btn,
.nav-actions a[href*="contact"] {
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 16px !important;
    min-width: 60px !important;
}

/* ========================================
   END SIGNED-IN NAVIGATION ALIGNMENT
   ======================================== */
/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 160px !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.2s ease !important;
    margin-top: 4px !important;
}

.user-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown Items */
.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background 0.2s ease !important;
    border-bottom: 1px solid #f8f9fa !important;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

.dropdown-item:hover {
    background: #f8f9fa !important;
    color: #4A90E2 !important;
    text-decoration: none !important;
}

.dropdown-item.logout-item:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Dropdown Item Icons */
.dropdown-item-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Responsive User Dropdown */
@media (max-width: 1200px) {
    .user-profile-btn {
        max-width: 120px !important;
        font-size: 12px !important;
        padding: 5px 10px !important;
        height: 34px !important;
    }
    
    .user-name {
        max-width: 70px !important;
    }
    
    .dropdown-icon {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 1024px) {
    .user-profile-btn {
        max-width: 100px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        height: 32px !important;
    }
    
    .user-name {
        max-width: 60px !important;
    }
    
    .user-dropdown-menu {
        min-width: 140px !important;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem !important;
        font-size: 13px !important;
    }
}

/* Mobile User Section */
.mobile-user-section {
    border-top: 1px solid #f8f9fa !important;
    padding-top: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.mobile-nav-link.user-profile-link {
    background: #f8f9fa !important;
    color: #333 !important;
    margin: 0.25rem 1rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.mobile-nav-link.user-profile-link:hover {
    background: #e9ecef !important;
    color: #4A90E2 !important;
}

.mobile-nav-link.logout-btn {
    background: #dc3545 !important;
    color: white !important;
    margin: 0.25rem 1rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.mobile-nav-link.logout-btn:hover {
    background: #c82333 !important;
    color: white !important;
}

.mobile-nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* Professional Footer Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-company {
        max-width: none;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links-list {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-cta {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        gap: 2rem;
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
    }
    
    .footer-brand-name {
        font-size: 1.25rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .footer-cta-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
}




/* =====================================================
   MJENGO HUB FOOTER - Improved Layout
   ===================================================== */

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
    color: #e5e7eb;
    margin-top: 3rem;
}

.footer-main {
    padding: 2.5rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 3rem;
}

/* Column 1: Company Info */
.footer-company {
    padding-right: 0;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 0.3rem 0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
    margin: 0 0 0.75rem 0;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #bbbbbb;
    margin-bottom: 1.25rem;
}

.footer-social h4 {
    color: #f97316;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Columns 2 & 3: Links */
.footer-column h4 {
    color: #f97316;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f97316;
    display: inline-block;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #f97316;
    padding-left: 4px;
}

/* Column 4: Contact */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.4rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 28px;
}

.contact-details {
    flex: 1;
}

.contact-details p {
    margin: 0.2rem 0;
    font-size: 0.875rem;
    color: #cccccc;
    line-height: 1.4;
}

.contact-details a {
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: #f97316;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f97316;
    color: #ffffff;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5);
}

.cta-icon {
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-copyright p,
.footer-tagline-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.footer-legal {
    color: #94a3b8;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0 0.3rem;
}

.footer-legal a:hover {
    color: #f97316;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-container {
        max-width: 100%;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-main {
        padding: 2rem 1rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .social-icons {
        justify-content: flex-start;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
