/* ============================================================
   ACE Indonesia — Warm Engineering Theme (plain CSS)
   Palette: cream paper bg + amber/terracotta primary + slate admin
   ============================================================ */

/* ---- CSS Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    background-image:
        linear-gradient(var(--grid-color, rgba(140, 90, 30, 0.05)) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color, rgba(140, 90, 30, 0.05)) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select, button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Design Tokens ---- */
:root {
    /* Warm cream paper background */
    --background: #faf7f0;
    --foreground: #2a2118;
    --card: #ffffff;
    --card-foreground: #2a2118;
    --muted: #f3ede0;
    --muted-foreground: #736b5d;
    --secondary: #f3ede0;
    --secondary-foreground: #3a3128;

    /* Primary = deep amber/terracotta */
    --primary: #b8651f;
    --primary-foreground: #fdf6e8;
    --primary-hover: #9e551a;
    --primary-light: rgba(184, 101, 31, 0.1);

    /* Accent = brass/copper */
    --accent: #c8902e;
    --accent-foreground: #2a2118;

    --border: #e0d5c0;
    --input: #ede4d0;
    --ring: #b8651f;

    --destructive: #c53030;
    --success: #2f855a;

    /* Admin sidebar - dark technical slate */
    --sidebar: #1e2530;
    --sidebar-foreground: #f0e8d6;
    --sidebar-primary: #c8902e;
    --sidebar-primary-foreground: #1e2530;
    --sidebar-accent: #2a3340;
    --sidebar-border: #344050;

    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    --max-width: 1280px;
    --header-h: 64px;

    --shadow-sm: 0 1px 2px rgba(42, 33, 24, 0.08);
    --shadow: 0 2px 8px rgba(42, 33, 24, 0.08);
    --shadow-md: 0 4px 12px rgba(42, 33, 24, 0.12);
    --shadow-lg: 0 8px 24px rgba(42, 33, 24, 0.15);
}

