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

:root {
  --primary-dark-blue: #0d2c4e;
  --primary-green: #1a8754;
  --accent-light-green: #5cb85c;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --text-secondary: #6c757d;
  --bg-light: #ffffff;
  --bg-off-white: #f8f9fa;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --header-height: 80px;
  --font-primary: 'Georgia', 'Times New Roman', serif;
  --font-secondary: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --border-radius: 8px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--primary-dark-blue);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; }
a { color: var(--primary-green); text-decoration: none; transition: all 0.2s ease-in-out; }
a:hover { color: var(--accent-light-green); text-decoration: underline; }

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-bg {
  background-color: var(--bg-off-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 50px;
  background-color: var(--primary-green);
  color: var(--text-light);
  border: 2px solid var(--primary-green);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn:hover {
  background-color: var(--accent-light-green);
  border-color: var(--accent-light-green);
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
}

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

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

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark-blue);
  text-decoration: none;
}

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

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

.nav-links_item a {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--primary-dark-blue);
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
}

.nav-links_item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.nav-links_item a:hover::after,
.nav-links_item a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links_item a.active {
  color: var(--primary-green);
}

.nav-cta {
  display: none;
}

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

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-dark-blue);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 44, 78, 0.7);
}

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

.hero-content h1 {
  color: var(--text-light);
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-family: var(--font-secondary);
  margin-bottom: 40px;
  opacity: 0.9;
}

/* --- Content Sections --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-split_img-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-split_img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split_content h3 {
  margin-bottom: 20px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card-content p {
  flex-grow: 1;
}

.card-content .card-meta {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* --- Topics Page --- */
.topics-list {
  columns: 3;
  column-gap: 40px;
}

.topics-list li {
  list-style-type: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  break-inside: avoid-column;
}

/* --- Articles Page --- */
.article-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.article-item h3 {
  margin-bottom: 10px;
}
.article-item .article-meta {
  font-family: var(--font-secondary);
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.article-item .btn {
  margin-top: 20px;
}

/* --- Contact Page --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-off-white);
  padding: 60px;
  border-radius: var(--border-radius);
}

.contact-info h3, .contact-form h3 {
   margin-bottom: 30px;
}

.contact-info p {
   margin-bottom: 20px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary-green);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(26, 135, 84, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- 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-green);
  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-secondary);
  max-width: 600px;
  margin-bottom: 30px;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-dark-blue);
  color: var(--text-light);
  padding: 80px 0 0;
}

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

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background-color: var(--primary-green);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

a.email-link, a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
a.email-link:hover, a[href^="mailto:"]:hover {
  color: var(--accent-light-green);
  text-decoration: underline;
}


/* --- Disclaimer Section --- */
.disclaimer-section {
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 25px 30px;
  margin: 0 0 40px 0;
  border-radius: var(--border-radius);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(13, 44, 78, 0.95);
  color: var(--text-light);
  padding: 25px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner p {
  margin: 0;
  max-width: 70%;
  font-size: 15px;
}

#cookie-banner p a {
  color: var(--accent-light-green);
  text-decoration: underline;
}

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

#cookie-accept, #cookie-decline {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-secondary);
}

#cookie-accept {
  background-color: var(--primary-green);
  color: #fff;
}

#cookie-decline {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-split_img-container {
    order: -1;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .topics-list {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-light);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 10px var(--shadow-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  }
  .nav-links.active {
    max-height: 500px;
    padding: 20px;
  }
  .nav-links_item {
    width: 100%;
    text-align: center;
  }

  .nav-links_item a {
    display: block;
    padding: 15px 0;
  }
  .nav-links_item a::after {
    display: none;
  }

  .nav-cta {
    display: block;
    margin-top: 15px;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  #cookie-banner p {
    max-width: 100%;
  }

  .topics-list {
    columns: 1;
  }
}