/* ==========================
   GLOBAL RESET & VARIABLES
========================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  font-size: clamp(13.5px, 1.2vw, 16px);
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 80px;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

:root {
  --primary: #0f9d8a;
  --secondary: #0a6c66;
  --light: #f7f7f7;
  --dark: #0f172a;

  --container: 1200px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
   CONTAINERS
========================== */

.container,
.container-wide,
.container-ultra {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.container {
  max-width: var(--container);
}
.container-wide {
  max-width: 1400px;
}
.container-ultra {
  max-width: 1600px;
}

/* ==========================
   SECTIONS
========================== */

.section {
  padding: 80px 0;
}

.section-light {
  background: #f9fafb;
}

.center {
  text-align: center;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.section-divider {
  height: 80px;
  background: linear-gradient(to bottom, white 0%, #f9fafb 100%);
}

.section h2 {
  font-size: clamp(24px, 2vw, 32px);
  margin-bottom: 15px;
}

.section p {
  max-width: 720px;
  margin: 0 auto 20px;
}

.section-tight {
  padding-top: 40px;
}

@media (min-width: 1800px) {
  .section {
    padding: 120px 0;
  }

  .hero h1 {
    font-size: 60px;
  }
}

/* DESKTOP SPACING */
@media (min-width: 1025px) {
  .section {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 65px 0;
  }
}

/* ==========================
   BUTTONS
========================== */

button {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  border: 2px solid white;
  padding: 12px 28px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: var(--secondary);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
}

/* ==========================
   CARDS
========================== */

.card {
  background: white;
  height: 100%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-top: 4px solid transparent;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-top-color 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-top: 4px solid var(--primary);
}

.card h3 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--primary);
}

.card-secondary {
  background: #f9fafb;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card-secondary:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.card-secondary h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

img,
video,
picture {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================
   GRIDS & RESPONSIVE LAYOUTS
========================== */
.about-grid,
.vision-mission-grid,
.programs-grid,
.impact-grid,
.program-impact-grid,
.story-block,
.cta-grid,
.approach-grid,
.values-grid {
  display: grid;
  gap: clamp(20px, 4vw, 60px);
}

.about-grid,
.vision-mission-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.programs-grid,
.impact-grid,
.program-impact-grid,
.values-grid,
.approach-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.story-block,
.cta-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.program-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  align-items: center;
  position: relative;
  margin-bottom: 80px;
}

.program-block.reverse {
  direction: rtl;
}

.program-block.reverse .program-text {
  direction: ltr;
}

/* ==========================
   FORMS
========================== */
.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
  min-height: clamp(120px, 15vh, 150px);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  textarea {
    min-height: 120px;
  }
}

/* ==========================
   HEADER & NAVIGATION
========================== */

header {
  position: fixed;
  width: 100%;
  background: white;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

/* NAV LINKS */

.nav-links a:not(.btn-primary) {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* HOVER COLOR */
.nav-links a:not(.btn-primary):hover {
  color: var(--primary);
}

/* ANIMATED UNDERLINE */
.nav-links a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* UNDERLINE ON HOVER */
.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

/* ACTIVE PAGE */
.nav-links a.active:not(.btn-primary) {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active:not(.btn-primary)::after {
  width: 100%;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* HAMBURGER */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }

  .logo img {
    height: 52px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: min(250px, 90vw);
    padding: 30px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================
   FOOTER
========================== */

footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.footer-about {
  padding-right: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.footer-about a {
  display: inline-block;
}

.footer-about img {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}
.footer-about p {
  max-width: 520px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-grid h4 {
  margin-bottom: 18px;
  font-size: 18px;
  color: white;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 12px;
}

.footer-grid a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s ease;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.designer {
  font-size: 14px;
  color: #94a3b8;
}

.designer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.designer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: left;
  }

  .footer-about p,
  .footer-grid h4,
  .footer-grid ul li,
  .footer-grid a {
    text-align: left;
  }

  .footer-about {
    border-right: none;
    padding-right: 0;
  }

  .footer-about p {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================
   HERO
========================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(85vh, 780px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    120deg,
    rgba(15, 157, 138, 0.85),
    rgba(10, 108, 102, 0.75),
    rgba(0, 0, 0, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  max-width: 700px;
}

.hero p {
  font-size: clamp(16px, 2vw, 18px);
  max-width: 550px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 70vh;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 420px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }
}

/* ==========================
   ABOUT PREVIEW
========================== */

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.about-text p {
  margin-left: 0;
  margin-right: 0;
}

/* ==========================
   PROGRAMS
========================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.program-icon {
  font-size: 42px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.program-card:hover .program-icon {
  transform: scale(1.2) rotate(8deg);
}

/* ==========================
   IMPACT
========================== */

.impact {
  background: var(--secondary);
  color: white;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.impact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.impact-card h3 {
  font-size: clamp(32px, 4vw, 40px);
}

/* ==========================
   PARTNERS / LOGO CAROUSEL
========================== */

.partner-carousel {
  overflow: hidden;
  position: relative;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  animation: scrollPartners 28s linear infinite;
}

.partner-track img {
  height: clamp(60px, 8vw, 100px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-track img:hover {
  opacity: 1;
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================
   CALL TO ACTION
========================== */

.cta {
  background: var(--primary);
  color: white;
  padding: 100px 0;
}

.cta-text h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 20px;
}

.cta-text p {
  margin-bottom: 15px;
  opacity: 0.95;
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
}

/* FORM */

.cta-form {
  background: white;
  padding: clamp(25px, 3vw, 35px);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 18px;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
}

.cta-form textarea {
  resize: vertical;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.cta-form button {
  width: 100%;
  cursor: pointer;
}

/* ==========================
   CTA RESPONSIVE
========================== */

@media (max-width: 1024px) {
  .cta-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .cta {
    padding: 80px 0;
  }
}
@media (max-width: 900px) {
  .cta-text {
    text-align: center;
  }

  .cta-text .button-group {
    justify-content: center;
  }
}

/* ==========================
   PAGE HERO
========================== */

.page-hero {
  background: var(--secondary);
  color: white;
  padding: 120px 0 90px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 15px;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 70px;
  }
}

/* ==========================
   ABOUT PAGE
========================== */

.about-text p {
  margin-left: 0;
  margin-right: 0;
}

/* ==========================
   VISION & MISSION
========================== */

.vision-mission-grid {
  margin-top: 40px;
}

/* ==========================
   APPROACH SECTION
========================== */

.approach-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("images/AKN-2.jpg");
  background-size: cover;
  background-position: center;
}

.approach-grid {
  margin-top: 50px;
}

.approach-card {
  text-align: center;
  padding: 35px;
}

.approach-icon {
  font-size: 48px;
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}

.approach-card:hover .approach-icon {
  transform: scale(1.2) rotate(6deg);
}

/* ==========================
   CORE VALUES
========================== */

.values-grid {
  margin-top: 40px;
}

/* ==========================
   COUNTIES
========================== */

.counties {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.county-pill {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.county-pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================
   ABOUT RESPONSIVE
========================== */

@media (max-width: 900px) {
  .approach-card {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .approach-icon {
    font-size: 40px;
  }
}

/* ==========================
   PROGRAMS PAGE
========================== */

.program-image img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.program-block:hover .program-image img {
  transform: scale(1.03);
}

/* subtle divider between program sections */

.program-block::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

/* ==========================
   PROGRAM FEATURES LIST
========================== */

.program-features {
  margin-top: 15px;
  list-style: none;
}

.program-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.program-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================
   PROGRAM TEXT
========================== */

.program-text h2 {
  margin-bottom: 15px;
}

.program-text p {
  max-width: 520px;
  margin-bottom: 15px;
  margin-left: 0;
  margin-right: 0;
}

/* ==========================
   PROGRAM BLOCK RESPONSIVE
========================== */

@media (max-width: 1024px) {
  .program-block {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .program-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .program-image {
    order: -1;
  }
}

/* ==========================
   IMPACT PAGE
========================== */

.impact-stats {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: white;
}

.program-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.program-impact-grid ul {
  margin-top: 15px;
  padding-left: 20px;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-image img {
  width: 100%;
  border-radius: 12px;
}

/* IMPACT GALLERY */

.impact-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.impact-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.impact-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */

@media (max-width: 1200px) {
  .impact-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .impact-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .impact-gallery {
    grid-template-columns: 1fr;
  }
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: clamp(10px, 4vw, 40px);
}

#lightbox.active {
  display: flex;
}

/* MUCH LARGER IMAGE */

.lightbox-image {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

/* CLOSE BUTTON */

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* NAVIGATION */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 20px;
}

.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  color: var(--primary);
}

/* MOBILE */

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 600px) {
  .lightbox-image {
    max-width: 100vw;
    max-height: 85vh;
    border-radius: 0;
  }
}

.cta-text p {
  margin-left: 0;
  margin-right: 0;
  max-width: 500px;
}

.impact-map {
  margin-top: 40px;
  text-align: center;
}

.impact-map img {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* MOBILE */

@media (max-width: 900px) {
  .story-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-text {
    max-width: 100%;
    text-align: center;
  }

  .cta-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* CONTACT PAGE */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-form form {
  width: 100%;
}

.contact-info p {
  margin-bottom: 20px;
  margin-left: 0;
  margin-right: 0;
  max-width: 520px;
}

/* CONTACT INFO */

.contact-intro {
  margin-bottom: 30px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list span,
.contact-list a {
  font-size: 15px;
  line-height: 1.5;
}

.contact-list li {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.contact-list strong {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--primary);
}

.map {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form {
    order: -1;
  }
}
