/* ==========================================
   LIQUID ACID - SCIENTIFIC MAGAZINE STYLES
   Clean, Editorial, Laboratory-Inspired Design
   ========================================== */

/* ==========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================== */
:root {
    /* Colors: Laboratory-inspired palette */
    --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;
    
    /* Brand Colors */
    --navy-dark: #1a237e;      /* Primary text, headers */
    --navy-medium: #303f9f;     /* Secondary elements */
    --navy-light: #5c6bc0;      /* Subtle accents */
    --acid-green: #64dd17;      /* Primary accent, highlights */
    --acid-green-light: #8bc34a;
    --acid-green-dark: #33691e;
    
    /* Semantic Colors */
    --text-primary: var(--navy-dark);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    --surface: var(--white);
    --surface-elevated: var(--gray-50);
    --shadow-color: rgba(26, 35, 126, 0.1);
    
    /* Typography Scale */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-serif: 'Source Serif Pro', Georgia, serif;
    
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 0.75rem;   /* 12px */
    --space-lg: 1rem;      /* 16px */
    --space-xl: 1.5rem;    /* 24px */
    --space-2xl: 2rem;     /* 32px */
    --space-3xl: 3rem;     /* 48px */
    --space-4xl: 4rem;     /* 64px */
    --space-5xl: 6rem;     /* 96px */
    --space-6xl: 8rem;     /* 128px */
    
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Border Radius */
    --border-radius-sm: 0.125rem;
    --border-radius: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-2xl: 1rem;
    --border-radius-3xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 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;
    --z-toast: 1080;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--navy-dark);
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.lead-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.accent-text {
    color: var(--acid-green-dark);
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0.125rem;
    left: 0;
    right: 0;
    height: 0.125rem;
    background: linear-gradient(90deg, var(--acid-green), var(--acid-green-light));
    border-radius: var(--border-radius-full);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
        padding: 0 var(--space-xl);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.navbar {
    padding: var(--space-lg) 0;
}

.nav-container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: var(--line-height-tight);
}

.logo-name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--navy-dark);
}

.logo-tagline {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link:hover {
    color: var(--navy-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acid-green);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    transition: all var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: var(--space-5xl) 0 var(--space-4xl);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 221, 23, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 35, 126, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    gap: var(--space-4xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5xl);
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    color: var(--navy-dark);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: var(--font-size-xl);
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element.molecule {
    animation-delay: -2s;
}

.floating-element.atom {
    animation-delay: -4s;
}

.floating-element.formula {
    animation-delay: -1s;
}

.formula-text {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--navy-medium);
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ==========================================
   BUTTONS & CTAs
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.cta-button.primary {
    background: var(--acid-green);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    background: var(--acid-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--navy-dark);
    border-color: var(--navy-dark);
}

.cta-button.secondary:hover {
    background: var(--navy-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   SECTIONS & CONTENT BLOCKS
   ========================================== */
.main-content {
    min-height: 100vh;
}

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

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

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--navy-dark);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

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

/* ==========================================
   AD SPACES
   ========================================== */
.ad-space {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

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

.ad-placeholder {
    background: var(--white);
    border: 2px dashed var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-lg);
}

.ad-label {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    background: var(--gray-100);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.native-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    width: 100%;
}

.native-ad-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.native-ad-image {
    height: 120px;
    background: var(--gray-200);
    border-radius: var(--border-radius);
}

.native-ad-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

/* ==========================================
   FEATURED ARTICLES GRID
   ========================================== */
.featured-articles {
    background: var(--white);
}

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

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto;
    }
}

.featured-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

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

.featured-card.large {
    grid-row: span 2;
}

@media (min-width: 1024px) {
    .featured-card.large {
        grid-row: span 1;
    }
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.card-category {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    background: var(--acid-green);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.card-content h3 {
    margin-bottom: var(--space-lg);
}

.card-content h3 a {
    color: var(--navy-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-content h3 a:hover {
    color: var(--acid-green-dark);
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-relaxed);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.read-time::before {
    content: '📖 ';
    margin-right: var(--space-xs);
}

.publish-date::before {
    content: '📅 ';
    margin-right: var(--space-xs);
}

/* ==========================================
   CATEGORIES GRID
   ========================================== */
.categories-section {
    background: var(--gray-50);
}

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

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

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

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--acid-green);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--acid-green);
    border-radius: var(--border-radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--acid-green-dark);
    transform: scale(1.1);
}

.category-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.category-content h3 {
    font-size: var(--font-size-lg);
    color: var(--navy-dark);
    margin-bottom: var(--space-sm);
}

.category-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.category-count {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    background: var(--gray-100);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-full);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-4xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .newsletter-card {
        grid-template-columns: 1fr 1fr;
    }
}

.newsletter-content {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

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

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

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    gap: var(--space-sm);
}

.form-group input {
    flex: 1;
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: var(--font-size-base);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: var(--acid-green);
    box-shadow: 0 0 0 3px rgba(100, 221, 23, 0.3);
}

.newsletter-btn {
    background: var(--acid-green);
    color: var(--white);
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--border-radius-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--acid-green-dark);
    transform: translateY(-2px);
}

.form-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.form-note a {
    color: var(--acid-green);
    text-decoration: underline;
}

