/* ==========================================================================
   1. FONTS IMPORT & DESIGN VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette: Warm, Human, and Trustworthy */
    --primary: #1a535c;         /* Deep Teal (Melambangkan ketulusan & kedamaian) */
    --primary-light: #f0f7f7;   /* Light Teal Accent */
    --accent: #e76f51;          /* Warm Terracotta (Aksen kehangatan & cinta kasih) */
    --accent-hover: #d65d40;
    --bg-warm: #fcfaf6;         /* Soft Ivory/Cream Background (Nyaman di mata) */
    --text-dark: #2f3e46;       /* Charcoal (Bukan hitam pekat agar lebih premium) */
    --text-muted: #6c757d;
    --white: #ffffff;
    
    /* Global Transitions & Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL BASE STYLES
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .navbar-brand span {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--primary);
}

.justify-text {
    text-align: justify;
}

.max-w-600 {
    max-width: 600px;
}

/* Custom Utilities */
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }

/* ==========================================================================
   3. NAVIGATION BAR (MODERN FLOATING STYLE)
   ========================================================================== */
#main-nav {
    background-color: rgba(252, 250, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 83, 92, 0.08);
    padding: 15px 0;
    transition: var(--transition);
}

#main-nav .nav-link {
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

#main-nav .nav-link:hover, 
#main-nav .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   4. HERO SECTION (CLEAN MINIMALIST LIGHT GRADIENT)
   ========================================================================== */
#hero {
    min-height: 85vh;
    /* Kombinasi gradasi abstrak hangat lembut tanpa memerlukan aset gambar eksternal */
    background: radial-gradient(circle at top right, rgba(244,162,97,0.12) 0%, rgba(26,83,92,0.03) 50%, var(--bg-warm) 100%) !important;
    padding: 160px 0 100px 0;
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.5px;
}

#hero .lead {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    opacity: 0.85;
}

@media (max-width: 768px) {
    #hero h1 { font-size: 2.25rem; }
    #hero { min-height: auto; padding: 120px 0 60px 0; }
}

/* ==========================================================================
   5. BUTTONS & UI BADGES
   ========================================================================== */
.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 111, 81, 0.2);
}

.btn-outline-light {
    color: var(--primary);
    border-color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

.badge.bg-warning {
    background-color: rgba(244, 162, 97, 0.15) !important;
    color: var(--accent) !important;
    letter-spacing: 1px;
}

/* ==========================================================================
   6. VISI MISI TABS (SOFT ELEMENT STRUCTURE)
   ========================================================================== */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    border: none !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.nav-tabs .nav-link.active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(26, 83, 92, 0.15);
}

.tab-content {
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 83, 92, 0.05);
}

.border-end-lg {
    border-right: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 991px) {
    .border-end-lg { border-right: none; }
}

/* ==========================================================================
   7. SEJARAH, TIMELINE, & REKAYASA GAMBAR
   ========================================================================== */
.max-w-800 {
    max-width: 800px;
}

.rounded-card-custom {
    border-radius: var(--radius-md) !important;
}

/* Garis bantu vertikal penghubung timeline */
.timeline-container {
    position: relative;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background-color: rgba(26, 83, 92, 0.12);
}

/* Penanda bulat (marker) timeline */
.timeline-marker {
    position: absolute;
    left: 0;
    top: 24px;
    width: 42px;
    height: 42px;
    z-index: 2;
}

.bg-accent {
    background-color: var(--accent) !important;
}

/* Optimasi responsif untuk perangkat layar kecil ponsel */
@media (max-width: 576px) {
    .timeline-container::before {
        left: 15px;
    }
    .timeline-marker {
        width: 32px;
        height: 32px;
        left: 0px;
        top: 28px;
    }
    .timeline-marker i {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   8. MODERN ASYMMETRIC BENTO GRID GALLERY (19 IMAGES)
   ========================================================================== */
.gallery-card {
    position: relative;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    background-color: #eaeaea;
    transition: var(--transition);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Mengatur Variasi Tinggi Gambar secara Asimetris (Efek Bento Mewah) */
.col-lg-4 .gallery-card { height: 280px; }
.col-lg-2 .gallery-card { height: 160px; }
.col-lg-3 .gallery-card { height: 210px; }

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 83, 92, 0.12) !important;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   9. DONATION & BANKING INFO CARDS
   ========================================================================== */
.bg-gradient-donation {
    background: linear-gradient(135deg, var(--primary) 0%, #133c43 100%) !important;
}

.text-white-50 {
    color: rgba(252, 250, 246, 0.7) !important;
}

#donasi h2 {
    color: var(--white) !important;
}

#donasi .card {
    border-radius: var(--radius-md) !important;
    transition: var(--transition);
}

#donasi .card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.bank-logo {
    object-fit: contain;
    filter: grayscale(10%) contrast(110%);
}

.tracking-wide {
    letter-spacing: 0.5px;
}

#donasi .list-group-item {
    border-color: rgba(0,0,0,0.05);
    font-size: 0.95rem;
    padding: 12px 0;
}

/* ==========================================================================
   10. CONTACT AREA & GOOGLE MAP INTERACTION
   ========================================================================== */

/* Target the specific ID where your Google Map initializes */
#map, 
#google-map,
#kontak .map-canvas {
    display: block !important;
    width: 100% !important;
    height: 450px !important; /* Force an explicit layout height */
    position: relative;
    overflow: hidden;
}

#kontak .card {
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(26, 83, 92, 0.05) !important;
    overflow: hidden;
}

/* ==========================================================================
   11. MINIMALIST CLEAN FOOTER AREA
   ========================================================================== */
footer {
    background-color: #111b1d !important; /* Elegant Soft Dark Charcoal Tone */
}

footer h5 {
    color: var(--white) !important;
}

footer hr {
    opacity: 0.1;
}

/* Custom Border Radius helper for Profile Cards */
.rounded-card-custom {
    border-radius: var(--radius-md) !important;
}
/* ==========================================================================
   FIX: Responsive Layout Adjustment for Small Mobile Screens
   ========================================================================== */
@media (max-width: 576px) {
    /* Target the container wrapping your logo, bank text, and copy button */
    #donasi .card .d-flex,
    .donation-bank-card .d-flex, 
    #donasi .list-group-item .d-flex {
        flex-direction: column !important; /* Stack items vertically so they don't crush each other */
        align-items: center !important;    /* Center align everything cleanly */
        text-align: center !important;     /* Center the account details text */
        gap: 12px !important;              /* Add safe vertical spacing between elements */
    }

    /* Target the copy button inside the flex container */
    #donasi .card .btn,
    #donasi .list-group-item .btn,
    .btn-outline-light {
        margin-left: 0 !important;         /* Remove any desktop side-push margins */
        margin-top: 4px !important;        /* Give it a tiny bit of separation from the text */
        width: 100% !important;            /* Make it full-width so it's a clean, thumb-friendly touch target */
        max-width: 200px;                  /* Prevent it from getting too wide or stretched out */
    }

    /* Adjust the bank logo alignment if it's trapped in a layout wrapper */
    .bank-logo {
        margin-bottom: 2px !important;
    }
}