/* =========================================================
   PKBM Imam Bukhari — Landing Page Theme
   Modern UI layer on top of Bootstrap 5
   ========================================================= */

:root {
    --ib-primary: #0f4c3a;
    /* deep green */
    --ib-primary-dark: #0a3528;
    --ib-primary-light: #1b6b50;
    --ib-accent: #e3a008;
    /* gold */
    --ib-accent-light: #f6c445;
    --ib-ink: #16271f;
    --ib-muted: #5c6b64;
    --ib-soft: #f3f7f5;
    --ib-ring: rgba(15, 76, 58, 0.12);
    --ib-shadow: 0 18px 40px -20px rgba(15, 76, 58, 0.45);
    --ib-radius: 18px;
    --ib-font: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ib-font);
    color: var(--ib-ink);
    background: #ffffff;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 90px;
}

.section-pad {
    padding: 84px 0;
}

@media (max-width: 767px) {
    .section-pad {
        padding: 56px 0;
    }
}

/* ---------- Typography helpers ---------- */
.text-ib-primary {
    color: var(--ib-primary) !important;
}

.text-ib-accent {
    color: var(--ib-accent) !important;
}

.bg-ib-soft {
    background: var(--ib-soft) !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ib-primary-light);
    background: var(--ib-ring);
    padding: .4rem .9rem;
    border-radius: 999px;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ib-ink);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin-bottom: .5rem;
}

.section-lead {
    color: var(--ib-muted);
    max-width: 640px;
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn-ib {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ib-primary);
    --bs-btn-border-color: var(--ib-primary);
    --bs-btn-hover-bg: var(--ib-primary-dark);
    --bs-btn-hover-border-color: var(--ib-primary-dark);
    --bs-btn-active-bg: var(--ib-primary-dark);
    --bs-btn-hover-color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .7rem 1.5rem;
    box-shadow: 0 10px 24px -12px rgba(15, 76, 58, .8);
}

.btn-accent {
    --bs-btn-color: #3a2a00;
    --bs-btn-bg: var(--ib-accent);
    --bs-btn-border-color: var(--ib-accent);
    --bs-btn-hover-bg: var(--ib-accent-light);
    --bs-btn-hover-border-color: var(--ib-accent-light);
    --bs-btn-hover-color: #3a2a00;
    font-weight: 700;
    border-radius: 999px;
    padding: .7rem 1.5rem;
}

.btn-ib-outline {
    --bs-btn-color: var(--ib-primary);
    --bs-btn-border-color: var(--ib-primary);
    --bs-btn-hover-bg: var(--ib-primary);
    --bs-btn-hover-border-color: var(--ib-primary);
    --bs-btn-hover-color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .7rem 1.5rem;
}

/* ---------- Navbar ---------- */
.ib-navbar {
    transition: all .3s ease;
    padding-block: .9rem;
    background: transparent;
}

.ib-navbar.scrolled {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .5);
    padding-block: .5rem;
}

.ib-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.ib-navbar .navbar-brand img {
    height: 44px;
    width: auto;
}

.ib-navbar .navbar-brand .brand-text small {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    opacity: .85;
    text-transform: uppercase;
}

.ib-navbar .nav-link {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
    padding-inline: .9rem;
}

.ib-navbar .nav-link:hover,
.ib-navbar .nav-link.active {
    color: #fff;
}

.ib-navbar.scrolled .navbar-brand,
.ib-navbar.scrolled .nav-link {
    color: var(--ib-ink);
}

.ib-navbar.scrolled .navbar-brand .brand-text small {
    color: var(--ib-primary);
}

.ib-navbar.scrolled .nav-link:hover,
.ib-navbar.scrolled .nav-link.active {
    color: var(--ib-primary);
}

.ib-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.ib-navbar.scrolled .navbar-toggler {
    border-color: var(--ib-ring);
}

@media (max-width: 991px) {

    .ib-navbar,
    .ib-navbar .navbar-brand,
    .ib-navbar .nav-link {
        /* collapsed menu over light panel */
    }

    .ib-navbar .navbar-collapse {
        background: #fff;
        margin-top: .75rem;
        border-radius: 14px;
        padding: 1rem;
        box-shadow: var(--ib-shadow);
    }

    .ib-navbar .nav-link,
    .ib-navbar .dropdown-toggle {
        color: var(--ib-ink) !important;
    }
}

/* ---------- Hero ---------- */
.ib-hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(227, 160, 8, .18), transparent 60%),
        linear-gradient(135deg, var(--ib-primary-dark) 0%, var(--ib-primary) 55%, var(--ib-primary-light) 100%);
    color: #fff;
    padding: 150px 0 110px;
    overflow: hidden;
}

.ib-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}

.ib-hero .container {
    position: relative;
    z-index: 2;
}

.ib-hero h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ib-hero .hero-sub {
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    max-width: 560px;
}

.ib-hero .badge-pill {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .85rem;
}

.ib-hero .hero-art {
    position: relative;
}

.ib-hero .hero-art img {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}

