/* ===== ABOUT TEN/MET SECTION ===== */

.about-tenmet {
  background-color: #f7f5f0; /* soft off-white */
  padding: 4.5rem min(6vw, 4rem);
}

.about-tenmet-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* --- TEXT (comes from RIGHT) --- */

.about-tenmet-text {
  opacity: 0;
  transform: translateX(60px); /* start off to the right */
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-kicker {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0a9446;
  margin-bottom: 0.75rem;
}

.about-heading {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
  color: #222;
}

.about-lead {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.2rem;
}

.about-list {
  list-style: none;
  margin-bottom: 1.7rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.4rem;
}

.about-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a9446, #0e75c2);
  margin-top: 0.4rem;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.5rem;
  background:  #0e75c2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-cta::after {
  content: "→";
  font-size: 0.95rem;
}

.about-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* --- MAP VISUAL (comes from LEFT) --- */

.about-tenmet-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-60px); /* start off to the left */
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.map-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Map background uses the Tanzania silhouette */
.map-bg {
  position: absolute;
  inset: 0;

  /* Make map large */
  width: 100%;
  height: 100%;

  background-image: url("../images/map.png");
  background-repeat: no-repeat;
  background-size: 120%;      /* bigger than container */
  background-position: center;

  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.25));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.map-card {
  position: relative;
  width: 420px;           /* increase width */
  height: 520px;          /* increase height */
  max-width: 100%;
}


/* circular heads on top of map */
/* BASE style for all heads */
.map-head {
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

/* HOVER effect stays the same */
.map-head:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

/* LARGE heads – more visual emphasis */
.head-1,
.head-2 {
  width: 110px;
  height: 110px;
  z-index: 4; /* slightly above others */
}

/* MEDIUM heads */
.head-3,
.head-4 {
  width: 95px;
  height: 95px;
}

/* SMALL heads – lower row */
.head-5,
.head-6 {
  width: 80px;
  height: 80px;
  opacity: 0.95; /* subtle depth effect */
}


.map-head:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

/* Position heads to feel "connected" over the map */
.head-1 {
  top: 18%;
  right: 20%;
}
.head-2 {
  top: 40%;
  right: 8%;
}
.head-3 {
  bottom: 22%;
  right: 22%;
}
.head-4 {
  bottom: 10%;
  left: 35%;
}
.head-5 {
  top: 35%;
  left: 18%;
}
.head-6 {
  top: 50%;
  left: 30%;
}

/* lift entire card on hover */
.map-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

/* --- SCROLL-IN STATE --- */
.about-tenmet.in-view .about-tenmet-text {
  opacity: 1;
  transform: translateX(0);
}

.about-tenmet.in-view .about-tenmet-visual {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .about-tenmet-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .about-tenmet-visual {
    order: 1;
    justify-content: flex-start;
  }

  .about-tenmet-text {
    order: 2;
  }

  .map-card {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .about-tenmet {
    padding: 3.5rem 1.4rem;
  }

  .about-heading {
    font-size: 1.7rem;
  }

  .map-card {
    max-width: 280px;
  }

  .about-tenmet-text {
    text-align: left;
  }
}

/* ===== SMALL SCREEN: 2 IMAGES PER ROW, LARGE SIZE ===== */
@media (max-width: 640px) {

  /* Turn the card into a clean grid */
  .map-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    justify-items: center;
    align-items: center;
    padding: 30px 10px 40px;
    position: relative;
  }

  /* Uniform LARGE image size for clarity */
  .map-head {
    position: static !important; /* Cancel absolute positioning */
    width: 120px !important;      /* Larger for visibility */
    height: 120px !important;
    border-width: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  /* Increase hover visibility (optional) */
  .map-head:hover {
    transform: scale(1.05);
  }

  /* Hide Tanzania map (optional) */
  .map-bg {
    display: none;
  }

  /* Make book illustration sit above grid, large & centered */
  .book-layer {
    background-size: 100%;
    background-position: top center;
    padding-top: 160px; /* creates space for book above the images */
  }
}
@media (max-width: 640px) {
  .map-card {
    width: 280px;
    height: 390px;
  }
  .map-bg {
    background-size: 130%;
  }
}