/* ---- Typography helpers ---- */
.font-mono { font-family: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.15em; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.line-clamp-1, .line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
@media (min-width: 640px) { .section { padding: 4rem 0; } }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ---- Eyebrow label (engineering style) ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    background: var(--primary);
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::after {
    content: '';
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    background: var(--primary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--primary);
    color: var(--primary-foreground);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { background: #9c2929; }

/* ---- Header / Navigation ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.eng-bar {
    height: 4px;
    width: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        var(--primary) 0px,
        var(--primary) 8px,
        var(--background) 8px,
        var(--background) 16px
    );
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 1024px) { .header-inner { padding: 0 2rem; } }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .small {
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-foreground);
}
.brand-text .big { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }

.nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(42, 33, 24, 0.75);
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--primary); background: var(--secondary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0.5rem; right: 0.5rem;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 0.75rem;
}
.mobile-nav.open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav .nav-link {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
}
.mobile-nav .nav-link.active { background: var(--primary-light); }

/* ---- Footer (sticky) ---- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--secondary);
    background-image:
        linear-gradient(rgba(140, 90, 30, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 90, 30, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}
.footer-cta {
    background: var(--primary);
    color: var(--primary-foreground);
    border-bottom: 1px solid var(--border);
}
.footer-cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .footer-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
}
@media (min-width: 1024px) { .footer-cta-inner { padding: 0 2rem; } }
.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1rem;
}
@media (min-width: 640px) { .footer-main { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .footer-main { padding: 3rem 2rem; } }
.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col h4 {
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: rgba(42, 33, 24, 0.75); }
.footer-col a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    color: rgba(42, 33, 24, 0.7);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }
.footer-contact {
    display: grid; gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .footer-contact { grid-template-columns: repeat(3, 1fr); } }
.footer-contact a, .footer-contact span { font-size: 0.875rem; color: rgba(42, 33, 24, 0.8); display: flex; gap: 0.75rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    background: rgba(250, 247, 240, 0.6);
}
.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; padding: 0 1.5rem; } }
@media (min-width: 1024px) { .footer-bottom-inner { padding: 0 2rem; } }

/* ---- Hero Carousel ---- */
.carousel {
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}
.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}
.carousel-slide {
    position: relative;
    min-width: 0;
    flex: 0 0 100%;
}
.carousel-slide-inner {
    position: relative;
    height: 58vh;
    min-height: 420px;
    background: var(--sidebar);
}
@media (min-width: 640px) { .carousel-slide-inner { height: 70vh; } }
.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,20,10,0.2) 0%, rgba(30,20,10,0.55) 60%, rgba(30,20,10,0.78) 100%);
}
.carousel-grid {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    mix-blend-mode: overlay;
    background-image:
        linear-gradient(rgba(255,200,120,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,200,120,0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.carousel-counter {
    position: absolute;
    right: 1rem; top: 1rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 639px) { .carousel-counter { display: none; } }
.carousel-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.carousel-content-inner { max-width: 768px; padding: 0 1rem 3rem 1rem; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .carousel-content-inner { padding: 0 1.5rem 4rem 1.5rem; } }
@media (min-width: 1024px) { .carousel-content-inner { padding: 0 2rem 4rem 2rem; } }
.carousel-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(20,12,4,0.6), 0 1px 3px rgba(20,12,4,0.7);
}
@media (min-width: 640px) { .carousel-content h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .carousel-content h2 { font-size: 2.75rem; } }
.carousel-content p {
    margin-top: 1rem;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 12px rgba(20,12,4,0.6);
}
@media (min-width: 640px) { .carousel-content p { font-size: 1.125rem; } }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.2s;
}
.carousel-dot.active { width: 32px; background: var(--accent); }
.carousel-dot:hover { background: rgba(255,255,255,0.8); }

/* ---- Cards ---- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}
.card:hover { border-color: rgba(184, 101, 31, 0.5); box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }
.card-body.lg { padding: 1.5rem; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--secondary); position: relative; }
.card-img.wide { aspect-ratio: 16/9; }
.card-img.tall { aspect-ratio: 3/4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--secondary);
    color: rgba(115, 107, 93, 0.5);
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: var(--radius-sm);
}
.badge-primary { background: var(--primary); color: var(--primary-foreground); }
.badge-amber { background: #f59e0b; color: #fff; }
.badge-green { background: #059669; color: #fff; }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }
.badge-overlay {
    position: absolute;
    left: 0.75rem; top: 0.75rem;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.375rem;
}
.form-label .req { color: var(--destructive); }
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-help { font-size: 0.6875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.form-error { font-size: 0.6875rem; color: var(--destructive); margin-top: 0.25rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---- Alerts ---- */
.alert {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.alert-success { border-color: rgba(47, 133, 90, 0.3); background: rgba(47, 133, 90, 0.08); color: #22543a; }
.alert-error { border-color: rgba(197, 48, 48, 0.3); background: rgba(197, 48, 48, 0.08); color: #742a2a; }

/* ---- Toast / Flash ---- */
.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    background: #2a2118;
    color: #fff;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.2s ease;
    pointer-events: auto;
}
.toast.success { background: #22543a; }
.toast.error { background: #742a2a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Tables (admin) ---- */
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    overflow: hidden;
}
.table-scroll { overflow-x: auto; max-height: 70vh; overflow-y: auto; }
.table-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(115,107,93,0.3); border-radius: 4px; }
.table { width: 100%; font-size: 0.875rem; }
.table thead th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:nth-child(even) { background: rgba(243, 237, 224, 0.3); }
.table tbody tr:hover { background: rgba(184, 101, 31, 0.05); }

/* ---- Stats grid ---- */
.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.stat-icon { color: var(--primary); }
.stat-value { font-family: var(--font-mono, monospace); font-size: 1.5rem; font-weight: 700; margin-top: 0.75rem; }
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ---- Admin layout ---- */
.admin-layout { display: flex; min-height: 100vh; background: var(--sidebar); }
.admin-sidebar {
    background: var(--sidebar);
    color: var(--sidebar-foreground);
    width: 256px;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    z-index: 40;
}
@media (max-width: 1023px) { .admin-sidebar { transform: translateX(-100%); transition: transform 0.2s; } .admin-sidebar.open { transform: translateX(0); } }
.admin-sidebar-brand {
    padding: 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex; align-items: center; gap: 0.625rem;
}
.admin-sidebar-brand .mark {
    width: 36px; height: 36px;
    background: var(--sidebar-primary);
    color: var(--sidebar-primary-foreground);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.admin-sidebar-brand .big { font-size: 0.875rem; font-weight: 700; }
.admin-sidebar-brand .small {
    font-family: var(--font-mono, monospace);
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(240, 232, 214, 0.5);
}
.admin-nav { flex: 1; padding: 0.75rem; overflow-y: auto; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(240, 232, 214, 0.75);
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover { background: var(--sidebar-accent); color: var(--sidebar-foreground); }
.admin-nav-link.active {
    background: var(--sidebar-primary);
    color: var(--sidebar-primary-foreground);
}
.admin-sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--sidebar-border); }
.admin-sidebar-footer .user-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--sidebar-accent);
    border-radius: var(--radius);
    font-size: 0.75rem;
}
.admin-sidebar-footer .user-box .label {
    font-family: var(--font-mono, monospace);
    font-size: 0.625rem;
    text-transform: uppercase;
    color: rgba(240, 232, 214, 0.5);
}
.admin-sidebar-footer .user-box .name { font-weight: 600; color: var(--sidebar-foreground); }
.admin-logout {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    color: rgba(240, 232, 214, 0.7);
}
.admin-logout:hover { background: rgba(197, 48, 48, 0.25); color: var(--sidebar-foreground); }
.admin-main { flex: 1; padding: 1rem; margin-left: 0; }
@media (min-width: 1024px) { .admin-main { margin-left: 256px; padding: 2rem; } }
.admin-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--sidebar);
    border-bottom: 1px solid var(--sidebar-border);
    color: var(--sidebar-foreground);
}
@media (min-width: 1024px) { .admin-mobile-topbar { display: none; } }
.admin-content {
    background: var(--background);
    min-height: calc(100vh - 0px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
@media (min-width: 640px) { .admin-content { padding: 2rem; } }
.admin-page-header { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .admin-page-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.admin-page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 640px) { .admin-page-title { font-size: 1.875rem; } }
.admin-page-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.admin-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---- Icon helper ---- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ---- Prose-like body text ---- */
.prose-p { margin-bottom: 1rem; line-height: 1.75; color: rgba(42, 33, 24, 0.85); }
.prose-ol { margin-bottom: 1rem; padding-left: 1.5rem; list-style: decimal; }
.prose-ol li { margin-bottom: 0.5rem; line-height: 1.75; color: rgba(42, 33, 24, 0.85); }

/* ---- Hero banner (inner pages) ---- */
.page-hero {
    background: var(--sidebar);
    background-image:
        linear-gradient(var(--dark-grid-color, rgba(200, 160, 90, 0.06)) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-grid-color, rgba(200, 160, 90, 0.06)) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--sidebar-foreground);
    padding: 3rem 0;
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .page-hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .page-hero-inner { padding: 0 2rem; } }
.page-hero h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 640px) { .page-hero h1 { font-size: 2.25rem; } }
.page-hero p { margin-top: 0.75rem; max-width: 640px; font-size: 1rem; color: rgba(255,255,255,0.8); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--accent); }

