:root {
  --primary-color: #0d2c4f; /* Institutional Navy Blue */
  --secondary-color: #5a7a9e; /* Muted Slate Blue */
  --accent-color: #9cb3c9; /* Soft Neutral Blue */
  --background-color: #f4f6f8; /* Light Neutral Grey */
  --text-color: #333940; /* Dark Neutral Grey */
  --text-light: #ffffff;
  --border-color: #dfe3e8;
  --font-family: 'Roboto Slab', serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

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

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

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

.documentary-image img {
    filter: grayscale(80%) sepia(10%);
    border-radius: 8px;
}

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

/* HEADER */
.site-header {
  background-color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 0 16px;
  line-height: var(--header-height);
  color: var(--text-color);
  font-weight: 400;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background-color: rgba(13, 44, 79, 0.05);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 0 0 4px 4px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1001;
}

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

.dropdown-menu li {
  border-bottom: 1px solid var(--border-color);
}
.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  line-height: normal;
  padding: 12px 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-image: url('https://images.pexels.com/photos/14339429/pexels-photo-14339429.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 900px;
}

.hero h1 {
  color: var(--text-light);
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

.article-hero {
    min-height: 40vh;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--secondary-color);
}
.breadcrumb span {
    color: var(--text-color);
}

/* CONTENT SECTIONS */
.content-section {
  padding: 80px 0;
}

.bg-light {
  background-color: #fff;
}

/* ARTICLE LAYOUT */
.article-container {
    max-width: 800px;
    padding: 0;
    margin: 0 auto;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: 1rem;
}

/* CARD LAYOUTS */
.card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
    margin-top: 0;
}
.card-content p {
    flex-grow: 1;
}

.text-link {
    font-weight: 700;
    margin-top: auto;
}

.article-preview-grid, .value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* IMAGE-TEXT LAYOUT */
.image-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.image-text-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.image-text-layout.reverse .image-container {
    order: 2;
}

.image-text-layout.reverse .text-content {
    order: 1;
}
.a-propos-section { margin-top: 3rem;}

/* DIAGRAM */
.diagram-container {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 8px;
    margin: 60px 0;
}
.diagram-box {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
}
.level-1 { background-color: var(--primary-color); color: white; }
.level-2-box { background-color: var(--secondary-color); color: white;}
.level-4 { background-color: var(--background-color); }
.diagram-line-down, .diagram-line-up, .diagram-line-up-short {
    position: absolute;
    left: 50%;
    width: 2px;
    background-color: var(--accent-color);
}
.diagram-line-down { bottom: -20px; height: 20px; }
.diagram-line-up { top: -20px; height: 20px; }
.diagram-line-up-short { top: -15px; height: 15px; }

.diagram-level-2, .diagram-level-3 {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.diagram-level-3 { margin-top: 30px; }
.diagram-level-4 { margin-top: 30px; }

/* 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(--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;
}

/* CONTACT PAGE */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.contact-disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    background-color: rgba(90, 122, 158, 0.1);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.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 0;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
.site-footer {
  background-color: var(--primary-color);
  color: #cdd4da;
  padding: 60px 0 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: #cdd4da; text-decoration: none; }
.footer-column a:hover { color: var(--text-light); text-decoration: underline; }
.disclaimer-section {
  background-color: rgba(255, 255, 255, 0.05);
  color: #cdd4da;
  padding: 20px 30px;
  margin: 30px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid var(--secondary-color);
}
.disclaimer-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary-color);
}

/* COOKIE BANNER */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-content p {
  margin: 0;
  padding-right: 20px;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn-accept, .cookie-btn-decline {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
.cookie-btn-accept {
  background-color: var(--accent-color);
  color: var(--primary-color);
}
.cookie-btn-decline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}


/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
  }
  .main-nav.open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .main-nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .main-nav.open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width:300px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: var(--header-height);
    transition: left 0.3s ease;
  }
  .main-nav.open .nav-links {
    left: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    color: var(--text-light);
    line-height: normal;
    padding: 15px 20px;
  }
    .nav-links a:hover, .nav-links a.active {
      background-color: var(--secondary-color);
    }
  .dropdown-menu {
    display: block;
    position: static;
    background: none;
    border: none;
    padding-left: 20px;
  }
  .dropdown-menu a {
      font-size: 0.9em;
      padding: 10px 20px;
  }
  .dropdown > a::after {
      content: ' ▼';
      font-size: 0.7em;
  }
  .image-text-layout, .image-text-layout.reverse { grid-template-columns: 1fr; }
  .image-text-layout.reverse .image-container { order: 1; }
  .image-text-layout.reverse .text-content { order: 2; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cookie-content { flex-direction: column; text-align: center;}
  .cookie-content p { padding: 0 0 15px; }
  .map-container { height: 350px; }
}