.hero-glass {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--ib-radius);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(6px);
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* ---------- Quick access cards ---------- */
.quick-access {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.quick-card {
    background: #fff;
    border-radius: var(--ib-radius);
    padding: 1.4rem;
    box-shadow: var(--ib-shadow);
    border: 1px solid #eef2f0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ib-ink);
    transition: transform .25s ease, box-shadow .25s ease;
}

.quick-card:hover {
    transform: translateY(-6px);
    color: var(--ib-primary);
    box-shadow: 0 26px 50px -22px rgba(15, 76, 58, .55);
}

.quick-card .qc-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: var(--ib-ring);
    color: var(--ib-primary);
}

.quick-card h6 {
    margin: 0;
    font-weight: 800;
}

.quick-card small {
    color: var(--ib-muted);
}

/* ---------- Program (Paket) cards ---------- */
.program-card {
    position: relative;
    border: 1px solid #e8efec;
    border-radius: var(--ib-radius);
    padding: 2rem 1.6rem;
    background: #fff;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    overflow: hidden;
}

.program-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--ib-primary), var(--ib-accent));
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ib-shadow);
    border-color: transparent;
}

.program-card .pkt-badge {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ib-primary), var(--ib-primary-light));
    margin-bottom: 1rem;
}

.program-card h4 {
    font-weight: 800;
}

.program-card .level {
    color: var(--ib-accent);
    font-weight: 700;
    font-size: .9rem;
}

.program-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.program-card ul li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: var(--ib-muted);
    padding: .3rem 0;
}

.program-card ul li i {
    color: var(--ib-primary-light);
    margin-top: .2rem;
}

/* ---------- Feature (keunggulan) ---------- */
.feature-card {
    background: #fff;
    border-radius: var(--ib-radius);
    padding: 1.6rem;
    height: 100%;
    border: 1px solid #eef2f0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ib-shadow);
}

.feature-card .f-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--ib-primary);
    background: var(--ib-ring);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 800;
}

.feature-card p {
    color: var(--ib-muted);
    margin: 0;
}

/* ---------- Stats / lulusan ---------- */
.stats-band {
    background:
        linear-gradient(135deg, var(--ib-primary-dark), var(--ib-primary));
    color: #fff;
    border-radius: 26px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--ib-shadow);
}

.stat-item .stat-num {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--ib-accent-light);
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    margin-top: .4rem;
}

/* ---------- About ---------- */
.about-media {
    border-radius: var(--ib-radius);
    overflow: hidden;
    box-shadow: var(--ib-shadow);
    aspect-ratio: 16 / 10;
}

.about-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.about-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: var(--ib-ink);
    font-weight: 600;
    padding: .35rem 0;
}

.about-check i {
    color: var(--ib-primary);
    margin-top: .15rem;
}

/* ---------- Galeri / IG embeds ---------- */
.ig-tile {
    background: #fff;
    border-radius: var(--ib-radius);
    box-shadow: var(--ib-shadow);
    overflow: hidden;
    padding: .5rem;
    height: 100%;
}

.ig-tile .instagram-media {
    margin: 0 auto !important;
}

/* ---------- Karya cards ---------- */
.karya-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eef2f0;
    border-radius: var(--ib-radius);
    padding: 1.3rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.karya-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ib-shadow);
    color: inherit;
}

.karya-card .k-top {
    display: flex;
    gap: .9rem;
    align-items: center;
    margin-bottom: .75rem;
}

.karya-card .k-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ib-ring);
    color: var(--ib-primary);
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.karya-card h6 {
    font-weight: 800;
    margin: 0;
}

.karya-card .k-meta {
    color: var(--ib-muted);
    font-size: .8rem;
}

.karya-card .k-excerpt {
    color: var(--ib-muted);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Contact ---------- */
.contact-wrap {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--ib-shadow);
    overflow: hidden;
}

.contact-side {
    background: linear-gradient(160deg, var(--ib-primary), var(--ib-primary-light));
    color: #fff;
    padding: 2.5rem;
}

.contact-side .ci {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.contact-side .ci i {
    font-size: 1.1rem;
    margin-top: .2rem;
    color: var(--ib-accent-light);
}

.contact-form-pane {
    padding: 2.5rem;
}

.contact-form-pane .form-control {
    border-radius: 12px;
    padding: .8rem 1rem;
    border: 1px solid #e3e9e6;
}

.contact-form-pane .form-control:focus {
    border-color: var(--ib-primary-light);
    box-shadow: 0 0 0 .2rem var(--ib-ring);
}

/* ---------- Map / admission ---------- */
.map-section {
    position: relative;
}

#map {
    width: 100%;
    height: 460px;
}

.admission-float {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--ib-shadow);
    padding: 1.5rem;
    overflow: hidden;
}

.admission-float img {
    border-radius: 14px;
    width: 100%;
    object-fit: cover;
}

/* ---------- Footer ---------- */
.ib-footer {
    background: var(--ib-primary-dark);
    color: rgba(255, 255, 255, .82);
    padding: 56px 0 24px;
}

.ib-footer a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.ib-footer a:hover {
    color: #fff;
}

.ib-footer h6 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ib-footer .foot-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    margin-right: .5rem;
    transition: background .2s;
}

.ib-footer .foot-social a:hover {
    background: var(--ib-accent);
    color: #3a2a00;
}

.ib-footer .foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    font-size: .9rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
    animation: wa-pulse 2.2s infinite;
}

.wa-float:hover {
    color: #fff;
    transform: scale(1.06);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}
