/* =========================================================
   RESET & GLOBAL
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5dc; /* Beige background */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ff9800;
  color: #fff;
}
.btn-primary:hover {
  background: #e68900;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: #333;
}

/* =========================================================
   HEADER & NAVBAR
========================================================= */
.header {
  background-color: #f5f5dc;
  color: #1a237e;
  padding: 15px 0;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a237e;
}
.logo img {
  height: 60px;
  width: 60px;
  margin-right: 10px;
}

/* Navbar (Desktop) */
.navbar {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.navbar a {
  color: #fff;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1a237e, #ffd700);
  transition: all 0.3s ease;
}
.navbar a:hover {
  background: linear-gradient(135deg, #ffd700, #1a237e);
  color: #000;
  transform: scale(1.05);
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #1a237e;
  cursor: pointer;
}

/* Responsive - Mobile View */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    background: #1a237e;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;

    /* Animation */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-in-out;
  }

  .navbar.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar a {
    display: block;
    margin: 12px 0;
    color: #ffd700;
    background: none;
    font-size: 18px;
    transition: color 0.3s ease;
  }
  .navbar a:hover {
    color: #fff;
    text-shadow: 0 0 10px #ffd700;
  }

  .mobile-menu-button {
    display: block;
  }
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  background: url("images/Zafabu-School.jpg") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero .btn {
  margin: 0 10px;
}

/* =========================================================
   COURSES
========================================================= */
.courses-section {
  padding: 60px 20px;
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 40px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.course-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.course-card h3 {
  font-size: 1.3rem;
  color: #004080;
  margin-bottom: 10px;
}
.course-card p {
  font-size: 0.95rem;
  color: #666;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* =========================================================
   STATS
========================================================= */
.stats {
  background-color: #f0f8ff;
  padding: 60px 20px;
  text-align: center;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.stat-item {
  background: #fff;
  padding: 20px;
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.stat-number {
  font-size: 2rem;
  color: #004080;
  font-weight: bold;
}
.stat-label {
  font-size: 1rem;
  margin-top: 5px;
}

/* =========================================================
   ABOUT
========================================================= */
.about-section {
  background: url("images/Zafabu1.png") center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  position: relative;
}
.about-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 60px 0;
}
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-text {
  text-align: center;
  max-width: 800px;
}
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a237e;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* =========================================================
   TESTIMONIALS & NEWS
========================================================= */
.vibrant-section {
  padding: 4rem 1rem;
  text-align: center;
  color: #1a237e;
}
.vibrant-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
.testimonials,
.news {
  background: #f5f5dc;
}
.grid {
  display: grid;
  gap: 2rem;
}
.news .grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background-color: white;
  color: #333;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
  background: #fff;
  padding: 60px 0;
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-info h2 {
  margin-bottom: 15px;
  color: #1a237e;
}
.contact-details {
  margin-top: 20px;
}
.contact-item {
  display: flex;
  margin-bottom: 20px;
}
.contact-item i {
  color: #ff9800;
  font-size: 20px;
  margin-right: 15px;
}
.contact-form-container {
  flex: 1;
}
.contact-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.contact-form h3 {
  margin-bottom: 20px;
  color: #1a237e;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
textarea {
  resize: vertical;
}
.g-recaptcha {
  margin: 15px 0;
}

/* Map */
.map-container {
  height: 400px;
  width: 100%;
  margin-top: -10px;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: #1a237e;
  color: #fff;
  padding: 50px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.footer-col h3 {
  margin-bottom: 15px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col i {
  margin-right: 8px;
}
.social-links a {
  margin-right: 10px;
  font-size: 18px;
  color: #fff;
}
.social-links a:hover {
  color: #ff9800;
}
.footer .copyright {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
