/* ============================================================
   Website Resmi Nagari Magek - Home Page Styles
   ============================================================ */

:root {
    --green-900: #0c3b24;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #15803d;
    --green-500: #22a55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --dark: #111827;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--green-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
}

.section-divider {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--amber-400));
    margin: 12px auto 16px;
}

/* ============ TOP BAR ============ */
.topbar {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 6px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
    color: var(--amber-400);
}

.topbar-left span {
    margin-right: 18px;
}

.topbar-right a {
    margin-left: 14px;
}

/* ============ NAVBAR ============ */
.navbar-site {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar-site .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar-brand-site {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-site img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    line-height: 1.15;
}

.brand-text .brand-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--green-800);
    text-transform: uppercase;
}

.brand-text .brand-sub {
    font-size: 11.5px;
    color: var(--gray-500);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: 8px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--green-600);
    background: var(--green-50);
}

.btn-login {
    background: var(--green-600);
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-login:hover {
    background: var(--green-700);
}

/* ============ NAVBAR DROPDOWN (Stisla pattern) ============ */
.nav-menu .nav-item.dropdown {
    position: relative;
}

.nav-menu .nav-link.has-dropdown i.fa-chevron-down {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.nav-menu .nav-item.dropdown:hover .nav-link.has-dropdown i.fa-chevron-down,
.nav-menu .nav-item.dropdown.force-show .nav-link.has-dropdown i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu .nav-item.dropdown:hover > .dropdown-menu,
.nav-menu .nav-item.dropdown.force-show > .dropdown-menu {
    display: block;
}

.nav-menu .nav-item.dropdown .dropdown-menu {
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin-top: 6px;
    z-index: 100;
}

.nav-menu .dropdown-menu .nav-item .nav-link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.nav-menu .dropdown-menu .nav-item .nav-link:hover {
    background: var(--green-50);
    color: var(--green-600);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    color: var(--green-800);
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 78vh;
    min-height: 480px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--green-900),
        var(--green-700) 60%,
        var(--green-600)
    );
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 820px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 14px;
}

.hero-content p {
    font-size: clamp(15px, 2vw, 18px);
    opacity: 0.92;
    margin-bottom: 26px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber-400);
    color: var(--green-900) !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    margin-left: 10px;
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots button.active {
    background: var(--amber-400);
    width: 26px;
    border-radius: 6px;
}

/* ============ QUICK STATS BAR ============ */
.stats-bar {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    margin-top: -46px;
    position: relative;
    z-index: 5;
    padding: 26px 10px;
}

.stats-bar .stat-item {
    text-align: center;
    padding: 8px;
}

.stats-bar .stat-icon {
    font-size: 24px;
    color: var(--green-600);
    margin-bottom: 6px;
}

.stats-bar .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--green-800);
}

.stats-bar .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============ EXPLORE CARDS (Jelajahi Nagari) ============ */
.explore-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 30px 22px;
    text-align: center;
    height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.explore-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-500);
}

.explore-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(21, 128, 61, 0.3);
}

.explore-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.explore-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.explore-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green-600);
}

.explore-link:hover {
    color: var(--amber-500);
}

/* ============ SAMBUTAN ============ */
.sambutan-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.sambutan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--green-600), var(--amber-400));
}

.walinagari-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e3f2fd;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    background: #1e3a8a;
}

.sambutan-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 4px;
}

.sambutan-card .jabatan {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 18px;
}

.sambutan-text {
    color: var(--gray-600);
    font-size: 14.5px;
    text-align: justify;
}

.sambutan-text p {
    margin-bottom: 12px;
}

.quote-mark {
    font-size: 44px;
    color: var(--green-100);
    line-height: 0;
    margin-bottom: -12px;
}

/* ============ PETA ============ */
.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.map-frame iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* ============ SOTK ============ */
.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    text-align: center;
    height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.staff-photo-wrap {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    padding: 26px 0 0;
}

.staff-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    display: inline-block;
    background: #1e3a8a;
}

.staff-body {
    padding: 16px 14px 20px;
}

.staff-body h5 {
    font-size: 15px;
    font-weight: 800;
    color: #1e3a8a;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.staff-body p {
    font-size: 12.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    font-size: 36px;
    color: var(--white);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--green-600);
    color: var(--green-700) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.btn-outline-green:hover {
    background: var(--green-600);
    color: var(--white) !important;
}

.btn-solid-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-600);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 999px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn-solid-green:hover {
    background: var(--green-700);
    transform: translateY(-2px);
}

