:root { --brand: #1e7e5a; --brand-dark: #155e43; --accent: #f77f00; }
body { font-family: 'Poppins', system-ui, sans-serif; color: #2b2b2b; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-dark); }
.topline { background: var(--brand-dark); color: #fff; padding: 6px 0; } .topline a { color: #fff; margin-left: 12px; }
.navbar .nav-link { font-weight: 500; color: #333; } .navbar .nav-link:hover { color: var(--brand); }
.btn-donate { background: var(--accent); color: #fff !important; font-weight: 600; border-radius: 30px; padding: 8px 20px; }
.btn-donate:hover { background: #d96e00; }
.btn-brand { background: var(--brand); color: #fff; border-radius: 30px; padding: 10px 26px; font-weight: 600; } .btn-brand:hover { background: var(--brand-dark); color: #fff; }
.section { padding: 64px 0; } .section-alt { background: #f6f9f7; }
.section-title { font-weight: 700; margin-bottom: 8px; } .section-title + p { color: #666; margin-bottom: 36px; }
.section-title:after { content: ""; display: block; width: 60px; height: 4px; background: var(--accent); margin-top: 10px; border-radius: 2px; }
.text-center .section-title:after { margin-left: auto; margin-right: auto; }

/* hero */
.hero .carousel-item { height: 560px; background-size: cover; background-position: center; }
.hero .carousel-item:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.2)); }
.hero .carousel-caption { text-align: left; left: 8%; right: 8%; bottom: 25%; }
.hero h1 { font-size: 46px; font-weight: 700; } .hero p { font-size: 18px; max-width: 600px; }
@media (max-width: 767px) { .hero .carousel-item { height: 420px; } .hero h1 { font-size: 28px; } .hero p { font-size: 15px; } .hero .carousel-caption { bottom: 15%; } }

/* stats */
.stats { background: var(--brand); color: #fff; padding: 36px 0; }
.stats .num { font-size: 34px; font-weight: 700; } .stats .lbl { opacity: .9; }

/* cards */
.pcard { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.08); transition: .2s; height: 100%; }
.pcard:hover { transform: translateY(-4px); }
.pcard img { height: 210px; object-fit: cover; width: 100%; }
.pcard .cat { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.pcard .progress { height: 8px; border-radius: 4px; }
.ncard img { height: 200px; object-fit: cover; }
.tcard { text-align: center; } .tcard img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid #e8f3ee; }
.testi { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.06); height: 100%; }
.testi img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sponsor-logo { max-height: 70px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; } .sponsor-logo:hover { filter: none; opacity: 1; }
.gal-thumb { height: 200px; object-fit: cover; width: 100%; border-radius: 10px; }

.page-head { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 48px 0; }
.page-head h1 { font-weight: 700; margin: 0; }
.content-body img { max-width: 100%; height: auto; }

.footer { background: #12231c; color: #cfd8d3; padding: 50px 0 20px; } .footer h5, .footer h6 { color: #fff; } .footer a { color: #cfd8d3; } .footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 16px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 999; } .wa-float:hover { color: #fff; }

/* donate */
.amt-btn { border: 2px solid var(--brand); color: var(--brand); border-radius: 30px; font-weight: 600; } .amt-btn.active, .amt-btn:hover { background: var(--brand); color: #fff; }
.qr-box { border: 2px dashed var(--brand); border-radius: 14px; padding: 24px; text-align: center; background: #fff; }
.upi-id { font-size: 20px; font-weight: 700; color: var(--brand-dark); }

/* ---- navbar fix: single-line menu ---- */
.navbar-brand span { font-size: 19px; white-space: nowrap; }
.navbar .nav-link { white-space: nowrap; font-size: 15px; padding: .5rem .65rem !important; position: relative; }
.navbar .nav-link:after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: .2s; }
.navbar .nav-link:hover:after, .navbar .nav-link.active:after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--brand); }
.btn-donate { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 22px; }
@media (max-width: 1199px) {
  .navbar-collapse { padding: 10px 0; }
  .navbar .nav-link { padding: .6rem 0 !important; border-bottom: 1px solid #f0f0f0; }
  .navbar .nav-link:after { display: none; }
  .navbar .btn-donate { margin-top: 10px; }
}

/* =====================================================
   ANIMATIONS & PHOTO BACKGROUNDS
   ===================================================== */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.15) translate(-1%, -1%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247,127,0,.55); } 70% { box-shadow: 0 0 0 14px rgba(247,127,0,0); } 100% { box-shadow: 0 0 0 0 rgba(247,127,0,0); } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }
@keyframes flicker { 0%,100% { opacity: 1; } 50% { opacity: .75; } }

/* hero with real photos + Ken Burns zoom */
.hero { position: relative; overflow: hidden; }
.hero .carousel-item { height: 88vh; min-height: 520px; max-height: 760px; background: #0d2a1f; overflow: hidden; }
.hero .carousel-item:before { display: none; }
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .carousel-item.active .hero-bg { animation: kenburns 9s ease-out forwards; }
.hero .hero-bg:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,32,24,.88) 0%, rgba(8,32,24,.55) 55%, rgba(8,32,24,.15) 100%); }
.hero .carousel-caption { z-index: 2; bottom: auto; top: 50%; transform: translateY(-50%); }
.hero .carousel-item.active .hero-tag { animation: fadeUp .8s .1s both; }
.hero .carousel-item.active h1 { animation: fadeUp .9s .3s both; }
.hero .carousel-item.active p { animation: fadeUp .9s .55s both; }
.hero .carousel-item.active .hero-btns { animation: fadeUp .9s .8s both; }
.hero-tag { display: inline-block; background: rgba(247,127,0,.9); color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 30px; margin-bottom: 14px; letter-spacing: .3px; }
.hero h1 { text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 3px; background: #fff; }
.hero .carousel-indicators .active { background: var(--accent); width: 44px; }
.scroll-down { position: absolute; left: 50%; bottom: 22px; z-index: 5; color: #fff; font-size: 26px; animation: bounce 1.8s infinite; }
.scroll-down:hover { color: var(--accent); }
@media (max-width: 767px) { .hero .carousel-item { height: 78vh; min-height: 460px; } .hero-tag { font-size: 11px; } }

/* navbar on scroll */
.navbar { transition: padding .3s, box-shadow .3s, background .3s; }
.navbar.scrolled { padding-top: 4px; padding-bottom: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.12) !important; background: rgba(255,255,255,.96) !important; backdrop-filter: blur(6px); }
.navbar-brand img { transition: height .3s; }
.navbar.scrolled .navbar-brand img { height: 38px !important; }
.navbar-brand img { animation: flicker 3s ease-in-out infinite; }

/* donate button pulse */
.navbar .btn-donate { animation: pulse 2.2s infinite; }
.btn-donate, .btn-brand { transition: transform .2s, background .2s; }
.btn-donate:hover, .btn-brand:hover { transform: translateY(-2px); }

/* inner page header with photo */
.page-head { position: relative; padding: 80px 0 60px; background: url('/uploads/gallery/ssmt/photo-022.jpg') center/cover fixed; overflow: hidden; }
.page-head:before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(21,94,67,.92), rgba(8,32,24,.75)); }
.page-head .container { position: relative; }
.page-head h1 { font-size: 40px; }
.page-head nav, .page-head nav a { color: rgba(255,255,255,.85); }
.page-head nav a:hover { color: var(--accent); }

/* parallax CTA band */
.cta-parallax { position: relative; padding: 100px 0; color: #fff; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-parallax:before { content: ""; position: absolute; inset: 0; background: rgba(8,32,24,.78); }
.cta-parallax .container { position: relative; }
.cta-parallax h3 { font-size: 34px; }
@media (max-width: 991px) { .cta-parallax, .page-head { background-attachment: scroll; } }

/* about section */
.about-collage img { transition: transform .5s; }
.about-collage a { display: block; overflow: hidden; border-radius: 10px; }
.about-collage a:hover img { transform: scale(1.08); }
.icon-box i { display: inline-block; transition: transform .35s; }
.icon-box:hover i { transform: translateY(-6px) scale(1.15); }

/* cards */
.pcard { transition: transform .35s, box-shadow .35s; }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(0,0,0,.14); }
.pcard img { transition: transform .6s; }
.pcard:hover img { transform: scale(1.06); }
.pcard > a { display: block; overflow: hidden; }
.tcard img { transition: transform .4s, box-shadow .4s; }
.tcard:hover img { transform: scale(1.06); box-shadow: 0 10px 28px rgba(30,126,90,.35); }

/* album tiles on home */
.album-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; height: 220px; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.album-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.8)); transition: padding .3s; }
.album-tile:hover img { transform: scale(1.12) rotate(1deg); }
.album-tile:hover span { padding-bottom: 20px; }
.gal-thumb { transition: transform .4s, filter .4s; }
.gal-thumb:hover { transform: scale(1.04); filter: brightness(1.08); }

/* section title underline grows in */
.section-title:after { transition: width .6s; }
.aos-animate .section-title:after, [data-aos].aos-animate .section-title:after { width: 90px; }

/* back to top */
.back-top { position: fixed; left: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s; z-index: 998; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--accent); color: #fff; }
.wa-float { animation: pulse 2.5s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* ---- hero: all photos cross-fade every 3 sec ---- */
.hero .hero-bgs { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0d2a1f; }
.hero .hero-bgs .hero-bg { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero .hero-bgs .hero-bg.show { opacity: 1; animation: kenburns 4.5s ease-out forwards; }
.hero .carousel { position: relative; z-index: 1; }
.hero .carousel-item { background: transparent; }
