* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #1e2a2e;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
}

.btn-primary {
  background: #1e6f3f;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: #0f4d2c;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -12px rgba(30, 111, 63, 0.4);
}

.btn-outline {
  border: 2px solid #1e6f3f;
  color: #1e6f3f;
  background: transparent;
}

.btn-outline:hover {
  background: #1e6f3f;
  color: white;
}

/* navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(32, 51, 220, 0.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid #eef2f0;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1e6f3f;
}

.donate-btn-mobile {
  display: none;
}

/* HERO SLIDER SECTION (full width) */
.slider-section {
  width: 100%;
  position: relative;
  background: #111;
}
.swiper {
  width: 100%;
  height: auto;
}
.swiper-slide {
  position: relative;
  height: clamp(230px, 38vw, 750px);
  background: #111;
  overflow: hidden;
}
.slide-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  display: flex;
  align-items: center;
}
.slide-content {
  max-width: 600px;
  padding: 0 40px;
  color: white;
  animation: fadeUp 0.6s ease-out;
}
.slide-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.slide-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: 0.2s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #1e6f3f;
}
.swiper-pagination-bullet {
  background: white;
  opacity: 0.7;
}
.swiper-pagination-bullet-active {
  background: #1e6f3f;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .swiper-slide {
    height: 250px;
  }
  .slide-content h2 {
    font-size: 1.8rem;
  }
  .slide-content p {
    font-size: 0.9rem;
  }
}

/* about section */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f2c23;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-card,
.ceo-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2ef;
}
.ceo-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  perspective: 1200px;
  min-height: 500px;
}
.ceo-card-inner {
  position: relative;
  width: 100%;
  min-height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}
.ceo-card:hover .ceo-card-inner,
.ceo-card:focus-within .ceo-card-inner,
.ceo-card.flipped .ceo-card-inner {
  transform: rotateY(180deg);
}
.ceo-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 32px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #edf2ef;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.ceo-card-back {
  transform: rotateY(180deg);
  align-items: flex-start;
  text-align: left;
}
.urdu-text {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 2.15;
  direction: rtl;
  text-align: right;
  color: #17382d;
}
.flip-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #4b6a5e;
}
.ceo-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #1e6f3f;
}
/* programs grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.program-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid #eef2ef;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.program-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}
.program-content {
  padding: 24px;
}
.program-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1e6f3f;
  margin-bottom: 8px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}
.filter-btn {
  background: #f3f8f5;
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #1e6f3f;
  color: white;
}
/* footer */
.footer {
  background: #0d261f;
  color: #cbdcd5;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-icons a {
  background: #1f4137;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
  color: white;
}
.social-icons a:hover {
  background: #1e6f3f;
}
.copyright {
  text-align: center;
  border-top: 1px solid #1f4137;
  padding-top: 24px;
  font-size: 0.8rem;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .donate-btn-mobile {
    display: block;
  }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ceo-card,
  .ceo-card-inner {
    min-height: 430px;
  }
  .ceo-img {
    width: 180px;
    height: 180px;
  }
  .urdu-text {
    font-size: 1rem;
    line-height: 2;
  }
}
