

:root{
  --primary:#7b1e3a;
  --secondary:#f2c94c;
  --accent:#fdf2e3;
  --dark:#2b1b1b;
  --light:#fffaf3;
  --primary-dark:var(--dark);
  --accent-dark:var(--primary);
  --white:var(--light);
  --card:var(--light);
  --text:var(--dark);
  --muted:var(--dark);
  --heading:var(--primary);
  --section-soft:var(--accent);
  --section-blue:var(--primary);
  --section-dark:var(--dark);
  --section-gold:var(--accent);
  --border:var(--secondary);
  --shadow:none;
  --shadow-hover:none;
  --gradient-main:var(--primary);
  --gradient-gold:var(--secondary);
  --gradient-soft:var(--accent);
  --soft-green:var(--accent);
  --soft-blue:var(--light);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Poppins",sans-serif;
}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  background:var(--section-soft);
  color:var(--text);
  overflow-x:hidden;
}

img{
  width:100%;
  display:block;
}

a{
  text-decoration:none;
}

.container{
  width:100%;
  max-width:1250px;
  margin:auto;
  padding:0 20px;
}

section{
  padding:90px 0;
}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title span{
  display:inline-block;
  background:var(--gradient-gold);
  color:#2b1b1b;
  padding:9px 20px;
  border-radius:40px;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  box-shadow:none;
}

.section-title h2{
  font-size:clamp(30px,4vw,46px);
  margin-top:18px;
  color:var(--heading);
  line-height:1.2;
}

.section-title h2::after{
  content:"";
  width:90px;
  height:4px;
  background:var(--gradient-gold);
  display:block;
  margin:18px auto 0;
  border-radius:50px;
}

.section-title p{
  max-width:750px;
  margin:15px auto 0;
  color:var(--muted);
  line-height:1.8;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 34px;
  border-radius:50px;
  font-weight:800;
  transition:.35s ease;
  box-shadow:none;
}

.btn-primary{
  background:var(--gradient-gold);
  color:#2b1b1b;
}

.btn-primary:hover{
  transform:translateY(-5px);
  box-shadow:none;
}
/* HERO */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  color:#fffaf3;
}

/* Background Slider */
.hero-slider{
  position:absolute;
  inset:0;
  z-index:1;
}

.hero-slider .slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity 1.5s ease-in-out;
}

.hero-slider .slide.active{
  opacity:1;
}

/* Overlay */
.hero-overlay{
  position:absolute;
  inset:0;
  background:
  var(--accent);
  z-index:2;
}

/* Content */
.hero .container{
  position:relative;
  z-index:3;
}

.hero-content{
  max-width:850px;
}

.hero-content span{
  display:inline-block;
  margin-bottom:22px;
  background:var(--primary);
  color:var(--secondary);
  border:1px solid #f2c94c;
  padding:10px 22px;
  border-radius:40px;
  backdrop-filter:blur(10px);
  font-weight:800;
}

.hero-content h1{
  font-size:clamp(40px,6vw,72px);
  line-height:1.08;
  margin-bottom:22px;
  text-shadow:none;
}

.hero-content p{
  font-size:18px;
  line-height:1.9;
  margin-bottom:36px;
  color:#fffaf3;
  max-width:760px;
}

/* Mobile */
@media(max-width:768px){

  .hero{
    min-height:75vh;
    padding:80px 0;
  }

  .hero-content h1{
    font-size:34px;
  }

  .hero-content p{
    font-size:15px;
    line-height:1.7;
  }

  .hero-content span{
    font-size:12px;
    padding:8px 16px;
  }
}
/* ABOUT */

.about{
  background:var(--gradient-soft);
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
  background:#fffaf3;
  border:1px solid var(--border);
  padding:35px;
  border-radius:36px;
  box-shadow:none;
  backdrop-filter:blur(12px);
}

.about-img{
  position:relative;
}

.about-img::before{
  content:"";
  position:absolute;
  inset:22px -18px -18px 22px;
  background:var(--gradient-main);
  border-radius:30px;
  z-index:-1;
}

.about-img img{
  border-radius:30px;
  height:550px;
  object-fit:cover;
  box-shadow:none;
  border:6px solid #fffaf3;
}

