/* =========================================================
   SMK Darul Qur'an Wonosari - Tema Utama (Rebuild 2026)
   ========================================================= */
:root {
    --primer: #0b3d91;
    --primer-2: #1456c8;
    --primer-gelap: #072a66;
    --aksen: #f5b400;
    --aksen-2: #ffcf3f;
    --hijau: #0f9d58;
    --teks: #1f2937;
    --abu: #6b7280;
    --latar: #f4f7fb;
    --radius: 18px;
    --bayangan: 0 10px 30px rgba(11, 61, 145, .08);
    --bayangan-hover: 0 18px 40px rgba(11, 61, 145, .16);
}

html, body { max-width: 100vw; overflow-x: hidden; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--teks);
    background: var(--latar);
    display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--primer-2); }
.btn-primary { background: var(--primer); border-color: var(--primer); }
.btn-primary:hover { background: var(--primer-gelap); border-color: var(--primer-gelap); }
.text-primary { color: var(--primer-2) !important; }
.bg-primary { background-color: var(--primer) !important; }

/* ---------- TOP BAR ---------- */
.top-bar { background: var(--primer-gelap); color: rgba(255,255,255,.75); font-size: 13px; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; transition: .25s; }
.top-bar a:hover { color: var(--aksen); }
.top-bar .sosmed a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.08); font-size: 13px; }
.top-bar .sosmed a:hover { background: var(--aksen); color: var(--primer-gelap); }

/* ---------- NAVBAR ---------- */
.site-header { z-index: 1030; }
.navbar-main { background: #fff; padding: 10px 0; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.navbar-main .navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-main .logo-sekolah { height: 46px; width: auto; }
.navbar-main .brand-teks { line-height: 1.15; }
.navbar-main .brand-teks strong { display: block; color: var(--primer); font-size: 1.1rem; font-weight: 800; }
.navbar-main .brand-teks small { color: var(--abu); font-size: .72rem; letter-spacing: .5px; }
.navbar-main .nav-link { color: var(--teks) !important; font-weight: 600; font-size: .93rem; padding: 10px 14px !important;
    border-radius: 10px; transition: .2s; }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { color: var(--primer-2) !important; background: #eef4ff; }
.navbar-main .dropdown-menu { border: 0; border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,.12); padding: 10px; min-width: 240px; }
.navbar-main .dropdown-item { border-radius: 10px; padding: 9px 14px; font-weight: 500; color: #475569; transition: .2s; white-space: normal; }
.navbar-main .dropdown-item:hover { background: #eef4ff; color: var(--primer-2); padding-left: 20px; }
.btn-portal { background: var(--aksen); color: var(--primer-gelap) !important; font-weight: 700; border-radius: 50px; padding: 9px 20px;
    box-shadow: 0 6px 16px rgba(245,180,0,.35); transition: .25s; border: 0; }
.btn-portal:hover { background: var(--aksen-2); transform: translateY(-2px); }
.navbar-toggler { border: 0; font-size: 1.5rem; color: var(--primer); }
.navbar-toggler:focus { box-shadow: none; }

@media (min-width: 992px) {
    .navbar-main .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; animation: turunMenu .2s ease; }
    @keyframes turunMenu { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Menu slide samping di HP */
@media (max-width: 991.98px) {
    .top-bar { font-size: 11px; }
    .navbar-main .logo-sekolah { height: 38px; }
    .navbar-main .brand-teks strong { font-size: .98rem; }
    .navbar-main .navbar-collapse {
        position: fixed; top: 0; right: -100%; width: 290px; height: 100vh; background: #fff; z-index: 1050;
        padding: 22px 18px; transition: right .3s ease-in-out; display: flex !important; flex-direction: column;
        overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.2);
    }
    .navbar-main .navbar-collapse.show { right: 0; }
    .navbar-main .navbar-nav { width: 100%; }
    .navbar-main .nav-item { width: 100%; }
    .navbar-main .dropdown-menu { position: static !important; box-shadow: none; background: #f6f9ff; margin: 4px 0 8px; }
    .btn-portal { width: 100%; margin-top: 14px; padding: 12px; }
    .menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; display: none; }
    .menu-backdrop.show { display: block; }
}

/* ---------- HERO / SLIDER ---------- */
.hero { position: relative; }
.hero .carousel-item { height: 560px; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-item::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7,42,102,.88) 0%, rgba(7,42,102,.55) 50%, rgba(7,42,102,.15) 100%); }
.hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-caption .badge-hero { background: rgba(245,180,0,.18); color: var(--aksen-2); border: 1px solid rgba(245,180,0,.45);
    padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: .8rem; letter-spacing: .5px; }
.hero-caption h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; margin: 18px 0 12px; }
.hero-caption p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 5px; background: var(--aksen); }
.hero .carousel-item.active .hero-caption .container > * { animation: naik .8s ease both; }
.hero .carousel-item.active .hero-caption h1 { animation-delay: .1s; }
.hero .carousel-item.active .hero-caption p { animation-delay: .2s; }
.hero .carousel-item.active .hero-caption .hero-btn { animation-delay: .3s; }
@keyframes naik { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .hero .carousel-item { height: 430px; } .hero-caption p { font-size: 1rem; } }

