/* --- Global Styles & CSS Variables --- */
:root {
  --primary-color: #0d47a1; /* Deep Blue */
  --secondary-color: #1b5e20; /* Dark Green */
  --accent-color: #00897b; /* Teal */
  --background-light: #f8f9fa;
  --background-dark: #212529;
  --text-light: #f8f9fa;
  --text-dark: #343a40;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: 'Lora', serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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: 1.5rem; }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--secondary-color); text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 { color: var(--primary-color); }
.section-title p { max-width: 700px; margin-left: auto; margin-right: auto; color: var(--text-muted); font-size: 1.1rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--accent-color);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.mobile-nav-toggle .icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: all var(--transition-speed) ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-image: url('https://images.pexels.com/photos/15268778/pexels-photo-15268778.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 71, 161, 0.7), rgba(27, 94, 32, 0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-content h1 {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.page-header {
  min-height: 40vh;
}
.page-header h1 {
  margin-bottom: 0;
}

/* --- Content Sections --- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-intro-grid img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- Topics/Features Grid --- */
.topics-grid, .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.topic-card, .article-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.topic-card:hover, .article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--primary-color); }
.card-content p { font-size: 0.95rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-link { font-weight: 600; color: var(--accent-color); text-decoration: none; align-self: flex-start; }
.card-link:hover { color: var(--secondary-color); }

/* --- About Page --- */
.mission-section .about-intro-grid {
    grid-template-columns: 1fr;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.value-item {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}
.value-item h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-info-list li {
  display: flex;
  align-items: start;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.contact-info-list svg {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}
.contact-form .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.contact-form .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2);
}
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* --- Privacy & Thank You Page --- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; }
.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.thank-you-icon {
  width: 80px; height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 2rem;
  color: white;
}
.thank-you-icon svg { width: 40px; height: 40px; }
.thank-you-section h1 { color: var(--primary-color); }
.thank-you-section p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2rem; }

/* --- Call to Action Section --- */
.cta-section {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
}
.cta-section h2 { color: var(--text-light); }
.cta-section p { max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; }

/* --- Footer --- */
.site-footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 4rem 0 1rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--accent-color); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-column h4 {
  font-family: var(--font-family-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
}
.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-contact p { margin-bottom: 0.75rem; color: var(--text-muted)}
.footer-contact a { color: var(--text-light); }
.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer-section {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.6;
    border: 1px solid #495057;
}

.disclaimer-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}
#cookie-banner p a { opacity: 0.8; }
#cookie-banner-actions { display: flex; gap: 1rem; flex-shrink: 0; }
#cookie-banner-actions .btn { padding: 0.6rem 1.2rem; }

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-intro-grid img { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background-color: #fff;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-speed) ease;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a { font-size: 1.2rem; }
  .mobile-nav-toggle { display: block; }
  .mobile-nav-toggle.open .icon-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-nav-toggle.open .icon-bar:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle.open .icon-bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
  #cookie-banner { flex-direction: column; text-align: center; }
}