.about-content h2{
  font-size:clamp(30px,4vw,42px);
  margin-bottom:20px;
  color:var(--heading);
  line-height:1.2;
}

.about-content p{
  color:var(--muted);
  margin-bottom:18px;
  line-height:1.9;
}

.mission-box{
  background:#fffaf3;
  padding:25px;
  border-radius:22px;
  margin-top:20px;
  box-shadow:none;
  border:1px solid var(--border);
  border-left:5px solid var(--secondary);
}

.mission-box h3{
  color:var(--primary-dark);
  margin-bottom:8px;
}

/* DOCUMENTS */

.documents-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:25px;
}

.document-card{
  width:100%;
  max-width:380px;
  background:#fffaf3;
  padding:35px;
  border-radius:28px;
  box-shadow:none;
  text-align:center;
  border:1px solid var(--border);
  transition:.35s ease;
}

.document-card:hover{
  transform:translateY(-8px);
  box-shadow:none;
}

.doc-icon{
  width:78px;
  height:78px;
  margin:0 auto 20px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--gradient-main);
  color:#fffaf3;
  font-size:38px;
}

.document-card h3{
  margin-bottom:15px;
  color:var(--heading);
  font-size:22px;
  font-weight:700;
}

.document-card p{
  color:var(--muted);
  margin-bottom:20px;
  line-height:1.7;
}

.view-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border:none;
  border-radius:40px;
  background:var(--gradient-main);
  color:#fffaf3;
  cursor:pointer;
  font-weight:800;
  text-decoration:none;
  transition:.3s ease;
}

.view-btn:hover{
  transform:translateY(-2px);
}

/* Tablet */

@media (max-width:992px){

  .document-card{
    max-width:340px;
  }

}

/* Mobile */

@media (max-width:768px){

  .documents-grid{
    gap:20px;
  }

  .document-card{
    max-width:100%;
    padding:28px 22px;
  }

  .doc-icon{
    width:68px;
    height:68px;
    font-size:32px;
  }

  .document-card h3{
    font-size:20px;
  }

}
/* TEAM */

.team{
  background:var(--section-blue);
}

.team .section-title h2,
.team .section-title p{
  color:#fffaf3;
}

.team-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.team-card{
  background:#fffaf3;
  border-radius:28px;
  overflow:hidden;
  text-align:center;
  box-shadow:none;
  border:1px solid #fffaf3;
  transition:.35s ease;
}

.team-card:hover{
  transform:translateY(-8px);
}

.team-card img{
  height:320px;
  object-fit:cover;
}

.team-card h3{
  margin-top:20px;
  color:var(--heading);
}

.team-card span{
  display:block;
  padding-bottom:20px;
  color:var(--primary);
  font-weight:800;
}

/* GALLERY */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  box-shadow:none;
  border:4px solid #fffaf3;
  background:#fffaf3;
}

.gallery-item img{
  width:100%;
  height:240px;
  object-fit:contain;   /* full image visible */
  object-position:center;
  background:#fffaf3;
  transition:.4s;
}

.gallery-item:hover img{
  transform:scale(1.03);
}

.gallery-event-copy{
  grid-column:1 / -1;
  padding:22px 26px;
  border-left:5px solid var(--secondary);
  border-radius:18px;
  background:var(--gradient-soft);
  box-shadow:none;
}

.gallery-event-copy h3{
  margin-bottom:8px;
  color:var(--heading);
  font-size:22px;
}

.gallery-event-copy p{
  color:var(--text);
  font-size:16px;
  line-height:1.75;
}

.gallery-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  margin:0;
  padding:12px 14px;
  color:#fffaf3;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
  text-align:center;
  background:var(--accent);
  text-shadow:none;
}

/* Mobile */
@media(max-width:768px){
  .gallery-item img{
    height:145px;
    object-fit:contain;
  }

  .gallery-event-copy{
    padding:18px;
  }

  .gallery-event-copy h3{
    font-size:18px;
  }

  .gallery-event-copy p{
    font-size:14px;
    line-height:1.65;
  }

  .gallery-caption{
    padding:9px 10px;
    font-size:15px;
  }
}

@media(max-width:480px){
  .gallery-item img{
    height:120px;
    object-fit:contain;
  }
}