/* ---------- STATISTIK MENGAMBANG ---------- */
.stat-strip { margin-top: -60px; position: relative; z-index: 5; }
.stat-box { background: #fff; border-radius: var(--radius); box-shadow: var(--bayangan); padding: 22px; display: flex; align-items: center; gap: 16px; height: 100%; transition: .3s; }
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--bayangan-hover); }
.stat-ikon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-box h3 { font-weight: 800; margin: 0; font-size: 1.7rem; color: var(--teks); }
.stat-box small { color: var(--abu); font-weight: 500; }

/* ---------- JUDUL SEKSI ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-label { display: inline-block; color: var(--primer-2); background: #e8f0ff; font-weight: 700; font-size: .78rem;
    letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-desc { color: var(--abu); max-width: 620px; }

/* ---------- KARTU UMUM ---------- */
.card-modern { background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--bayangan); transition: .3s; overflow: hidden; }
.card-modern:hover { transform: translateY(-6px); box-shadow: var(--bayangan-hover); }

/* ---------- JURUSAN ---------- */
.jurusan-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; color: #fff; padding: 34px;
    display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; transition: .35s; box-shadow: var(--bayangan); }
.jurusan-card:hover { transform: translateY(-6px); box-shadow: var(--bayangan-hover); color: #fff; }
.jurusan-card .bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.jurusan-card:hover .bg-img { transform: scale(1.07); }
.jurusan-card::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.jurusan-card.dkv::before { background: linear-gradient(180deg, rgba(124,58,237,.15) 0%, rgba(76,29,149,.92) 100%); }
.jurusan-card.tsm::before { background: linear-gradient(180deg, rgba(220,38,38,.15) 0%, rgba(127,29,29,.92) 100%); }
.jurusan-card > *:not(.bg-img) { position: relative; z-index: 2; }
.jurusan-ikon { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.jurusan-card h4 { font-weight: 800; margin-bottom: 6px; }
.jurusan-card p { opacity: .9; font-size: .95rem; margin-bottom: 14px; }
.jurusan-card .tag { display: inline-block; background: rgba(255,255,255,.18); border-radius: 50px; padding: 4px 12px; font-size: .75rem; margin: 0 6px 6px 0; }

/* ---------- KEUNGGULAN ---------- */
.fitur-box { background: #fff; border-radius: var(--radius); padding: 28px; height: 100%; box-shadow: var(--bayangan); transition: .3s; border-bottom: 4px solid transparent; }
.fitur-box:hover { transform: translateY(-5px); border-bottom-color: var(--aksen); }
.fitur-box .ikon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.fitur-box h6 { font-weight: 700; font-size: 1.05rem; }
.fitur-box p { color: var(--abu); font-size: .9rem; margin: 0; }

/* ---------- BERITA ---------- */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayangan); height: 100%; display: flex; flex-direction: column; transition: .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--bayangan-hover); }
.news-card .news-img { position: relative; height: 200px; overflow: hidden; background: #e5e7eb; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-card .news-kat { position: absolute; top: 14px; left: 14px; background: var(--aksen); color: var(--primer-gelap); font-weight: 700;
    font-size: .72rem; padding: 5px 12px; border-radius: 50px; }
.news-card .news-body { padding: 20px 22px; flex-grow: 1; }
.news-card .news-meta { color: var(--abu); font-size: .78rem; margin-bottom: 8px; }
.news-card h5 { font-weight: 700; font-size: 1.02rem; line-height: 1.45; margin-bottom: 8px; }
.news-card h5 a { color: var(--teks); text-decoration: none; }
.news-card h5 a:hover { color: var(--primer-2); }
.news-card p { color: var(--abu); font-size: .87rem; line-height: 1.6; margin: 0; }
.news-card .news-foot { padding: 0 22px 20px; }
.link-baca { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--primer-2); }
.link-baca i { transition: .2s; }
.link-baca:hover i { transform: translateX(4px); }
.news-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primer), var(--primer-2)); color: rgba(255,255,255,.6); font-size: 46px; }

