/* ===============================
   GLOBAL STYLES
================================*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #585858;
  background-color: #9b8a8a;
}

/* ===============================
   INFO BAR / LOGO + COURSE DETAILS
================================*/
.info-bar {
  background-color: #f3a909;
  padding: 10px 30px;
  display: flex;
  align-items: center;
}

.logo-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 70px;
  height: auto;
}

.details {
  font-size: 24px;
  color: #f3f1f1;
  line-height: 1.3;
}

/* ===============================
   HEADER / NAVIGATION
================================*/
.header {
  position: relative;      /* fixed for sticky if needed */
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #5c5353;
  padding: 15px 30px;
}

.nav a {
  color: #3d2323;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
}

.nav a:hover {
  text-decoration: underline;
}

/* ===============================
   HERO SECTION (HOME PAGE)
================================*/
.hero {
  height: 20vh;
  min-height: 500px;
  background-image: url("../assets/images/hero1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Overlay juu ya hero image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  z-index: 1;
}

.hero-overlay h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-overlay p {
  max-width: 750px;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Button */
.btn {
  background-color: #3498db;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px;
}

.btn:hover {
  background-color: #2980b9;
}

/* ===============================
   ATLAS MENU PAGE
================================*/
.atlas-menu {
  padding: 50px 30px;
  text-align: center;
  background-color: #493131;
}

.atlas-menu h1 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #000000;
  font-weight: bold;
}

/* Grid container for map links */
.map-links-grid {
  display: grid;

  /* 4 columns sawa */
  grid-template-columns: repeat(4, 1fr);

  /* 3 rows sawa */
  grid-template-rows: repeat(3, 1fr);

  gap: 20px;
  padding: 20px 0;

  max-width: 1200px;
  margin: 0 auto;
}

/* Individual map button – uniform size */
.map-btn {
  width: 100%;
  height: 120px;              /* size sawa */
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;

  border-radius: 10px;
  text-align: center;
  padding: 10px;

  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.map-btn:hover {
  background-color: #2980b9;
  transform: translateY(-4px);
}


/* ===============================
   FOOTER
================================*/
.footer {
  background-color: #1f2c3a;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* ===============================
   RESPONSIVE DESIGN
================================*/
@media (max-width: 768px) {
  /* Info bar & header stacking */
  .info-bar, .header {
    flex-direction: column;
    align-items: center;
  }

  .nav a {
    margin: 10px;
  }

  /* Hero overlay smaller text */
  .hero-overlay h1 {
    font-size: 28px;
  }

  /* Cards stack vertically */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  /* Map buttons stack vertically */
  .map-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .map-btn {
    font-size: 14px;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .map-links-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================== KEY INSIGHTS / CARDS (HOME PAGE) ================================*/ .insights { padding: 60px 30px; text-align: center; background-color: #f4f6f7; } .insights h2 { font-size: 30px; margin-bottom: 40px; } .cards { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; } .card { background-color: #ffffff; width: 260px; padding: 25px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); } .card h3 { margin-top: 10px; margin-bottom: 10px; } .icon { font-size: 40px; margin-bottom: 15px; }

/* ===============================
   ANALYSIS PAGE
================================*/
.analysis-section {
  padding: 60px 30px;
  background-color: #f4f6f7;
}

.analysis-title {
  text-align: center;
  font-size: 34px;
  color: #1f2c3a;
  margin-bottom: 50px;
  font-weight: bold;
}

/* Main layout */
.analysis-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: start;
}

/* LEFT PANEL */
.analysis-text {
  background: #ada9a9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.analysis-text h2 {
  margin-top: 0;
  color: #2c3e50;
}

.analysis-text h3 {
  margin-top: 25px;
  color: #34495e;
}

.analysis-text p {
  line-height: 1.6;
  margin-top: 10px;
}

.analysis-text ul {
  padding-left: 20px;
  margin-top: 10px;
}

.analysis-text li {
  margin-bottom: 8px;
}

/* RIGHT PANEL */
.analysis-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analysis-visual img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* ===============================
   RESPONSIVE
================================*/
@media (max-width: 900px) {
  .analysis-container {
    grid-template-columns: 1fr;
  }

  .analysis-title {
    font-size: 28px;
  }
}

/* ================= ANALYSIS SECTION ================= */

.analysis-section {
  padding: 60px 30px;
  background: #f8fafc;
}

.analysis-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #1f2c3a;
}

/* BUTTONS */
.analysis-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.analysis-buttons button {
  padding: 12px 22px;
  border: none;
  background: #3498db;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.analysis-buttons button:hover,
.analysis-buttons button.active {
  background: #1e3a8a;
}

/* TWO COLUMN LAYOUT */
.analysis-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT */
.analysis-text h2 {
  margin-bottom: 15px;
  color: #1e3a8a;
}

.analysis-text ul {
  padding-left: 20px;
}

.analysis-text li {
  margin-bottom: 8px;
}

/* CONTENT SWITCHING */
.analysis-content {
  display: none;
}

.analysis-content.active {
  display: block;
}

/* RIGHT */
.analysis-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .analysis-container {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   ANALYSIS & ATLAS GRID
================================*/
.map-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.map-btn {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  text-align: center;

  border-radius: 10px;
  padding: 15px;

  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.map-btn:hover {
  background-color: #2980b9;
  transform: translateY(-4px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .map-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .map-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .map-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= ABOUT PAGE ================= */
.about-section {
  padding: 60px 30px;
  background: #f9f9f9;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.about-section h1 {
  text-align: center;
  font-size: 32px;
  color: #1f2c3a;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Header & Nav */
.header {
    background: #b9cea6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover, .nav a.active {
    color: #2563eb;
}

/* Atlas Menu Section */
.atlas-menu {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
    margin-bottom: 50px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #eff1f3;
    margin-bottom: 10px;
}

.hero-text p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Grid System */
.map-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Map Card (The Udambwiudambwi) */
.map-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(243, 240, 240, 0.87);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.map-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.map-card span {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    color: white !important;
}

/* Theme Colors for each card */
.theme-green { color: #2ecc71; border-bottom: 5px solid #2ecc71; }
.theme-green:hover { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.theme-blue { color: #3498db; border-bottom: 5px solid #3498db; }
.theme-blue:hover { background: linear-gradient(135deg, #3498db, #2980b9); }

.theme-red { color: #e74c3c; border-bottom: 5px solid #e74c3c; }
.theme-red:hover { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.theme-orange { color: #f39c12; border-bottom: 5px solid #f39c12; }
.theme-orange:hover { background: linear-gradient(135deg, #f39c12, #d35400); }

.theme-purple { color: #9b59b6; border-bottom: 5px solid #9b59b6; }
.theme-purple:hover { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.theme-gray { color: #7f8c8d; border-bottom: 5px solid #7f8c8d; }
.theme-gray:hover { background: linear-gradient(135deg, #7f8c8d, #34495e); }

.theme-brown { color: #a0522d; border-bottom: 5px solid #a0522d; }
.theme-brown:hover { background: linear-gradient(135deg, #a0522d, #8b4513); }

.theme-hot { color: #ff4500; border-bottom: 5px solid #ff4500; }
.theme-hot:hover { background: linear-gradient(135deg, #ff4500, #ff8c00); }

.theme-leaf { color: #006400; border-bottom: 5px solid #006400; }
.theme-leaf:hover { background: linear-gradient(135deg, #006400, #228b22); }

.theme-medical { color: #dc143c; border-bottom: 5px solid #dc143c; }
.theme-medical:hover { background: linear-gradient(135deg, #dc143c, #b22222); }

.theme-edu { color: #4169e1; border-bottom: 5px solid #4169e1; }
.theme-edu:hover { background: linear-gradient(135deg, #4169e1, #00008b); }

.theme-terrain { color: #8b4513; border-bottom: 5px solid #8b4513; }
.theme-terrain:hover { background: linear-gradient(135deg, #8b4513, #5d4037); }

.theme-dark-purple { color: #483d8b; border-bottom: 5px solid #483d8b; }
.theme-dark-purple:hover { background: linear-gradient(135deg, #483d8b, #191970); }

.theme-mountain { color: #2f4f4f; border-bottom: 5px solid #2f4f4f; }
.theme-mountain:hover { background: linear-gradient(135deg, #2f4f4f, #000000); }

/* Styling for the new correlation cards */
.theme-analysis-red {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: white;
}

.theme-analysis-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

/* Hover effect to match your existing cards */
.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    background: #1e293b;
    margin-top: 60px;
}