@media(max-width:360px){
  .gallery-item img{
    height:105px;
    object-fit:contain;
  }
}
/* PROGRAMS */

.programs{
  background:var(--gradient-soft);
}

.program-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.program-card{
  display:flex;
  flex-direction:column;
  height:100%;
  background:#fffaf3;
  border-radius:30px;
  overflow:hidden;
  box-shadow:none;
  border:1px solid var(--border);
  transition:.35s ease;
}

.program-card:hover{
  transform:translateY(-8px);
  box-shadow:none;
}

.program-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.program-content{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:25px;
}

.program-content h3{
  margin-bottom:15px;
  color:var(--heading);
}

.program-content p{
  color:var(--muted);
  line-height:1.8;
  margin-bottom:20px;
}

.donation-row{
  display:flex;
  justify-content:space-between;
  gap:15px;
  background:#fdf2e3;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  margin-top:auto;
  margin-bottom:14px;
}

.donation-row span{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:4px;
}

.donation-row b{
  color:var(--heading);
  font-size:16px;
}

.progress-bar{
  width:100%;
  height:10px;
  background:#fdf2e3;
  border-radius:50px;
  overflow:hidden;
}

.progress-bar span{
  display:block;
  height:100%;
  background:var(--gradient-main);
  border-radius:50px;
}

/* Mobile */
@media(max-width:992px){
  .program-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){
  .program-grid{
    grid-template-columns:1fr;
  }
}
/* ANNOUNCEMENT */
.announcement-card{
  background:var(--gradient-main);
  padding:60px;
  border-radius:35px;
  box-shadow:none;
  border:1px solid #f2c94c;
  color:#fffaf3;
}

.announcement-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.announcement-content h2{
  font-size:clamp(30px,4vw,42px);
  margin-bottom:20px;
  color:#fffaf3;
}

.announcement-content p{
  line-height:1.9;
  color:#fffaf3;
  margin-bottom:18px;
}

/* Multiple Images Gallery */
.announcement-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.announcement-gallery img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:20px;
  border:4px solid #fffaf3;
  transition:all .35s ease;
  cursor:pointer;
  display:block;
}

.announcement-gallery img:hover{
  transform:translateY(-5px) scale(1.03);
  box-shadow:none;
}

/* Tablet */
@media(max-width:992px){

  .announcement-card{
    padding:40px;
  }

  .announcement-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

}

/* Mobile */
@media(max-width:768px){

  .announcement-card{
    padding:25px 18px;
    border-radius:25px;
  }

  .announcement-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .announcement-gallery img{
    height:150px;
    border-radius:15px;
    border-width:3px;
  }

}

/* Small Mobile */
@media(max-width:480px){

  .announcement-card{
    padding:20px 15px;
  }

  .announcement-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .announcement-gallery img{
    height:120px;
    border-radius:12px;
    border-width:2px;
  }

}
/* EVENT */

.event{
  background:var(--section-dark);
}

.event .section-title h2,
.event .section-title p{
  color:#fffaf3;
}

.event-card{
  background:#fffaf3;
  border-radius:35px;
  overflow:hidden;
  box-shadow:none;
}

.event-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
}

.event-image img{
  height:100%;
  object-fit:cover;
}

.event-content{
  padding:50px;
}

.event-content h2{
  font-size:clamp(30px,4vw,42px);
  margin-bottom:20px;
  color:var(--heading);
}

.event-content p{
  color:var(--muted);
  line-height:1.9;
  margin-bottom:18px;
}

/* CONTACT / DONATION */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:stretch;
}

.qr-card,
.bank-card{
  background:#fffaf3;
  padding:40px;
  border-radius:30px;
  box-shadow:none;
  border:1px solid var(--border);
}

.qr-card h3,
.bank-card h3{
  margin-bottom:25px;
  text-align:center;
  color:var(--heading);
}

.qr-box{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:auto;
}

.qr-box img{
  width:min(100%,280px);
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:contain;
  max-width:100%;
  border-radius:20px;
  border:5px solid #fffaf3;
  box-shadow:none;
  background:#fffaf3;
}

.bank-item{
  margin-bottom:16px;
  background:#fdf2e3;
  padding:15px 18px;
  border-radius:16px;
  border:1px solid var(--border);
}

.bank-item:last-child{
  margin-bottom:0;
}