/* ---------- SIDEBAR WIDGET ---------- */
.widget { background: #fff; border-radius: var(--radius); box-shadow: var(--bayangan); padding: 24px; margin-bottom: 24px; }
.widget-title { font-weight: 700; font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.widget-title i { color: var(--primer-2); }
.search-box { position: relative; }
.search-box input { background: var(--latar); border: 2px solid transparent; border-radius: 14px; padding: 13px 48px 13px 16px; transition: .2s; }
.search-box input:focus { border-color: var(--primer-2); box-shadow: none; background: #fff; }
.search-box .ikon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--abu); }
.kategori-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; color: var(--teks);
    text-decoration: none; font-weight: 500; border-bottom: 1px dashed #e5e7eb; transition: .2s; }
.kategori-list a:last-child { border-bottom: 0; }
.kategori-list a:hover { color: var(--primer-2); padding-left: 6px; }
.widget-ppdb { background: linear-gradient(135deg, var(--primer) 0%, var(--primer-2) 100%); color: #fff; position: relative; overflow: hidden; }
.widget-ppdb .bg-ikon { position: absolute; right: -20px; top: -10px; font-size: 130px; opacity: .1; transform: rotate(-15deg); }

/* ---------- VIDEO ---------- */
.section-video { background: linear-gradient(180deg, #0a1f44 0%, #0b3d91 100%); color: #fff; }
.section-video .section-label { background: rgba(245,180,0,.15); color: var(--aksen-2); }
.section-video .section-desc { color: rgba(255,255,255,.7); }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayangan); cursor: pointer; transition: .3s; height: 100%; color: var(--teks); }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.video-card:hover .video-thumb img { transform: scale(1.06); opacity: .85; }
.video-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff;
    background: linear-gradient(135deg, var(--pc, #0b3d91), #111); }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%;
    background: rgba(255,255,255,.95); color: #e11d48; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px;
    box-shadow: 0 0 0 10px rgba(255,255,255,.2); transition: .3s; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 16px rgba(255,255,255,.15); }
.video-platform { position: absolute; top: 12px; left: 12px; color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.video-body { padding: 16px 18px; }
.video-title { font-weight: 700; font-size: .95rem; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-unggulan { border-radius: 24px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.35); background: #000; }
.ratio-vertikal { aspect-ratio: 9/16; max-height: 80vh; margin: 0 auto; }
#modalVideo .modal-content { background: #000; border: 0; border-radius: 18px; overflow: hidden; }
#modalVideo .btn-close { position: absolute; top: -42px; right: 0; filter: invert(1); opacity: 1; }

/* ---------- CTA PPDB ---------- */
.cta-ppdb { background: linear-gradient(120deg, var(--aksen) 0%, #ff9f00 100%); border-radius: 28px; padding: 50px; position: relative; overflow: hidden; }
.cta-ppdb::after { content: '\f19d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 30px; bottom: -40px;
    font-size: 220px; color: rgba(255,255,255,.18); transform: rotate(-12deg); }
.cta-ppdb h2 { font-weight: 800; color: var(--primer-gelap); }
.cta-ppdb p { color: rgba(7,42,102,.8); font-size: 1.05rem; }
@media (max-width: 767px) { .cta-ppdb { padding: 34px 24px; } }

/* ---------- PAGE HEADER (halaman dalam) ---------- */
.page-hero { background: linear-gradient(120deg, var(--primer-gelap) 0%, var(--primer-2) 100%); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- FOOTER ---------- */
.site-footer { background: #0a1a36; color: rgba(255,255,255,.72); padding-top: 70px; margin-top: auto; }
.site-footer h5 { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--aksen); }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: .2s; }
.site-footer a:hover { color: var(--aksen); }
.footer-links li { margin-bottom: 10px; }
.footer-links a i { font-size: 10px; margin-right: 8px; color: var(--aksen); }
.footer-kontak li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-kontak i { color: var(--aksen); margin-top: 4px; width: 16px; }
.footer-sosmed a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: inline-flex;
    align-items: center; justify-content: center; font-size: 17px; color: #fff; margin-right: 8px; }
.footer-sosmed a:hover { background: var(--aksen); color: var(--primer-gelap); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; margin-top: 50px; font-size: .85rem; }
.btn-ke-atas { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primer);
    color: #fff; box-shadow: 0 8px 20px rgba(11,61,145,.35); opacity: 0; visibility: hidden; transition: .3s; z-index: 1020; }
.btn-ke-atas.show { opacity: 1; visibility: visible; }
.btn-wa { position: fixed; right: 20px; bottom: 76px; width: 50px; height: 50px; border-radius: 50%; background: #25D366; color: #fff !important;
    display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 20px rgba(37,211,102,.4); z-index: 1020; transition: .3s; }
.btn-wa:hover { transform: scale(1.1); }

/* Animasi muncul saat di-scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.muncul { opacity: 1; transform: none; }
