@import url("https://fonts.googleapis.com/css2?family=Caprasimo&family=Dosis:wght@200..800&family=Encode+Sans+Expanded:wght@100;200;300;400;500;600;700;800;900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Macondo&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&display=swap");

:root {
  --bg: #f5fbf7;
  --card: #ffffff;
  --accent: #8a1e1e; /* main red */
  --accent-2: #5c0f0f; /* darker red */
  --accent-3: #c94a4a; /* lighter accent red */
  --muted: #435054;
  --glass: rgba(255, 255, 255, 0.85);
  --radius: 14px;
  --maxw: 1180px;
  font-family: "Lato", "Inter", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ====Reset + base===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding-top: 20px;
  background: linear-gradient(180deg, #f8fff9, #f5fbf7);
  color: #0f2b22;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}
/* responsive container */
.container {
  max-width: 1300px; /* desktop max */
  margin: 0 auto;
  padding: 0 20px; /* horizontal breathing space */
  box-sizing: border-box;
}

section {
  width: 100%;
  position: relative;
  padding-bottom: 50px; /* spaces for line */
  min-height: 100svh; /* mobile-safe */
  opacity: 1;
}
#home,
#about,
#contact {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
} 
#hero {
  margin: 20px 0;
}
#team {
  min-height: 60vh;
}
#team .container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 3rem auto;
}
#programs {
  min-height: auto;
  padding: 20px;
}
h1 {
  transition: all ease 0.3s;
}
/* animations */
/* ================= FADE UP ANIMATION ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SLIDE LEFT ================= */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= SLIDE RIGHT ================= */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/*line under every section */
section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #8a1e1e);
  opacity: 0.6;
}

.programs-grid,
.team-grid,
.mission-grid,
.cards-grid,
.grid,
section .grid,
section .program-grid {
  justify-content: center !important;
  justify-items: center !important;
}
/* yaha add kiya */
img,
picture,
.p-media {
  max-width: 100%;
  height: auto;
  display: block;
}
.hero-left h1 {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
}
.lead {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* ====Header==== */
.site-header {
  position: fixed;
  padding: 6px 0;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98); /* slightly translucent background */
  box-shadow: 0 6px 24px rgba(10, 30, 10, 0.06);
}
.logo-single {
  height: 80px; /* logo size control */
  width: auto;
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.org-name {
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
}
.org-tag {
  font-size: 0.86rem;
  color: var(--muted);
}

/* =====Nav====== */
.nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.nav a {
  padding: 6px 8px;
  line-height: 1.2;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  transition: all 180ms;
  white-space: nowrap;
}
.nav a:hover {
  background: linear-gradient(
    180deg,
    rgba(47, 178, 106, 0.08),
    rgba(47, 178, 106, 0.03)
  );
  color: var(--accent-2);
  transform: translateY(-3px);
}
/* active current tab */
.nav a.active {
  background: linear-gradient(
    180deg,
    rgba(47, 178, 106, 0.08),
    rgba(47, 178, 106, 0.03)
  );
  color: var(--accent-2);
}
.cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn {
  display: inline-block;
  padding: 0.56rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(30, 140, 70, 0.12);
  transition: all 0.3s ease;
}
.btn:hover {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 2px 12px rgba(58, 11, 3, 0.4);
}
.btn.small {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(20, 80, 40, 0.06);
}
.btn.outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(20, 80, 40, 0.08);
}
.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.25rem;
}
#icon {
  display: none;
}
.navIcon {
  display: none;
}
#logo {
  display: none;
}

