/* =========================================
   SmartHeal Interactive - Enhanced Design System
========================================= */

:root {
  /* Enhanced Color Palette with better contrast */
  --primary-navy: #1e40af;
  --primary-teal: #0891b2;
  --accent-coral: #dc2626;
  --accent-purple: #6366f1;
  --accent-light-blue: #0ea5e9;
  --success-green: #059669;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(0, 180, 216, 0.1) 0%, transparent 70%), 
                   linear-gradient(135deg, var(--primary-navy) 0%, #2563eb 100%);
  --gradient-coral: linear-gradient(135deg, var(--accent-coral) 0%, var(--primary-teal) 100%);
  --gradient-cta: linear-gradient(135deg, #17207B 0%, #2B0876 50%, #C22540 100%);
  --gradient-icon: linear-gradient(135deg, var(--accent-light-blue) 0%, #17207B 100%);
  --gradient-light-blue: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--primary-teal) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--primary-navy) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   Base Styles
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* =========================================
   Utility Classes
========================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition-normal), transform 0.6s var(--transition-normal);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Header
========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--primary-navy);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-icon {
  transform: rotateY(180deg);
}

/* Navigation */
.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--gray-700);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: none;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--gradient-cta);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-3d);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.nav-mobile.active {
  display: flex;
}

.nav-link-mobile {
  display: block;
  padding: 1rem 0;
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: var(--accent-light-blue);
  padding-left: 1rem;
  background: rgba(168, 225, 251, 0.1);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}
.trending-ticker {
    background: var(--highlight-red);
    color: var(--white);
    padding: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}
.trending-ticker p {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 20s linear infinite;
    margin: 0;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
        .featured-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .featured-main {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-medium);
        }
        
        .featured-main img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }
        
        .featured-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: var(--white);
            padding: 2rem;
        }
        
        .featured-overlay h2 {
            font-size: 1.75rem;
            margin-bottom: 0.5rem;
        }
        
        .featured-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .sidebar-story {
            display: flex;
            gap: 1rem;
            padding: 1rem;
            background: var(--white);
            border-radius: 10px;
            box-shadow: var(--shadow-light);
            transition: transform var(--transition-fast);
        }
        
        .sidebar-story:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }
        
        .sidebar-story img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }
        
        .sidebar-content h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }
        
        .sidebar-content .meta {
            font-size: 0.85rem;
            color: var(--gray-medium);
        }
        
        .news-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: all var(--transition-medium);
        }
        
        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-heavy);
        }
        
        .news-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .news-card-content {
            padding: 1.5rem;
        }
        
        .news-category {
            display: inline-block;
            background: var(--highlight-red);
            color: var(--white);
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }
        
        .news-card h3 {
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }
        
        .news-excerpt {
            color: var(--gray-medium);
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--gray-medium);
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        @media (max-width: 768px) {
            .featured-grid {
                grid-template-columns: 1fr;
            }
            
            .featured-main {
                order: 1;
            }
            
            .featured-sidebar {
                order: 2;
            }
            
            .sidebar-story {
                flex-direction: column;
            }
            
            .sidebar-story img {
                width: 100%;
                height: 150px;
            }
        }


/* =========================================
   Responsive Design
========================================= */

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .header-actions {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
  
  .demo-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .demo-features {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================
   Accessibility & Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
}
/* Blog Page Styles */
.blog-header {
    background: var(--gray-50);
    padding: 2rem 0;
}

.blog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-title {
    color: var(--highlight-red);
    margin: 0;
}

.subscribe-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: var(--accent-purple);
}

/* Filter Bar */
.filter-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 32, 123, 0.1);
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    border-color: var(--primary-blue);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
    margin-top: 4px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
}

/* Blog Grid */
.blog-grid-section {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--highlight-red);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.blog-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.access-blog-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.access-blog-btn:hover {
    background: var(--accent-purple);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Additional variables for newsroom and blogs */
:root {
  --highlight-red: #C22540;
  --primary-blue: #4A90E2;
  --gray-light: #f8fafc;
  --gray-medium: #64748b;
  --deep-blue-fade: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(135, 206, 235, 0.1) 100%);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* Section and grid utilities */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
}

/* Hero section for pages */
.page-hero {
  background: #707adc;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: linear-gradient(135deg,  0%, var(--white) 50%, var(--primary-teal) 100%);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .filter-dropdowns {
    flex-direction: column;
  }
  
  .blog-header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Visually hidden utility for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   Newsroom + Header/Ticker Fixes (Add below)
========================================= */

/* 1) Keep content from hiding under the fixed header */
body { padding-top: 80px; }

/* 2) Improve active state via aria-current */
.nav-link[aria-current="page"] {
  color: var(--accent-light-blue);
}
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* 3) Interactive cursor (subtle glow follow) */
.interactive-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168,225,251,0.9) 0%, rgba(168,225,251,0.1) 60%, transparent 70%);
  mix-blend-mode: multiply;
  filter: blur(0.5px);
  z-index: 2000;
  opacity: 0; /* reveal via JS on move if you like */
  transition: opacity var(--transition-fast);
}


/* 5) Ticker: smoother loop + item spacing */
.trending-ticker {
  background: var(--highlight-red);
  color: var(--white);
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}
.trending-ticker p {
  display: inline-flex;
  gap: 2rem;
  padding-left: 100%;
  animation: ticker-scroll 22s linear infinite;
  white-space: nowrap;
}
.trending-ticker p span { opacity: 0.95; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 6) Featured grid polish */
.featured-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.featured-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,23,42,0.85) 90%);
  color: var(--white);
  padding: 2rem;
  backdrop-filter: blur(2px);
}
.featured-overlay .news-category {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.featured-overlay h2 {
  font-size: clamp(1.25rem, 2vw + 1rem, 2rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: #fefefe;
}


/* 8) News cards: nicer motion + aspect ratios */
.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 9) Line-clamp helpers for tidy titles/excerpts */
.clamp-2, .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3, .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 10) Newsletter form: better focus/accessibility */
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(74,144,226,0.15);
}

/* 12) Responsive tidy-ups */
@media (max-width: 768px) {
  .featured-main img { aspect-ratio: 16 / 10; }
  .sidebar-story { flex-direction: row; }
  .sidebar-story img { width: 72px; height: 72px; }
  .news-card img { aspect-ratio: 16 / 10; }
}

/* 13) Small fix: ensure gray-light token used by Newsroom sections exists */
:root {
  --gray-light: var(--gray-50);
}
.news-link { display:block; height:100%; }

/* ===== Ensure global footer styling applies on the Newsroom page ===== */
footer.footer {
  background: linear-gradient(205deg, #1e40af 20%, #707adc 80%);
  color: var(--white);
}

footer.footer .container {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

footer.footer .footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  footer.footer .footer-content { grid-template-columns: 1fr; }
}

footer.footer .footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.04);
}

footer.footer .footer-bottom-inner.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

footer.footer .footer-links a { color: #fefefe; }
footer.footer .footer-links a:hover { color: var(--accent-color, #ffd700); }

.awards-section .grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.award-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.award-card:hover {
  transform: translateY(-5px);
}

.award-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.award-content {
  padding: 1.2rem;
}

.award-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--primary-navy);
}

.award-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-700);
}
.award-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.award-link:hover h3 {
  color: var(--accent-purple); /* subtle hover effect */
}
