/* =======================
   RESET + BASE STYLES
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =======================
   HEADER
======================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Top bar */
.top-bar {
  background-color: #2301ff; 
  color: white;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-link a,
.email-link .phone {
  color: white;
  margin-right: 15px;
}

.email-link a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: white;
  font-size: 16px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d4f7d4;
}

/* Nav */
.nav-wrapper {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
}

.logo {
  height: 55px;
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  gap: 25px;
}

.nav a {
  font-weight: 500;
  color: #333;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #28a745;
}

/* Active link highlight */
.nav a.active {
  color: #28a745;
  font-weight: bold;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #28a745;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #28a745;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #28a745;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  .nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav a {
    color: white;
    display: block;
    padding: 12px 20px;
  }

  .nav a.active {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* =======================
   HERO SECTION
======================= */
.hero {
  background: #f5f5f5;
  padding: 120px 20px 80px;
  margin-top: 100px; /* account for fixed header */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
  color: #28a745;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-video {
  flex: 1;
  max-width: 600px;
}

.hero-video video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.hero-text {
  flex: 1;
  position: relative;
}

.hero-text .btn-right {
  text-align: right; /* align button to the right edge of text column */
}

.hero-text .btn-right .btn {
  margin-top: 10px;
  display: inline-block;
}

/* =======================
   BUTTONS
======================= */
.btn {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #218838;
}

/* =======================
   SERVICES
======================= */
.services {
  background: white;
  padding: 80px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  color: #28a745;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 15px;
  color: #0e7162;
}

.service-card p {
  margin-bottom: 15px;
}

.learn-more {
  color: #28a745;
  font-weight: bold;
}

/* =======================
   OBJECTIVES
======================= */
.objectives {
  padding: 80px 20px;
  background: #f0fff4;
  text-align: center;
}

.objectives h2 {
  font-size: 2rem;
  color: #28a745;
  margin-bottom: 20px;
}

.objectives p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* =======================
   NEWSLETTER
======================= */
.newsletter {
  padding: 80px 20px;
  text-align: center;
  background: white;
}

.newsletter h2 {
  font-size: 2rem;
  color: #28a745;
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.newsletter-form button {
  background: #28a745;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #218838;
}

/* ============================= */
/* FOOTER with Background Image */
/* ============================= */
.footer {
  position: relative;
  background: url("../images/footer-bkgd.jpg") no-repeat center center/cover; 
  color: white;
  padding: 60px 20px 30px;
  overflow: hidden;
}

/* dark overlay */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* dim effect */
  z-index: 0;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1; /* keep content above overlay */
}

.footer a {
  color: #c6ffc1; /* soft green for links */
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 1px solid #c6ffc1;
  padding-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.9rem;
}

/* =======================
   HERO ENHANCEMENTS
======================= */
.hero-text {
  animation: fadeInLeft 1s ease forwards;
  opacity: 0;
}

.hero-video {
  animation: fadeInRight 1.2s ease forwards;
  opacity: 0;
}

.hero-video video {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =======================
   SERVICES ENHANCEMENTS
======================= */
.service-card {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease, transform 0.4s ease;
}

.service-card.show {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* =======================
   NEWSLETTER ENHANCEMENTS
======================= */
.newsletter-form input {
  border: 2px solid #ccc;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 6px rgba(40,167,69,0.5);
}

.newsletter-form button {
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.newsletter-form button:active {
  transform: scale(0.97);
}

/* =======================
   UNIVERSAL ANIMATIONS
======================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =======================
   MAGAZINE PAGE
======================= */
.magazine-details {
  padding: 80px 20px;
  background: #fff;
}

.magazine-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.magazine-cover img {
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.magazine-box {
  flex: 1;
}

.magazine-box h2 {
  color: #28a745;
  margin-bottom: 15px;
}

.magazine-box p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* =======================
   READERS ALLIANCE PAGE
======================= */
.page-hero {
  padding: 140px 20px 60px; /* accounts for fixed header */
  background: linear-gradient(0deg, #f9f9f9, #fff);
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; color: #28a745; margin-bottom: 10px; }
.page-hero p  { max-width: 800px; margin: 0 auto; }

/* Intro */
.readers-intro { background: #fff; padding: 70px 20px; }
.readers-grid {
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.readers-copy { flex: 1 1 420px; }
.readers-copy h2 { color: #0e7162; margin-bottom: 12px; }
.readers-copy p { margin-bottom: 14px; font-size: 1.05rem; }
.readers-visual { flex: 1 1 360px; }
.readers-visual img {
  width: 100%; max-width: 520px; display: block; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Steps */
.readers-steps { background: #f7fff9; padding: 70px 20px; text-align: center; }
.readers-steps h2 { color: #28a745; margin-bottom: 28px; }
.steps-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step-card {
  background: #fff; padding: 22px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.step-card i { font-size: 28px; margin-bottom: 10px; }
.step-card h3 { color: #0e7162; margin-bottom: 8px; }

/* Membership */
.readers-membership { background: #fff; padding: 70px 20px; }
.membership-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.member-card {
  background: #f9f9f9; padding: 24px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.member-card h3 { color: #0e7162; margin-bottom: 10px; }
.member-card p  { margin-bottom: 14px; }

/* Join form */
.readers-join { background: #f0fff4; padding: 70px 20px; }
.join-box { max-width: 820px; margin: 0 auto; text-align: center; }
.join-form { margin-top: 16px; }
.join-form .form-row {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
}
.join-form input, .join-form select, .join-form textarea {
  width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px;
  font: inherit;
}
.join-form textarea { resize: vertical; }
.join-form .btn { margin-top: 10px; }
.form-footnote { font-size: 0.95rem; margin-top: 10px; color: #555; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .page-hero { padding-top: 120px; }
  .join-form .form-row { grid-template-columns: 1fr; }
}

/* =======================
   NEWS & EVENTS PAGE
======================= */
.news-events {
  padding: 70px 20px;
  background: #fff;
}

.events-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 20px;
}

.event-content h3 {
  margin-bottom: 10px;
  color: #0e7162;
}

.event-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.learn-more {
  color: #28a745;
  font-weight: bold;
}

/* =======================
   PODCAST PAGE
======================= */
.podcasts {
  padding: 70px 20px;
  background: #fff;
}

.podcast-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.podcast-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.podcast-card:hover {
  transform: translateY(-5px);
}

.podcast-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.podcast-content {
  padding: 20px;
  flex: 1;
}

.podcast-content h3 {
  margin-bottom: 12px;
  color: #0e7162;
}

.podcast-content p {
  margin-bottom: 15px;
}

/* =======================
   AFRICAN LOVE PAGE
======================= */
.african-love {
  padding: 70px 20px;
  background: #fff;
}

.african-love .love-section {
  margin-bottom: 40px;
}

.african-love h2 {
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.african-love p {
  max-width: 900px;
}

/* =======================
   AWA PAGE
======================= */
.awa {
  padding: 70px 20px;
  background: #fff;
}

.awa .awa-section {
  margin-bottom: 40px;
}

.awa h2 {
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.awa p {
  max-width: 900px;
}

/* =======================
   BLOG PAGE
======================= */
.blog {
  padding: 70px 20px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #28a745;
}

.blog-content .date {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin-bottom: 10px;
}

.blog-content p {
  margin-bottom: 15px;
}

.read-more {
  color: #28a745;
  font-weight: bold;
}

/* =======================
   CONTACT PAGE
======================= */
.contact {
  padding: 80px 20px;
  background: #fff;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-form, .contact-info {
  flex: 1 1 350px;
}

.contact-form h2,
.contact-info h2 {
  color: #28a745;
  margin-bottom: 20px;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.contact-form form button {
  background: #28a745;
  border: none;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form form button:hover {
  background: #218838;
}

.contact-info p {
  margin-bottom: 10px;
  line-height: 1.5;
}