/* ==========================================================================
   NEHCP CSS Design System
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Base Hue */
    --h-teal: 172;
    --h-emerald: 150;
    --h-slate: 215;

    /* Theme colors - Light Mode Default */
    --primary: hsl(var(--h-teal), 80%, 26%);
    --primary-light: hsl(var(--h-teal), 70%, 38%);
    --primary-dark: hsl(var(--h-teal), 85%, 16%);
    --primary-glow: hsl(var(--h-teal), 60%, 94%);
    
    --accent: hsl(var(--h-emerald), 75%, 36%);
    --accent-glow: hsl(var(--h-emerald), 60%, 94%);
    
    --warning: #eab308;
    --warning-glow: #fef9c3;
    
    --bg-base: hsl(var(--h-slate), 30%, 97%);
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-solid: #ffffff;
    --text-main: hsl(var(--h-slate), 45%, 16%);
    --text-muted: hsl(var(--h-slate), 20%, 45%);
    --text-white: #ffffff;
    
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, 0.12);
    --glass-blur: blur(12px);

    /* Animation speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables Override */
body.theme-dark {
    --primary: hsl(var(--h-teal), 75%, 45%);
    --primary-light: hsl(var(--h-teal), 65%, 55%);
    --primary-dark: hsl(var(--h-teal), 80%, 25%);
    --primary-glow: hsl(var(--h-teal), 80%, 12%);
    
    --accent: hsl(var(--h-emerald), 70%, 48%);
    --accent-glow: hsl(var(--h-emerald), 70%, 12%);
    
    --warning-glow: #422006;
    
    --bg-base: hsl(var(--h-slate), 24%, 9%);
    --bg-surface: rgba(17, 24, 39, 0.78);
    --bg-surface-solid: #111827;
    --text-main: hsl(var(--h-slate), 15%, 88%);
    --text-muted: hsl(var(--h-slate), 12%, 65%);
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
}

/* Multilingual Toggle Engine */
body.lang-en .lang-el.ro { display: none !important; }
body.lang-ro .lang-el.en { display: none !important; }

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--bg-base);
    color: var(--text-main);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.section-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mr-1 { margin-right: 1rem; }
.font-small { font-size: 0.85rem; }

.grid-container {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-surface-solid);
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--primary-glow);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-card-view {
    width: 100%;
    margin-top: 1.5rem;
    background-color: var(--primary-glow);
    color: var(--primary-light);
    border: 1px solid var(--border);
    padding: 0.6rem;
    font-size: 0.85rem;
}

.btn-card-view:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   HEADER & TOP BANNER
   -------------------------------------------------------------------------- */
.top-grant-banner {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content i {
    margin-right: 0.4rem;
    color: var(--accent);
}

.main-header {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-glow);
}

.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-surface-solid);
}

.lang-btn {
    border: none;
    background: none;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.lang-btn.active {
    background-color: var(--primary);
    color: var(--text-white);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   PAGE SECTION ROUTING MANAGER
   -------------------------------------------------------------------------- */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow) ease-in-out;
}

