/* =========================================================
   JSCF – shared additions across every page (kept minimal so the
   original per-page design is untouched). Loaded after the page CSS.
   ========================================================= */

/* ---- Image slider under the home hero ---- */
.photo-strip { padding: 34px 0; background: var(--bg-light, #f8f9fa); overflow: hidden; }
.photo-strip .strip-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.photo-strip .strip-row.rtl { animation: stripLeft 34s linear infinite; }
.photo-strip .strip-row.ltr { animation: stripRight 34s linear infinite; margin-top: 16px; }
.photo-strip .tile { position: relative; width: 230px; height: 150px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.photo-strip .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.photo-strip .tile:hover img { transform: scale(1.07); }
.photo-strip:hover .strip-row { animation-play-state: paused; }
@keyframes stripLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stripRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 600px) { .photo-strip .tile { width: 160px; height: 105px; } .photo-strip .strip-row { gap: 10px; } .photo-strip .strip-row.ltr { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .photo-strip .strip-row { animation: none; } }

/* ---- Forms: alerts (contact / volunteers / newsletter-free) ---- */
.form-alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.form-alert.success { background: rgba(45,138,66,.1); color: var(--primary-light, #2d8a42); border: 1px solid rgba(45,138,66,.25); }
.form-alert.error { background: rgba(192,57,43,.08); color: var(--accent, #c0392b); border: 1px solid rgba(192,57,43,.22); }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alert i { margin-top: 3px; }

/* ---- Pagination ---- */
.site-pager { display: flex; justify-content: center; gap: 8px; margin: 40px 0 10px; flex-wrap: wrap; }
.site-pager a, .site-pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: var(--text-dark, #1a1a1a); font-weight: 600; background: var(--white, #fff); border: 1px solid rgba(0,0,0,.08); transition: all .25s; }
.site-pager a:hover { background: var(--gold, #F5C518); border-color: var(--gold, #F5C518); }
.site-pager .cur { background: var(--gold, #F5C518); border-color: var(--gold, #F5C518); }
.site-pager .off { opacity: .35; }

/* ---- Filter pills (Projects / Videos / Gallery / Reports) ---- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-pills a { padding: 8px 20px; border-radius: 25px; background: var(--white, #fff); border: 1px solid rgba(0,0,0,.1); text-decoration: none; color: var(--text-dark, #1a1a1a); font-size: .9rem; font-weight: 500; transition: all .25s; }
.filter-pills a:hover { border-color: var(--gold-dark, #D4A017); }
.filter-pills a.active { background: var(--gold, #F5C518); border-color: var(--gold, #F5C518); font-weight: 700; }

/* ---- Reports list ---- */
.reports-filter { background: var(--white, #fff); border-radius: var(--border-radius, 16px); padding: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.06); margin-bottom: 40px; }
.reports-filter .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; align-items: end; }
.reports-filter label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-gray, #555); }
.reports-filter input[type=date], .reports-filter input[type=search] { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; font-size: .92rem; }
.report-row { display: flex; align-items: center; gap: 18px; background: var(--white, #fff); border-radius: var(--border-radius, 16px); padding: 20px 24px; box-shadow: 0 6px 22px rgba(0,0,0,.06); margin-bottom: 16px; transition: transform .25s, box-shadow .25s; }
.report-row:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.report-row .pdf-ic { font-size: 2.1rem; color: #c0392b; flex: none; }
.report-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.report-row .meta { font-size: .82rem; color: var(--text-gray, #555); display: flex; gap: 14px; flex-wrap: wrap; }
.report-row .btn-dl { margin-left: auto; flex: none; }

/* ---- Video cards (Videos page) ---- */
.video-card { position: relative; border-radius: var(--border-radius, 16px); overflow: hidden; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.08); background: var(--white, #fff); transition: transform .3s; }
.video-card:hover { transform: translateY(-6px); }
.video-card .thumb { position: relative; aspect-ratio: 16/10; background: #111; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 62px; height: 62px; border-radius: 50%; background: var(--gold, #F5C518); color: #1a1a1a; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .25s; }
.video-card:hover .play span { transform: scale(1.12); }
.video-card .info { padding: 16px 18px; }
.video-card .info h3 { font-size: 1.02rem; margin-bottom: 6px; }
.video-body-modal { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.video-body-modal.active { display: flex; }
.video-body-modal .box { width: min(960px, 96vw); }
.video-body-modal .ratio { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-body-modal video, .video-body-modal iframe { width: 100%; height: 100%; border: 0; }
.video-body-modal .vt { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.video-body-modal .vclose { position: absolute; top: -46px; right: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-gray, #555); }
.empty-state i { font-size: 2.4rem; color: var(--gold-dark, #D4A017); display: block; margin-bottom: 14px; }

/* ---- Blog details page ---- */
.blog-detail-hero { border-radius: var(--border-radius, 16px); overflow: hidden; margin-bottom: 30px; max-height: 460px; }
.blog-detail-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.blog-detail-content { font-size: 1.05rem; line-height: 1.85; color: #333; }
.blog-detail-content p { margin-bottom: 1.3em; }
.blog-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 30px 0; }
.blog-share a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-light, #f8f9fa); color: var(--text-dark, #1a1a1a); text-decoration: none; border: 1px solid rgba(0,0,0,.08); transition: all .25s; }
.blog-share a:hover { background: var(--gold, #F5C518); }
.blog-side .side-card { background: var(--white, #fff); border-radius: var(--border-radius, 16px); box-shadow: 0 8px 26px rgba(0,0,0,.06); padding: 22px; margin-bottom: 22px; }
.blog-side h3 { font-size: 1.05rem; margin-bottom: 16px; }
.blog-side .side-item { display: flex; gap: 12px; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid #eee; }
.blog-side .side-item:last-child { border-bottom: none; }
.blog-side .side-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.blog-side .side-item strong { font-size: .9rem; line-height: 1.3; display: block; }
.blog-side .side-item small { color: var(--text-gray, #555); }

/* ---- Donation info (bank / UPI) built from settings ---- */
.donation-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.12); font-size: .93rem; }
.donation-detail-row:last-child { border-bottom: none; }
.donation-detail-row .k { color: var(--text-gray, #555); }
.donation-detail-row .v { font-weight: 700; text-align: right; word-break: break-all; }
.qr-box { width: 210px; height: 210px; margin: 0 auto; border: 2px dashed rgba(0,0,0,.15); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--text-gray, #555); overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

/* ---- lazy-load fade ---- */
img[loading="lazy"] { background: #eee; }
img.js-fade { opacity: 0; transition: opacity .35s; }
img.js-fade.loaded { opacity: 1; }

/* ---- Blog card fallback (keeps the featured date badge readable on every page) ---- */
.blog-date { position: absolute; top: 15px; left: 15px; background: var(--gold, #F5C518); color: var(--text-dark, #1a1a1a); padding: 10px 15px; border-radius: 12px; text-align: center; line-height: 1.1; z-index: 2; }
.blog-date span { display: block; font-size: 1.3rem; font-weight: 800; }
.blog-date small { font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.blog-img { position: relative; }

/* ---- Generic form styling fallback (contact/donation/volunteer forms on any page) ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .9rem; color: var(--text-dark, #1a1a1a); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: .9rem; transition: border-color .3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold, #F5C518); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-card { background: var(--white, #fff); border-radius: 20px; padding: clamp(24px, 5vw, 50px); box-shadow: 0 10px 40px rgba(0,0,0,.08); border: 2px solid transparent; transition: all .3s; max-width: 760px; margin: 0 auto; }
.form-card:hover { border-color: var(--gold, #F5C518); }
.form-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 25px; text-align: center; color: var(--text-dark, #1a1a1a); }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Project cards (shared across Home and Projects page) ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.project-card { background: var(--white, #fff); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.06); transition: all .3s; cursor: pointer; border: 2px solid transparent; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,.12); border-color: var(--gold, #F5C518); }
.project-img { position: relative; height: 160px; overflow: hidden; }
.project-img img, .project-img .ph-box { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-img img { transform: scale(1.1); }
.project-tag { position: absolute; top: 10px; left: 10px; background: var(--gold, #F5C518); color: var(--text-dark, #1a1a1a); padding: 3px 12px; border-radius: 15px; font-size: .7rem; font-weight: 600; }
.project-content { padding: 18px; }
.project-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark, #1a1a1a); }
.project-content p { color: var(--text-gray, #555); font-size: .82rem; line-height: 1.5; margin-bottom: 10px; }
.project-meta { display: flex; gap: 10px; font-size: .75rem; color: var(--text-light, #888); flex-wrap: wrap; }
.project-meta i { color: var(--gold-dark, #D4A017); margin-right: 3px; }
.project-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-dark, #D4A017); font-size: .8rem; font-weight: 600; margin-top: 8px; transition: gap .3s; }
.project-card:hover .project-arrow { gap: 8px; }
.ph-box { display: grid; place-items: center; background: linear-gradient(135deg, #f0f0f0, #e2e2e2); color: var(--gold-dark, #D4A017); font-size: 1.8rem; }
@media (max-width: 992px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }


/* =========================================================
   Header – slim contact strip, transparent logo, professional menu
   (loaded last, so it wins over the per-page copies of these rules)
   ========================================================= */
.top-bar { background: #10151f; padding: 0; font-size: .78rem; line-height: 1; border-bottom: 1px solid rgba(255,255,255,.06); }
.top-bar .container { min-height: 34px; padding-top: 0; padding-bottom: 0; }
.top-bar-left { display: flex; align-items: center; flex-wrap: wrap; }
.top-bar-left a { color: #d5d9e0; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; margin-right: 22px; font-weight: 400; letter-spacing: .1px; transition: color .25s; }
.top-bar-left a:hover { color: var(--gold); }
.top-bar-left i { color: var(--gold); margin: 0; font-size: .72rem; }
.top-bar-right a { margin-left: 4px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .74rem; }
.top-bar-right a:hover { background: rgba(245,197,24,.14); }

.main-nav { background: #fff; box-shadow: 0 1px 0 rgba(16,21,31,.07), 0 6px 22px rgba(16,21,31,.05); }
.main-nav .container { padding: 10px 20px; gap: 18px; }
.logo-icon { background: transparent !important; border-radius: 0 !important; width: auto; height: 54px; margin-right: 10px; overflow: visible; }
.logo-icon img { width: auto; height: 100%; max-width: 72px; object-fit: contain; }
.logo-text h1 { font-size: 1.05rem; letter-spacing: .4px; }
.logo-text span { font-size: .62rem; letter-spacing: .9px; color: var(--text-gray); }

.nav-links { gap: 2px; }
.nav-links li { list-style: none; }
.nav-links a { font-size: .86rem; font-weight: 500; letter-spacing: .2px; padding: 9px 13px; border-radius: 8px; color: #2b3240; transition: background .25s, color .25s; }
.nav-links a:hover { background: rgba(245,197,24,.14); color: #1a1a1a; }
.nav-links a.active { color: #1a1a1a; font-weight: 600; background: rgba(245,197,24,.18); }
.nav-links a.active::after { left: 13px; right: 13px; width: auto; bottom: 3px; height: 2px; border-radius: 2px; }
.nav-links a.nav-donate { background: var(--gold); color: #1a1a1a !important; padding: 9px 18px; border-radius: 8px; font-weight: 600; margin-left: 8px; box-shadow: 0 3px 10px rgba(212,160,23,.28); }
.nav-links a.nav-donate:hover { background: var(--gold-dark); }
.nav-links a.nav-donate::after { display: none; }
.nav-links a.nav-donate i { margin-right: 4px; font-size: .8rem; }

.mobile-menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); align-items: center; justify-content: center; gap: 4px; }
.mobile-menu-btn span { width: 20px; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
    .mobile-menu-btn { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
                 background: #fff; padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(16,21,31,.12); border-top: 1px solid #eee;
                 max-height: calc(100vh - 100px); overflow-y: auto; z-index: 999; }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; padding: 12px 14px; }
    .nav-links a.active::after { display: none; }
    .nav-links a.nav-donate { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 768px) {
    .top-bar .container { flex-direction: row; justify-content: space-between; text-align: left; gap: 8px; min-height: 32px; }
    .top-bar-left a { margin-right: 14px; font-size: .72rem; padding: 9px 0; }
    .top-bar-right { display: none; }
}
@media (max-width: 480px) {
    .top-bar-left a:first-child { display: none; }   /* keep the strip one line: phone only on very small screens */
    .top-bar-left a:only-child { display: inline-flex; }
}

/* ---- Footer contact links ---- */
.footer-contact p a { color: inherit; text-decoration: none; }
.footer-contact p a:hover { color: var(--gold); }

/* ---- Team / volunteer photos: keep faces in frame ---- */
.volunteer-img img { object-position: center 18%; }

/* ---- Contact page: Google map ---- */
.map-view-card { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(16,21,31,.12); border: 1px solid rgba(0,0,0,.05); background: #e9edf1; }
.map-view-card iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-view-actions { text-align: center; margin-top: 22px; }
@media (max-width: 600px) { .map-view-card iframe { height: 320px; } }
