/* ----------------------------------------------------
    BCDF.id – Global Style (v2 – dengan gradient)
---------------------------------------------------- */

/* FONT & BODY BASE */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    background-color: var(--bcdf-bg);
    background-image:
        radial-gradient(140% 220% at 0% 0%, rgba(59, 130, 246, 0.16) 0, rgba(59, 130, 246, 0) 40%),
        linear-gradient(180deg, #f5f7fb 0, #ffffff 40%, #eef2ff 100%);
    background-attachment: fixed;
    color: var(--bcdf-text);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* NAVBAR BRANDING BCDF */
.navbar {
    background: linear-gradient(90deg, var(--bcdf-navbar-from), var(--bcdf-navbar-to)) !important;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #dbeafe !important;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff !important;
}

.navbar-brand span {
    color: #7DD3FC !important;
}

/* Tombol Login & Daftar */
.navbar .btn-login {
    border: 1px solid #ffffff;
    color: #ffffff;
    transition: 0.2s;
}

.navbar .btn-login:hover {
    background-color: #ffffff;
    color: #0d6efd;
}

.navbar .btn-register {
    background-color: #ffffff;
    color: #0d6efd;
    transition: 0.2s;
}

.navbar .btn-register:hover {
    background-color: #e8ebff;
}

/* HERO SECTION */
.hero {
    padding: 100px 0;
    background:
        radial-gradient(130% 200% at 0% 0%, rgba(14, 165, 233, 0.16) 0, rgba(59, 130, 246, 0) 40%),
        linear-gradient(180deg, var(--bcdf-hero-from), var(--bcdf-hero-to));
}

.hero h1 {
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--bcdf-heading);
}

.hero p {
    font-size: 1.15rem;
    color: #4B5563;
    max-width: 620px;
}

/* CTA Buttons Hero (default, untuk background terang) */
.btn-light {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 10px 18px;
    font-weight: 600;
}

.btn-outline-light {
    border: 1px solid #0A4AFF;
    color: #0A4AFF;
    background: transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: #0A4AFF;
    color: #ffffff;
}

/* SECTION TITLES */
.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--bcdf-heading);
}

.section-subtitle {
    color: var(--bcdf-muted);
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 24px;
}

