:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #415a77;
    --light-color: #e0e1dd;
    --text-color: #f0f8ff;
    --text-muted: #a9b4c2;
    --highlight-color: #778da9;
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --container-width: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;
    --section-padding: 100px;
    --border-radius: 8px;
}

*, *::before, *::after {
    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.7;
    color: var(--text-color);
    background-color: var(--primary-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--light-color);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

section {
    padding: var(--section-padding) 0;
}
.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.section-intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}


/* --- Header --- */
.main-header {
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-color);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
}
.logo span {
    color: var(--highlight-color);
}
.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}
.nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: var(--spacing-sm) 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-link:hover, .nav-link.active {
    color: var(--light-color);
}
.header-cta {
    display: block;
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.button-primary {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    border-color: var(--highlight-color);
}
.button-primary:hover {
    background-color: transparent;
    color: var(--highlight-color);
}
.button-secondary {
    background-color: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}
.button-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}
.button-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-color: var(--light-color);
}
.button-light:hover {
    background-color: transparent;
    color: var(--light-color);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-lg);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 1) 0%, rgba(13, 27, 42, 0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--spacing-md);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--light-color);
    margin-bottom: var(--spacing-xl);
}

/* --- Intro Section --- */
.intro-section { background-color: var(--primary-color); }

/* --- Topics Grid --- */
.topics-grid-section { background-color: var(--secondary-color); }
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}
.topic-card {
    background-color: var(--primary-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.topic-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--highlight-color);
}
.topic-card h3 {
    color: var(--light-color);
    font-size: 1.5rem;
}

/* --- Content Feature --- */
.content-feature-section { background-color: var(--primary-color); }
.content-feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}
.content-feature-image img {
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    height: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.content-feature-text .section-title {
    text-align: left;
}

/* --- Featured Articles --- */
.featured-articles-section { background-color: var(--secondary-color); }
.article-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}
.article-card {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.article-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.article-card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--highlight-color);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}
.article-card-title {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: var(--spacing-sm);
}
.article-card-excerpt {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}
.article-card-link {
    font-weight: 700;
    color: var(--highlight-color);
    align-self: flex-start;
}
.article-card-link:hover {
    text-decoration: underline;
}

/* --- Testimonials --- */
.testimonials-section { background-color: var(--primary-color); }
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-lg);
    border: 3px solid var(--accent-color);
}
.testimonial-card blockquote p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--light-color);
    margin-bottom: var(--spacing-lg);
}
.testimonial-card footer {
    font-size: 1rem;
}
.testimonial-card cite {
    font-style: normal;
    font-weight: 700;
    color: var(--light-color);
    display: block;
}
.testimonial-card span {
    color: var(--highlight-color);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    text-align: center;
}
.cta-title {
    font-size: 2.5rem;
}
.cta-text {
    font-size: 1.2rem;
    color: var(--light-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    padding: var(--spacing-xxl) 0 0;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xxl);
}
.footer-heading {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: var(--spacing-lg);
}
.footer-about p {
    line-height: 1.6;
}
.footer-links li {
    margin-bottom: var(--spacing-sm);
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--light-color);
    text-decoration: underline;
}
.email-link {
    color: var(--highlight-color);
    font-weight: 600;
}
.email-link:hover {
    color: var(--light-color);
}
.disclaimer-section {
  background-color: var(--primary-color);
  color: var(--text-muted);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--accent-color);
  margin-bottom: var(--spacing-xxl);
}
.disclaimer-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--light-color);
  font-family: var(--font-heading);
}

.footer-bottom {
    border-top: 1px solid var(--accent-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-muted);
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(5px);
    color: var(--light-color);
    padding: var(--spacing-lg);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    border-top: 1px solid var(--accent-color);
}
.cookie-content {
    flex-grow: 1;
}
.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.cookie-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* --- Articles Page --- */
.page-header-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}
.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}
.article-library-section { background-color: var(--primary-color); }
.filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
    flex-wrap: wrap;
}
.filter-button {
    background-color: var(--accent-color);
    color: var(--light-color);
    border: none;
    padding: 10px 20px;