/* ============================
   BASE & TYPOGRAPHY
============================ */
:root {
    --color-success: #198754;
    --color-success-light: rgba(25, 135, 84, 0.1);
    --color-warning: #d97706;
    --transition-base: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-manrope {
    font-family: 'Manrope', sans-serif;
}

/* ============================
   NAVBAR
============================ */
.navbar-main {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

/* Transparent state — at top of page */
.navbar-main.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}

/* Scrolled state — white with blur */
.navbar-main.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Nav link colors when transparent (on hero) */
.navbar-transparent .nav-link,
.navbar-transparent .navbar-brand {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.navbar-transparent .nav-link:hover {
    color: #6ee7b7 !important;
}

.navbar-transparent .material-symbols-outlined.text-success {
    color: #6ee7b7 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.navbar-transparent .navbar-brand .material-symbols-outlined {
    color: #6ee7b7 !important;
}

/* Nav link colors when scrolled (normal) */
.navbar-scrolled .nav-link {
    text-shadow: none;
}

.navbar-scrolled .navbar-brand {
    color: var(--color-success) !important;
    text-shadow: none;
}

.navbar-main .nav-link {
    position: relative;
    transition: color var(--transition-base);
}

.navbar-main .nav-link:hover {
    color: var(--color-success) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================
   HERO
============================ */
.hero-section {
    min-height: 90vh;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
}

/* Hero text - kontras tinggi di atas gambar gelap */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-badge .material-symbols-outlined {
    color: #6ee7b7;
}

.hero-title {
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #f0fdf4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    font-weight: 500;
}

/* ============================
   STAT CARDS
============================ */
.stat-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Glassmorphism stat cards (Luas Wilayah & Berdiri Sejak) */
.stat-card-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.stat-card-green {
    background: rgba(16, 100, 60, 0.72);
    border-color: rgba(110, 231, 183, 0.4);
}

.stat-card-amber {
    background: rgba(120, 60, 0, 0.72);
    border-color: rgba(251, 191, 36, 0.4);
}

/* ============================
   SECTION DUSUN - FLIP CARD
============================ */
.dusun-flip-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
    outline: none;
    border-radius: 16px;
}

.dusun-flip-card:focus-visible .dusun-flip-inner {
    box-shadow: 0 0 0 3px var(--color-success);
    border-radius: 16px;
}

.dusun-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
}

.dusun-flip-card:hover .dusun-flip-inner,
.dusun-flip-card.flipped .dusun-flip-inner {
    transform: rotateY(180deg);
}

.dusun-flip-front,
.dusun-flip-back {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* FRONT */
.dusun-flip-front {
    background: #fff;
    border: 1.5px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.dusun-flip-front:hover {
    box-shadow: 0 8px 32px rgba(25, 135, 84, 0.12);
}

.dusun-flip-icon {
    width: 50px;
    height: 50px;
    background: var(--color-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
    color: var(--color-success);
}

.dfc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-success);
    margin-bottom: 2px;
}

.dfc-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.25;
}

.dfc-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
    flex: 1;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dfc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.dfc-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-success);
    background: var(--color-success-light);
    border-radius: 50px;
    padding: 2px 8px;
}

.dfc-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #adb5bd;
    font-weight: 600;
    margin-top: auto;
}

/* BACK */
.dusun-flip-back {
    background: linear-gradient(135deg, #0f5132 0%, #198754 55%, #146c43 100%);
    transform: rotateY(180deg);
    padding: 18px;
    gap: 2px;
}

.dusun-flip-back .dfc-title {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.dfc-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

.dfc-detail-item:last-child {
    border-bottom: none;
}

.dfc-detail-icon {
    font-size: 16px;
    color: #6ee7b7;
    flex-shrink: 0;
    margin-top: 1px;
}

.dfc-detail-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    line-height: 1.2;
}

.dfc-detail-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.3;
}

/* Keep old badge style for other uses */
.dusun-badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* ============================
   PREMIUM BUTTONS
============================ */
.btn-dusun-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #198754 0%, #0d6e45 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35), 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255,255,255,0.15);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-dusun-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-dusun-detail:hover {
    background: linear-gradient(135deg, #0d6e45 0%, #0a5c3a 100%);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.45), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

.btn-dusun-detail:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.35);
}

.btn-dusun-detail .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.btn-dusun-detail:hover .material-symbols-outlined {
    transform: translateX(2px);
}

/* Struktur Pemerintahan Button */
.btn-struktur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #0f5132 0%, #198754 50%, #1a9c62 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4), 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-struktur::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.btn-struktur:hover {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(25, 135, 84, 0.5), 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

.btn-struktur:active {
    transform: translateY(-1px);
}

.btn-struktur .material-symbols-outlined {
    font-size: 18px;
}

