:root {
  --primary-color: #1A237E; /* Dark Blue */
  --secondary-color: #FAFAFA; /* Light Grey */
  --accent-color: #4FC3F7; /* Light Blue */
  --text-color: #212121; /* Dark Grey/Black */
  --text-muted: #757575;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;
  --header-height: 80px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75em;
  color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover, .text-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.text-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.section-padded {
  padding: clamp(60px, 10vw, 100px) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- HEADER --- */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
}

.logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 0;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 35, 126, 0.7); /* Dark Blue Overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-family: var(--font-secondary);
}

.hero-simple {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}
/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 5px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background-color: #151c6b;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.cta-banner .btn-secondary {
    color: white;
    border-color: white;
}
.cta-banner .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* --- CONTENT BLOCKS --- */
.content-block-lr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.content-block-lr.reverse .content-text {
    order: 2;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.feature-card-text-only {
    background: var(--bg-white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-text-only:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

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

.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-title svg {
    color: var(--accent-color);
}

/* --- ARTICLES --- */
.article-preview-list {
    display: grid;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}
.article-preview {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}
.article-preview h3 {
    margin-bottom: 0.5rem;
}
.article-preview p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: linear-gradient(45deg, var(--primary-color), #303f9f);
    color: white;
}
.cta-banner .cta-title {
    color: white;
}
.cta-banner .cta-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-cta-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}
.contact-cta-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--text-color);
  color: #bdbdbd;
  padding: 60px 0 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-heading {
  font-family: var(--font-primary);
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #bdbdbd;
  text-decoration: none;
}
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #424242;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

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

/* --- ARTICLE PAGE --- */
.article-page header.article-header {
    background-color: var(--bg-light);
    padding: 60px 0;
}
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}
.article-header h1 {
    margin-bottom: 0.5rem;
}
.article-meta {
    color: var(--text-muted);
    font-style: italic;
}
.article-body {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}
.article-body .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #424242;
    margin-bottom: 2rem;
}
.article-figure {
    margin: 40px 0;
}
.article-figure img {
    width: 100%;
}
.article-figure figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}
.article-cta {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid var(--accent-color);
}
.related-articles {
    background-color: var(--bg-light);
    padding: clamp(60px, 10vw, 100px) 0;
}
.related-articles h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* PUBLICATIONS PAGE */
.article-list-full {
    display: grid;
    gap: 60px;
}
.article-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow:hidden;
    border: 1px solid var(--border-color);
}
.article-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}
.article-card-content {
    padding: 30px;
}
.article-card-content p {
    margin-bottom: 20px;
}

/* DIAGRAM PLACEHOLDER */
.diagram-placeholder {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
}
.diagram-title {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 20px;
}
.diagram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-family: var(--font-primary);
}
.diagram-box {
    background: white;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 400px;
}
.diagram-box small { font-size: 0.8em; color: var(--text-muted); }
.diagram-level-2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%;}
.diagram-box.level-2 { width: auto; flex-grow: 1;}
.diagram-connectors, .diagram-connectors-2 {
    width: 2px;
    height: 20px;
    background: var(--border-color);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-info .info-item svg {
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--accent-color);
}
.contact-info .info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -10px;
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 60px 0;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- LEGAL & THANK YOU --- */
.legal-content h2 { margin-top: 2em; margin-bottom: 1em; }
.legal-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.thank-you-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}
.thank-you-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}
.thank-you-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-color);
  color: white;
  padding: 20px 0;
  z-index: 9999;
  display: none;
  font-size: 0.9rem;
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cookie-banner a {
  color: var(--accent-color);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.cookie-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}
.cookie-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}
.cookie-buttons .btn-primary:hover {
    background-color: white;
}
.cookie-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--text-color);
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .content-block-lr {
        grid-template-columns: 1fr 1fr;
    }
    .content-block-lr.reverse .content-text {
        order: 0;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-card {
       grid-template-columns: 300px 1fr;
    }
    .article-card-image img {
       height: 100%;
       border-radius: 8px 0 0 8px;
    }
}


@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.open {
        right: 0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        margin-top: 15px;
    }
    .map-container {
        height: 350px;
    }
}