/* ===============================================================
   VARIABLES
   =============================================================== */
:root {
    --primary-color: #001f3f; /* Dark blue */
    --secondary-color: #ffffff; /* White for branding */
    --accent-color: #dc1010; /* Red accent */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme='dark'] {
    --primary-color: #001f3f; /* Dark blue background */
    --secondary-color: #ffffff; /* White for text */
    --accent-color: #dc1010; /* Keep red accent */
    --text-color: #ffffff; /* White text */
    --light-bg: #001f3f; /* Dark blue background */
    --white: #001f3f; /* Dark blue for what was white */
    --gray-light: #002952; /* Slightly lighter blue */
    --gray-medium: #a0a0a0;
    --card-bg: #002952; /* Slightly lighter blue for cards */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --bg-primary: #1f2937;
    --bg-secondary: #374151;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --accent: #3b82f6;
    --border-color: #4b5563;
}

[data-theme='light'] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #2563eb;
    --border-color: #e5e7eb;
}

/* ===============================================================
   RESET & BASE STYLES
   =============================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================================================
   ACCESSIBILITY
   =============================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.sr-only-seo {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-seo * {
    visibility: hidden !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===============================================================
   COMPONENTS - DARK MODE TOGGLE
   =============================================================== */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ===============================================================
   COMPONENTS - SEARCH & FILTER
   =============================================================== */
.global-search-filter {
    background: var(--light-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.search-filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    font-size: 16px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-color);
}

.filter-dropdown select {
    padding: 10px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===============================================================
   LAYOUT - HERO SECTION
   =============================================================== */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2" d="M0,300 Q300,200 600,300 T1200,300"/></svg>');
    background-size: cover;
}

