/* =============================================================
   SalamAid Frontend - Global Stylesheet
   Berisi semua style yang dipakai di seluruh halaman
   ============================================================= */

:root {
    --red: #E53012;
    --red-dark: #c42a0e;
    --black: #111111;
    --gray: #6B7280;
    --light: #F9F9F9;
}

* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--black); overflow-x: hidden; margin: 0; }

/* ===== NAVBAR ===== */
#mainNav { background: transparent; position: absolute; top: 0; width: 100%; z-index: 100; padding: 14px 0; transition: all .35s; }
#mainNav.scrolled { background: rgba(10,10,10,0.93) !important; backdrop-filter: blur(12px); position: fixed; box-shadow: 0 2px 24px rgba(0,0,0,.3); }
#mainNav.solid { background: #111 !important; position: relative; }
.navbar-brand img { height: 60px; }
.nav-link-item { color: #fff !important; font-weight: 500; font-size: 15px; margin: 0 4px; transition: opacity .2s; text-decoration: none; padding: 6px 4px; }
.nav-link-item:hover { opacity: .72; }
.nav-link-item.dropdown-toggle::after { display: inline-block; margin-left: 6px; vertical-align: middle; content: ""; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.btn-donasi { background: var(--red); color: #fff !important; border-radius: 50px; padding: 8px 22px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn-donasi:hover { background: var(--red-dark); }
.btn-relawan { border: 2px solid rgba(255,255,255,.8); color: #fff !important; border-radius: 50px; padding: 7px 22px; font-weight: 700; font-size: 14px; text-decoration: none; }
.btn-relawan:hover { background: #fff; color: var(--black) !important; }
.navbar-toggler { border-color: rgba(255,255,255,.5) !important; }
.navbar-toggler-icon { filter: invert(1); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu-custom { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.14); min-width: 200px; padding: 8px 0; z-index: 200; }
.nav-dropdown:hover .dropdown-menu-custom { display: block; }
.dropdown-menu-custom a { display: block; padding: 10px 18px; color: var(--black); text-decoration: none; font-size: 14px; font-weight: 500; }
.dropdown-menu-custom a:hover { color: var(--red); background: var(--light); }

/* ===== PAGE HEADER (untuk halaman non-hero) ===== */
.page-header { background: linear-gradient(135deg, #111 0%, #2a0a05 100%); padding: 100px 0 60px; position: relative; }
.page-header h1 { color: #fff; font-weight: 800; font-size: 2.4rem; }
.page-header p { color: rgba(255,255,255,.6); font-size: 15px; margin: 0; }
.breadcrumb-item { font-size: 13px; color: rgba(255,255,255,.5); }
.breadcrumb-item.active { color: rgba(255,255,255,.85); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ===== SECTION UTILITIES ===== */
.sec-title { font-size: 2rem; font-weight: 800; color: var(--red); }
.sec-sub { color: var(--gray); font-size: 15px; margin-top: 4px; }
.sec-more-link { color: var(--black); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.sec-more-link:hover { color: var(--red); }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }

/* ===== BUTTONS ===== */
.btn-primary-red { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 12px 28px; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-primary-red:hover { background: var(--red-dark); color: #fff; }
.btn-outline-red { border: 2px solid var(--red); color: var(--red); border-radius: 8px; padding: 10px 26px; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block; transition: all .2s; }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ===== CARDS BERITA ===== */
.news-card { border: none; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.07); overflow: hidden; transition: transform .25s, box-shadow .25s; height: 100%; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.news-card h5 { font-weight: 700; font-size: 16px; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.read-more { color: var(--black); font-weight: 600; font-size: 14px; text-decoration: none; }
.read-more:hover { color: var(--red); }

/* ===== BADGE / LABEL ===== */
.badge-red { background: rgba(229,48,18,.1); color: var(--red); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: .06em; display: inline-block; }

/* ===== VIDEO ===== */
.video-iframe-wrap { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video-iframe-wrap iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border: none; }
.video-iframe-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1a1a1a; }
.video-modal-wrap { position: relative; aspect-ratio: 16/9; }
.video-modal-wrap iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border: none; border-radius: 8px; }

/* ===== GALERI / DOC GRID ===== */
.doc-img { border-radius: 14px; width: 100%; object-fit: cover; display: block; transition: transform .35s, box-shadow .35s; cursor: pointer; }
.doc-img:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.img-tall { height: 340px; }
.img-short { height: 196px; }
.img-medium { height: 260px; }

/* ===== TESTIMONI (slider versi home) ===== */
.testi-track-wrap { overflow: hidden; position: relative; }
.testi-track-wrap::before, .testi-track-wrap::after { content: ''; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none; }
.testi-track { display: flex; gap: 24px; width: max-content; animation: scrollTesti 40s linear infinite; }
.testi-track:hover { animation-play-state: paused; }
.testi-item { width: 320px; flex-shrink: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 28px; }
.testi-item p { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.8; font-style: italic; margin-bottom: 22px; }
.testi-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); flex-shrink: 0; }
.testi-avatar-letter { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.testi-name { color: #fff; font-weight: 700; font-size: 14px; }
.testi-role { color: rgba(255,255,255,.45); font-size: 12px; }
@keyframes scrollTesti { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== TESTIMONI (card versi halaman lain) ===== */
.testi-card { border: 1px solid #eee; border-radius: 16px; padding: 28px; height: 100%; }
.testi-card p { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 22px; font-style: italic; }

/* ===== MITRA SLIDER ===== */
.mitra-track-wrap { overflow: hidden; position: relative; }
.mitra-track-wrap::before, .mitra-track-wrap::after { content: ''; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
.mitra-track { display: flex; align-items: center; gap: 56px; padding: 8px 0; width: max-content; animation: scrollMitra 30s linear infinite; }
.mitra-track:hover { animation-play-state: paused; }
.mitra-item { flex-shrink: 0; filter: grayscale(100%); opacity: .5; transition: all .3s; }
.mitra-item img { height: 36px; object-fit: contain; max-width: 140px; }
.mitra-item span { font-weight: 700; font-size: 13px; color: #777; white-space: nowrap; }
.mitra-item:hover { filter: none; opacity: 1; }
@keyframes scrollMitra { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== STAT BOX ===== */
.stat-box { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.stat-box .lbl { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.stat-box .val { font-size: 1.7rem; font-weight: 800; color: var(--red); }

/* ===== PAGINATION ===== */
.page-link { color: var(--red); border-color: #eee; }
.page-item.active .page-link { background: var(--red); border-color: var(--red); }
.page-link:hover { color: var(--red-dark); background: #fff5f3; }
.page-link:focus { box-shadow: 0 0 0 .2rem rgba(229,48,18,.2); }

/* ===== FOOTER ===== */
footer { background: #fff; border-top: 1px solid #eee; padding: 60px 0 30px; }
.footer-col h6 { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--gray); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-social a { color: var(--gray); font-size: 20px; margin-right: 14px; transition: color .2s; }
.footer-social a:hover { color: var(--red); }
.footer-copy { text-align: center; color: var(--gray); font-size: 13px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    #mainNav { background: rgba(10,10,10,0.93) !important; position: relative; }
    .nav-link-item { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-dropdown .dropdown-menu-custom { position: static; box-shadow: none; background: rgba(255,255,255,.1); border-radius: 8px; margin-top: 6px; }
    .dropdown-menu-custom a { color: #fff; }
    .dropdown-menu-custom a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .section-pad { padding: 50px 0; }
}
@media (max-width: 768px) {
    .sec-title { font-size: 1.5rem; }
    .img-tall { height: 240px; }
    .img-short { height: 160px; }
    .page-header h1 { font-size: 1.8rem; }
    .section-pad { padding: 40px 0; }
}
