:root {
    --primary: #0d7a31;
    --primary-dark: #085822;
    --primary-soft: #eaf6ee;
    --gold: #eab308;
    --danger: #c0392b;
    --bg: #f6f8f7;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 28px rgba(13, 122, 49, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* STICKY GLASS NAVBAR */
.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
    white-space: nowrap;
}
.brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-links a {
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-soft);
    color: var(--primary);
}
.nav-links a.btn-nglarisi {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 8px 15px;
}
.nav-links a.btn-nglarisi:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.nav-links a.btn-login {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
}
.nav-links a.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
}

/* HERO BANNER */
.hero {
    background: linear-gradient(135deg, #064e20 0%, #0d7a31 55%, #159942 100%);
    color: #fff;
    padding: 52px 20px 76px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.16), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.1), transparent 45%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.hero-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero p {
    margin: 0 auto 24px;
    font-size: 15.5px;
    color: #fef08a;
    font-weight: 500;
    max-width: 620px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-gold {
    background: var(--gold);
    color: #1f2937;
}
.btn-gold:hover {
    background: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.35);
}
.btn-outline-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

/* CONTAINER */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FLOATING STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: -42px auto 40px;
    position: relative;
    z-index: 2;
}
.stat-card {
    background: var(--surface);
    padding: 24px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 122, 49, 0.08);
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(13, 122, 49, 0.12);
}
.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 6px;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.stat-value.highlight { color: var(--primary); }

/* SECTION HEADER */
.section { margin-bottom: 48px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}
.section-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.section-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* SMOOTH CAROUSEL */
.carousel-card {
    background: var(--surface);
    padding: 14px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
}
.carousel-inner {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-item {
    min-width: 100%;
    position: relative;
}
.carousel-item img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}
.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35) 60%, transparent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    z-index: 5;
}
.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #d1d5db;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    width: 28px;
    background: var(--primary);
}

/* TWO COLUMN INFO */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.card-box {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.card-box:hover { box-shadow: var(--shadow-md); }
.card-box h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.card-box p {
    margin: 0;
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.75;
}
.sambutan-wrap {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.foto-ketua {
    width: 96px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--primary-soft);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.quote-author {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--text);
}

/* BERITA GRID */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.berita-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.berita-thumb {
    overflow: hidden;
    height: 185px;
    background: #f3f4f6;
}
.berita-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.berita-card:hover .berita-thumb img { transform: scale(1.05); }
.berita-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.berita-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.berita-body h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
}
.berita-body p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--muted);
    flex-grow: 1;
}
.read-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.read-more:hover { gap: 10px; color: var(--primary-dark); }

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
}

/* FOOTER */
footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 28px 20px;
    font-size: 13.5px;
    margin-top: 60px;
}
footer strong { color: #f9fafb; }

/* SMOOTH SCROLL REVEAL (AMAN) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; margin-top: -28px; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { text-align: center; padding: 10px; }
}
@media (max-width: 600px) {
    .berita-grid { grid-template-columns: 1fr; }
    .carousel-item img { height: 260px; }
    .sambutan-wrap { flex-direction: column; align-items: center; text-align: center; }
}
/* === ARTIKEL / BERITA DETAIL === */
.article-wrap {
    max-width: 860px;
    margin: 32px auto 60px;
    padding: 0 20px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.article-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 36px;
}
.article-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.article-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}
.article-meta {
    font-size: 13.5px;
    color: var(--muted);
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
    background: #f3f4f6;
}
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    word-wrap: break-word;
}
.article-body p { margin: 0 0 16px; }

/* SHARE BAR */
.share-box {
    margin-top: 36px;
    padding: 20px 22px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x  { background: #111827; }
.share-tg { background: #0088cc; }
.share-copy {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.share-copy.copied {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* KOMENTAR */
.comment-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 32px 36px;
    margin-top: 24px;
}
.comment-card h3 {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
}
.alert-box {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}
.alert-success { background: #eaf6ee; color: #085822; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 49, 0.12);
}
textarea.form-control { min-height: 115px; resize: vertical; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.comment-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.comment-content { flex: 1; }
.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-text { margin: 0; font-size: 14px; color: #4b5563; line-height: 1.65; }

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.btn-back-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .article-card, .comment-card { padding: 22px 18px; }
    .form-grid { grid-template-columns: 1fr; }
}

/* === PAGE BANNER (PROFIL, PENGURUS, GALERI, MARKETPLACE) === */
.page-banner {
    background: linear-gradient(135deg, #064e20 0%, #0d7a31 60%, #159942 100%);
    color: #fff;
    text-align: center;
    padding: 46px 20px 56px;
    position: relative;
}
.page-banner.has-float { padding-bottom: 72px; }
.page-banner-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.page-banner h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.6vw, 34px);
    font-weight: 800;
}
.page-banner p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 15px;
    color: #fef08a;
    font-weight: 500;
}

.page-main {
    max-width: 1140px;
    margin: 36px auto 60px;
    padding: 0 20px;
    min-height: 50vh;
}
.page-main.narrow { max-width: 920px; }

/* === PROFIL & VISI MISI === */
.content-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 28px;
}
.content-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
}
.prose p {
    font-size: 15.5px;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 16px;
    text-align: justify;
}
.prose p:last-child { margin-bottom: 0; }

.visi-card {
    background: linear-gradient(135deg, #eaf6ee, #dcfce7);
    border-left: 5px solid var(--primary);
    border-radius: 14px;
    padding: 26px 28px;
    text-align: center;
    margin-bottom: 30px;
}
.visi-card span {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.visi-card p {
    margin: 0;
    font-size: 17.5px;
    font-weight: 700;
    font-style: italic;
    color: #14532d;
    line-height: 1.65;
}

.misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.misi-item {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}
.misi-item:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.misi-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.misi-item h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--text); }
.misi-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* === PENGURUS GRID === */
.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.pengurus-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 18px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pengurus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 122, 49, 0.25);
}
.pengurus-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 4px solid var(--primary-soft);
    box-shadow: var(--shadow-sm);
}
.pengurus-initials {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary-soft), #d1fae5);
    color: var(--primary-dark);
    font-size: 32px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}
