/* ============================================
   UMKM Dusun Kemesu - Custom CSS
   Tema: Hijau Alami, Produk UMKM Lokal
   Dark Mode + Responsive
   ============================================ */

/* ---- Root Variables (Light Mode Default) ---- */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-lighter: #81C784;
    --primary-bg: #E8F5E9;
    --accent: #FFB300;
    --accent-light: #FFD54F;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-bg: #f8faf8;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dark mode switchable tokens */
    --body-bg: #ffffff;
    --body-color: #333333;
    --card-bg: #ffffff;
    --card-border: transparent;
    --section-alt-bg: #f8f9fa;
    --heading-color: #1a1a2e;
    --muted-color: #6c757d;
    --border-color: #eeeeee;
    --input-bg: #ffffff;
    --input-border: #dee2e6;
    --input-color: #333333;
    --footer-bg: #1B5E20;
    --footer-wave-fill: #1B5E20;
    --footer-text: rgba(255,255,255,0.8);
    --page-header-clip-bg: #ffffff;
    --navbar-scrolled-bg: rgba(27, 94, 32, 0.95);
    --overlay-bg: rgba(0,0,0,0.08);
    --code-bg: #f8f9fa;
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
    --body-bg: #121212;
    --body-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --card-border: rgba(255,255,255,0.06);
    --section-alt-bg: #1a1a1a;
    --heading-color: #f0f0f0;
    --muted-color: #9e9e9e;
    --border-color: #2c2c2c;
    --input-bg: #2a2a2a;
    --input-border: #3a3a3a;
    --input-color: #e0e0e0;
    --footer-bg: #0a3d0c;
    --footer-wave-fill: #0a3d0c;
    --footer-text: rgba(255,255,255,0.7);
    --page-header-clip-bg: #121212;
    --navbar-scrolled-bg: rgba(18, 18, 18, 0.95);
    --overlay-bg: rgba(255,255,255,0.03);
    --code-bg: #2a2a2a;
    --dark: #f0f0f0;
    --gray: #9e9e9e;
    --white: #1e1e1e;
    --light-bg: #1a1a1a;
    --primary-bg: rgba(46, 125, 50, 0.15);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.5);
}

/* ---- Smooth Theme Transition ---- */
html[data-theme],
html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
    transition: background-color 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

/* ---- Global ---- */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    color: var(--body-color);
    overflow-x: hidden;
    background: var(--body-bg);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Bootstrap Overrides for Dark Mode ---- */
[data-theme="dark"] .bg-light {
    background-color: var(--section-alt-bg) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--muted-color) !important;
}

[data-theme="dark"] .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-light);
    color: var(--input-color);
    box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.2);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--muted-color);
}

[data-theme="dark"] .form-floating > label {
    color: var(--muted-color);
}

[data-theme="dark"] .form-floating > .form-control:focus ~ label,
[data-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-light);
}

[data-theme="dark"] .alert {
    border-color: var(--border-color);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(46, 125, 50, 0.15);
    color: var(--primary-lighter);
    border-color: rgba(46, 125, 50, 0.3);
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(229, 57, 53, 0.15);
    color: #ef9a9a;
    border-color: rgba(229, 57, 53, 0.3);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .btn-outline-success {
    color: var(--primary-lighter);
    border-color: var(--primary-lighter);
}

[data-theme="dark"] .btn-outline-success:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--muted-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--muted-color);
    color: var(--body-color);
}

[data-theme="dark"] hr {
    border-color: var(--border-color);
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--body-color);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.05);
}

/* ---- Navbar ---- */
#mainNavbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

#mainNavbar.scrolled {
    background: var(--navbar-scrolled-bg) !important;
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

[data-theme="dark"] #mainNavbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand i {
    color: var(--accent);
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-left: 0.75rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 179, 0, 0.4);
    background: rgba(255, 179, 0, 0.15);
    color: var(--accent);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

[data-theme="dark"] .btn-hero-primary {
    color: #1a1a2e;
}

