/* ============================================================
   Active Healthy Kids Pakistan - Global Stylesheet
   ------------------------------------------------------------
   Ensures consistent header, footer, and navigation formatting 
   across all pages. Individual pages may include inline styles 
   for unique layout sections.
   ============================================================ */

/* -------------------------------------
   BASIC RESET & TYPOGRAPHY
------------------------------------- */
* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

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

ul {
  list-style: none;
}

/* -------------------------------------
   HEADER & NAVIGATION
------------------------------------- */
.site-header {
  background-color: #ffffff;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 1000;
  flex-wrap: nowrap; /* prevent wrapping */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px; /* space between logo and site title */
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  background-color: transparent;
}

.site-title {
  font-size: 1.32rem;
  font-weight: bold;
  color: #006400;
  margin: 0;
  white-space: nowrap; /* prevent wrapping */
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo/title container and nav */
  flex-shrink: 0;
  width: 100%;
}

.nav-list {
  display: flex;
  gap: 14px; /* slightly closer buttons */
  margin-left: auto; /* push nav to the right of logo/title */
  padding: 0;
  list-style: none;
  white-space: nowrap; /* keep nav in one row */
}

.nav-list a {
  font-weight: 600;
  font-size: 0.8rem; /* slightly smaller (~12% reduction) */
  color: #006400;
  padding: 4px 7px; /* slightly smaller padding */
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #228B22; /* Lighter green */
}

/* -------------------------------------
   FOOTER
------------------------------------- */
.site-footer {
  background-color: #e0e0e0;
  color: #222;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
}

/* -------------------------------------
   CONTACT PAGE STYLES
------------------------------------- */
.contact-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-section h2 {
  display: inline-block;
  background-color: #006400;
  color: #ffffff;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 25px;
}

.contact-details {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-details h3 {
  color: #006600;
  margin-bottom: 10px;
}

.contact-details p {
  line-height: 1.5;
}

.form-container {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-container h3 {
  display: inline-block;
  background-color: #ffeb3b;
  color: #000;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-container iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

/* -------------------------------------
   GLOBAL LINK STYLES
------------------------------------- */
a.link,
.announcement-text a,
.alliance a {
  color: #0000EE;
  text-decoration: underline;
}

a.link:hover,
.announcement-text a:hover,
.alliance a:hover {
  color: #551A8B;
  text-decoration: underline;
}

/* -------------------------------------
   INDICATORS SECTION
------------------------------------- */
.indicators {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.indicators h2 {
  display: inline-block;
  background-color: #006400;
  color: #ffffff;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  margin-bottom: 25px;
}

/* -------------------------------------
   TEAM SECTION
------------------------------------- */
.team-section h2 {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #006400;
}

/* -------------------------------------
   RESPONSIVE DESIGN
------------------------------------- */
@media (max-width: 900px) {
  .site-title {
    font-size: 1.2rem; /* reduce further on smaller screens */
  }

  .nav-list a {
    font-size: 0.78rem;
    padding: 4px 6px;
  }
}

@media (max-width: 700px) {
  .main-nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .site-title {
    text-align: center;
  }

  .logo img {
    height: 65px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .nav-list a {
    padding: 4px 6px;
  }
}
