/* =========================================
   STYLE.CSS - FIX TITLE & NUMBERING
   ========================================= */

:root {
    --bg-color: #e0e0e0;
    --text-color: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #f5f5f5;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: -1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.hidden { display: none !important; }

/* --- NAVBAR --- */
.floating-nav {
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 950px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 50px; padding: 12px 30px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 9999; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.nav-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; gap: 5px; background: #eee; padding: 5px; border-radius: 30px; }
.nav-links a { padding: 8px 24px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; color: #555; }
.nav-links a.active, .nav-links a:hover { background: #fff; color: #000; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.btn-pill { background: #000; color: #fff; border: none; padding: 10px 24px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: transform 0.2s; font-size: 0.85rem; }
.btn-pill:hover { transform: scale(1.05); }
.user-pill { display: flex; align-items: center; gap: 10px; }
.user-pill img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.user-pill button { background: transparent; border: none; cursor: pointer; font-size: 1.2rem; }
.menu-toggle { display: none; } 

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #f0f0f0; z-index: 10000; 
    flex-direction: column; justify-content: center; align-items: center; gap: 30px;
}
.mobile-menu.active { display: flex; } 
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #000; }
.close-menu { position: absolute; top: 30px; right: 30px; font-size: 2rem; background: none; border: none; cursor: pointer; }

/* --- HERO SECTION & CARD --- */
main.container { max-width: 1000px; margin: 0 auto; padding: 160px 20px 40px 20px; }

.hero-section {
    max-width: 1000px; margin: 0 auto; padding: 160px 20px 60px 20px;
    display: flex; align-items: center; min-height: 80vh;
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 0.9; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -2px; }

.hero-img-wrapper { position: relative; } 
.hero-img { width: 100%; height: auto; border-radius: 20px; filter: grayscale(100%); transition: 0.5s; max-height: 500px; object-fit: cover; }
.hero-img:hover { filter: grayscale(0%); }

.hero-overlay-card {
    position: absolute; bottom: 30px; left: -30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 25px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 2;
}
.hero-overlay-card span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: block; color: #000; }
.hero-overlay-card p { font-size: 0.8rem; color: #666; margin: 0; }

/* --- GRID & KONTEN --- */
.modern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.card-item { background: var(--card-bg); border-radius: 16px; padding: 25px; transition: 0.3s; cursor: pointer; }
.card-item:hover { background: #fff; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-tag { display: inline-block; padding: 5px 12px; background: #000; color: #fff; font-size: 0.7rem; border-radius: 20px; margin-bottom: 15px; text-transform: uppercase; }

/* --- SINGLE POST & TYPOGRAPHY FIXES --- */
.single-post-container { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); overflow: hidden; }

/* PERBAIKAN JUDUL DI MOBILE (Issue 1) */
.single-post-container h1 { 
    font-family: 'Space Grotesk'; 
    font-size: 2.5rem; 
    margin-top: 20px; 
    line-height: 1.2;
    word-wrap: break-word;      /* Agar kata panjang dipotong */
    overflow-wrap: break-word;  /* Standar baru untuk potong kata */
    hyphens: auto;              /* Tambah strip (-) jika perlu */
}

/* PERBAIKAN ANGKA LIST (Issue 2) */
/* Kita reset counter di body artikel */
.article-body { 
    font-size: 1.1rem; line-height: 1.8; margin-top: 30px; text-align: justify; 
    counter-reset: article-list-counter; /* Mulai hitungan baru */
}

/* Kita paksa semua list angka (OL) untuk mengikuti hitungan global artikel ini */
.article-body ol {
    list-style-type: none; /* Hilangkan angka bawaan browser yang error */
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-body ol li {
    counter-increment: article-list-counter; /* Tambah hitungan +1 */
    display: flex;
    gap: 10px;
    font-weight: 700; /* Judul poin biasanya tebal */
    margin-bottom: 5px;
}

/* Kita buat angka sendiri menggunakan CSS */
.article-body ol li::before {
    content: counter(article-list-counter) ". "; /* Tampilkan Angka + Titik */
    flex-shrink: 0; /* Agar angka tidak gepeng */
}

/* Style paragraf biasa */
.article-body p { margin-bottom: 1.5em; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }

.about-hero { text-align: center; max-width: 700px; margin: 0 auto; }
.about-pp { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.about-card { background: #fff; padding: 30px; border-radius: 20px; margin-top: 30px; text-align: justify; line-height: 1.8; }
.social-links { margin-top: 30px; display: flex; justify-content: center; gap: 15px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links, .nav-auth { display: none !important; } 
    .menu-toggle { display: block; background: none; border: none; font-size: 1.8rem; cursor: pointer; } 
    .floating-nav { width: 90%; padding: 10px 20px; top: 15px; }
    
    .hero-section { padding-top: 120px; flex-direction: column; text-align: center; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-img { order: -1; } 
    
    .hero-overlay-card { 
        left: 50%; bottom: -20px; 
        transform: translateX(-50%); 
        width: auto; min-width: 200px; text-align: center;
    }
    
    main.container { padding-top: 120px; }
    .single-post-container, .about-card { padding: 20px; }

    /* Font Size Mobile diperkecil agar pas */
    .single-post-container h1 { font-size: 1.8rem; }
    .article-body { font-size: 1rem; }
}