.btn-hero-primary:hover {
    background: var(--accent-light);
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,179,0,0.4);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.hero-product-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    color: #fff;
}

.product-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-product-card h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-product-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ---- Section Styles ---- */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 1rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .section-badge {
    color: var(--primary-lighter);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--muted-color);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 8rem 0 3rem;
    color: #fff;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--page-header-clip-bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    opacity: 0.8;
    font-size: 1.1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ---- Product Cards ---- */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--primary-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-lighter);
    background: linear-gradient(135deg, var(--primary-bg), rgba(76,175,80,0.15));
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--muted-color);
    font-size: 0.85rem;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .product-price {
    color: var(--primary-lighter);
}



.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--card-border);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: #fff;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--card-border);
}

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

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--muted-color);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

[data-theme="dark"] .author-avatar {
    color: var(--primary-lighter);
}

.testimonial-author h6 {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

.testimonial-author small {
    color: var(--muted-color);
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 5rem 0;
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--accent);
    color: #1a1a2e;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--accent-light);
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,179,0,0.4);
}

/* ---- About / Profil ---- */
.about-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-card {
    background: var(--primary-bg);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.timeline-mini {
    border-left: 3px solid var(--primary-lighter);
    padding-left: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 1rem;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
}

.timeline-content {
    font-size: 0.9rem;
    color: var(--muted-color);
}

.timeline-content strong {
    color: var(--heading-color);
}

/* Vision Cards */
.vision-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

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

.vision-card h4 {
    color: var(--heading-color);
}

.vision-card p {
    color: var(--muted-color);
}

.vision-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

[data-theme="dark"] .vision-icon {
    color: var(--primary-lighter);
}

.vision-list {
    list-style: none;
    padding: 0;
}

.vision-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--muted-color);
}

/* Advantage Cards */
.advantage-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

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

.advantage-number {
    position: absolute;
    top: -5px;
    right: 15px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(76,175,80,0.08);
    line-height: 1;
}

[data-theme="dark"] .advantage-number {
    color: rgba(76,175,80,0.12);
}

.advantage-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

[data-theme="dark"] .advantage-icon {
    color: var(--primary-lighter);
}

.advantage-card h5 {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.advantage-card p {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Ingredient Cards ---- */
.ingredient-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--card-border);
}

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

.ingredient-image {
    height: 200px;
    overflow: hidden;
    background: var(--primary-bg);
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ingredient-card:hover .ingredient-image img {
    transform: scale(1.1);
}

.ingredient-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-lighter);
}

.ingredient-info {
    padding: 1.5rem;
}

.ingredient-name {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.ingredient-benefit {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Benefits Section */
.benefit-list {
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
}

[data-theme="dark"] .benefit-icon {
    color: var(--primary-lighter);
}

.benefit-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--heading-color);
}

.benefit-item p {
    color: var(--muted-color);
    font-size: 0.85rem;
    margin: 0;
}

.benefit-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.benefit-circle {
    width: 250px;
    height: 250px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Detail Product ---- */
.detail-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-image {
    width: 100%;
    border-radius: var(--radius);
}

.detail-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg), rgba(76,175,80,0.15));
    color: var(--primary-lighter);
    border-radius: var(--radius);
}

.detail-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0.75rem 0;
}

.detail-price-box {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .detail-price {
    color: var(--primary-lighter);
}



.detail-description h5 {
    color: var(--heading-color);
}

.detail-description p {
    color: var(--muted-color);
    line-height: 1.8;
}

.detail-tabs {
    border-bottom: 2px solid var(--border-color);
}

.detail-tabs .nav-link {
    color: var(--muted-color) !important;
    border: none;
    padding: 0.75rem 1.25rem !important;
    font-weight: 500;
    background: transparent !important;
}

.detail-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary);
}

[data-theme="dark"] .detail-tabs .nav-link.active {
    color: var(--primary-lighter) !important;
    border-bottom-color: var(--primary-lighter);
}

