@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --primary-color: #212121;
  --secondary-color: #1A237E;
  --accent-color: #4FC3F7;
  --bg-color: #FAFAFA;
  --text-color: #424242;
  --text-light: #757575;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --header-height: 80px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style: none;
}

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

/* --- Layout & Containers --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-bg {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.grid {
    display: grid;
    gap: 30px;
}

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

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

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

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-size: 0.9rem;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* --- Mobile Navigation --- */
.mobile-nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
}

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

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s ease;
    padding: 40px;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .dropdown:hover .dropdown-content {
    display: none;
  }
  .dropdown.open .dropdown-content {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    margin-top: 15px;
  }
  .dropdown.open .dropdown-content a {
    font-size: 1.2rem;
    text-align: center;
    padding: 8px 0;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(33, 33, 33, 0.7);
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: var(--font-heading);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin: 0 auto;
}

/* --- Content Sections --- */
.page-header {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  color: var(--white);
}

.breadcrumbs {
    padding: 20px 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: var(--text-light);
}
.breadcrumbs li a {
    color: var(--secondary-color);
}
.breadcrumbs li a:hover {
    color: var(--accent-color);
}
.breadcrumbs .active {
    color: var(--text-light);
}

/* --- Analysis Blocks --- */
.analysis-block {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 100%;
}

.analysis-block h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

/* --- Publication List --- */
.publication-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.publication-item:last-child {
    border-bottom: none;
}
.publication-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.publication-item a {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Article Page --- */
.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 30px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.article-content img.inline-image, .article-content .diagram-placeholder {
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.diagram-placeholder {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px dashed var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
    text-align: center;
}

.related-articles {
    margin-top: 60px;
}
.related-articles .grid {
    margin-top: 30px;
}

.related-article-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;
}
.related-article-card h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- About Page --- */
.content-split {
    display: grid;
    align-items: center;
    gap: 50px;
}
@media (min-width: 992px) {
    .content-split {
        grid-template-columns: 1fr 1fr;
    }
    .content-split.reverse {
        grid-template-columns: 1fr 1fr;
    }
    .content-split.reverse > :first-child {
        order: 2;
    }
}
.content-split img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.principle-card {
    padding: 20px;
    text-align: center;
}
.principle-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.principle-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Contact Page --- */
.contact-info {
    margin-bottom: 40px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 30px;
}
.contact-info-item p { margin-bottom: 0; }
.contact-info-item a { color: var(--text-color); }
.contact-info-item a:hover { color: var(--accent-color); }

.contact-form {
    display: grid;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.3);
}
.form-group label {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
}
.form-disclaimer {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}
.btn {
    padding: 15px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* --- Legal Page --- */
.legal-content h2 {
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.legal-content h2:first-of-type {
    margin-top: 0;
}

/* --- Thank You Page --- */
.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(--accent-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;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0;
  font-size: 0.9rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
}
.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
}

/* --- Cookie Banner --- */
#cookie-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(33, 33, 33, 0.95);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  flex-wrap: wrap;
  gap: 20px;
}

#cookie-banner p {
  margin: 0;
  flex-grow: 1;
  font-size: 0.9rem;
}

#cookie-banner .cookie-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-btn.accept {
  background-color: var(--accent-color);
  color: var(--primary-color);
}
.cookie-btn.accept:hover {
  background-color: #81D4FA;
}

.cookie-btn.decline {
  background-color: #616161;
  color: var(--white);
}
.cookie-btn.decline:hover {
  background-color: #757575;
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}