.bank-item span{
  display:block;
  color:var(--muted);
  font-size:14px;
  margin-bottom:5px;
}

.bank-item b{
  color:var(--heading);
  font-size:16px;
  word-break:break-word;
}

/* Mobile */

@media (max-width:768px){

  .contact-grid{
    grid-template-columns:1fr;
  }

  .qr-card,
  .bank-card{
    padding:30px 20px;
  }

  .qr-box img{
    width:min(100%,230px);
    border-width:4px;
    border-radius:16px;
  }

}
/* RESPONSIVE */

@media(max-width:992px){

  .about-grid,
  .announcement-grid,
  .event-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){

  .container{
    padding:0 12px;
  }

  section{
    padding:55px 0;
  }

  .section-title{
    margin-bottom:35px;
  }

  .section-title span{
    font-size:11px;
    padding:7px 14px;
  }

  .section-title h2{
    font-size:26px;
  }

  .section-title p{
    font-size:14px;
    line-height:1.6;
  }

  .hero{
    min-height:75vh;
    padding:70px 0;
  }

  .hero-content h1{
    font-size:34px;
  }

  .hero-content p{
    font-size:15px;
    line-height:1.7;
  }

  .about-grid,
  .announcement-card{
    padding:18px;
    border-radius:24px;
  }

  .about-img::before{
    display:none;
  }

  .about-img img,
  .announcement-img img{
    height:300px;
    border-radius:20px;
  }

  .about-content h2,
  .announcement-content h2,
  .event-content h2{
    font-size:26px;
  }

  .about-content p,
  .announcement-content p,
  .event-content p{
    font-size:14px;
    line-height:1.7;
  }

  .mission-box{
    padding:18px;
    border-radius:18px;
  }

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .document-card,
  .team-card,
  .program-card{
    border-radius:18px;
  }

  .document-card{
    padding:18px 10px;
  }

  .doc-icon{
    width:52px;
    height:52px;
    font-size:25px;
    border-radius:16px;
    margin-bottom:12px;
  }

  .document-card h3{
    font-size:14px;
    line-height:1.3;
    margin-bottom:8px;
  }

  .document-card p{
    font-size:12px;
    line-height:1.5;
    margin-bottom:12px;
  }

  .view-btn{
    padding:9px 12px;
    font-size:12px;
  }

  .team-card img{
    height:190px;
  }

  .team-card h3{
    font-size:14px;
    margin-top:12px;
  }

  .team-card span{
    font-size:12px;
    padding-bottom:14px;
  }

  .gallery-item{
    border-radius:16px;
    border:3px solid #fffaf3;
  }

  .gallery-item img{
    height:145px;
  }

  .program-card img{
    height:145px;
  }

  .program-content{
    padding:14px 10px;
  }

  .program-content h3{
    font-size:14px;
    line-height:1.3;
    margin-bottom:8px;
  }

  .program-content p{
    font-size:12px;
    line-height:1.5;
  }

  .event-content,
  .payment-box,
  .form-box{
    padding:22px;
    border-radius:22px;
  }

  .event-card{
    border-radius:24px;
  }

  .contact-grid{
    gap:20px;
  }
}

@media(max-width:480px){

  .container{
    padding:0 10px;
  }

  section{
    padding:45px 0;
  }

  .hero{
    min-height:70vh;
  }

  .hero-content h1{
    font-size:30px;
  }

  .btn{
    padding:11px 18px;
    font-size:13px;
  }

  .about-grid{
    gap:24px;
  }

  .about-img img,
  .announcement-img img{
    height:260px;
  }

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .document-card{
    padding:15px 8px;
  }

  .doc-icon{
    width:46px;
    height:46px;
    font-size:22px;
  }

  .document-card h3,
  .team-card h3,
  .program-content h3{
    font-size:13px;
  }

  .document-card p,
  .program-content p,
  .team-card span{
    font-size:11px;
  }

  .team-card img{
    height:160px;
  }

  .gallery-item img{
    height:120px;
  }

  .program-card img{
    height:120px;
  }

  .announcement-card{
    padding:16px;
  }

  .event-content,
  .payment-box,
  .form-box{
    padding:18px;
  }
}