.page-section.active {
    display: block;
    opacity: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-title {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
}

.section-subtitle {
    max-width: 720px;
    margin: -1rem auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   1. HOME: HERO & HERO BG
   -------------------------------------------------------------------------- */
.hero-container {
    position: relative;
    padding: 8rem 2rem;
    background: radial-gradient(circle at 80% 20%, var(--primary-glow) 0%, transparent 60%);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

body.theme-dark .shape {
    opacity: 0.08;
}

.shape-1 {
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--primary-light);
}

.shape-2 {
    bottom: -10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background-color: var(--accent);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.eu-co-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.eu-logo-img {
    height: 24px;
    width: auto;
}

.eu-badge-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #1e3a8a;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: left;
}

body.theme-dark .eu-badge-text {
    color: #93c5fd;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-style: italic;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Message Cards */
.message-card {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

body.theme-dark .card-icon {
    color: var(--primary-light);
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Stats Board */
.stats-section {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 3rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.25rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.25rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

/* Featured / Latest Cards (Home) */
.featured-card {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
}

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

.featured-tag {
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: fit-content;
    border-bottom-right-radius: 8px;
    color: var(--text-white);
}

.tag-news { background-color: var(--primary-light); }
.tag-event { background-color: var(--accent); }
.tag-result { background-color: var(--warning); color: #000; }

.featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.featured-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   2. ABOUT: TABS, WPS, AND TIMELINE
   -------------------------------------------------------------------------- */
.tabs-container {
    margin-top: 3rem;
}

.tabs-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.tab-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.tab-panel {
    display: none;
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-normal) ease;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-light);
    font-weight: 500;
    line-height: 1.5;
}

.callout-box {
    border-left: 4px solid;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.callout-box.warning {
    border-left-color: var(--warning);
    background-color: var(--warning-glow);
}

.callout-box.warning h4 {
    color: #854d0e;
    margin-bottom: 0.8rem;
}

body.theme-dark .callout-box.warning h4 {
    color: #fef08a;
}

.callout-box ul {
    list-style: none;
}

.callout-box li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.callout-box li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--warning);
    font-weight: bold;
}

.benefit-box {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
}

.benefit-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.benefit-box h4 i {
    color: var(--accent);
}

/* Facts info-box list */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fact-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.fact-label {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.fact-val {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
}

/* WP Flow Diagram styles */
.wp-flow-container {
    position: relative;
}

.wp-box {
    background-color: var(--bg-surface-solid);
    border: 2.5px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: all var(--transition-normal);
}

.wp-box.highlight-wp {
    border-color: var(--accent);
    background-color: var(--accent-glow);
}

.wp-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.wp-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.wp-box.highlight-wp .wp-num {
    color: var(--accent);
}

.wp-title {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.wp-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.wp-footer-tag {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 0.8rem;
}

/* Timeline component style */
.timeline-outer {
    position: relative;
    display: flex;
    align-items: center;
    margin: 3rem 0;
}

.timeline-container {
    display: flex;
    overflow-x: auto;
    gap: 3rem;
    padding: 2.5rem 1rem;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}

.timeline-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background-color: var(--border);
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 0 0 160px;
    text-align: center;
    cursor: pointer;
}

.timeline-dot {
    width: 48px;
    height: 48px;
    background-color: var(--bg-surface-solid);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.timeline-item.active .timeline-dot,
.timeline-item:hover .timeline-dot {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--text-white);
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.timeline-pop { display: none; } /* Hidden popups, content displayed in details card below */

.timeline-scroll-btn {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    z-index: 2;
}

.timeline-scroll-btn:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

.timeline-details-card {
    background-color: var(--primary-glow);
    border: 1.5px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn var(--transition-normal) ease;
}

.timeline-details-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   3. PARTNERS
   -------------------------------------------------------------------------- */
.partners-grid {
    margin-top: 3rem;
}

.partner-card {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.partner-header {
    padding: 1.5rem;
    background-color: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.partner-logo-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.partner-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--border);
    color: var(--text-muted);
}

.partner-badge.coord {
    background-color: var(--primary-light);
    color: var(--text-white);
}

.partner-badge.host-badge {
    background-color: var(--accent);
    color: var(--text-white);
}

.partner-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.partner-name {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.partner-country {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.partner-country i {
    color: var(--accent);
}

.partner-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.partner-wp-role {
    font-size: 0.8rem;
    background-color: var(--bg-base);
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.partner-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   4. RESULTS GRID & CARD HIGHLIGHTS
   -------------------------------------------------------------------------- */
.results-hub-grid {
    margin-top: 3rem;
}

.result-card {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.result-card.active-highlight {
    border: 2px solid var(--accent);
    background-color: var(--accent-glow);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.status-badge {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-badge.published {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.in-progress {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-badge.flagship {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.planned {
    background-color: #f3f4f6;
    color: #374151;
}

.result-card-title {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.result-card-wp {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. EVENTS PAGE ELEMENTS
   -------------------------------------------------------------------------- */
.event-timeline {
    position: relative;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    margin: 1rem 0;
}

.event-item {
    position: relative;
    margin-bottom: 3rem;
}

.event-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 3px solid var(--border);
    transition: all var(--transition-fast);
}

.event-item.past::before {
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

.event-item.upcoming::before {
    border-color: var(--accent);
    background-color: var(--bg-surface-solid);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-status {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.event-status.past-tag { background-color: var(--border); color: var(--text-muted); }
.event-status.upcoming-tag { background-color: var(--accent-glow); color: var(--accent); }

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.event-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.inline-link-btn {
    font-weight: 700;
    text-decoration: underline;
}

/* Highlight border boxes */
.highlight-border {
    border: 2px solid var(--primary-light);
    background-color: var(--primary-glow);
}

/* --------------------------------------------------------------------------
   6. NEWS & RESOURCES
   -------------------------------------------------------------------------- */
.sub-nav-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sub-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.sub-link:hover,
.sub-link.active-sub {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.sub-section-container {
    display: none;
}

.sub-section-container.active-sub-panel {
    display: block;
    animation: fadeIn var(--transition-normal) ease;
}

/* Filter bar styles */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-btn {
    border: 1px solid var(--border);
    background-color: var(--bg-surface-solid);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background-color: var(--primary-glow);
}

/* Blog grid & elements */
.blog-card {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

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

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Resources Repository Table */
.repo-search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    gap: 0.5rem;
}

.repo-search-bar input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background-color: var(--bg-surface-solid);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.repo-search-bar input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.resources-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-surface-solid);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.resources-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.resources-table th,
.resources-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.resources-table th {
    background-color: var(--bg-base);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

.resources-table tbody tr:hover {
    background-color: var(--primary-glow);
}

.table-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.tag-res { background-color: var(--border); color: var(--text-muted); }
.tag-flag { background-color: var(--accent-glow); color: var(--accent); }
.tag-promo { background-color: var(--warning-glow); color: #854d0e; }

.badge.in-progress-bg {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Educators landing page style */
.educator-landing-card {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.educator-landing-card .card-icon {
    margin: 0 auto 1.5rem;
}

.educator-landing-card h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.educator-landing-card p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.guide-feature {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.guide-feature:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.guide-feature h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.guide-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
    margin: 0;
}

/* Policy Brief boxes */
.policy-brief-box {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.policy-brief-box h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rec-item {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
}

.rec-num {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rec-content h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.rec-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. CONTACT PAGE & FORMS
   -------------------------------------------------------------------------- */
.contact-form-card {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.contact-form-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: var(--bg-surface-solid);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-checkbox {
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
    display: block;
}

.form-success-alert {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success-alert i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success-alert h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-success-alert p {
    color: var(--text-muted);
}

/* Contact Info panels */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.coordinator-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
}

.coord-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
}

.coord-details {
    display: flex;
    flex-direction: column;
}

.coord-details strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.coord-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.coord-email {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.newsletter-box {
    background-color: var(--primary-glow);
    border: 1.5px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.newsletter-box h3 {
    color: var(--primary);
}

.newsletter-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.newsletter-inline {
    display: flex;
    gap: 0.5rem;
}

.newsletter-inline input {
    flex-grow: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--bg-surface-solid);
}

.newsletter-inline input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background-color: #0077b5;
    color: var(--text-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 8px;
}

.social-link-btn:hover {
    background-color: #005a8a;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   FOOTER SECTION
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: hsl(var(--h-slate), 35%, 12%);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-col .logo-area .logo-placeholder {
    box-shadow: none;
}

.brand-col .logo-area .logo-title {
    color: var(--text-white);
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
}

.eu-co-badge-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.eu-co-badge-footer .eu-logo-img {
    align-self: flex-start;
    height: 32px;
}

.disclaimer-text {
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
}

.footer-col-title {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.open-license-footer-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.open-license-footer-text i {
    font-size: 1rem;
    color: var(--accent);
    margin-right: 0.25rem;
}

.open-license-footer-text strong {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   MODAL DIALOG (OVERLAY)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--glass-blur);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--bg-surface-solid);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: translateY(20px);
    transition: transform var(--transition-normal) ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--bg-base);
    color: var(--text-main);
}

/* Modal Internal Typography / Styling */
.modal-title-sec {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.modal-title-sec h2 {
    color: var(--primary);
    margin: 0;
}

.modal-dl-box {
    background-color: var(--bg-base);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.modal-dl-box-left h5 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.modal-dl-box-left p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author-box {
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.findings-list {
    margin: 1.5rem 0;
    list-style: none;
}

.findings-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.findings-list li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.modal-toc {
    background-color: var(--primary-glow);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.modal-toc h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-toc ul {
    list-style: decimal;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.modal-toc li {
    margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Table Layouts */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-col.legal-col { grid-column: span 2; }
}

/* Tablet Layouts */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.15rem; }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface-solid);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: block;
        animation: slideUp 0.3s ease;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        color: var(--accent);
        border-left: 3px solid var(--accent);
        padding-left: 0.5rem;
    }
    
    .facts-grid { grid-template-columns: 1fr; }
    .tab-btn { padding: 0.75rem 1rem; font-size: 0.95rem; }
    
    .contact-info-panel { margin-top: 3rem; }
}

/* Mobile Screen Layouts */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; gap: 0.8rem; }
    .tabs-buttons { flex-direction: column; gap: 0.5rem; border-bottom: none; }
    .tab-btn.active::after { display: none; }
    .tab-btn.active { background-color: var(--primary-glow); border-radius: 8px; }
    
    .section-container { padding: 2.5rem 1rem; }
    .modal-container { padding: 2rem 1.5rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col.legal-col { grid-column: span 1; }
    
    .sub-nav-links { flex-direction: column; gap: 0.5rem; }
    .sub-link { text-align: center; }
}
