/* ============================================================
   GEBYAR MAN 2 AGAM - Public Theme
   ============================================================ */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --secondary: #f59e0b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --light: #f8fafc;
    --grad: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);
    --radius: 16px;
}

* { -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark-2);
}

h1, h2, h3, h4, h5, .brand-text strong { font-family: 'Sora', 'Plus Jakarta Sans', sans-serif; }

/* ---------- Buttons ---------- */
.btn-gradient {
    background: var(--grad);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: .55rem 1.25rem;
    box-shadow: 0 8px 20px rgba(13, 148, 136, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 148, 136, .45); }
.btn-gradient:disabled { opacity: .5; transform: none; }

.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-whatsapp { background: #25d366; color: #fff; font-weight: 700; border-radius: 12px; }
.btn-whatsapp:hover { background: #1fb457; color: #fff; }

.bg-gradient-primary { background: var(--grad); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--dark);
    color: #fff;
    font-size: .8rem;
    padding: .45rem 0;
    position: relative;
    z-index: 1031;
}
.topbar-announce { font-weight: 600; letter-spacing: .4px; }
.topbar-announce i { color: var(--secondary); animation: pulse 1.6s infinite; }
.topbar-social a {
    color: #cbd5e1; font-size: 1rem; padding: 0 .35rem;
    transition: color .2s, transform .2s;
}
.topbar-social a:hover { color: var(--secondary); transform: translateY(-1px); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Navbar ---------- */
.main-nav {
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(12px);
    padding: .7rem 0;
    transition: background .3s ease, box-shadow .3s ease;
}
.main-nav.scrolled { background: rgba(15, 23, 42, .98); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.main-nav .navbar-toggler { border-color: rgba(255, 255, 255, .4); }
.main-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--grad); color: #fff; font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(13, 148, 136, .4);
}
.brand-mark-lg { width: 58px; height: 58px; font-size: 1.7rem; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.15; color: #fff; margin-left: .6rem; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .3px; }
.brand-text small { color: rgba(255, 255, 255, .6); font-size: .68rem; }

.navbar .nav-link {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    font-size: .92rem;
    margin: 0 .15rem;
    border-radius: 10px;
    transition: color .2s, background .2s;
}
.navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.navbar .nav-link.active { color: #5eead4; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-bg-default {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(13, 148, 136, .55), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, .35), transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #134e4a 60%, #0e7490 100%);
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .55) 55%, rgba(15, 23, 42, .35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0 8rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px; padding: .45rem 1rem; font-size: .8rem; font-weight: 600;
    backdrop-filter: blur(6px); margin-bottom: 1.2rem;
}
.hero-badge i { color: var(--secondary); }
.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -.5px;
}
.gradient-text {
    background: linear-gradient(90deg, #2dd4bf, #22d3ee, #f59e0b);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 600; color: #99f6e4; margin-top: .6rem; }
.hero-desc { color: rgba(255, 255, 255, .75); max-width: 560px; margin-top: .8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Countdown */
.countdown { display: flex; align-items: center; gap: .6rem; }
.cd-item {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    border-radius: 14px; min-width: 72px; padding: .6rem .4rem;
    text-align: center;
}
.cd-num { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #5eead4; }
.cd-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .7); }
.cd-sep { font-size: 1.6rem; font-weight: 800; color: rgba(255, 255, 255, .4); }

/* ------------------------------------------------------------
   Banner hero (carousel latar)
   ------------------------------------------------------------
   Sebelumnya .hero-carousel tidak punya aturan sama sekali. Karena
   .hero memakai display:flex, carousel menjadi anak flex tanpa isi
   (seluruh isinya position:absolute) sehingga tingginya 0px —
   gambar banner terpasang tetapi tidak pernah terlihat.
   Aturan di bawah membuat carousel mengisi seluruh area hero.
   ------------------------------------------------------------ */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ruang ekstra di bawah konten hero agar keterangan banner
   tidak menimpa tombol/countdown di atasnya. */
.hero.has-banner .hero-content {
    padding-bottom: 12rem;
}

/* Keterangan banner: sejajar container, di atas gelombang */
.banner-caption-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5.5rem;
    z-index: 1;
    pointer-events: none;
}

.banner-caption {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 640px;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
}

.banner-caption-text { flex: 1 1 260px; min-width: 0; }

.banner-caption h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.banner-caption p {
    margin: .2rem 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .82);
}

@media (max-width: 991px) {
    .hero.has-banner .hero-content { padding-bottom: 15rem; }
    .banner-caption-wrap { bottom: 4.5rem; }
    .banner-caption { max-width: none; padding: .9rem 1rem; }
    .banner-caption h3 { font-size: 1rem; }
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mascot-float {
    animation: floaty 5s ease-in-out infinite;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
    width: auto;
    max-width: min(100%, 420px);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.mascot-caption {
    display: inline-block; margin-top: 1rem;
    background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
    border-radius: 999px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 600;
}

/* Deretan kartu logo (logo madrasah & logo event) di bawah maskot.
   Sebelumnya posisinya absolute dengan offset negatif (bottom/-left/-right)
   sehingga kartu saling menumpuk dengan gambar maskot dan terpotong
   tepi kolom — penyebab utama tampilan hero terlihat kacau. */
.hero-visual-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.35rem;
}
.hero-visual-logo {
    height: 72px;
    width: auto;
    background: #fff;
    border-radius: 16px;
    padding: .5rem;
    box-shadow: var(--shadow-lg);
}
.hero-logo-placeholder {
    display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
    background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .35);
    border-radius: 24px; padding: 3rem 2.5rem;
}
.hero-logo-placeholder i { font-size: 3.5rem; color: var(--secondary); }
.hero-logo-placeholder strong { font-size: 1.3rem; }
.hero-logo-placeholder span { color: rgba(255, 255, 255, .6); font-size: .85rem; }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: 70px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-info { padding: 3.5rem 0; margin-top: -2.5rem; position: relative; z-index: 5; }
.section-tag {
    display: inline-block; font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px; color: var(--primary);
    background: rgba(13, 148, 136, .1); border-radius: 999px; padding: .35rem 1rem;
    margin-bottom: .8rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; color: var(--dark); }
.section-sub { color: #64748b; max-width: 560px; margin: .6rem auto 0; }

/* Info cards */
.info-card {
    background: #fff; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); height: 100%;
    border-top: 4px solid var(--primary);
    transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.info-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-size: 1.4rem; margin-bottom: .9rem;
}
.info-label { text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; color: #94a3b8; font-weight: 700; }
.info-value { font-weight: 800; color: var(--dark); margin: .1rem 0 .2rem; }

/* About */
.section-about { background: #fff; }
.about-visual { position: relative; }
.about-visual img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-badge {
    position: absolute; bottom: 18px; right: 18px;
    background: var(--grad-warm); color: #fff; font-weight: 800;
    border-radius: 14px; padding: .7rem 1.1rem; box-shadow: var(--shadow);
}
.vm-item { display: flex; gap: 1rem; padding: 1.1rem; border-radius: 14px; background: #f8fafc; margin-bottom: .9rem; }
.vm-icon {
    flex: 0 0 46px; height: 46px; border-radius: 12px;
    background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.vm-item h6 { font-weight: 800; color: var(--dark); }

/* Categories */
.section-categories { background: linear-gradient(180deg, #f8fafc, #f0fdfa); }
.category-card {
    border-radius: 22px; color: #fff; padding: 2.4rem 2rem; position: relative; overflow: hidden;
    min-height: 240px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-card::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
    background: rgba(255, 255, 255, .1); border-radius: 50%;
}
.grad-1 { background: linear-gradient(135deg, #0d9488, #059669); }
.grad-2 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.category-icon {
    width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 1.1rem;
}
.category-card h3 { font-weight: 800; }
.category-card p { opacity: .92; }

/* Competition cards */
.section-competitions { background: #fff; }
.competition-card {
    border-radius: var(--radius); overflow: hidden; background: #fff;
    border: 1px solid #e2e8f0; height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.competition-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.comp-media { position: relative; height: 170px; background: #0f172a; }
.comp-media img { width: 100%; height: 100%; object-fit: cover; }
.comp-media-fallback {
    height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #134e4a, #0e7490); color: rgba(255, 255, 255, .7); font-size: 3rem;
}
.comp-badge {
    position: absolute; top: 10px; right: 10px;
    border-radius: 999px; padding: .3rem .7rem; font-size: .68rem; font-weight: 800; letter-spacing: 1px;
}
.badge-open { background: #22c55e; color: #fff; }
.badge-limited { background: #f59e0b; color: #fff; }
.badge-full { background: #ef4444; color: #fff; }
.badge-closed { background: #64748b; color: #fff; }
.comp-body { padding: 1.2rem; }
.comp-title { font-weight: 800; color: var(--dark); }
.comp-category { font-size: .78rem; color: var(--primary); font-weight: 600; }
.comp-desc { color: #64748b; font-size: .86rem; margin-top: .4rem; }
.comp-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; color: #475569; }
.comp-meta i { color: var(--primary); }

/* Mascot */
.section-mascot { background: linear-gradient(180deg, #fff, #f0fdfa); }
.mascot-stage { position: relative; display: inline-block; }
.mascot-placeholder {
    width: 300px; height: 300px; border-radius: 50%;
    background: linear-gradient(135deg, #ccfbf1, #a5f3fc);
    display: flex; align-items: center; justify-content: center; font-size: 6rem; color: #0d9488;
}
.mascot-nameplate {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    background: var(--dark); color: #fff; border-radius: 999px; padding: .45rem 1.3rem; font-weight: 700; font-size: .9rem;
    white-space: nowrap; box-shadow: var(--shadow);
}
.mascot-name { font-weight: 800; color: var(--dark); font-size: 1.7rem; }
.mascot-caption-text { color: var(--primary); font-style: italic; font-weight: 600; }
.mascot-trait {
    display: flex; gap: .8rem; background: #fff; border-radius: 14px; padding: 1rem;
    box-shadow: var(--shadow); height: 100%;
}
.trait-icon {
    flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--grad-warm);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.mascot-trait h6 { font-weight: 800; font-size: .88rem; color: var(--dark); }
.mascot-trait p { font-size: .82rem; color: #475569; }

/* Prizes */
.section-prizes { background: #0f172a; }
.section-prizes .section-title { color: #fff; }
.section-prizes .section-sub { color: rgba(255, 255, 255, .6); }
.prize-card {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px; padding: 2rem 1.5rem; text-align: center; height: 100%;
    backdrop-filter: blur(6px); color: #fff;
    transition: transform .25s ease, background .25s ease;
}
.prize-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); }
.prize-medal {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.medal-1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.medal-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.medal-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.prize-card p { color: rgba(255, 255, 255, .7); font-size: .88rem; }

/* Schedule timeline */
.section-schedule { background: #fff; }
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #0d9488, #22d3ee); transform: translateX(-50%);
    border-radius: 3px;
}
.timeline-item { position: relative; width: 50%; padding: 0 2.2rem 2.6rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
    position: absolute; top: 8px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 148, 136, .4);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -22px; }
.timeline-item:nth-child(even) .timeline-dot { left: -22px; }
.timeline-card { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: var(--shadow); }
.timeline-date { color: var(--primary); font-size: .78rem; font-weight: 700; }
@media (max-width: 768px) {
    .timeline::before { left: 22px; }
    .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 2rem 3.4rem; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
}

/* Stats */
.section-stats { background: linear-gradient(135deg, #0f766e, #0e7490); color: #fff; }
.stat-item i { font-size: 2rem; color: #99f6e4; }
.stat-item h3 { font-size: 2.4rem; font-weight: 800; margin: .5rem 0 .1rem; }
.stat-item p { color: rgba(255, 255, 255, .75); font-weight: 600; }

/* Gallery */
.section-gallery { background: #f8fafc; }
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-item {
    display: block; break-inside: avoid; margin-bottom: 1rem; position: relative;
    border-radius: 14px; overflow: hidden; cursor: zoom-in;
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; inset: auto 0 0 0; padding: 2rem .8rem .6rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, .85));
    color: #fff; font-size: .8rem; font-weight: 600;
}
.video-thumb {
    height: 220px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a); font-size: 3.4rem; color: #ef4444;
}

/* Sponsors */
.section-sponsors { background: #fff; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.8rem; }
.sponsor-logo {
    display: flex; align-items: center; justify-content: center;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
    min-width: 150px; height: 84px; padding: 1rem; color: #64748b; font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.sponsor-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--dark); }
.sponsor-logo img { max-height: 52px; max-width: 130px; object-fit: contain; }
.sponsor-level { color: #94a3b8; font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; }

/* FAQ */
.section-faq { background: #f8fafc; }
.accordion-item { border: 1px solid #e2e8f0; border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-weight: 700; color: var(--dark); }
.accordion-button:not(.collapsed) { background: #f0fdfa; color: var(--primary-dark); }
.accordion-button:focus { box-shadow: none; }

/* CTA */
.section-cta { padding: 3rem 0 5rem; }
.cta-box {
    position: relative; border-radius: 26px; overflow: hidden;
    background: linear-gradient(120deg, #0d9488, #0e7490, #134e4a);
    color: #fff; text-align: center; padding: 4rem 2rem;
    box-shadow: var(--shadow-lg);
}
.cta-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 40%);
}
.cta-content { position: relative; z-index: 2; }
.cta-box h2 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: 1px; }
.cta-box p { opacity: .9; max-width: 520px; margin: .6rem auto 1.5rem; }
.cta-mascot {
    position: absolute; right: 4%; bottom: -20px; height: 190px;
    animation: floaty 5s ease-in-out infinite;
}

/* Contact */
.section-contact { background: #fff; }
.contact-item {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0;
    border-bottom: 1px dashed #e2e8f0;
}
.contact-icon {
    flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--grad);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.map-box { border-radius: 18px; overflow: hidden; height: 100%; min-height: 360px; border: 1px solid #e2e8f0; }
.map-placeholder {
    height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f8fafc; color: #64748b; text-align: center; padding: 2rem;
}
.map-placeholder i { font-size: 3rem; color: #0d9488; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .8); padding: 4rem 0 0; }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .88rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #5eead4; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.footer-contact li { margin-bottom: .6rem; display: flex; gap: .5rem; }
.footer-contact i { color: #5eead4; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08);
    display: inline-flex; align-items: center; justify-content: center; color: #cbd5e1;
    transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.2rem 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem;
}

/* Page hero (inner pages) */
.page-hero-small {
    background: linear-gradient(135deg, #0f172a, #134e4a, #0e7490);
    color: #fff; padding: 5rem 0 4rem; text-align: center;
}
.page-hero-small h1 { font-weight: 800; }
.page-hero-small p { color: rgba(255, 255, 255, .75); }

/* Filter & detail */
.filter-bar { border: 1px solid #e2e8f0; }
.detail-card { border: 1px solid #e2e8f0; border-radius: 16px; }
.detail-card .card-img-top { max-height: 380px; object-fit: cover; }
.detail-sidebar { border: none; border-radius: 16px; box-shadow: var(--shadow-lg); }
.detail-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .88rem; }
.detail-list li i { color: var(--primary); }
.detail-list li span { flex: 1; color: #64748b; }
.detail-list li strong { text-align: right; }

/* Auth */
.auth-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(13, 148, 136, .5), transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(245, 158, 11, .3), transparent 45%),
        linear-gradient(135deg, #0f172a, #134e4a);
    padding: 1rem;
}
.auth-wrap { width: 100%; max-width: 620px; }
.auth-card { border-radius: 22px; overflow: hidden; }
.auth-card-body { background: #fff; }
.auth-body input.form-control, .auth-body select.form-select { border-radius: 10px; padding: .6rem .9rem; }

/* Wizard select card */
.comp-select-card {
    display: flex; align-items: flex-start; gap: .8rem; cursor: pointer;
    border: 2px solid #e2e8f0; border-radius: 14px; padding: 1rem;
    transition: border-color .2s, background .2s; height: 100%;
}
.comp-select-card:hover { border-color: var(--primary); }
.comp-select-card.selected { border-color: var(--primary); background: #f0fdfa; }
.comp-select-card.disabled { opacity: .5; cursor: not-allowed; }
.comp-select-card input { margin-top: .2rem; }

/* Success */
.success-check {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto;
    background: var(--grad); color: #fff; font-size: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 40px rgba(13, 148, 136, .4);
    animation: pop .5s cubic-bezier(.175, .885, .32, 1.4);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.display-number {
    font-size: 1.6rem; font-weight: 800; color: var(--primary-dark);
    background: #f0fdfa; border: 2px dashed var(--primary);
    border-radius: 14px; padding: .8rem 1.5rem; display: inline-block; margin: .8rem 0;
}

/* Reveal animation - hanya aktif jika JavaScript berjalan (html.js).
   Tanpa JS, seluruh konten tetap terlihat (anti halaman putih). */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .mascot-float, .logo-man-float, .cta-mascot, .hero-bg { animation: none; }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .94); z-index: 2000;
    display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox-caption { position: fixed; bottom: 3vh; left: 0; right: 0; text-align: center; color: #fff; z-index: 2001; }

/* Responsive tweaks */
@media (max-width: 991px) {
    .hero { min-height: auto; }
    .navbar-collapse { background: var(--dark); border-radius: 14px; padding: 1rem; margin-top: .6rem; }
    .navbar .nav-link { color: #fff; }
}
@media (max-width: 576px) {
    .cd-item { min-width: 58px; }
    .cd-num { font-size: 1.2rem; }
    .hero-actions .btn { width: 100%; }
    .section { padding: 3.5rem 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Tombol navigasi banner — harus di atas konten hero (z-index 2) dan
   gelombang (z-index 3) agar dapat diklik. */
.hero-carousel-control {
    z-index: 4;
    width: 56px;
    opacity: .85;
    transition: opacity .2s ease;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible { opacity: 1; }

.hero-carousel-control.carousel-control-prev { left: .5rem; }
.hero-carousel-control.carousel-control-next { right: .5rem; }

@media (max-width: 767px) {
    .hero-carousel-control { width: 44px; }
    .hero-carousel-control.carousel-control-prev { left: .15rem; }
    .hero-carousel-control.carousel-control-next { right: .15rem; }
}