/* =====HERO===== */
.hero {
  padding: 3rem 0;
  margin-top: 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 2rem;
  align-items: center;
}
.hero-left,
.hero-right {
  padding: 0 20px;
}
.hero-left h1 {
  font-size: 2.1rem;
  margin: 0 0 0.6rem;
  color: var(--accent-2);
  line-height: 1.06;
}
.lead {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.hero-ctas {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}
.big {
  padding: 0.9rem 1.2rem;
  font-size: 1.02rem;
}
.stats {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.stat {
  background: linear-gradient(180deg, #fff, #f7fff7);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(10, 20, 10, 0.04);
}
.stat .num {
  font-weight: 800;
  color: var(--accent-2);
  font-size: 1.15rem;
}
.stat .lbl {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ====Hero card===== */
@media (min-width: 920px) {
  .hero-right {
    margin-top: 3rem;
  }
}
.hero-card {
  background: linear-gradient(180deg, #fff, #f8fff8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(10, 30, 10, 0.06);
  border: 1px solid rgba(20, 60, 20, 0.03);
}
.hero-card img {
  width: 100%;
  height: 240px;

  object-fit: cover;
  display: block;
}
/* slideshow right hero section */
.slide-show {
  margin: 10px auto;
  max-width: 400px;
  height: 350px;
  padding: 10px;
  position: relative;
}
.slide {
  margin: auto;
  height: 100%;
  animation: fade 0.5s;
  position: absolute;
  transition: opacity 0.7s ease;
  opacity: 0;
}
.slide-show .slides .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: auto;
  border-radius: 12px;
}
.show {
  opacity: 1;
}
.arrows {
  position: absolute;
  top: 45%;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--accent-2);
  border: none;
  outline: none;
  color: #fff;
  font-weight: bold;
  font-size: large;
  transition: all 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
}
.next-arrow {
  margin-left: 20px;
  right: 10px;
}
.arrows button:hover {
  color: var(--accent-2);
  background-color: #fff;
  font-size: 1.6rem;
}
@keyframes fade {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
.fade {
  animation: fadeEffect 0.7s;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.hero-card-body {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 20px 10px;
}
.hero-card-body h3 {
  margin: 0 0 0.4rem;
  color: var(--accent-2);
}
.card-actions {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}
/* =====ABOUT===== */
.section {
  padding: 10px 0;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.4rem;
  align-items: center;
}
.about-left {
  padding: 7px 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-left p{
  font-family: inherit;
  padding: 5px 10px;
}
.bullets h3{
  margin-bottom: .5rem;
}
.abt-img {
  border-radius: 20px;
}
.bullets {
  margin-top: 10px;
  padding-left: 15px;
  color: var(--muted);
}
.about-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
}
.hero-image {
  max-width: 400px;
  height: 250px;

  border-radius: 15px;
  display: block;
  margin: auto;
}
.about-mission {
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 40px 30px;
}

.about-box {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.about-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
}

.about-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  font-family: inherit;
}

.icon {
  font-size: 30px;
  margin-right: 10px;
  color: var(--accent-2);
}

/* 📌 RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .about-mission {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-mission {
    grid-template-columns: 1fr;
  }

  .about-box {
    padding: 20px;
  }

  .about-box h2 {
    font-size: 20px;
  }

  .about-box p {
    font-size: 14px;
  }
}

/* achievement seciton */
#achievement .section-subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}
#achievement .section-subtitle i {
  color: var(--accent);
  margin-right: 1rem;
  font-size: 2.2rem;
}
.achieve-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}
.achieve-box {
  margin: 20px auto;
  padding: 20px 10px;
  max-width: 350px;
  min-height: 350px;
  background-color: var(--accent-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: 0 4px 13px rgba(10, 30, 10, 0.6);
  transition: all 0.3s ease;
}
.achieve-box:hover {
  transform: translateY(-5px) scale(1.03);
}
.achieve-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--card);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.achieve-box p {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #cccbcb;
  display: flex;
  align-items: center;
}
.achieve-box img {
  width: 90%;
  height: 80%;
  object-fit: cover;
  border-radius: 5px;
}
#tree {
  width: 30px;
  height: 30px;
  filter: invert(1);
}
/* ===== Programs (6-card grid) ===== */
.section-programs {
  padding: 0.4rem 0;
}
.section-title {
  font-size: 2rem;
  color: var(--accent-2);
  margin: 0.3rem 0;
  margin-bottom: 2rem;
  text-align: center;
  text-decoration: underline;
}
.section-programs .section-lead {
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* =====grid==== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  /*grid-template-columns: repeat(3, 1fr);*/
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 10px 25px;
}

/* ====card==== */
.program-card {
  background: linear-gradient(180deg, #ffffff, #fbfff9);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 60, 20, 0.03);
  box-shadow: 0 18px 40px rgba(10, 20, 10, 0.04);
  transition: all 260ms ease;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

/* ====media area (image)==== */
.program-card .p-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  width: 100%;
}

/* =====content====== */
.program-card .p-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.program-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent-2);
}
.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ======link inside card==== */
.program-card .p-link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 220ms, color 220ms, transform 220ms;
}
.program-card .p-link:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: translateY(-3px);
}

/* ====hover lift==== */
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 2px 15px rgba(58, 11, 3, 0.8);
}

/* =====TEAM===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center; /* center each card */
  margin-top: 16px;
}