@media(max-width:360px){

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .team-card img{
    height:140px;
  }

  .gallery-item img,
  .program-card img{
    height:105px;
  }

  .document-card{
    padding:12px 6px;
  }

  .view-btn{
    padding:8px 9px;
    font-size:10px;
  }
}


/* DOCUMENT MODAL */

.document-modal{
  position:fixed;
  inset:0;
  background:#2b1b1b;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:99999;
}

.document-modal.active{
  display:flex;
}

.document-modal img{
  max-width:95%;
  max-height:95vh;
  border-radius:18px;
  border:6px solid #fffaf3;
  box-shadow:none;
  object-fit:contain;
}

.close-modal{
  position:absolute;
  top:20px;
  right:25px;
  font-size:42px;
  color:#fffaf3;
  cursor:pointer;
  font-weight:700;
  line-height:1;
}

@media(max-width:768px){

  .close-modal{
    top:14px;
    right:18px;
    font-size:36px;
  }

}

/* UPCOMING EVENT */

.upcoming-event{
  background:var(--gradient-soft);
}

.upcoming-event-card{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  background:#fffaf3;
  border-radius:35px;
  overflow:hidden;
  box-shadow:none;
  border:1px solid var(--border);
}

.upcoming-event-image img{
  width:100%;
  height:100%;
  min-height:500px;
  object-fit:cover;
}

.upcoming-event-content{
  padding:50px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.event-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--gradient-gold);
  color:#2b1b1b;
  padding:10px 18px;
  border-radius:50px;
  font-weight:700;
  margin-bottom:20px;
  width:fit-content;
}

.upcoming-event-content h3{
  font-size:36px;
  color:var(--heading);
  margin-bottom:18px;
}

.upcoming-event-content p{
  color:var(--muted);
  line-height:1.9;
  margin-bottom:25px;
}

.event-info{
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-bottom:30px;
}

.event-info div{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--heading);
  font-weight:600;
}

.event-info i{
  color:var(--secondary);
  width:22px;
  text-align:center;
}

@media(max-width:992px){

  .upcoming-event-card{
    grid-template-columns:1fr;
  }

  .upcoming-event-image img{
    min-height:320px;
  }
}

@media(max-width:768px){

  .upcoming-event-content{
    padding:25px;
  }

  .upcoming-event-content h3{
    font-size:26px;
  }

  .upcoming-event-image img{
    min-height:250px;
  }
}

/* PAST EVENT SINGLE */

.past-events{
  background:var(--gradient-soft);
}

.past-event-single{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  background:#fffaf3;
  border-radius:35px;
  overflow:hidden;
  box-shadow:none;
  border:1px solid var(--border);
}

.past-event-image img{
  width:100%;
  height:100%;
  min-height:450px;
  object-fit:contain;
  object-position:center;
  background:#fffaf3;
  padding:10px;
}

.past-event-content{
  padding:50px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.event-date{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--gradient-gold);
  color:#2b1b1b;
  padding:10px 18px;
  border-radius:40px;
  font-weight:700;
  width:fit-content;
  margin-bottom:20px;
}

.past-event-content h3{
  font-size:36px;
  color:var(--heading);
  margin-bottom:20px;
}

.past-event-content p{
  color:var(--muted);
  line-height:1.9;
  margin-bottom:15px;
}

@media(max-width:992px){

  .past-event-single{
    grid-template-columns:1fr;
  }

  .past-event-image img{
    min-height:300px;
  }
}

@media(max-width:768px){

  .past-event-content{
    padding:25px;
  }

  .past-event-content h3{
    font-size:26px;
  }

  .past-event-image img{
    min-height:220px;
  }
}

/* RESPONSIVE HARDENING */

*{
  min-width:0;
}

body{
  line-height:1.6;
}

p,
h1,
h2,
h3,
span,
a,
b{
  overflow-wrap:break-word;
}

.container{
  padding-left:clamp(14px,4vw,24px);
  padding-right:clamp(14px,4vw,24px);
}

.about-grid,
.announcement-grid,
.upcoming-event-card,
.past-event-single,
.event-grid,
.contact-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));
}

.documents-grid,
.team-grid,
.gallery-grid,
.program-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
}

.upcoming-event-image img,
.past-event-image img,
.about-img img,
.announcement-gallery img,
.program-card img,
.team-card img,
.gallery-item img{
  max-height:none;
}