/* ============ ADMIN PENDUDUK / APB ============ */
.info-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    padding: 34px 28px;
    height: 100%;
}

.info-panel .panel-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    margin-bottom: 14px;
}

.info-panel h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--green-800);
    margin-bottom: 6px;
}

.info-panel > p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-box {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.stat-box .num {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-700);
}

.stat-box .lbl {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.apb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px dashed var(--gray-300);
}

.apb-row:last-of-type {
    border-bottom: none;
}

.apb-row .apb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 600;
}

.apb-row .apb-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--green-700);
}

.apb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.apb-dot.in {
    background: var(--green-500);
}

.apb-dot.out {
    background: var(--amber-500);
}

/* ============ BERITA ============ */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-thumb .news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(12, 59, 36, 0.85);
    color: var(--white);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.news-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-body h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--dark);
    margin-bottom: 10px;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body h5 a:hover {
    color: var(--green-600);
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
}

.news-meta i {
    color: var(--green-600);
    margin-right: 4px;
}

.news-meta .views i {
    color: var(--amber-500);
}

.thumb-green {
    background: linear-gradient(135deg, #16a34a, #065f46);
}

.thumb-teal {
    background: linear-gradient(135deg, #0d9488, #134e4a);
}

.thumb-amber {
    background: linear-gradient(135deg, #d97706, #78350f);
}

.thumb-blue {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.thumb-indigo {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.thumb-rose {
    background: linear-gradient(135deg, #e11d48, #881337);
}

.thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============ POTENSI ============ */
.potensi-cat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.potensi-cat a {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 20px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.potensi-cat a:hover,
.potensi-cat a.active {
    border-color: var(--green-600);
    background: var(--green-600);
    color: var(--white);
}

.potensi-banner {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    box-shadow: var(--shadow-md);
}

.potensi-banner .banner-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.25);
}

.potensi-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.potensi-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-500);
}

.potensi-item i {
    font-size: 30px;
    color: var(--green-600);
    margin-bottom: 10px;
}

.potensi-item h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-800);
    text-transform: uppercase;
}

/* ============ BELANJA (UMKM) ============ */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    height: 100%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

.product-thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: rgba(255, 255, 255, 0.85);
}

.product-body {
    padding: 14px 16px 18px;
}

.product-body h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-body .price {
    font-size: 16px;
    font-weight: 800;
    color: var(--green-600);
}

.product-body .price small {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}

.prod-green {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.prod-amber {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.prod-rose {
    background: linear-gradient(135deg, #f43f5e, #be123c);
}

.prod-indigo {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.prod-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.prod-slate {
    background: linear-gradient(135deg, #64748b, #334155);
}

/* ============ GALERI ============ */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 190px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 59, 36, 0.75),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

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

.gallery-overlay i {
    color: var(--white);
    font-size: 18px;
}

.gallery-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 0 0;
    margin-top: 0;
}

.site-footer h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--amber-400);
    border-radius: 3px;
}

.footer-about img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 14px;
}

.footer-about p {
    font-size: 13.5px;
    margin-bottom: 6px;
    line-height: 1.7;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
    font-size: 13.5px;
}

.site-footer ul li i {
    color: var(--amber-400);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.site-footer ul li a:hover {
    color: var(--amber-400);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    font-size: 15px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--amber-400);
    color: var(--green-900) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--amber-400);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .section {
        padding: 48px 0;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
        border-top: 1px solid var(--gray-200);
        margin-top: 10px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 12px 8px;
    }

    .nav-menu .nav-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--green-500);
        border-radius: 0;
        margin: 0 0 4px 18px;
        padding: 0;
        background: transparent;
    }

    .nav-menu .dropdown-menu .nav-item .nav-link {
        padding: 10px 12px;
    }

    .nav-menu .dropdown-menu .nav-item .nav-link:hover {
        background: transparent;
        color: var(--green-600);
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 65vh;
        min-height: 420px;
    }
}

@media (max-width: 575px) {
    .hero {
        height: 72vh;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sambutan-card {
        padding: 26px 20px;
    }

    .section-title {
        font-size: 22px;
    }
}

/* ============ RICH TEXT CONTENT OVERFLOW FIX ============ */
.content-rich-text {
    word-break: break-word;
    overflow-wrap: break-word;
}

.content-rich-text * {
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    height: auto !important;
}

.content-rich-text table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

.content-rich-text img {
    max-width: 100% !important;
    height: auto !important;
}

.content-rich-text ol,
.content-rich-text ul {
    padding-left: 20px !important;
    list-style-position: outside !important;
}

.content-rich-text li {
    white-space: normal !important;
}
