/* ===== AFRI — Global Styles ===== */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Open+Sans:wght@400;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: #212121;
  background: #fff;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout Wrapper ---------- */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: 200px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Sidebar Navigation ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  transition: transform 0.3s ease;
}

.sidebar .nav-links {
  list-style: none;
  padding: 0;
}

.sidebar .nav-links li a {
  display: block;
  padding: 12px 24px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition:
    background 0.2s,
    color 0.2s;
}

.sidebar .nav-links li a:hover,
.sidebar .nav-links li a.active {
  background: #f0f0f0;
  color: #c0392b;
}

.sidebar .nav-links li a.active {
  border-left: 3px solid #c0392b;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.overlay.open {
  display: block;
}

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #333;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
}

.hero-content h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.15;
}

.hero-content .accent-line {
  width: 120px;
  height: 4px;
  background: #c0392b;
  margin: 20px auto 0;
}

/* ---------- Section Containers ---------- */
.section {
  padding: 60px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-gray {
  background: #f5f5f5;
}

.section h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-align: center;
}

.section p {
  max-width: 960px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 17px;
  color: #444;
}

/* ---------- Areas of Interest (Home) ---------- */
.area-row {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 24px;
}

.area-row img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.area-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #212121;
}

.area-text ul {
  list-style: disc;
  padding-left: 22px;
}

.area-text ul li {
  font-size: 16px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ---------- Card Grid (Home, Resources) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
}

.card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.card-body {
  padding: 20px 20px 24px;
}

.card-body .btn {
  display: block;
  text-align: center;
  background: #c0392b;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.card-body .btn:hover {
  background: #a93226;
}

.card-body p {
  font-size: 16px;
  color: #555;
  text-align: left;
  margin: 0;
}

/* ---------- CTA Bars (Home) ---------- */
.cta-bar {
  display: block;
  text-align: center;
  background: #c0392b;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 20px 24px;
  transition: background 0.2s;
}

.cta-bar:hover {
  background: #a93226;
}

.cta-bar + .cta-bar {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Team Grid ---------- */
.team-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 48px 8px;
  text-align: center;
}

.team-intro h2 {
  margin-bottom: 24px;
}

.team-intro p {
  font-size: 17px;
  color: #444;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  background: #c0392b;
  border-radius: 0;
}

.team-member {
  text-align: center;
  color: #fff;
}

.team-member img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 14px;
}

.team-member h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-member p {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 4px;
  font-style: italic;
}

/* ---------- Blog Grid ---------- */
.blog-embed {
  width: 100%;
  max-width: 2000px;
  margin: 32px auto;
  padding: 0 48px;
  position: relative;
}

.blog-embed iframe {
  width: 100%;
  aspect-ratio: 17 / 22;
  border: none;
  display: block;
  border-radius: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
}

.blog-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.blog-card-content {
  flex: 1;
}

.blog-card-content .source {
  font-size: 15px;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.blog-card-content h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #1f1f1f;
}

.blog-card-content .read-more {
  font-size: 15px;
  font-weight: 600;
  color: #c0392b;
  transition: color 0.2s;
}

.blog-card-content .read-more:hover {
  color: #a93226;
}

/* ---------- Resource Grid ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
}

.resource-tile {
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 28px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.resource-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.resource-tile img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 18px;
}

.resource-tile .btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  transition: background 0.2s;
}

.resource-tile .btn:hover {
  background: #a93226;
}

/* ---------- Survey Page ---------- */
.survey-btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 32px;
  border-radius: 4px;
  transition: background 0.2s;
}

.survey-btn:hover {
  background: #a93226;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 24px;
  font-size: 15px;
  margin-top: auto;
}

.site-footer a {
  color: #c0392b;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .areas-wrapper {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .card-grid,
  .blog-grid,
  .resource-grid,
  .section,
  .team-grid,
  .blog-embed,
  .team-intro {
    padding-left: 24px;
    padding-right: 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}