.detail-tab-content {
    padding: 1.5rem 0;
}

.detail-tab-content p {
    color: var(--muted-color);
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- Gallery Cards ---- */
.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

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

.gallery-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-lighter);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27,94,32,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    padding: 1rem 1.25rem;
    background: var(--card-bg);
}

.gallery-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
}

/* ---- Contact ---- */
.contact-form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.contact-form-card h4 {
    color: var(--heading-color);
}

.contact-info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.contact-info-card h4,
.contact-info-card h5 {
    color: var(--heading-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.contact-icon.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-icon.email { background: linear-gradient(135deg, #2196F3, #1976D2); }
.contact-icon.address { background: linear-gradient(135deg, #FF5722, #E64A19); }

.contact-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--heading-color);
}

.contact-item p {
    color: var(--muted-color);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

[data-theme="dark"] .contact-item a {
    color: var(--primary-lighter);
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateX(5px);
    color: #fff;
}

.social-btn.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-btn.facebook { background: #1877F2; }
.social-btn.shopee { background: linear-gradient(135deg, #EE4D2D, #FF6633); }

/* ---- Footer ---- */
.footer-section {
    position: relative;
    margin-top: 0;
}

.footer-wave {
    margin-bottom: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-wave svg path {
    transition: fill 0.35s ease;
}

.footer-content {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #1a1a2e;
    transform: translateY(-3px);
}

.footer-content h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(46,125,50,0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- Empty State ---- */
.empty-state {
    padding: 2rem;
}

.empty-state h4,
.empty-state p {
    color: var(--muted-color) !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ---- Large Tablets / Small Desktop (≤992px) ---- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-image-wrapper {
        height: 300px;
        margin-top: 2rem;
    }
    .hero-blob {
        width: 280px;
        height: 280px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 4rem 0;
    }
    .cta-title {
        font-size: 2rem;
    }
    .benefit-circle {
        width: 200px;
        height: 200px;
    }
    .gallery-image {
        height: 200px;
    }
    .detail-placeholder {
        height: 300px;
    }
}

/* ---- Tablets (≤768px) ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn,
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-subtitle {
        font-size: 1rem;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions .btn {
        width: 100%;
    }
    .detail-title {
        font-size: 1.6rem;
    }
    .detail-price {
        font-size: 1.4rem;
    }
    .detail-price-box {
        flex-direction: column;
        text-align: center;
    }
    .page-header {
        padding: 7rem 0 2.5rem;
    }
    .page-title {
        font-size: 1.75rem;
    }
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .advantage-card {
        padding: 1.5rem;
    }
    .vision-card {
        padding: 1.5rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .footer-content {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-brand {
        text-align: center;
    }

    /* Theme toggle responsive */
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.6rem 1rem !important;
        margin: 2px 0;
    }

    .navbar-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }

    .benefit-illustration {
        margin-top: 2rem;
    }

    .benefit-circle {
        width: 180px;
        height: 180px;
    }

    .about-image-card {
        padding: 2rem;
    }

    .gallery-image {
        height: 200px;
    }
}

/* ---- Mobile (≤576px) ---- */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-number {
        font-size: 1.25rem;
    }
    .hero-image-wrapper {
        height: 220px;
    }
    .hero-blob {
        width: 200px;
        height: 200px;
    }
    .hero-product-card {
        padding: 2rem;
        border-radius: 18px;
    }
    .product-icon-large {
        font-size: 3rem;
    }
    .page-header {
        padding: 7rem 0 2rem;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .page-subtitle {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .section-padding {
        padding: 2.5rem 0;
    }
    .product-info {
        padding: 1.25rem;
    }
    .product-name {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
    .product-actions {
        flex-direction: column;
    }
    .cta-title {
        font-size: 1.5rem;
    }
    .cta-subtitle {
        font-size: 0.9rem;
    }
    .btn-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .footer-wave svg {
        height: 50px;
    }
    .detail-placeholder {
        height: 250px;
    }
    .detail-title {
        font-size: 1.4rem;
    }
    .advantage-number {
        font-size: 3rem;
    }
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .social-links-contact {
        align-items: center;
    }
    .social-btn {
        width: 100%;
        justify-content: center;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .gallery-image {
        height: 180px;
    }

    .benefit-circle {
        width: 150px;
        height: 150px;
    }

    .timeline-mini {
        margin-left: 0.5rem;
    }
}

/* ============================================
   UMKM KEMESU - Additional Styles
   ============================================ */

/* ---- Kategori Cards ---- */
.kategori-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
    text-align: center;
    color: var(--heading-color);
}

.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    color: var(--primary);
}

[data-theme="dark"] .kategori-card:hover {
    color: var(--primary-lighter);
}

.kategori-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

[data-theme="dark"] .kategori-icon {
    color: var(--primary-lighter);
}

.kategori-card:hover .kategori-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.kategori-card h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.kategori-card small {
    color: var(--muted-color);
    font-size: 0.8rem;
}

/* ---- Katalog Search ---- */
.katalog-search-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.katalog-search-form .input-group-text {
    background: transparent;
    border-right: none;
    color: var(--muted-color);
    border-color: var(--input-border);
    background-color: var(--input-bg);
}

.katalog-search-form .form-control {
    border-left: none;
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-color);
}

.katalog-search-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: none;
}

.katalog-search-form .form-control:focus + .input-group-text,
.katalog-search-form .form-control:focus ~ .input-group-text {
    border-color: var(--primary-light);
}

/* ---- Filter Pills ---- */
.btn-filter {
    background: var(--card-bg);
    color: var(--body-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-filter:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="dark"] .btn-filter {
    background: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-filter:hover {
    color: var(--primary-lighter);
    border-color: var(--primary-lighter);
}

[data-theme="dark"] .btn-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Product UMKM Name ---- */
.product-umkm {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .product-umkm {
    color: var(--primary-lighter);
}

/* ---- Product Category Badge ---- */
.product-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-category-badge .badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
}

/* ---- Marketplace Buttons ---- */
.btn-marketplace {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    color: #fff;
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-marketplace:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.btn-shopee {
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
}

.btn-shopee:hover {
    background: linear-gradient(135deg, #FF6633, #EE4D2D);
}

.btn-tokopedia {
    background: linear-gradient(135deg, #42b549, #2e8b36);
}

.btn-tokopedia:hover {
    background: linear-gradient(135deg, #2e8b36, #42b549);
}

.btn-tiktok {
    background: linear-gradient(135deg, #010101, #333333);
}

.btn-tiktok:hover {
    background: linear-gradient(135deg, #333333, #010101);
}

/* ---- Seller Info Card ---- */
.detail-seller h6 {
    color: var(--heading-color);
    font-weight: 600;
}

.seller-info-card {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
}

.seller-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.seller-row:last-child {
    border-bottom: none;
}

.seller-label {
    color: var(--muted-color);
    font-weight: 500;
}

.seller-value {
    color: var(--heading-color);
    font-weight: 600;
}

/* ---- Detail Description ---- */
.detail-description h6 {
    color: var(--heading-color);
    font-weight: 600;
}

.detail-actions h6 {
    color: var(--heading-color);
}

/* ---- Image Gallery Thumbnails ---- */
.detail-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.05);
}

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

/* ---- Existing Image Item (Admin Edit) ---- */
.existing-image-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    background: var(--card-bg);
}

/* ---- Pagination Styles ---- */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--body-color);
    background: var(--card-bg);
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

[data-theme="dark"] .pagination .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--body-color);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---- Responsive for UMKM Components ---- */
@media (max-width: 768px) {
    .kategori-card {
        padding: 1rem 0.75rem;
    }

    .kategori-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .kategori-card h6 {
        font-size: 0.8rem;
    }

    .btn-filter {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .katalog-search-wrapper {
        padding: 1rem;
    }

    .detail-thumbnails {
        gap: 0.35rem;
    }

    .thumb-item {
        width: 55px;
        height: 55px;
    }

    .seller-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .btn-marketplace {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
}

@media (max-width: 576px) {
    .kategori-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .kategori-card h6 {
        font-size: 0.75rem;
    }

    .katalog-filter .d-flex {
        justify-content: flex-start !important;
    }
}

/* ============================================
   PROFIL DESA - MENGENAL DESA SECTION
   ============================================ */

.mengenal-desa-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.mengenal-desa-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mengenal-desa-card .btn-hero-outline {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

.desa-stats-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.desa-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 150px;
}

.desa-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .desa-stat-icon {
    background: rgba(76, 175, 80, 0.15);
}

.desa-stat strong {
    display: block;
    font-size: 0.85rem;
    color: var(--heading-color);
}

.desa-stat small {
    font-size: 0.72rem;
    color: var(--muted-color);
}

/* ============================================
   POTENSI DESA SECTION
   ============================================ */

.potensi-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
}

.potensi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.potensi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.potensi-card:hover::before {
    opacity: 1;
}

.potensi-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.7rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    transition: var(--transition);
}

.potensi-icon-amber {
    background: linear-gradient(135deg, #FF8F00, #FFB74D);
    box-shadow: 0 8px 25px rgba(255, 143, 0, 0.3);
}

.potensi-icon-brown {
    background: linear-gradient(135deg, #795548, #A1887F);
    box-shadow: 0 8px 25px rgba(121, 85, 72, 0.3);
}

.potensi-icon-teal {
    background: linear-gradient(135deg, #00897B, #4DB6AC);
    box-shadow: 0 8px 25px rgba(0, 137, 123, 0.3);
}

.potensi-icon-purple {
    background: linear-gradient(135deg, #7B1FA2, #CE93D8);
    box-shadow: 0 8px 25px rgba(123, 31, 162, 0.3);
}

.potensi-card:hover .potensi-icon {
    transform: scale(1.1) rotate(5deg);
}

.potensi-card h5 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.potensi-card p {
    color: var(--muted-color);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}



/* ============================================
   MAJALAH SECTION
   ============================================ */

.majalah-viewer-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.majalah-pdf-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f0f0f0;
}

[data-theme="dark"] .majalah-pdf-wrapper {
    background: #1a1a1a;
}

.majalah-pdf-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.majalah-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.btn-majalah-fullscreen {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-majalah-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-majalah-download {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-majalah-download:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

.majalah-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.majalah-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-bg), #C8E6C9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
}

[data-theme="dark"] .majalah-empty-icon {
    background: rgba(76, 175, 80, 0.15);
}

.majalah-empty h5 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.majalah-empty p {
    color: var(--muted-color);
    font-size: 0.92rem;
    max-width: 450px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

/* ============================================
   PROFIL DESA BADGE (shared)
   ============================================ */

.profil-desa-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-bg), #C8E6C9);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .profil-desa-badge {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.25), rgba(76, 175, 80, 0.2));
    color: var(--primary-lighter);
}

/* ============================================
   RESPONSIVE - PROFIL DESA SECTIONS
   ============================================ */

@media (max-width: 991px) {
    .desa-stats-row {
        gap: 0.75rem;
    }

    .desa-stat {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .mengenal-desa-card {
        padding: 1.5rem 1rem;
    }

    .desa-stats-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .desa-stat {
        min-width: unset;
    }

    .potensi-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .potensi-card {
        padding: 1.5rem 1.25rem;
    }



    .majalah-pdf-wrapper {
        padding-top: 100%;
    }

    .majalah-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-majalah-fullscreen,
    .btn-majalah-download {
        width: 100%;
        justify-content: center;
    }

    .majalah-empty {
        padding: 2.5rem 1.5rem;
    }

    .majalah-empty-icon {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }
}



