/* =============================================================
   POTENSI PUBLIK CSS v2.0 - Desa Bendungan
   ============================================================= */

/* ── Container ────────────────────────────────────────────── */
.potensi-container {
    width: 100%;
    margin: 0;
    padding: 0 0 0 0;
}


/* ── Hero Sections ────────────────────────────────────────── */
.potensi-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.potensi-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7);
}

.potensi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px;
    color: #ffffff;
}

.potensi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.9);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: fit-content;
}

.potensi-hero-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.25;
    color: #ffffff;
}

.potensi-hero-sub {
    font-size: 14px;
    color: #e2e8f0;
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
}

/* ── Section Header ───────────────────────────────────────── */
.potensi-sec-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.potensi-sec-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 12px 0;
}

.potensi-sec-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ── 3 Big Feature Cards (Landing Main) ───────────────────── */
.potensi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.potensi-card-big {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.potensi-card-big:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: var(--accent, #f97316);
}

.potensi-card-big-imgwrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.potensi-card-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.potensi-card-big:hover .potensi-card-big-img {
    transform: scale(1.05);
}

.potensi-card-big-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.potensi-card-big-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 10px 0;
}

.potensi-card-big-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px 0;
    flex: 1;
}

.potensi-btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dark, #0f172a);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    width: fit-content;
}

.potensi-btn-arrow:hover {
    background: var(--accent, #ea580c);
    color: #ffffff;
    transform: translateX(4px);
}

/* ── 4 Exploration Cards (Garam Sub-menu) ─────────────────── */
.explora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.explora-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.explora-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: var(--accent, #f97316);
}

.explora-imgwrap {
    height: 170px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.explora-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.explora-card:hover .explora-img {
    transform: scale(1.06);
}

.explora-body {
    padding: 20px;
}

.explora-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 8px 0;
}

.explora-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.explora-btn {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent, #f97316);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.explora-btn:hover {
    color: var(--primary-dark, #0f172a);
}

/* ── Timeline Musim (Kemarau vs Hujan) ────────────────────── */
.season-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 48px;
}

.season-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 24px;
}

.season-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.season-card.kemarau {
    border-top: 4px solid #f97316;
}

.season-card.hujan {
    border-top: 4px solid #0284c7;
}

.season-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.season-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.season-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.season-arrow-divider {
    color: #94a3b8;
    font-size: 20px;
    text-align: center;
}

/* ── 6-Tahap Proses Garam (Zig-zag / Numbered Timeline) ───── */
.proses-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.proses-item {
    display: flex;
    align-items: center;
    gap: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.proses-item:nth-child(even) {
    flex-direction: row-reverse;
}

.proses-imgwrap {
    width: 340px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.proses-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proses-content {
    flex: 1;
}

/* ── Garam Sub-Navigation Tab Bar ─────────────────────────── */
.garam-subnav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 6px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}
.garam-subnav-bar::-webkit-scrollbar {
    display: none;
}

.garam-subnav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.garam-subnav-item:hover {
    color: var(--primary-dark, #0f172a);
    background: #f1f5f9;
}

.garam-subnav-item.active {
    background: var(--primary-dark, #0f172a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.proses-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent, #ea580c);
    color: #ffffff;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.proses-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.proses-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 20px 24px;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
}

/* ── UMKM Grid Cards ──────────────────────────────────────── */
.umkm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.umkm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.umkm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.umkm-imgwrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.umkm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.umkm-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.umkm-name {
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.umkm-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.umkm-section-sm {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #334155;
}

.umkm-section-sm strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.umkm-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.umkm-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.umkm-contact-btn:hover {
    background: #128c7e;
    color: #ffffff;
}

/* ── UMKM HERO PROMOTIONAL BANNER ── */
.umkm-hero-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 44px 48px;
    color: #ffffff;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
}

.umkm-hero-box::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0) 70%);
    pointer-events: none;
}

.umkm-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #f97316;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.umkm-hero-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.umkm-hero-desc {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 860px;
    margin: 0 0 24px 0;
}