.hero h2 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.hero .dot {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

/* ===============================================================
   COMPONENTS - RESEARCH CARD
   =============================================================== */
.research-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.research-card.featured {
    border-left: 4px solid var(--accent, var(--primary-color));
}

.research-card.critical {
    border-left: 4px solid var(--danger-color, #ef4444);
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.research-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.research-card:hover .research-title {
    color: var(--gray-medium);
}

.research-description {
    color: var(--text-secondary, var(--gray-medium));
    margin-bottom: 1rem;
}

.research-category {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.research-card:hover .research-category {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.research-category.category-consumenten {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.research-category.category-criminaliteit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.research-category.category-misdaad {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.research-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    position: relative;
}

.research-status.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.research-status.active::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.research-status.critical {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.research-status.investigation {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.1);
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    align-items: center;
}

.research-tags::before {
    content: 'TAGS';
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-medium);
    margin-right: 10px;
    letter-spacing: 0.5px;
}

.research-tags .tag {
    display: inline-block;
    padding: 5px 14px;
    background: #001f3f;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.research-tags .tag::before {
    content: '#';
}

.research-tags .tag:hover {
    background: #002952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.3);
}

.research-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.research-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.research-date::before {
    content: '📅';
    font-size: 1rem;
}

.research-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.research-views::before {
    content: '👁️';
    font-size: 1rem;
}

.alert-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 0 0 0 8px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
}

.research-card[data-status='critical'] .alert-badge {
    background: #dc2626;
    color: white;
    animation: pulse 2s infinite;
}

.research-card[data-status='investigation'] .alert-badge {
    background: #f59e0b;
    color: white;
}

.research-card[data-status='active'] .alert-badge {
    background: #10b981;
    color: white;
}

/* ===============================================================
   LAYOUT - RECENT RESEARCH SECTION
   =============================================================== */
.recent-research-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.recent-research-section header {
    text-align: center;
    margin-bottom: 48px;
}

.recent-research-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-medium);
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

.research-grid-b {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.research-intro.seo-content {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--gray-medium);
    text-align: left;
}

.research-intro.seo-content p {
    margin-bottom: 20px;
}

.load-more-container {
    text-align: center;
    margin-top: 60px;
    overflow: hidden;
}

.load-more-btn {
    background: #001f3f;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.load-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ===============================================================
   LAYOUT - CATEGORIES SECTION
   =============================================================== */
.categories-section {
    text-align: center;
    padding: 80px 0;
    background: var(--light-bg);
}

.categories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.category-card:hover::before {
    transform: scaleX(1);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-description {
    color: var(--gray-medium);
    margin-bottom: 20px;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* ===============================================================
   LAYOUT - STATS SECTION
   =============================================================== */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.stats-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.stat-trend {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===============================================================
   LAYOUT - NEWSLETTER SECTION
   =============================================================== */
.newsletter-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.newsletter-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.newsletter-section p {
    text-align: center;
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--success-color);
}

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

.newsletter-privacy input {
    margin-right: 8px;
}

.newsletter-privacy label {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.newsletter-privacy a {
    color: var(--primary-color);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* ===============================================================
   LAYOUT - FOOTER
   =============================================================== */
.footer,
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1.3rem;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgb(17, 2, 91);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-partner {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-partner a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-partner a:hover {
    text-decoration: underline;
}

/* ===============================================================
   COMPONENTS - FAQ
   =============================================================== */
.research-faq {
    background: #002952;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--gray-light);
}

.research-faq h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question[aria-expanded='true'] {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded='true'] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    transition: max-height 0.3s ease;
}

.faq-question[aria-expanded='true'] + .faq-answer {
    max-height: 1000px;
}

.faq-answer > div {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid var(--gray-light);
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray-dark);
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0 15px 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary-color);
}

.research-keywords {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f4f8;
    border-radius: 8px;
    overflow: hidden;
}

.seo-text {
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
}

.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
/* ===============================================================
   ANIMATIONS
   =============================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.5);
    }
}

.interactive-feature {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.research-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation for cards */
.research-card:nth-child(1) {
    animation-delay: 0.1s;
}

.research-card:nth-child(2) {
    animation-delay: 0.2s;
}

.research-card:nth-child(3) {
    animation-delay: 0.3s;
}

.research-card:nth-child(4) {
    animation-delay: 0.4s;
}

.research-card:nth-child(5) {
    animation-delay: 0.5s;
}

.research-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* ===============================================================
   NEWS FLASHER
   =============================================================== */
.news-flasher {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.flasher-label {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
}

.flasher-container {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.flasher-content {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.flasher-content.animate {
    animation: flasherSlide 15s linear infinite;
}

.flasher-headline {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flasher-headline:hover {
    text-decoration: underline;
}

.flasher-source {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
    white-space: nowrap;
}

.flasher-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flasher-date {
    margin-left: auto;
    font-size: 0.8em;
    opacity: 0.8;
    white-space: nowrap;
    padding-left: 10px;
}

.flasher-loading,
.flasher-error {
    font-style: italic;
    opacity: 0.8;
}

/* ===============================================================
   DARK MODE OVERRIDES
   =============================================================== */
[data-theme='dark'] body {
    background-color: var(--primary-color);
    color: #ffffff;
}

[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4,
[data-theme='dark'] h5,
[data-theme='dark'] h6,
[data-theme='dark'] .hero h2,
[data-theme='dark'] a,
[data-theme='dark'] .research-title,
[data-theme='dark'] .category-title,
[data-theme='dark'] .recent-research-section h2,
[data-theme='dark'] .categories-section h2,
[data-theme='dark'] .newsletter-section h2,
[data-theme='dark'] .research-description,
[data-theme='dark'] .category-description,
[data-theme='dark'] .section-subtitle,
[data-theme='dark'] p,
[data-theme='dark'] .footer h3,
[data-theme='dark'] .footer h4,
[data-theme='dark'] .research-faq h3,
[data-theme='dark'] .faq-item h4 {
    color: #ffffff;
}

[data-theme='dark'] .research-meta,
[data-theme='dark'] .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme='dark'] .research-card,
[data-theme='dark'] .category-card {
    background: var(--card-bg);
    border-color: #002952;
    color: #ffffff;
}

[data-theme='dark'] .research-keywords {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .research-card {
    background: var(--gray-darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .research-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .research-tags .tag {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.2),
        rgba(16, 185, 129, 0.2)
    );
    color: #60a5fa;
}

[data-theme='dark'] .research-meta {
    border-top-color: var(--gray-dark);
}

/* ===============================================================
   RESPONSIVE STYLES
   =============================================================== */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 4rem;
    }

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

@media (max-width: 992px) {
    .hero h2 {
        font-size: 3.5rem;
    }

    .research-grid-b {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .search-filter-container {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filter-dropdown select {
        width: 100%;
    }

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

    .form-group {
        flex-direction: column;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    .research-grid-b {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .news-flasher {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .flasher-label {
        width: 100%;
        padding: 5px 15px;
        justify-content: center;
    }

    .flasher-container {
        height: 30px;
    }

    .flasher-date {
        display: none;
    }

    .recent-research-section h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .load-more-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .nav-links.show {
        display: flex;
    }
}

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

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

    .research-grid-b {
        grid-template-columns: 1fr;
    }

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

    .recent-research-section .section-subtitle {
        text-align: center;
        font-size: 1rem;
        padding: 0 20px;
    }

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

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

/* ===============================================================
   PRINT STYLES
   =============================================================== */
@media print {
    .dark-mode-toggle,
    .global-search-filter,
    .newsletter-section,
    .footer,
    .load-more-container {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .hero h2 {
        color: #000;
        font-size: 24pt;
    }

    .category-card,
    .research-card {
        break-inside: avoid;
        box-shadow: none;
        border: 3px solid #000000;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .research-tags,
    .research-meta {
        display: none;
    }
}
/* /css/styles.css */

/* ========== CSS RESET & BASE ========== */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg);
}

/* Color system (light/dark via [data-theme]) */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f3f6fb;
  --txt: #0f172a;
  --muted: #5b6472;
  --brand: #0d3b66;
  --brand-2: #165aa8;
  --accent: #00b894;
  --danger: #d90429;
  --border: #e5e7eb;
  --ring: 0 0 0 3px rgba(13, 59, 102, .18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(2, 6, 23, .08);
  --shadow-lg: 0 10px 30px rgba(2, 6, 23, .12);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --panel: #0f1828;
  --panel-2: #0e1524;
  --txt: #e6edf7;
  --muted: #8a97ab;
  --brand: #6fb3ff;
  --brand-2: #9cc9ff;
  --accent: #5eead4;
  --danger: #ff6b7a;
  --border: #1f2942;
  --ring: 0 0 0 3px rgba(111,179,255,.25);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
}

/* Utilities */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.visually-hidden,
.sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link {
  position: absolute; inset-inline-start: .75rem; inset-block-start: .75rem;
  background: var(--brand); color: #fff; padding: .5rem .75rem; border-radius: .5rem;
  transform: translateY(-200%); transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); outline: none; box-shadow: var(--ring); }

/* Links & buttons */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  --_bg: var(--brand); --_txt: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem;
  background: var(--_bg); color: var(--_txt); border: 1px solid var(--_bd);
  border-radius: .75rem; font-weight: 700; letter-spacing: .2px;
  box-shadow: var(--shadow-sm); transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-ghost { --_bg: transparent; --_txt: var(--brand); --_bd: var(--border); }
.btn-primary { --_bg: var(--brand); --_txt: #fff; }

/* ========== HEADER ========== */
.main-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--panel) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-content {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .75rem 0;
}
.logo-wrapper img { display: block; height: 44px; width: auto; }

.main-nav .nav-list { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .75rem; border-radius: .6rem; color: var(--txt); }
.nav-link:hover { background: var(--panel-2); text-decoration: none; }

.dropdown { position: relative; }
.dropdown-toggle[aria-expanded="true"] { background: var(--panel-2); }
.dropdown-menu {
  position: absolute; inset-block-start: calc(100% + .35rem); inset-inline-start: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: .75rem;
  min-width: 260px; padding: .45rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { display: block; padding: .55rem .65rem; border-radius: .6rem; color: var(--txt); }
.dropdown-menu a:hover { background: var(--panel-2); text-decoration: none; }

/* Header actions */
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.search-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: .65rem;
  border: 1px solid var(--border); background: var(--panel); color: var(--txt);
}
.search-toggle:hover { background: var(--panel-2); }

/* Language selector */
.language-selector { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .7rem; border-radius: .6rem;
  background: var(--panel); border: 1px solid var(--border); color: var(--txt);
}
.lang-toggle:hover { background: var(--panel-2); }
.lang-menu {
  position: absolute; inset-block-start: calc(100% + .35rem); inset-inline-end: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: .75rem; padding: .45rem; min-width: 160px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.language-selector.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: .5rem .6rem; border-radius: .5rem; color: var(--txt); }
.lang-menu a:hover { background: var(--panel-2); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: color-mix(in oklab, var(--bg) 80%, rgba(0,0,0,.35));
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay .container { height: 100%; display: grid; place-items: center; }
.search-form {
  display: flex; gap: .5rem; background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; padding: .6rem;
  width: min(760px, 92vw); box-shadow: var(--shadow-lg);
}
.search-input {
  flex: 1; background: transparent; color: var(--txt); border: none; outline: none; font-size: 1.05rem; padding: .6rem .8rem;
}
.search-submit { composes: btn btn-primary; }
.search-close {
  position: absolute; inset-block-start: 1.2rem; inset-inline-end: 1.2rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: .75rem;
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--panel); color: var(--txt); border: 1px solid var(--border); border-radius: .9rem;
  box-shadow: var(--shadow-md);
}

/* ========== HERO ========== */
.hero {
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--brand) 8%, transparent) 0, transparent 60%),
              radial-gradient(900px 500px at 110% 10%, color-mix(in oklab, var(--accent) 10%, transparent) 0, transparent 60%),
              var(--bg);
  padding: 4.5rem 0 3.25rem;
}
.hero h2 {
  font-size: clamp(2rem, 3.5vw + .5rem, 3rem);
  line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.hero p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.2vw + .5rem, 1.125rem); }
.dot { color: var(--brand); }

/* ========== SECTIONS ========== */
section { padding-block: 2.25rem; }
.section-subtitle { color: var(--muted); }

/* Recent research grid */
.research-grid-b {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1rem;
}
.research-card {
  grid-column: span 6; background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem;
  box-shadow: var(--shadow-sm); transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.research-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--brand) 35%, var(--border)); }
.research-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.research-card p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.research-card .meta { color: var(--muted); font-size: .83rem; }

/* Load-more button */
.load-more-container { display: grid; place-items: center; margin-top: 1rem; }
.load-more-btn {
  border: 1px solid var(--border); background: var(--panel); color: var(--txt);
  padding: .7rem 1rem; border-radius: .75rem; font-weight: 700;
}
.load-more-btn:hover { background: var(--panel-2); }

/* Categories */
.categories-section .category-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1rem;
}
.category-card {
  grid-column: span 6; background: var(--panel); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1rem; box-shadow: var(--shadow-sm); transition: transform .08s ease, box-shadow .15s ease;
  display: block; color: inherit; text-decoration: none;
}
.category-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.category-card .icon { font-size: 1.4rem; }
.category-card h3 { margin: .4rem 0; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem;
}
.stat-card {
  grid-column: span 3; background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-number { display: block; font-weight: 800; font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.2; }
.stat-label { display: block; color: var(--muted); margin-top: .15rem; }
.stat-trend { display: block; margin-top: .35rem; font-size: .85rem; color: var(--accent); }

/* Global search/filter placeholder */
.global-search-filter .search-filter-container {
  background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; min-height: 72px;
}

/* Newsletter */
.newsletter-section .container { display: grid; gap: 1rem; }
.newsletter-form { display: grid; gap: .75rem; max-width: 640px; }
.form-group { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
#newsletterEmail {
  border: 1px solid var(--border); background: var(--panel); color: var(--txt);
  padding: .8rem 1rem; border-radius: .75rem; outline: none;
}
#newsletterEmail:focus { box-shadow: var(--ring); }
.submit-btn { composes: btn btn-primary; border: none; }
.form-message { color: var(--muted); }
.newsletter-privacy { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--muted); }

/* Partner links (VA) */
.partner-links { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partner-links .va-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem 1rem; padding: 0; list-style: none; }
.partner-links .va-nav a {
  display: block; padding: .5rem .65rem; background: var(--panel); border: 1px solid var(--border); border-radius: .6rem;
}
.partner-links .va-nav a:hover { background: var(--panel-2); text-decoration: none; }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding: 2rem 0;
}
.footer-column { grid-column: span 3; }
.footer-column h4, .footer-column h3 { margin-top: .25rem; margin-bottom: .5rem; }
.footer-column ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.footer-column a { color: var(--txt); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1rem 0; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Accessibility focus ring */
:where(a, button, input, [tabindex]:not([tabindex="-1"])):focus-visible { outline: none; box-shadow: var(--ring); }

/* Responsive */
@media (max-width: 1024px) {
  .header-content { grid-template-columns: auto 1fr; gap: .75rem; }
  .header-actions { order: 3; }
  .main-nav { order: 2; }
  .research-card, .category-card { grid-column: span 12; }
  .stat-card { grid-column: span 6; }
  .partner-links .va-nav ul { grid-template-columns: 1fr; }
  .footer-column { grid-column: span 6; }
}
@media (max-width: 640px) {
  .form-group { grid-template-columns: 1fr; }
  .footer-column { grid-column: span 12; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
