/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --card: #15151f;
    --text: #ffffff;
    --text2: #a0a0b0;
    --gold: #d4a017;
    --gold2: #f0c040;
    --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10,10,15,0.95);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 1.3rem; font-weight: 700; }
.logo span { color: var(--gold); }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.9rem; color: var(--text2); transition: color 0.2s; }
.nav a:hover { color: var(--gold); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg2);
    padding: 80px 30px;
    z-index: 999;
    transition: right 0.3s;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--text2); border-bottom: 1px solid var(--border); }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    display: none;
}
.overlay.active { display: block; }

/* ===== HERO ===== */
.hero { padding-top: 70px; background: var(--bg); display: flex; flex-direction: column; }

.hero-text { text-align: center; padding: 20px 15px 10px; }
.hero-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--gold2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p { font-size: clamp(0.8rem, 1.5vw, 1rem); color: var(--text2); }

/* ===== GRID AREA ===== */
.grid-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    flex: 1;
    min-height: 540px;
}

.area-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.area-item:hover { transform: scale(1.03); z-index: 3; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 0 2px var(--gold); }

.area-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.area-label { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; z-index: 2; }
.area-label strong { display: block; font-size: 1.2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.area-label small { font-size: 0.7rem; color: var(--gold2); }

/* ===== CAROUSEL ===== */
.section { padding: 50px 0; background: var(--bg2); overflow: hidden; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 800; }
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 0;
}
.section-header p { font-size: 0.85rem; color: var(--text2); }

.carousel { width: 100%; overflow: hidden; padding: 10px 0; }

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 20px;
    animation: scrollLeft 30s linear infinite;
}
.carousel-track.reverse { animation: scrollRight 30s linear infinite; }

.carousel:hover .carousel-track { animation-play-state: paused; }

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.card {
    flex: 0 0 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(212,160,23,0.4); }

.card-img { position: relative; height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: rgba(212,160,23,0.9);
    color: #0a0a0f;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
}

.card-body { padding: 15px; }
.card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-body p { font-size: 0.8rem; color: var(--text2); margin-bottom: 10px; }
.card-body a { font-size: 0.8rem; font-weight: 600; color: var(--gold); }

/* ===== FOOTER ===== */
.footer { background: #050508; padding: 40px 0 20px; }
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.75rem; color: var(--text2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: block; }
    .grid-area { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 150px); }
    .footer-grid { grid-template-columns: 1fr; }
    .card { flex: 0 0 240px; }
}

@media (max-width: 768px) {
    .ad-card img {
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .grid-area { grid-template-columns: 1fr; grid-template-rows: repeat(6, 120px); }
    .card { flex: 0 0 200px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-top: 80px;
    padding: 15px 20px;
    font-size: 0.85rem;
    color: var(--text2);
    background: var(--bg2);
}

.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ===== ARTIKEL CONTENT ===== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-content h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-hero-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* ===== DAFTAR ISI ===== */
.toc {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.toc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold);
}

.toc ul { list-style: none; }
.toc a {
    display: block;
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--text2);
}
.toc a:hover { color: var(--gold); }

/* ===== ARTIKEL BODY ===== */
.article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin: 0 0 15px 20px;
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.8;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.article-content th, .article-content td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
    font-size: 0.85rem;
}

.article-content th {
    background: var(--bg2);
    color: var(--gold);
    font-weight: 700;
}

.article-content td {
    color: var(--text2);
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 15px;
    margin: 15px 0;
    background: rgba(212,160,23,0.05);
    font-style: italic;
    color: var(--text);
    border-radius: 0 8px 8px 0;
}

/* ===== CTA BOX ===== */
.cta-box {
    background: linear-gradient(135deg, var(--bg2), var(--card));
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.cta-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gold);
    color: var(--bg);
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background: var(--gold2);
}

/* ===== ARTIKEL TERKAIT ===== */
.related-articles {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
}

.related-articles a {
    display: block;
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
}

.related-articles a:hover {
    color: var(--gold);
    padding-left: 5px;
    transition: all 0.2s;
}

/* ===== KOTAK IKLAN BARU ===== */

/* Card Iklan Utama */
.ad-card {
    background: #12121a;
    border: 1px solid rgba(212,160,23,0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border-color: rgba(212,160,23,0.7);
}

.ad-card img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ad-info {
    padding: 12px;
    text-align: center;
}

.ad-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d4a017;
    background: rgba(212,160,23,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.ad-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.ad-cta {
    display: inline-block;
    padding: 8px 20px;
    background: #25d366; /* Warna WhatsApp */
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    transition: background 0.2s;
}

.ad-cta:hover {
    background: #1da851;
}

/* Slot Iklan Kosong */
.ad-empty {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.3s;
}

.ad-empty:hover {
    border-color: rgba(212,160,23,0.5);
}

.ad-empty .ad-icon {
    font-size: 1.8rem;
    color: rgba(212,160,23,0.4);
    display: block;
    margin-bottom: 8px;
}

.ad-empty strong {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.ad-empty small {
    display: block;
    font-size: 0.7rem;
    color: #a0a0b0;
    margin-bottom: 10px;
}

.ad-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d4a017;
    transition: color 0.2s;
}

.ad-link:hover {
    color: #f0c040;
}