/* ---- Dark CTA section ---- */
.cta-dark {
    background: var(--sidebar);
    background-image:
        linear-gradient(var(--dark-grid-color, rgba(200, 160, 90, 0.06)) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-grid-color, rgba(200, 160, 90, 0.06)) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--sidebar-foreground);
    padding: 4rem 0;
    text-align: center;
}
.cta-dark h2 { font-size: 1.5rem; font-weight: 700; color: #fff; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .cta-dark h2 { font-size: 2.25rem; } }
.cta-dark p { margin-top: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.8); }
.cta-dark .btns { margin-top: 1.75rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.cta-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-dark .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---- Timeline (sejarah) ---- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--background);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year { font-family: var(--font-mono, monospace); font-weight: 700; color: var(--primary); }
.timeline-text { margin-top: 0.25rem; color: rgba(42, 33, 24, 0.85); }

/* ---- Sticky section nav (profil) ---- */
.sticky-nav { position: sticky; top: calc(var(--header-h) + 1rem); }
.sticky-nav a { display: block; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); border-left: 2px solid transparent; }
.sticky-nav a:hover { color: var(--primary); border-left-color: var(--primary); }

/* ---- Filter chips ---- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 999px;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ---- Search input ---- */
.search-input {
    position: relative;
    max-width: 360px;
    margin-bottom: 1.5rem;
}
.search-input input { padding-left: 2.25rem; }
.search-input .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }

/* ---- Switch (toggle) ---- */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--border); border-radius: 999px; transition: 0.2s;
}
.switch-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }
.switch input:disabled + .switch-slider { opacity: 0.6; cursor: not-allowed; }

/* ---- Dialog (admin create/edit) ---- */
.dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 37, 48, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.dialog {
    background: var(--card);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 800px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.dialog-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.dialog-header h2 { font-size: 1.125rem; font-weight: 700; }
.dialog-header p { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.dialog-body { padding: 1rem 1.5rem; overflow-y: auto; flex: 1; }
.dialog-footer { padding: 0.75rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ---- Image picker (admin) ---- */
.img-picker { display: flex; flex-direction: column; gap: 0.5rem; }
.img-preview {
    width: 80px; height: 80px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-foreground); }
.img-picker-actions { display: flex; gap: 0.5rem; align-items: center; }
.img-picker-status { font-size: 0.75rem; color: var(--muted-foreground); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--border); }
.bg-muted { background: var(--muted); }
.bg-secondary { background: var(--secondary); }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.gap-4 { gap: 1rem; }
.col-span-2 { grid-column: span 2; }
@media (min-width: 640px) { .sm\:col-span-2 { grid-column: span 2; } }

/* ---- Brand logo image (saat user upload logo sendiri) ---- */
.brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
@media (max-width: 639px) {
    .brand-logo-img { height: 32px; max-width: 160px; }
}
/* Logo di admin sidebar: tambahkan padding agar tidak mentok ke edge gelap */
.admin-sidebar .brand-logo-img { padding: 2px; }

/* ---- Partner/Sponsor logo showcase ---- */
.partner-card {
    display: flex;
    flex-direction: column;
}
.partner-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.partner-logo-area {
    aspect-ratio: 16/9;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
}
.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.partner-card:hover .partner-logo-img {
    transform: scale(1.08);
}
.partner-logo-fallback {
    text-align: center;
    color: var(--muted-foreground);
}
.partner-logo-fallback span {
    display: block;
    font-family: var(--font-mono, monospace);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
}
.partner-logo-fallback small {
    display: block;
    font-size: 0.625rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}
@media (max-width: 639px) {
    .partner-logo-area { aspect-ratio: 3/2; padding: 0.875rem; }
}

/* ---- Theme gradient enhancements ---- */
/* Tombol besar pakai gradient untuk kesan elegan */
.btn-lg {
    background: var(--primary-gradient, var(--primary));
    background-size: 200% auto;
    transition: background-position 0.3s, transform 0.15s;
}
.btn-lg:hover {
    background-position: right center;
    transform: translateY(-1px);
}
/* Footer CTA strip pakai gradient */
.footer-cta {
    background: var(--primary-gradient, var(--primary));
}
/* Carousel CTA button pakai gradient */
.carousel-content .btn {
    background: var(--primary-gradient, var(--primary));
    background-size: 200% auto;
    transition: background-position 0.3s, transform 0.15s;
}
.carousel-content .btn:hover {
    background-position: right center;
}
/* Admin nav active pakai gradient */
.admin-nav-link.active {
    background: var(--primary-gradient, var(--sidebar-primary));
}
/* Brand mark pakai gradient */
.brand-mark {
    background: var(--primary-gradient, var(--primary));
}
/* Eng-bar pakai gradient */
.eng-bar {
    background: var(--primary-gradient, var(--primary));
    background-size: 200% auto;
}


