/* ======= Content container-contact ======= */
.content {
  padding: 60px 20px;
  background-color: #fff;
}

.container-contact {
  max-width: 900px;
  margin: 0 auto;
}

/* ======= Title ======= */
.main__title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #000 !important;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.main__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #ffcc33;
  border-radius: 2px;
}

/* ======= section-contact ======= */
.section-contact {
  margin-bottom: 50px;
}
.section-contact h2 {
  font-size: 1.4rem;
  color: #3a8b68;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e3f2fd;
  display: inline-block;
  position: relative;
}
.section-contact h2::before {
  content: "• ";
  color: #ffcc33;
}

/* ======= Address Cards ======= */
.address-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.address-card {
  flex: 0 1 300px;
  background: #f8fbff;
  padding: 25px 20px;
  border-radius: 12px;
  border-left: 4px solid #ffcc33;
  text-align: center;
  color: #333;
  transition: all 0.3s ease;
}
.address-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.address-card strong {
  display: block;
  color: #3a8b68;
  margin: 10px 0 8px;
  font-size: 1.05rem;
}
.address-card p {
  margin: 4px 0;
  font-size: 0.95rem;
}
.address-card .icon {
  font-size: 2rem;
  color: #ffcc33;
  margin-bottom: 8px;
}
.address-card:hover .icon {
  color: #e0b800;
}

/* ======= Contact section-contact ======= */
.contact-section-contact {
  text-align: center;
}
.contact-box {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: #f8fbff;
  border-radius: 10px;
  padding: 20px 25px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-icon {
  font-size: 1.4rem;
  color: #ffcc33;
}
.contact-item a {
  color: #2b7a4b;
  text-decoration: none;
  font-weight: 500;
}
.contact-item a:hover {
  text-decoration: underline;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .main__title {
    font-size: 1.8rem;
  }
  .address-card {
    flex: 0 1 100%;
  }
  .contact-box {
    width: 100%;
  }
}



/*District Offices*/
/* ======= District Section (Centered & Responsive) ======= */
.container-district {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
  justify-content: center; /* ✅ Centers the cards horizontally */
  gap: 30px;
  margin-top: 40px;
}

.district-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  max-width: 360px; /* ✅ Keeps uniform card width */
  margin: 0 auto;
}

.district-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.district-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.director-name {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Card Body */
.card-body {
  padding: 24px;
  background: #fafcff;
}
.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.info-item:last-child { margin-bottom: 0; }

.info-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: bold;
}

.info-label {
  font-weight: 600;
  color: #37474f;
  min-width: 100px;
}
.info-value {
  color: #455a64;
  flex: 1;
}
.info-value a {
  color: #198754;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--accent);
  transition: color 0.2s;
}
.info-value a:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

/* Unique Accent Colors */
.capricorn { --accent: #999999; --accent-dark: #c3c7cb; }
.mopani { --accent: #3a8b68; --accent-dark: #198754; }
.sekhukhune { --accent: #ffcc33; --accent-dark: #ffc107; }
.waterberg { --accent: #000; --accent-dark: #333; }
.vhembe { --accent: #d32f2f; --accent-dark: #dc3545; }

/* Responsive */
@media (max-width: 768px) {
  .district-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .district-card {
    max-width: 90%;
  }
}


/*MEC and HOD */



    .management-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 3rem auto;
      padding: 0 1rem;
    }

    .contact-card {
      background: #fff;
      border-radius: 12px;
      padding: 1.75rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border-left: 5px solid #198754;
    }

    .contact-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .contact-card h2 {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: #1a1a1a;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contact-card p {
      margin: 0.75rem 0;
      font-size: 0.95rem;
      color: #444;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contact-card p a {
      color: #198754;
      text-decoration: none;
      font-weight: 500;
    }

    .contact-card p a:hover {
      text-decoration: underline;
    }

    .contact-card i {
      color: #198754;
      width: 18px;
      text-align: center;
    }

    @media (max-width: 576px) {
      .page-header h1 { font-size: 1.8rem; }
      .contact-card { padding: 1.5rem; }
    }