/* ============================
   MOBILE DUSUN SUBMENU
============================ */
.mobile-dusun-toggle {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.mobile-dusun-submenu .sub-link {
    border-radius: 8px;
    padding: 6px 10px !important;
    transition: background 0.2s;
}

.mobile-dusun-submenu .sub-link:hover {
    background: rgba(25, 135, 84, 0.08);
}

/* ============================
   NAV CUSTOM DROPDOWN
============================ */
.nav-custom-dropdown {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 8px 0;
    margin-top: 8px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-custom-dropdown .dropdown-item {
    transition: background 0.18s, color 0.18s;
    border-radius: 8px;
    margin: 1px 6px;
    padding: 8px 12px !important;
}

.nav-custom-dropdown .dropdown-item:hover {
    background: rgba(25, 135, 84, 0.09);
    color: #198754;
}

/* ============================
   SUB-PAGE SHARED STYLES
============================ */
.subpage-hero {
    min-height: 38vh;
    display: flex;
    align-items: flex-end;
    padding-top: 90px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.subpage-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.subpage-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 60, 35, 0.85) 0%, rgba(25, 135, 84, 0.65) 100%);
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

.subpage-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.subpage-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.subpage-breadcrumb a:hover {
    color: #fff;
}

/* Info Card */
.info-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

/* Avatar inisial kepala dusun */
.kasun-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    flex-shrink: 0;
}

/* Fasilitas card */
.fasilitas-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1.5px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.fasilitas-card:hover {
    border-color: rgba(25, 135, 84, 0.3);
    box-shadow: 0 8px 28px rgba(25, 135, 84, 0.12);
    transform: translateY(-3px);
}

.fasilitas-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Chart container */
.chart-container {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

/* Stat badge row */
.stat-badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
}

.stat-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Back to home button */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 1rem;
}

.btn-back-home:hover {
    background: rgba(255,255,255,0.25);
    color: #fff !important;
    transform: translateX(-3px);
}

/* Dusun nav pills */
.dusun-nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.dusun-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.dusun-nav-pill:hover,
.dusun-nav-pill.active {
    background: rgba(255,255,255,0.25);
    color: #fff !important;
    border-color: rgba(255,255,255,0.5);
}

/* Infografis chart section */
.chart-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}

.chart-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.chart-card-subtitle {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 24px;
}

/* Struktur org */
.org-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.org-box {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(25,135,84,0.3);
    min-width: 200px;
    position: relative;
}

.org-box-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #198754;
    box-shadow: 0 2px 12px rgba(25,135,84,0.12);
}

.org-box-tertiary {
    background: #f0fdf4;
    color: #0f5132;
    border: 1.5px solid rgba(25,135,84,0.25);
    box-shadow: 0 2px 8px rgba(25,135,84,0.08);
}

.org-connector {
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, #198754, rgba(25,135,84,0.3));
    margin: 0 auto;
}

.org-connector-h {
    height: 2px;
    background: rgba(25,135,84,0.3);
    flex: 1;
}

/* ============================
   SECTION TRADISI
============================ */
.tradisi-card {
    border-radius: 16px;
    border-left: 4px solid var(--color-success) !important;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tradisi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(25, 135, 84, 0.15) !important;
}

.tradisi-month {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--color-success);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================
   SECTION KONTAK & PETA
============================ */
#kontak .map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

#kontak .map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--color-success-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================
   FLOATING BUTTONS
============================ */
.floating-buttons {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1050;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fab-scroll-top {
    background: var(--color-success);
    color: #fff;
    opacity: 0;
    pointer-events: none;
}

.fab-scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.fab-wa {
    background: #25D366;
    color: #fff;
}

/* ============================
   RESPONSIVE TWEAKS
============================ */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding-top: 5rem;
    }

    .floating-buttons {
        bottom: 20px;
        right: 16px;
    }

    .fab-btn {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767.98px) {
    #kontak .map-wrapper iframe {
        height: 280px;
    }
}

/* Section divider */
.section-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ============================
   SECTION GALERI
============================ */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 12px;
}

.galeri-wide {
    grid-column: span 2;
}

.galeri-tall {
    grid-row: span 2;
    grid-column: 3;
    grid-row-start: 1;
}

.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    background: #e9ecef;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    display: block;
}

.galeri-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.75);
}

.galeri-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #fff;
    text-align: center;
    gap: 4px;
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-overlay .material-symbols-outlined,
.galeri-overlay .overlay-icon {
    font-size: 28px;
    color: #6ee7b7;
}

.galeri-overlay span:last-child {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767.98px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .galeri-wide {
        grid-column: span 2;
        height: 180px;
    }

    .galeri-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .galeri-item {
        height: 140px;
    }

    .galeri-wide {
        height: 180px;
    }

    /* Flip card: make touch-friendly */
    .dusun-flip-card {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .galeri-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .galeri-wide,
    .galeri-tall,
    .galeri-item {
        grid-column: auto;
        height: 180px;
    }

    .dusun-flip-card {
        height: 300px;
    }

    /* Responsive Typography & Hero Adjustments */
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.8rem; }
    
    .stat-card .fs-5 {
        font-size: 1rem !important;
    }
}