/* ==========================================
   ARTICLES GRID
   ========================================== */
.recent-articles {
    background: var(--white);
}

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

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

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

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

.article-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--acid-green);
}

.card-category-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.article-card h3 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-lg);
}

.article-card h3 a {
    color: var(--navy-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-card h3 a:hover {
    color: var(--acid-green-dark);
}

.article-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
}

.load-more {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: var(--space-5xl) 0 var(--space-2xl);
}

.footer-content {
    display: grid;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

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

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

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

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--acid-green);
}

.footer-links {
    display: grid;
    gap: var(--space-2xl);
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

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

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--acid-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-2xl);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
    .footer-contact {
        flex-direction: row;
        gap: var(--space-xl);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 767px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-5xl: 2.5rem;
        --font-size-6xl: 3rem;
    }
    
    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.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;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* ==========================================
   ANIMATIONS & INTERACTIONS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth reveal animation for elements coming into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--acid-green);
    outline-offset: 2px;
}

/* ==========================================
   COOKIE CONSENT BANNER (GDPR/CCPA)
   ========================================== */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 1.5rem;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.cookie-consent-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: var(--font-size-base);
    color: var(--navy-dark);
    font-weight: var(--font-weight-semibold);
}

.cookie-consent-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: var(--font-family-primary);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn.primary {
    background: var(--acid-green);
    color: var(--white);
    border-color: var(--acid-green);
}

.cookie-btn.primary:hover {
    background: var(--acid-green-dark);
    border-color: var(--acid-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cookie-btn.secondary {
    background: transparent;
    color: var(--navy-dark);
    border-color: var(--border-medium);
}

.cookie-btn.secondary:hover {
    background: var(--gray-50);
    border-color: var(--navy-dark);
    transform: translateY(-1px);
}

/* ==========================================
   STOCK IMAGERY: latest-card thumbnails + article hero
   ========================================== */
.article-card .card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    background: var(--gray-100);
}
.article-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.article-card:hover .card-thumb img {
    transform: scale(1.04);
}

.article-hero {
    margin: var(--space-xl) 0 var(--space-2xl);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
}
.article-hero img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}


/* ==========================================
   ARTICLE HERO BANNER (no-photo articles)
   ========================================== */
.article-hero--banner {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(100,221,23,0.20) 0%, transparent 45%),
        radial-gradient(circle at 85% 86%, rgba(92,107,192,0.32) 0%, transparent 52%),
        linear-gradient(135deg, var(--navy-dark) 0%, #283593 100%);
    position: relative;
}
.article-hero--banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
    pointer-events: none;
}
.article-hero--banner .article-hero__icon {
    width: 88px;
    height: 88px;
    max-height: none;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    position: relative;
    transition: transform var(--transition-slow);
}
.article-hero--banner:hover .article-hero__icon { transform: translateY(-3px) scale(1.04); }

/* ==========================================
   HEADER — refined editorial bar
   ========================================== */
.site-header {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -22px rgba(26, 35, 126, 0.45);
}
.site-header::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--acid-green) 0%, var(--navy-medium) 50%, var(--acid-green) 100%);
}
.logo-tagline { color: var(--acid-green-dark); display: none;}
.nav-menu { gap: var(--space-xl); }
.nav-link {
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
}
.nav-link::after { height: 2px; border-radius: 2px; }

/* ==========================================
   FOOTER — richer, branded
   ========================================== */
.site-footer {
    position: relative;
    background:
        radial-gradient(circle at 10% 15%, rgba(100,221,23,0.10) 0%, transparent 42%),
        radial-gradient(circle at 92% 0%, rgba(92,107,192,0.20) 0%, transparent 48%),
        var(--navy-dark);
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acid-green), var(--navy-light), var(--acid-green));
}
.footer-description { color: rgba(255,255,255,0.78); }
.footer-column h4 {
    position: relative;
    padding-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--font-size-sm);
}
.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 26px; height: 2px;
    background: var(--acid-green);
    border-radius: 2px;
}
.footer-column a {
    display: inline-block;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-column a:hover { transform: translateX(4px); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}
.footer-social a:hover {
    color: var(--navy-dark);
    background: var(--acid-green);
    border-color: var(--acid-green);
    transform: translateY(-3px);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); }


/* ==========================================
   ARTICLE READING VIEW — comfortable measure + rhythm
   ========================================== */
.article-main .container { max-width: 760px; }

.article-body {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
}
.article-body p { margin: 0 0 var(--space-xl); }
.article-body > p:first-of-type,
.article-body .lead {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}
.article-body h2 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-snug);
    margin: var(--space-3xl) 0 var(--space-lg);
}
.article-body h3 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-snug);
    margin: var(--space-2xl) 0 var(--space-md);
}
.article-body ul,
.article-body ol {
    margin: 0 0 var(--space-xl);
    padding-left: 1.5em;
}
.article-body li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}
.article-body a {
    color: var(--acid-green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--space-xl) 0;
}
.article-body blockquote {
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) var(--space-xl);
    border-left: 3px solid var(--acid-green);
    background: var(--gray-50);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-style: italic;
}
.article-body strong { color: var(--text-primary); }

/* a touch more breathing room around the article block */
.article-content { padding: var(--space-3xl) 0 var(--space-4xl); }