.team-card {
  background: linear-gradient(180deg, #fff, #fbfff9);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  min-width: 200px;
  min-height: 400px;
  width: 90%;
  border: 1px solid rgba(20, 60, 20, 0.03);
  box-shadow: 0 12px 30px rgba(10, 20, 10, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.container .center {
  font-size: 2rem;
  color: var(--accent-2);
  margin: 0.4rem 0;
  text-align: center;
  text-decoration: underline;
}
.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.6rem;
  box-shadow: 0 10px 28px rgba(20, 80, 40, 0.06);
}

/* ====CONTACT===== */
.section-contact {  
  padding-bottom: 3rem;
}
.section-contact .container {
  padding: 10px 20px;
}
.contact-grid {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-form-wrap {
  max-width: 1000px;
  width: 100%;
  margin: auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  font-family: sans-serif;
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem; 
  border-radius: 10px;
  border: 1px solid #e8f3ea;
  margin-bottom: 0.8rem;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
} 
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn.outline {
  background: transparent;
  border: 1px solid #000;
}
.info-card {
  background: linear-gradient(180deg, #fff, #fbfff9);
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(20, 60, 20, 0.03);
  box-shadow: 0 12px 30px rgba(10, 20, 10, 0.03);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  text-align: left;
  align-self: flex-start;
}
/* BOTTOM SECTION (MAP + INFO) */
.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
}

/* MAP */
.map-box iframe { 
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 10px;
}

/* INFO CARD */
.contact-info .info-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}
.socials a {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}
.contact-info {
  min-width: 400px;
  width: 100%;
  margin-right: 21px;
}
.contact-info h3 {
  margin-bottom: 12px;
}
.contact-info .btn {
  margin-top: 20px;
}
.contact-form-wrap {
  padding: 10px 20px;
}
.contact-form-wrap p {
  padding: 10px 5px;
  font-size: 1.2rem;
  white-space: wrap;
}

@media (max-width: 420px) {
  .contact-grid {
    place-items: start;
  }
  .contact-form-wrap {
    width: 300px;
    padding: 0 20px;
  }
  .contact-form-wrap p {
    font-size: 1rem;
  }
  .contact-info {
    min-width: 300px;
  }
}
/* ====FOOTER==== */
.site-footer {
  padding: 15px 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(20, 60, 20, 0.03);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: center; /* centered */
  align-items: center;
  gap: 1rem;
}
#contactForm {
  width: 90%;
}

#contactBtn {
  display: inline-block;
  outline: none;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  position: fixed;
  bottom: 80px;
  right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 999999;
  background-color: #efefef;
}
#contactBtn i {
  transition: all 0.3s ease;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--accent-2);
}
#contactBtn i:active {
  transform: scale(1.05) translateY(-5px);
}
/* For tablets */
@media screen and (max-width: 1024px) {
  #contactBtn {
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 25px;
  }
}

/* For mobile phones */
@media screen and (max-width: 768px) {
  #contactBtn {
    width: 56px;
    height: 56px;
    bottom: 85px;
    right: 19px;
  }
}

/* For very small phones */
@media screen and (max-width: 480px) {
  #contactBtn {
    width: 52px;
    height: 52px;
    bottom: 70px;
    right: 15px;
    border-radius: 50%; /* Makes it circular on mobile */
  }
}

/* For extra small devices */
@media screen and (max-width: 360px) {
  #contactBtn {
    width: 48px;
    height: 48px;
    bottom: 65px;
    right: 12px;
  }
}

/* For landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #contactBtn {
    width: 44px;
    height: 44px;
    bottom: 15px;
    right: 15px;
  }
}

/* styles for back to top btn */
#backToTopBtn {
  display: inline-block;
  background-color: #601010;
  outline: none;
  border: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 30px;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 999999;
}
#backToTopBtn::after {
  content: "\02C4";
  font-size: 40px;
  line-height: 50px;
  color: #fff;
}
#backToTopBtn:hover {
  cursor: pointer;
  background-color: #333;
}
#backToTopBtn:active {
  background-color: #555;
}
#backToTopBtn.showBtn {
  opacity: 1;
  pointer-events: auto;
}
/* For tablets */
@media screen and (max-width: 1024px) {
  #backToTopBtn {
    width: 55px;
    height: 55px;
    bottom: 40px;
    right: 25px;
  }
}

/* For mobile phones */
@media screen and (max-width: 768px) {
  #backToTopBtn {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 20px;
  }
}

/* For very small phones */
@media screen and (max-width: 480px) {
  #backToTopBtn {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 19px;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Makes it circular on mobile */
  }
}

/* For extra small devices */
@media screen and (max-width: 360px) {
  #backToTopBtn {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 16px;
  }
}