.umkm-hero-icons-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.umkm-hero-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
}

.umkm-hero-icon-item i {
    color: var(--accent, #f97316);
    font-size: 15px;
}

/* ── STATISTIK SINGKAT UMKM ── */
.umkm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.umkm-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.umkm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.umkm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--accent, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid #ffedd5;
}

.umkm-stat-val {
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 2px 0;
    line-height: 1.1;
}

.umkm-stat-lbl {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* ── BADGE INFORMASIONAL & CHIPS PRODUK ── */
.umkm-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--primary-dark, #0f172a);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
}

/* ── DUAL ACTION BUTTONS ── */
.umkm-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.umkm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #25d366;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    border: none;
}

.umkm-btn-primary:hover {
    background: #128c7e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.35);
}

.umkm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f1f5f9;
    color: #334155;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}

.umkm-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* ── BAGIAN DUKUNGAN DESA ── */
.umkm-support-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px 40px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.support-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px auto;
}

.support-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 12px 0;
}

.support-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.support-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.support-card:hover {
    transform: translateY(-3px);
}

.support-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--accent, #f97316);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    border: 1px solid #ffedd5;
}

.support-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 8px 0;
}

.support-card-text {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── BOTTOM CTA BOX (SELARAS CLEAN DESAIN DESA) ── */
.umkm-cta-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
    color: var(--primary-dark, #0f172a);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}

.cta-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--primary-dark, #0f172a);
}

.cta-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto 28px auto;
    line-height: 1.75;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent, #f97316);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.cta-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

/* ── Responsive Adjustments ───────────────────────────────── */
@media (max-width: 992px) {
    .proses-item,
    .proses-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    .proses-imgwrap {
        width: 100%;
        height: 220px;
    }
    .season-timeline {
        grid-template-columns: 1fr;
    }
    .season-arrow-divider {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .potensi-hero-img {
        height: 280px;
    }
    .potensi-hero-overlay {
        padding: 24px;
    }
    .potensi-hero-title {
        font-size: 26px;
    }
}

/* ── Modern Minimalist Lightbox Modal (Unsplash / Google Photos Style) ── */
.potensi-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999 !important;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.potensi-lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.potensi-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    margin: auto;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    transform: scale(0.93);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    cursor: pointer;
}

.potensi-lightbox-modal.is-open .potensi-lightbox-inner {
    transform: scale(1);
    opacity: 1;
}

.potensi-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 10px 25px -10px rgba(0, 0, 0, 0.5);
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.potensi-lightbox-caption {
    width: auto;
    max-width: 85vw;
    background: transparent !important;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    padding: 0;
    margin: 16px 0 0 0;
    text-align: center;
    box-sizing: border-box;
    font-style: normal;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2px;
    cursor: pointer;
}

.potensi-lightbox-close {
    display: none !important;
}

/* ── Premium Gallery Lightbox (pg-*) ─────────────────────── */
#pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3,7,18,0.93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#pg-lightbox.pg-open { opacity: 1; }
#pg-lb-img {
    max-width: min(90vw, 960px);
    max-height: 76vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    transition: opacity 0.22s ease, transform 0.22s ease;
    display: block;
}
#pg-lb-img.pg-loading { opacity: 0; transform: scale(0.96); }
.pg-close {
    position: fixed; top: 20px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%; color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.pg-close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.pg-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%; color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); z-index: 2;
    transition: background 0.2s, transform 0.25s;
}
.pg-nav:hover { background: rgba(255,255,255,0.22); }
#pg-prev { left: 20px; }
#pg-prev:hover { transform: translateY(-50%) translateX(-3px); }
#pg-next { right: 20px; }
#pg-next:hover { transform: translateY(-50%) translateX(3px); }
.pg-footer { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pg-caption { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; text-align: center; max-width: 600px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.pg-counter { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.pg-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 320px; }
.pg-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.pg-dot.active { background: #fff; transform: scale(1.4); }
@media (max-width: 640px) {
    .pg-nav { width: 38px; height: 38px; font-size: 14px; }
    #pg-prev { left: 10px; }
    #pg-next { right: 10px; }
    .pg-close { top: 14px; right: 14px; }
}

/* =============================================================
   MOBILE OVERFLOW FIX — Potensi Pages
   Mencegah grid 2-kolom yang menyebabkan horizontal scroll
   pada layar 320px – 640px (smartphone)
   ============================================================= */
@media (max-width: 768px) {

    /* Prevent any horizontal overflow on the page */
    .potensi-container,
    .potensi-container * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* All 2-column content grids → stack to single column */
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(320px"],
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"],
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"],
    .potensi-container div[style*="repeat(auto-fit, minmax(320px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Smaller stat grids (220px min) → 2 columns instead of 3 */
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"],
    .potensi-container div[style*="repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* Reduce inner padding on content cards */
    .potensi-container div[style*="padding: 36px"] {
        padding: 20px 16px !important;
    }
    .potensi-container div[style*="padding: 32px"] {
        padding: 18px 14px !important;
    }

    /* Fix hero image height on mobile */
    .potensi-container img[style*="height: 340px"],
    .potensi-container img[style*="height: 380px"] {
        height: 220px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Fix tahapan/step grid */
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(260px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Stat info boxes — limit text overflow */
    .potensi-container h4[style*="font-size: 15px"] {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* Gap 40px → 20px on mobile */
    .potensi-container div[style*="gap: 40px"] {
        gap: 20px !important;
    }
    .potensi-container div[style*="gap: 48px"] {
        gap: 20px !important;
    }

    /* Margin bottom reductions */
    .potensi-container div[style*="margin-bottom: 48px"] {
        margin-bottom: 28px !important;
    }
    .potensi-container div[style*="margin-bottom: 40px"] {
        margin-bottom: 24px !important;
    }
}

/* Extra small phones — 375px and below */
@media (max-width: 400px) {
    /* Stat cards 2-col → 1-col on tiny screens */
    .potensi-container div[style*="repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Section title size reduction */
    .potensi-container .section-title {
        font-size: 20px !important;
    }
    .potensi-container h2[style*="font-size: 20px"] {
        font-size: 17px !important;
    }
    .potensi-container h2[style*="font-size: 24px"] {
        font-size: 18px !important;
    }
}

/* Universal Mobile Overflow Safety Guard for Potensi Pages */
@media (max-width: 768px) {
    .potensi-container {
        overflow-x: hidden !important;
    }
    .potensi-container div[style*="grid-template-columns: repeat(auto-fit, minmax(3"],
    .potensi-container div[style*="grid-template-columns: repeat(auto-fill, minmax(3"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Mobile Compact Potensi Cards Refactor */
    .potensi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .potensi-card {
        border-radius: 12px !important;
    }
    .potensi-card-img {
        height: 130px !important;
    }
    .potensi-card-body {
        padding: 10px 10px !important;
    }
    .potensi-card-title {
        font-size: 13.5px !important;
        margin-bottom: 4px !important;
    }
}

/* ==========================================================================
   STRICT MOBILE GALLERY REFINEMENT (SINGLE COLUMN 16:9 FULL WIDTH)
   ========================================================================== */

@media (max-width: 768px) {
    .modern-gallery-grid,
    .galeri-grid,
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .modern-gallery-item,
    .galeri-item,
    .gallery-item {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        min-height: 200px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }

    .modern-gallery-img,
    .galeri-img,
    .gallery-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 16 / 9 !important;
    }

    .modern-gallery-content,
    .galeri-content,
    .gallery-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        padding: 16px !important;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0) 100%) !important;
        z-index: 5 !important;
        box-sizing: border-box !important;
    }

    .modern-gallery-caption,
    .galeri-caption,
    .gallery-caption {
        color: #ffffff !important;
        font-family: var(--font-heading, sans-serif) !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.45 !important;
        margin: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

