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

:root {
  --color-primary: #FFFFFF;
  --color-accent-green: #008000;
  --color-accent-orange: #FFA500;
  --color-text-dark: #333333;
  --color-text-light: #666666;
  --color-link: #007bff;
  --color-background: #F8F9FA;
  --color-border: #E9ECEF;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-height: 80px;
  --border-radius: 8px;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
  --section-padding: clamp(3rem, 8vw, 6rem);
}

/* --- RESET & BASE --- */
*, *::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(--color-text-dark);
  background-color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

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

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

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

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

section {
  padding: var(--section-padding) 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

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

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent-green);
  border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #006400;
  border-color: #006400;
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

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

/* --- HEADER --- */
.header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-medium);
}

.main-nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-dark);
}
.logo span {
  color: var(--color-accent-green);
}
.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-dark);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav-links a.active {
  color: var(--color-accent-green);
}

.nav-search-btn, .mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-dark);
}

.mobile-menu-toggle {
  display: none;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-primary);
  background-size: cover;
  background-position: center;
}

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

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

.hero h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

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

/* --- NEWS CARD --- */
.news-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.news-card {
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.news-card-img-wrapper {
  position: relative;
}

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

.news-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-accent-green);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-card-category.breaking {
  background-color: var(--color-accent-orange);
}

.news-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.news-card h3 a {
  color: var(--color-text-dark);
}
.news-card h3 a:hover {
  color: var(--color-accent-green);
  text-decoration: none;
}
.news-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* --- ABOUT PAGE --- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-intro-grid img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.mission-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}
.mission-card .icon {
  font-size: 3rem;
  color: var(--color-accent-green);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.team-member {
  text-align: center;
}
.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-accent-green);
  box-shadow: var(--shadow-light);
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
}
.contact-info ul {
  list-style: none;
  margin-top: 2rem;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.contact-info .icon {
  font-size: 1.5rem;
  color: var(--color-accent-green);
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-green);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
}
.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.75rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-col a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  font-size: 1.5rem;
}
.footer-bottom {
  border-top: 1px solid var(--color-text-light);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.5rem;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(5px);
  color: var(--color-primary);
  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;
  color: rgba(255, 255, 255, 0.8);
}
#cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}
#accept-cookies {
  background-color: var(--color-accent-green);
  color: var(--color-primary);
}
#decline-cookies {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}
#accept-cookies:hover { background-color: #006400; }
#decline-cookies:hover { background-color: #555; }


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container { width: 95%; }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 1rem 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
  }
  .about-intro-grid img {
    order: -1;
  }
  .map-container {
    height: 350px;
    border-radius: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- UTILITIES --- */
.full-width-section {
    padding-left: 0;
    padding-right: 0;
}
.full-width-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
}
.newsletter-section {
    background-color: var(--color-accent-green);
    color: var(--color-primary);
    padding: 3rem 0;
    text-align: center;
}
.newsletter-section h3 {
    color: var(--color-primary);
}
.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}
.newsletter-form button {
    background-color: var(--color-accent-orange);
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #cc8400;
}

.partners-section {
    padding: 3rem 0;
    text-align: center;
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.partners-grid img {
    height: 40px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
.partners-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-accent-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 1rem 40px;
    position: relative;
    width: 50%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--color-accent-green);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.right::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-background);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.timeline-item.left .timeline-content {
    text-align: right;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    .timeline-item::after {
        left: 10px;
    }
    .timeline-item.left .timeline-content {
        text-align: left;
    }
}