.event-info div{
  align-items:flex-start;
}

.event-info i{
  flex:0 0 22px;
  line-height:1.6;
}

.donation-row{
  flex-wrap:wrap;
}

.btn,
.view-btn{
  max-width:100%;
  text-align:center;
  white-space:normal;
}

@media(max-width:992px){
  .upcoming-event-content,
  .past-event-content,
  .event-content{
    padding:clamp(24px,5vw,40px);
  }
}

@media(max-width:640px){
  .hero{
    min-height:calc(100svh - 120px);
  }

  .hero-content{
    max-width:100%;
  }

  .hero-content h1{
    font-size:clamp(28px,9vw,36px);
  }

  .section-title h2,
  .upcoming-event-content h3,
  .past-event-content h3{
    font-size:clamp(24px,7vw,30px);
  }

  .about-grid,
  .announcement-card,
  .upcoming-event-card,
  .past-event-single,
  .event-card,
  .qr-card,
  .bank-card{
    border-radius:20px;
  }

  .upcoming-event-image img,
  .past-event-image img{
    min-height:0;
    height:auto;
    aspect-ratio:16 / 10;
  }

  .about-img img{
    height:auto;
    aspect-ratio:4 / 3;
  }

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .program-card img,
  .team-card img{
    height:auto;
    aspect-ratio:4 / 3;
  }

  .document-card{
    max-width:100%;
    padding:18px 10px;
  }

  .program-content{
    padding:14px 10px;
  }

  .program-content h3,
  .document-card h3,
  .team-card h3{
    font-size:14px;
    line-height:1.35;
  }

  .program-content p,
  .document-card p,
  .team-card span{
    font-size:12px;
    line-height:1.55;
  }

  .event-badge,
  .event-date{
    width:auto;
    max-width:100%;
    align-items:flex-start;
    border-radius:18px;
  }
}

@media(max-width:420px){
  .container{
    padding-left:12px;
    padding-right:12px;
  }

  .top-bar{
    flex-wrap:wrap;
    justify-content:center;
  }

  .top-bar > div:first-child{
    flex-basis:100%;
    justify-content:center;
  }

  .upcoming-event-content,
  .past-event-content,
  .event-content,
  .qr-card,
  .bank-card{
    padding:18px 14px;
  }

  .qr-card h3{
    margin-bottom:16px;
  }

  .qr-box img{
    width:min(100%,210px);
    border-width:3px;
    border-radius:14px;
  }

  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid,
  .announcement-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .gallery-item img,
  .announcement-gallery img{
    height:auto;
    aspect-ratio:4 / 3;
  }

  .donation-row{
    display:grid;
    grid-template-columns:1fr;
  }
}

@media(max-width:340px){
  .documents-grid,
  .team-grid,
  .gallery-grid,
  .program-grid,
  .announcement-gallery{
    gap:8px;
  }

  .document-card{
    padding:12px 6px;
  }

  .program-content{
    padding:12px 8px;
  }

  .program-content h3,
  .document-card h3,
  .team-card h3{
    font-size:12px;
  }

  .program-content p,
  .document-card p,
  .team-card span{
    font-size:10px;
  }
}

/* Upcoming celebrations retain the original card layout. */
.upcoming-celebrations{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:24px;
  margin-bottom:30px;
}
.upcoming-celebration{
  overflow:hidden;
  background:#fffaf3;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:none;
}
.upcoming-celebration-image{
  display:block;
  width:100%;
  height:320px;
  object-fit:contain;
  background:var(--gradient-soft);
  padding:16px;
  box-sizing:border-box;
}
.upcoming-celebration-content{padding:clamp(24px,4vw,36px);}
.upcoming-celebration h3{
  color:var(--heading);
  font-size:26px;
  margin-bottom:14px;
}
.upcoming-celebration p{color:var(--muted);line-height:1.9;}
.event-image-credit{
  display:block;
  margin:12px 0 18px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.event-image-credit a{color:inherit;text-decoration:underline;}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{
  position:fixed;top:-100px;left:20px;z-index:10001;
  padding:12px 20px;background:var(--light);color:var(--heading);
}
.skip-link:focus{top:10px;}

.hero-overlay{background:var(--dark);opacity:.78;}
