/* Global styles and variables */
:root {
  /* Updated colour palette to reflect the HAKI Africa logo */
  --primary-color: #C4D982;        /* HAKI green: used for primary buttons and highlights */
  --secondary-color: #000000;      /* Dark green for headings and overlays */
  --accent-color: #222222;         /* Lighter green for secondary actions */
  --light-bg: #FFFFFF;
  --dark-text: #000000;
  --muted-text: #222222;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  /* Remove default text styling because the logo is purely graphical */
  font-weight: normal;
  font-size: 1rem;
  color: inherit;
}
.logo img {
  /* Increase the logo size for better visibility */
  height: 50px;
  margin-right: 0;
}
/* Hide any stray text inside the logo link */
.logo span {
  display: none;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 65vh;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark green overlay to complement the new colour scheme */
  background: rgba(46, 93, 0, 0.6);
  z-index: 0;
}

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

.hero h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f1f5fa;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  /* Darker green for hover state instead of blue */
  background: #6fa101;
}

.btn-secondary {
  background: var(--accent-color);
  color: #ffffff;
}
.btn-secondary:hover {
  background: #6fa101;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2rem;
}

/* Card Grids */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Program images inside cards */
.program-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: block;
}

.reports-grid .card h3 {
  min-height: 3.5rem;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* News Section */
.latest-news .news-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.latest-news .news-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.latest-news .news-item:hover {
  transform: translateY(-4px);
}

.news-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.news-item h3 a {
  text-decoration: none;
  color: inherit;
}

.news-date {
  display: block;
  margin-bottom: 0.5rem;
  color: #777;
  font-size: 0.85rem;
}

.news-item p {
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* CTA Section */
.cta {
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.cta p {
  color: #e0e8f0;
  margin-bottom: 1.5rem;
}

.cta .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background: #e6e6e6;
}

/* Footer */
footer {
  /* Dark green footer background with green‑tinted grey text */
  background: #132a13;
  color: #cfdac3;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-column p {
  font-size: 0.85rem;
  color: #cfdac3;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #cfdac3;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* Footer logo */
.footer-logo {
  max-width: 140px;
  margin-bottom: 1rem;
}

/* Enhanced complaint form styling */
.report-form {
  /* Pale green background instead of blue */
  background: #f4f8ec;
  border: 1px solid var(--primary-color);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-form .form-group label {
  color: var(--secondary-color);
}

.report-form input,
.report-form select,
.report-form textarea {
  /* Neutral green-tinted border instead of blue */
  border: 1px solid #cbd8c4;
  background: #ffffff;
}

/* Section headings inside the report form */
.report-form .form-section-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.social-links a {
  color: #cfdac3;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #a3b784;
  font-size: 0.8rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav {
    display: none;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  nav ul li {
    margin-bottom: 0.5rem;
  }
  .nav-toggle {
    display: flex;
  }
  .logo span {
    font-size: 1rem;
  }
}

/* Additional shared styles */
.page-header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #e6eef7;
}

.section-content {
  padding: 2rem 0;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

form .form-group {
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

form .form-check input {
  margin-right: 0.5rem;
}

form .btn-submit {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

form .btn-submit:hover {
  background: #6fa101;
}

/* Contact Page */
.contact-info {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Rapid Response Highlight */
.program-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.program-highlight .program-image {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.program-highlight .program-info {
  flex: 1 1 300px;
}

.program-highlight .program-info h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.program-highlight .program-info p {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.5;
}
.contact-info h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
.contact-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}
/* ==== HAKI Africa News: Headline & Mobile Fixes ==== */

/* Main feature story title */
.feature-card h2,
.feature-card h2 a {
  color: #111 !important;            /* Black, not green */
  font-size: clamp(1.4rem, 4vw, 2rem) !important; /* Scales smoothly */
  line-height: 1.3 !important;
  text-decoration: none !important;
  font-weight: 700;
}

/* Sidebar news headlines */
.news-entry h3,
.news-entry h3 a {
  color: #222 !important;            /* Dark grey for contrast */
  font-size: clamp(1.1rem, 3.5vw, 1.4rem) !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* Section title (News & Updates) */
.news-hero .section-title {
  color: #111 !important;
  font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
  line-height: 1.2 !important;
  font-weight: 700;
}

/* Ensure Read More buttons look tidy */
.read-more {
  font-size: 0.95rem !important;
  border: 1px solid var(--haki-green);
  color: var(--haki-green);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.read-more:hover {
  background: var(--haki-green);
  color: #fff !important;
}

/* Make sure feature image is a good height on mobile */
@media (max-width: 640px) {
  .feature-card img.feature-img {
    height: 220px !important;
  }
}