/* CARDS (Program, Pilar, Stats) */
.card {
    border-radius: 12px !important;
    border: 1px solid var(--bcdf-border-subtle) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-image: linear-gradient(145deg,
            var(--bcdf-surface),
            var(--bcdf-surface-soft));
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

/* FOOTER */
.footer {
    background: linear-gradient(180deg, var(--bcdf-footer-bg), #e5edff);
    color: var(--bcdf-footer-text);
    padding: 32px 0 16px;
    font-size: 0.95rem;
    border-top: 1px solid #E5E7EB;
}

.footer h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.footer .footer-logo {
    font-weight: 700;
    font-size: 1.4rem;
}

.footer .footer-logo span {
    color: var(--bcdf-primary);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--bcdf-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .footer-social a {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    margin-top: 24px;
    padding-top: 12px;
    font-size: 0.85rem;
    color: #6B7280;
    text-align: center;
}

/* BUTTON SYSTEM */
.btn-primary {
    background-image: linear-gradient(135deg,
            var(--bcdf-primary),
            var(--bcdf-primary-strong)) !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-outline-secondary {
    border: 1.5px solid #0A4AFF !important;
    color: #0A4AFF !important;
    border-radius: 8px !important;
}

.btn-outline-secondary:hover {
    background: #0A4AFF !important;
    color: #ffffff !important;
}

/* SPACING SYSTEM */
.py-section {
    padding: 64px 0;
}

/* Section default (tanpa bg-light/bg-primary) – band gradient lembut */
.py-section:not(.bg-light):not(.bg-primary) {
    background: linear-gradient(180deg, #f5f7fb 0, #ffffff 45%, #eef2ff 100%);
}

.mt-section {
    margin-top: 64px;
}

/* NAVBAR BUTTON REFINEMENT */
.navbar .btn-light {
    background-color: #ffffff !important;
    color: #0b63ce !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    border: none !important;
}

.navbar .btn-light:hover {
    background-color: #e5efff !important;
    color: #073f9d !important;
}

.navbar .navbar-auth-btn {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #f9fafb !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 0.9rem !important;
}

.navbar .navbar-auth-btn:hover,
.navbar .navbar-auth-btn:focus {
    background-color: #ffffff !important;
    color: #0b63ce !important;
    border-color: #ffffff !important;
}

/* CTA BUTTONS DI SECTION BIRU */
.bg-primary .btn-light,
.bg-primary .btn-outline-light {
    border-radius: 999px;
    padding: 10px 28px;
    font-weight: 600;
}

.bg-primary .btn-light {
    background-color: #ffffff;
    color: #0A4AFF;
    border: none;
}

.bg-primary .btn-outline-light {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.bg-primary .btn-light:hover,
.bg-primary .btn-light:focus {
    background-color: #E5F0FF;
    color: #073f9d;
}

.bg-primary .btn-outline-light:hover,
.bg-primary .btn-outline-light:focus {
    background-color: #ffffff;
    color: #0A4AFF;
    border-color: #ffffff;
}

/* CTA section dengan .bg-primary.text-white → gradient biru toska */
.bg-primary.text-white {
    background-image: linear-gradient(135deg,
            var(--bcdf-cta-from),
            var(--bcdf-cta-to)) !important;
}

/* SECTION DENGAN bg-light – lapisan biru lembut */
.py-section.bg-light {
    background: linear-gradient(180deg, #eef2ff 0, #f9fafb 40%, #e0ecff 100%) !important;
}

/* MOBILE TUNING – Home & Hero (≤ 768px) */
@media (max-width: 768px) {
    .hero {
        padding: 72px 0 48px;
        /* tadinya text-align:center; kita buang */
    }

    /* optional: pastikan teks beneran kiri */
    .hero h1,
    .hero p,
    .hero .mt-4 {
        text-align: left;
    }

    .hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero .mt-4.d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero .mt-4.d-flex .btn {
        width: 100%;
        justify-content: center;
    }
}

/* MOBILE TUNING – layout ekstra (≤ 576px) */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }

    .footer .col-md-4,
    .footer .col-md-3,
    .footer .col-md-2 {
        margin-bottom: 1.5rem;
    }
}

/* THEME TOKENS (light / dark) */
:root {
    --bcdf-bg: #f5f7fb;
    --bcdf-text: #1f2937;
    --bcdf-surface: #ffffff;
    --bcdf-surface-soft: #eef2ff;
    --bcdf-border-subtle: #e5e7eb;

    --bcdf-heading: #072a73;
    --bcdf-muted: #6b7280;

    --bcdf-primary: #0b63ce;
    --bcdf-primary-strong: #0a4aff;
    --bcdf-primary-soft: #e0ecff;
    --bcdf-primary-alt: #4f46e5;
    --bcdf-accent: #22c55e;
    --bcdf-accent-soft: #bbf7d0;

    --bcdf-hero-from: #eef2ff;
    --bcdf-hero-to: #ffffff;

    --bcdf-navbar-from: #0b63ce;
    --bcdf-navbar-to: #4f46e5;

    --bcdf-cta-from: #0b63ce;
    --bcdf-cta-to: #14b8a6;

    --bcdf-footer-bg: #f7f9ff;
    --bcdf-footer-text: #111827;
}

[data-theme="dark"] {
    --bcdf-bg: #020617;
    --bcdf-text: #e5e7eb;
    --bcdf-surface: #020617;
    --bcdf-surface-soft: #05081a;
    --bcdf-border-subtle: #1f2937;

    --bcdf-heading: #e5e7eb;
    --bcdf-muted: #9ca3af;

    --bcdf-primary: #1d4ed8;
    --bcdf-primary-strong: #2563eb;
    --bcdf-primary-soft: #1e293b;
    --bcdf-primary-alt: #4f46e5;
    --bcdf-accent: #22c55e;
    --bcdf-accent-soft: #22c55e;

    --bcdf-hero-from: #020617;
    --bcdf-hero-to: #020617;

    --bcdf-navbar-from: #020617;
    --bcdf-navbar-to: #0b1120;

    --bcdf-cta-from: #1d4ed8;
    --bcdf-cta-to: #0f766e;

    --bcdf-footer-bg: #020617;
    --bcdf-footer-text: #e5e7eb;
}

/* HERO DARK MODE – gradient navy + aksen biru */
[data-theme="dark"] .hero {
    background:
        radial-gradient(130% 200% at 0% 0%, rgba(59, 130, 246, 0.45) 0, rgba(15, 23, 42, 0) 45%),
        linear-gradient(180deg, var(--bcdf-hero-from), var(--bcdf-hero-to));
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .section-title {
    color: #e5e7eb;
}

[data-theme="dark"] .hero p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .small,
[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

/* LAYER SECTION DARK MODE */
[data-theme="dark"] .py-section {
    background:
        radial-gradient(160% 260% at 0% 0%, rgba(37, 99, 235, 0.24) 0, rgba(15, 23, 42, 0) 40%),
        linear-gradient(180deg, #020617 0, #020617 100%);
}

[data-theme="dark"] .py-section.bg-light {
    background:
        radial-gradient(140% 260% at 100% 0%, rgba(30, 64, 175, 0.35) 0, rgba(15, 23, 42, 0) 45%),
        linear-gradient(180deg, #020617 0, #020617 100%) !important;
}

/* CARD DARK MODE */
[data-theme="dark"] .card {
    background-image: linear-gradient(150deg,
            #020617,
            #020617 40%,
            #020617,
            #020617) !important;
    border-color: var(--bcdf-border-subtle) !important;
    color: var(--bcdf-text);
}

[data-theme="dark"] .card .display-6 {
    color: #e5e7eb;
}

/* BOX MITRA (bg-light + border) DARK MODE */
[data-theme="dark"] .bg-light.border,
[data-theme="dark"] .bg-light.rounded-3 {
    background-color: #020617 !important;
}

[data-theme="dark"] .border {
    border-color: var(--bcdf-border-subtle) !important;
}

/* NAVBAR DARK MODE */
[data-theme="dark"] .navbar {
    background-image: linear-gradient(90deg,
            var(--bcdf-navbar-from),
            var(--bcdf-navbar-to)) !important;
    border-bottom: 1px solid #1f2937;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .navbar .nav-link {
    color: #e5e7eb !important;
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link.active {
    color: #93c5fd !important;
}

/* TOMBOL NAVBAR DARK MODE */
[data-theme="dark"] .navbar .btn-light {
    background-color: #1d4ed8 !important;
    color: #f9fafb !important;
    border: none !important;
}

[data-theme="dark"] .navbar .btn-light:hover {
    background-color: #2563eb !important;
    color: #f9fafb !important;
}

[data-theme="dark"] .navbar .navbar-auth-btn,
[data-theme="dark"] #themeToggle {
    border-color: #374151 !important;
    color: #e5e7eb !important;
    background-color: #020617 !important;
}

[data-theme="dark"] .navbar .navbar-auth-btn:hover,
[data-theme="dark"] .navbar .navbar-auth-btn:focus,
[data-theme="dark"] #themeToggle:hover,
[data-theme="dark"] #themeToggle:focus {
    background-color: #e5e7eb !important;
    color: #0b63ce !important;
    border-color: #e5e7eb !important;
}

/* CTA BIRU DARK MODE */
[data-theme="dark"] .bg-primary.text-white {
    background-image: linear-gradient(135deg,
            var(--bcdf-cta-from),
            var(--bcdf-cta-to)) !important;
}

[data-theme="dark"] .bg-primary.text-white h2,
[data-theme="dark"] .bg-primary.text-white p {
    color: #e5e7eb;
}

/* FOOTER DARK MODE */
[data-theme="dark"] .footer {
    background: linear-gradient(180deg, var(--bcdf-footer-bg), #020617);
    color: var(--bcdf-footer-text);
}

[data-theme="dark"] .footer a {
    color: #93c5fd;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #1f2937;
    color: #6b7280;
}

[data-theme="dark"] .footer .footer-logo {
    color: #f9fafb;
}

[data-theme="dark"] .footer h5 {
    color: #e5e7eb;
}

/* TEXT CENTER UTILITY */
.hero .text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------
   BCDF.id – Styling lembut untuk kisah / testimoni
---------------------------------------------------- */

.section-stories .card {
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background-image: linear-gradient(145deg,
            var(--bcdf-surface),
            var(--bcdf-surface-soft));
}

.section-stories .card-body {
    position: relative;
    padding: 24px 28px 20px;
}

/* tanda kutip dekoratif di background */
.section-stories .card-body::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 40px;
    line-height: 1;
    color: rgba(148, 163, 184, 0.45);
    pointer-events: none;
}

/* teks kutipan sedikit geser biar nggak ketumpuk icon */
.section-stories .fst-italic {
    display: block;
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 12px;
}

.section-stories .small.text-muted {
    padding-left: 12px;
    font-weight: 500;
}

/* ----------------------------------------------------
   BCDF.id – Hero illustration
---------------------------------------------------- */

.hero-illustration-img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    object-fit: cover;
}

/* Biar rasio fotonya konsisten (lebih lebar daripada tinggi) */
.hero-illustration {
    overflow: hidden;
    border-radius: 20px;
}

/* Di layar kecil, kasih sedikit jarak dari teks atas/bawah */
@media (max-width: 768px) {
    .hero-illustration {
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }
}


/* dark mode penyesuaian halus */
[data-theme="dark"] .section-stories .card {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .section-stories .card-body::before {
    color: rgba(148, 163, 184, 0.6);
}

/* 1. Matikan gradient terang di <body> ketika dark mode */
[data-theme="dark"] body {
    background-color: var(--bcdf-bg);
    background-image: none;
}

/* 2. Paksa semua section standar jadi gelap di dark mode
      (mengalahkan .py-section:not(.bg-light):not(.bg-primary)) */
[data-theme="dark"] .py-section:not(.bg-light):not(.bg-primary) {
    background:
        radial-gradient(160% 260% at 0% 0%, rgba(37, 99, 235, 0.24) 0, rgba(15, 23, 42, 0) 40%),
        linear-gradient(180deg, #020617 0, #020617 100%) !important;
}

/* 3. Sekalian buat section yg pakai .bg-light tetap gelap & lembut */
[data-theme="dark"] .py-section.bg-light {
    background:
        radial-gradient(140% 260% at 100% 0%, rgba(30, 64, 175, 0.35) 0, rgba(15, 23, 42, 0) 45%),
        linear-gradient(180deg, #020617 0, #020617 100%) !important;
}

.program-header-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .program-header-img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .program-header-img {
        height: 180px;
    }
}
.hero-landing .hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-full-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .hero-full-image {
        height: 260px;
    }
}
/* -------------------------------------------
   HERO RELAWAN – ukuran teks & mobile
------------------------------------------- */

.hero-relawan h1 {
    font-size: 2.4rem;
    line-height: 1.2;
}

.hero-relawan p {
    max-width: 650px;
}

/* Mobile: layar <= 768px */
@media (max-width: 768px) {
    .hero-relawan {
        padding: 72px 0 40px;
    }

    .hero-relawan h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-relawan p {
        font-size: 0.96rem;
    }

    .hero-relawan .d-flex.gap-2 {
        flex-direction: column;
    }

    .hero-relawan .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }
    .berita-highlight {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* Extra small (<= 576px) – biar nggak “kebesaran” di HP kecil */
@media (max-width: 576px) {
    .hero-relawan h1 {
        font-size: 1.6rem;
    }
    .hero.hero-landing .section-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }
}

.theme-toggle-floating {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    background: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.theme-toggle-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

body.dark-mode .theme-toggle-floating {
    background: #1f2933;
    color: #f9fafb;
}