/* For landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #backToTopBtn {
    width: 44px;
    height: 44px;
    bottom: 15px;
    right: 15px;
  }
}

/*animations for button*/
.heartbeat {
  animation: heartbeat 1.3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.2);
  }
  90% {
    transform: scale(1);
  }
}
.soft-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.bounce {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(1);
  }
}

/* ---------- Responsive breakpoints ---------- */
/* =====Responsive===== */
@media (max-width: 980px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-card {
    min-height: 320px;
  }
}
@media (max-width: 1220px) {
  .navBtn {
    display: none;
  }
  #icon {
    display: block;
    width: 40px !important;
    height: 40px !important;
    border-radius: 20px;
  }
  .volunteer {
    filter: brightness(0) saturate(100%) invert(12%) sepia(92%) saturate(1410%)
      hue-rotate(338deg) brightness(93%) contrast(110%);
  }
  .header-inner {
    padding-left: 20px;
    padding-right: 30px;
    gap: 1rem;
  }
}

/* ====tab screens===== */
@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  } /* smaller header on mobile */

  .hero-grid,
  .about-wrap {
    grid-template-columns: 1fr;
  }
  .hero-left {
    margin-top: 1rem;
    padding: 1.2rem 1rem;
  }
  .hero-right {
    padding: 1rem 1.2rem;
  }
  .slide-show {
    max-width: 800px;
    padding: 12px;
    border-radius: 12px;
  }
  .slides {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .slide {
    width: 90%;
    margin: 10px auto;
  }
  .hero-card-body {
    margin: 30px 20px;
  }
  .hero-left h1 {
    width: 70%;
  }
  .nav {
    display: none;
  }
  #navToggle {
    display: block; /* show hamburger (you have this) */
    cursor: pointer;
  }
  .nav-menu-bar {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 15px 20px;
    position: absolute;
    top: 100%;
    right: -200px;
    border-radius: 10px;
    opacity: 0;
    gap: 1.2rem;
    background: rgba(131, 28, 23, 0.9);
    transition: all 0.3s ease;
  }
  .nav-menu-bar.active {
    opacity: 1;
    right: 0;
  }

  .nav a {
    width: 100%;
    font-size: 1.2rem;
    color: var(--card);
    padding: 10px;
    transition: all 0.3s ease;
  }
  .nav a:hover {
    color: #f8fff8;
    transform: translateY(-5px);
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .stats {
    flex-direction: column;
  }

  /* Programs grid: 2 cols */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-image {
    margin: 20px auto 0;
    max-width: 360px;
  }
}
/* Mobile phones */
@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .program-card {
    min-height: auto;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .org-name {
    font-size: 1.02rem; /* smaller brand */
  }
  .hero-left h1 {
    font-size: 1.4rem;
  }
  .hero-ctas .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  .stats {
    flex-direction: column;
    gap: 10px;
  }
  .contact-info .btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* Increase touch target size */
  .btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
  }
  input,
  textarea {
    font-size: 1rem;
    padding: 12px;
  }

  /* keep header smaller */
  .header-inner {
    padding: 4px 10px;
  }
  .logo {
    height: 48px;
    width: 48px;
  }
  .team-card {
    width: 100%;
  }
}
@media (max-width: 768px) {
  /* Hide Donate + Volunteer buttons in mobile */
  .cta-wrap .btn {
    display: none !important;
  }
}
@media (max-width: 560px) {
  .logo-single {
    display: none;
  }
  #logo {
    display: block;
    width: 70px;
    height: 60px;
  }
}
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  #contactForm {
    width: 85%;
  }
}
@media (max-width: 360px) {
  .hero {
    margin-top: 0rem;
  }
  .abt-img {
    max-width: 300px;
  }
  .container {
    padding: 0 20px;
  }
  .team-card {
    width: 90%;
  }
}

/* reveal animations */
/* ================= REVEAL BASE ================= */
.reveal {
  opacity: 1; /* safety fallback */
  transform: none;
}

/* initial hidden state only when JS is active */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* visible state */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* ================= HEADINGS ================= */
.js .reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.js .reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ================= MOBILE OPT ================= */
@media (max-width: 767px) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transition-duration: 0.5s;
    transform: translateY(20px);
  }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
 

/* ===== CONTACT SECTION responsive===== */   

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .contact-bottom {
    grid-template-columns: 1fr;
  }

  .map-box iframe {
    height: 300px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.6rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-info .info-card {
    text-align: left;
  }
}