.pengurus-card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--text); }
.pengurus-role {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 99px;
}

/* === MARKETPLACE / NGLARISI === */
.search-float {
    max-width: 980px;
    margin: -34px auto 34px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}
.search-box {
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.search-box input,
.search-box select {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.search-box input { flex: 1 1 240px; }
.search-box select { flex: 0 1 220px; cursor: pointer; }
.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 122, 49, 0.12);
}
.btn-reset {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    background: #f3f4f6;
    color: #4b5563;
}
.btn-reset:hover { background: #e5e7eb; }

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 22px;
}
.produk-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.produk-thumb {
    height: 195px;
    background: #f3f4f6;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-size: 13px;
}
.produk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.produk-card:hover .produk-thumb img { transform: scale(1.06); }
.produk-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.toko-pill {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.produk-body h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.produk-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 6px;
}
.produk-loc {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 14px;
}
.btn-wa-buy {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-wa-buy:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}
.btn-wa-buy svg { width: 17px; height: 17px; fill: currentColor; }
.btn-wa-disabled {
    margin-top: auto;
    text-align: center;
    background: #e5e7eb;
    color: #6b7280;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* === GALERI & LIGHTBOX === */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.galeri-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.galeri-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.galeri-thumb {
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
}
.galeri-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.galeri-card:hover .galeri-thumb img { transform: scale(1.07); }
.galeri-meta { padding: 15px 16px; }
.galeri-meta h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.galeri-meta p { margin: 0; font-size: 12.5px; color: var(--muted); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; position: relative; }
.lightbox-content img {
    max-height: 78vh;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.lightbox-caption { color: #f9fafb; margin-top: 14px; font-size: 15px; font-weight: 600; }
.lightbox-close {
    position: absolute;
    top: -14px;
    right: -6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111827;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .misi-grid { grid-template-columns: 1fr; }
    .content-card { padding: 24px 18px; }
    .search-box input, .search-box select, .search-box button { width: 100%; flex: 1 1 100%; }
}

/* === BAGAN PIRAMIDA KEPENGURUSAN === */
.org-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.org-tier {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.org-tier-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 18px;
    border: 1px solid #bbf7d0;
}
.org-connector {
    width: 2px;
    height: 34px;
    background: linear-gradient(to bottom, var(--primary), #cbd5e1);
    margin: 0 auto;
}
.org-branch {
    width: min(82%, 820px);
    height: 18px;
    border-top: 2px solid #cbd5e1;
    border-left: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    border-radius: 12px 12px 0 0;
    margin-bottom: -2px;
}
.org-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* UKURAN KARTU PER TINGKAT */
.org-row .pengurus-card {
    width: 240px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pengurus-card.tier-ketua {
    width: 290px;
    border-top: 5px solid var(--gold);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
    box-shadow: 0 12px 30px rgba(13, 122, 49, 0.12);
}
.pengurus-card.tier-ketua .pengurus-avatar,
.pengurus-card.tier-ketua .pengurus-initials {
    width: 124px;
    height: 124px;
    border-color: #fde68a;
}
.pengurus-card.tier-wakil {
    width: 265px;
    border-top: 4px solid var(--primary);
}
.pengurus-card.tier-inti {
    width: 245px;
    border-top: 3px solid var(--primary);
}
.pengurus-card.tier-bidang {
    width: 245px;
}
.pengurus-badge-top {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .org-branch { display: none; }
    .org-connector { height: 22px; }
    .org-row { gap: 14px; }
    .org-row .pengurus-card,
    .pengurus-card.tier-ketua,
    .pengurus-card.tier-wakil,
    .pengurus-card.tier-inti,
    .pengurus-card.tier-bidang {
        width: calc(50% - 7px);
        padding: 20px 12px 18px;
    }
    .pengurus-card.tier-ketua,
    .pengurus-card.tier-wakil {
        width: 100%;
        max-width: 300px;
    }
    .pengurus-avatar,
    .pengurus-initials {
        width: 84px;
        height: 84px;
        font-size: 24px;
    }
}

/* === TEMPAT FOTO PENGURUS 1:1 TANPA BINGKAI === */
.pengurus-card,
.pengurus-card.tier-ketua,
.pengurus-card.tier-wakil,
.pengurus-card.tier-inti,
.pengurus-card.tier-bidang {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.pengurus-avatar,
.pengurus-initials {
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    object-fit: cover;
    object-position: center top;
}

.pengurus-card.tier-ketua .pengurus-avatar,
.pengurus-card.tier-ketua .pengurus-initials {
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .pengurus-avatar,
    .pengurus-initials {
        width: 110px;
        height: 110px;
        border-radius: 8px;
        font-size: 26px;
    }
    .pengurus-card.tier-ketua .pengurus-avatar,
    .pengurus-card.tier-ketua .pengurus-initials {
        width: 132px;
        height: 132px;
        border-radius: 10px;
    }
}

/* === KOMPATIBILITAS LINTAS-BROWSER (HP & DESKTOP) === */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    overflow-x: hidden;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100dvh;
}
a, button, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
button, input[type="submit"], input[type="button"] {
    -webkit-appearance: none;
    appearance: none;
}
.mp-kat-tag {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}
