/*
Theme Name: DDS Law Office Theme
Theme URI: http://ddslawoffice.com
Author: DDS Law Office
Description: Tema premium kustom untuk Kantor Hukum DDS Law Office dengan skema warna emas dan charcoal (RESPONSIF MOBILE FIX KESELURUHAN).
Version: 1.3.0
Text Domain: dds-law
*/

/* ========================================================
   1. CSS VARIABLES & BRAND COLORS
   ======================================================== */
:root {
    --dds-gold: #D99E26;
    --dds-gold-hover: #BF871B;
    --dds-charcoal: #22252A;
    --dds-gray-light: #F9F9FB;
    --dds-white: #FFFFFF;
    --dds-text-muted: #666666;
}

/* ========================================================
   2. RESET & BASE STYLES
   ======================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dds-charcoal);
    background-color: var(--dds-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Mencegah halaman bisa digeser ke kanan-kiri di HP */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 15px;
}

a {
    color: var(--dds-charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dds-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================================
   3. BUTTON STYLES
   ======================================================== */
.btn-dds {
    display: inline-block;
    background-color: var(--dds-gold);
    color: var(--dds-white) !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-dds:hover {
    background-color: var(--dds-gold-hover);
    box-shadow: 0 4px 15px rgba(217, 158, 38, 0.3);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dds-charcoal) !important;
    color: var(--dds-white) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-dark:hover {
    background-color: #000000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================================
   4. HEADER & NAVIGATION (DESKTOP)
   ======================================================== */
.site-header {
    background-color: var(--dds-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

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

.site-branding {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    min-width: 220px;
}

.site-branding .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.site-branding .logo-text span {
    color: var(--dds-gold);
}

.site-branding img {
    max-height: 50px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.main-navigation {
    flex: 2;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dds-charcoal);
    padding: 10px 0;
    display: inline-block;
    white-space: nowrap;
}

.main-navigation ul li.current-menu-item a,
.main-navigation ul li a:hover {
    color: var(--dds-gold);
}

.header-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 220px;
}

.btn-header {
    padding: 10px 22px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 4px;
    white-space: nowrap;
}

/* ========================================================
   5. HERO SECTION (DESKTOP)
   ======================================================== */
.hero-section {
    color: var(--dds-white);
    padding: 140px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: #cccccc;
}

/* ========================================================
   6. LAYOUT UTAMA & STRUKTUR GRID
   ======================================================== */
.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--dds-gray-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--dds-gold);
    margin: 15px auto 0;
}

/* Helper Grid Default Desktop */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========================================================
   7. STYLING ELEMEN / KONTEN HOMEPAGE
   ======================================================== */

/* --- Area Keahlian (Cards) --- */
.card-service {
    background: var(--dds-white);
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.card-service:hover {
    border-top-color: var(--dds-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.card-service .icon {
    font-size: 2.5rem;
    color: var(--dds-gold);
    margin-bottom: 20px;
}

/* --- Kenapa Memilih Kami --- */
.card-feature {
    text-align: center;
    padding: 20px 15px;
}

.card-feature .feature-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.card-feature h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dds-charcoal);
}

.card-feature p {
    font-size: 0.9rem;
    color: var(--dds-text-muted);
    line-height: 1.5;
}

/* --- Berita & Opini --- */
.card-post {
    background: var(--dds-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--dds-text-muted);
    margin-bottom: 10px;
}

/* --- Langganan Artikel (Newsletter) --- */
.newsletter-section {
    background-color: var(--dds-gold);
    padding: 60px 0;
    color: var(--dds-white);
}

.newsletter-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dds-white);
}

.newsletter-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.form-inline {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.form-inline input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- Lamar Magang (Internship) --- */
.internship-section {
    background-color: var(--dds-white);
}

.internship-list {
    list-style: none;
    margin-bottom: 25px;
}

.internship-list li {
    margin-bottom: 12px;
    color: var(--dds-charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.internship-text .section-title::after {
    margin: 15px 0 0; /* Garis judul bergeser ke kiri khusus tampilan Desktop */
}

/* --- Konsultasi Akhir (CTA) --- */
.cta-consultation-section {
    background-color: var(--dds-charcoal);
    color: var(--dds-white);
    padding: 60px 0;
    border-top: 4px solid var(--dds-gold);
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dds-white);
}

.cta-text p {
    font-size: 1.05rem;
    color: #cccccc;
    max-width: 750px;
}

.cta-action {
    flex-shrink: 0;
}

/* ========================================================
   8. FOOTER STYLES
   ======================================================== */
.site-footer {
    background-color: var(--dds-charcoal);
    color: #bbbbbb;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.site-footer h4 {
    color: var(--dds-white);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}


/* ========================================================
   ⚡ 9. MEDIA QUERIES (SISTEM RESPONSIF TABLET & HP)
   ======================================================== */

/* --- A. Tampilan Ukuran Tablet (Maksimal 992px) --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr); /* Layar tablet membagi fitur menjadi 2x2 */
    }
    .newsletter-flex, .cta-flex {
        gap: 30px;
    }
}

/* --- B. Tampilan Ukuran Smartphone / HP (Maksimal 768px) --- */
@media (max-width: 768px) {
    
    /* --- Responsif Header di HP --- */
    .site-header {
        padding: 12px 0;
    }

    .header-container {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }

    .site-branding {
        grid-column: 1; 
        justify-content: flex-start;
        min-width: auto;
    }

    .site-branding img {
        max-height: 40px; 
    }

    .site-branding .logo-text {
        font-size: 1.1rem; 
    }

    .header-cta {
        grid-column: 2; 
        justify-content: flex-end;
        min-width: auto;
    }

    .btn-header {
        padding: 8px 14px !important; 
        font-size: 0.75rem !important;
        letter-spacing: 0;
    }

    /* Memaksa menu navigasi melipat di bawah baris logo/tombol secara penuh */
    .main-navigation {
        grid-column: 1 / span 2; 
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .main-navigation ul {
        gap: 10px 15px; 
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation ul li a {
        font-size: 0.78rem;
        padding: 2px 0;
        letter-spacing: 0;
    }

    /* --- Responsif Hero Section di HP --- */
    .hero-section {
        padding: 60px 0; 
    }

    .hero-section h1 {
        font-size: 1.85rem; /* Mengecilkan teks agar kalimat tidak terputus berantakan */
        line-height: 1.3;
        padding: 0 5px;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-section .btn-dds {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    /* --- Mengubah Semua Grid Menjadi Satu Kolom Vertikal --- */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr; 
        gap: 25px;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .section-title::after {
        margin: 15px auto 0 !important; /* Memastikan semua garis judul rata tengah di HP */
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 1.7rem !important;
    }

    /* --- Responsif Langganan Artikel (Newsletter) di HP --- */
    .newsletter-flex {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }

    .form-inline {
        flex-direction: column;
        max-width: 100%;
        gap: 12px;
    }

    .form-inline input {
        width: 100%;
        text-align: center;
    }

    /* --- Responsif Lamar Magang di HP --- */
    .internship-text {
        order: 2; /* Teks turun di bawah gambar agar hirarki visual di HP lebih bagus */
        text-align: center;
    }

    .internship-image {
        order: 1; /* Gambar naik ke posisi atas */
    }

    .internship-text .section-title {
        text-align: center !important;
    }

    .internship-list {
        display: inline-block;
        text-align: left;
    }

    /* --- Responsif Konsultasi Akhir (CTA) di HP --- */
    .cta-flex {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .cta-text h2 {
        font-size: 1.7rem;
    }

    .cta-text p {
        font-size: 0.95rem;
    }
    
    .cta-action {
        width: 100%;
    }
    
    .cta-action .btn-dds {
        display: block;
        width: 100%; /* Tombol melebar penuh untuk memudahkan jempol menekan di HP */
    }

    /* --- Responsif Footer di HP --- */
    .site-footer {
        text-align: center;
        padding: 40px 0 20px;
    }
    
    .site-footer .grid-3 {
        gap: 35px;
    }
    
    .footer-bottom {
        margin-top: 30px;
    }
}
/* ========================================================
   🗎 SINGLE POST STYLE (PROFESIONAL, LEGAL, MINIMALIS, ELEGAN)
   ======================================================== */

.single-legal-main {
    background-color: var(--dds-white);
    padding-top: 40px;
}

/* Container khusus artikel agar lebih ramping dari container biasa (fokus membaca) */
.container-article {
    width: 90%;
    max-width: 780px; /* Lebar optimal untuk membaca tulisan panjang */
    margin: 0 auto;
}

/* Header Artikel */
.article-header {
    text-align: center;
    padding-bottom: 30px;
}

.article-category a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dds-gold);
    font-weight: 700;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.25;
    color: var(--dds-charcoal);
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--dds-text-muted);
    font-family: 'Inter', sans-serif;
}

.article-meta strong {
    color: var(--dds-charcoal);
}

.meta-divider {
    margin: 0 10px;
    color: #cccccc;
}

/* Gambar Utama */
.article-featured-image-wrapper {
    margin-bottom: 50px;
}

.article-featured-image-wrapper .container-article {
    max-width: 900px; /* Gambar dibuat sedikit lebih lebar dari teks */
}

.featured-image-inside {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.article-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Layout Konten & Share */
.grid-article-layout {
    display: grid;
    grid-template-columns: 80px 1fr; /* 80px space untuk tombol share desktop */
    gap: 40px;
    position: relative;
}

.article-share-sidebar {
    position: relative;
}

.sticky-share-box {
    position: sticky;
    top: 100px; /* Mengikuti layar saat di-scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #aaaaaa;
    transform: rotate(-90px);
    margin-bottom: 5px;
}

.share-link {
    width: 35px;
    height: 35px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dds-text-muted);
    background: var(--dds-white);
    transition: all 0.3s ease;
}

.share-link:hover {
    color: var(--dds-gold);
    border-color: var(--dds-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* TYPOGRAPHY LEGAL (Pengaturan gaya tulisan di dalam artikel) */
.typography-legal {
    font-family: 'Georgia', 'Times New Roman', serif; /* Mengganti Playfair Display menjadi Serif yang tipis & berwibawa */
    font-size: 1.15rem;           /* Mengecilkan sedikit ukuran agar serasi dengan font baru */
    line-height: 1.9;             /* Memberikan jarak napas vertikal antar kalimat agar mata tidak lelah */
    color: #333333;               /* Mengubah warna teks abu pekat sedikit soft agar tidak hitam kaku */
    font-weight: 400 !important;  /* MEMAKSA HURUF MENJADI NORMAL/TIPIS, TIDAK BOLD */
    letter-spacing: 0.2px;        /* Memberikan sedikit jarak antar-huruf */
}

.typography-legal p {
    margin-bottom: 25px;
    text-align: justify;          /* Format resmi berkas hukum rata kanan-kiri */
    font-weight: 400 !important;  /* Menjamin tag paragraf tidak ikut menebal */
}

/* Pengaturan elemen heading di dalam artikel */
.typography-legal h2, .typography-legal h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dds-charcoal);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.typography-legal h2 { font-size: 1.8rem; border-left: 3px solid var(--dds-gold); padding-left: 15px; }
.typography-legal h3 { font-size: 1.4rem; }

/* Blockquote / Kutipan Undang-Undang atau Putusan */
.typography-legal blockquote {
    margin: 35px 0;
    padding: 20px 30px;
    background-color: var(--dds-gray-light);
    border-left: 4px solid var(--dds-charcoal);
    font-style: italic;
    font-size: 1.15rem;
    color: #444444;
}

.typography-legal ul, .typography-legal ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.typography-legal li {
    margin-bottom: 10px;
}

/* Tag Dokumen */
.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dds-charcoal);
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: var(--dds-gray-light);
    color: var(--dds-text-muted);
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #eaeaea;
}

.article-tags a:hover {
    background: var(--dds-charcoal);
    color: var(--dds-white);
    border-color: var(--dds-charcoal);
}

/* Disclaimer Hukum */
.legal-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: #F4F5F7;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.6;
    border: 1px solid #eef0f3;
}

/* Bagian Artikel Terkait (Rekomendasi) */
.related-articles-section {
    background-color: var(--dds-gray-light);
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid #eeeeee;
}

.related-section-heading {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-card {
    background: var(--dds-white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: var(--dds-gold);
}

.related-date {
    font-size: 0.8rem;
    color: var(--dds-text-muted);
    margin-bottom: 10px;
}

.related-card h4 {
    font-size: 1.25rem;
    color: var(--dds-charcoal);
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1; /* Dorong baca selengkapnya ke bawah */
}

.related-readmore {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dds-gold);
}


/* ========================================================
   ⚡ PENYESUAIAN ARTIKEL RESPONSIF HP (MEDIA QUERY SINGLE)
   ======================================================== */
@media (max-width: 768px) {
    .single-legal-main {
        padding-top: 20px;
    }
    
    .article-title {
        font-size: 1.85rem; /* Ukuran pas untuk judul artikel di layar HP */
        line-height: 1.3;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    
    .article-featured-image-wrapper {
        margin-bottom: 30px;
    }
    
    /* Hilangkan sidebar kolom di HP dan satukan menjadi 1 kolom vertikal */
    .grid-article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Tombol Share pindah ke atas/bawah isi artikel secara horizontal di HP */
    .article-share-sidebar {
        display: none; /* Menyembunyikan share widget bawaan desktop agar minimalis di HP */
    }
    
    .typography-legal {
        font-size: 1.05rem; /* Ukuran font ideal membaca dokumen di smartphone */
        line-height: 1.75;
    }
    
    .typography-legal p {
        text-align: left; /* Rata kiri lebih nyaman dibaca di layar vertikal sempit */
    }

    .typography-legal h2 {
        font-size: 1.4rem;
    }
    
    .related-articles-section {
        margin-top: 50px;
        padding: 40px 0;
    }
    
    /* Grid artikel terkait rubah jadi vertikal ke bawah di HP */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-card {
        padding: 20px;
    }
}
/* ========================================================
   📸 1. PERBAIKAN THUMBNAIL DI HALAMAN DAFTAR (ARCHIVE)
   ======================================================== */

/* Mengatur container utama kartu post */
.card-post {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden; /* Memotong ujung gambar agar ikut tumpul */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-post:hover {
    transform: translateY(-5px);
}

/* Memaksa elemen pembungkus thumbnail menggunakan rasio 16:10 */
.card-post img, 
.card-post .attachment-medium, 
.card-post .attachment-large {
    width: 100% !important;
    height: 200px !important; /* Tinggi seragam yang pas untuk kartu */
    object-fit: cover !important; /* Memotong gambar secara proporsional dari tengah, ANTI GEPENG/TERPOTONG ANEH */
    object-position: center !important;
    display: block;
}

/* Mengatur padding konten di bawah gambar agar rapi */
.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


/* ========================================================
   🗎 2. LAYOUT HALAMAN SINGLE ARTIKEL & SIDEBAR BAGIKAN
   ======================================================== */

/* Wadah utama artikel tunggal agar terpusat secara elegan */
.container-article {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bagian atas header tulisan judul */
.article-header {
    text-align: center;
    margin-bottom: 35px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3035;
    line-height: 1.3;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Menyetel area gambar utama di dalam artikel */
.article-featured-image-wrapper {
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.article-hero-img {
    width: 100% !important;
    height: 450px !important; /* Tinggi sinematik standar artikel premium */
    object-fit: cover !important;
    object-position: center !important;
}

/* ⚡ SISTEM GRID UNTUK MENAMPILKAN TOMBOL BAGIKAN DI KIRI TEXT */
.grid-article-layout {
    display: grid;
    grid-template-columns: 80px 1fr; /* 80px ruang khusus tombol bulat di kiri, sisanya untuk text */
    gap: 30px;
    align-items: start;
}

/* Membuat area tombol "BAGIKAN" melayang di samping kiri saat di-scroll */
.article-share-sidebar {
    position: sticky;
    top: 100px; /* Jarak mengambang dari atas layar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Pengaturan kotak disclaimer hukum di bawah */
.legal-disclaimer {
    margin-top: 50px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 3px solid #cda242; /* Aksen warna emas di sisi kiri */
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}


/* ========================================================
   📱 3. PENYESUAIAN KHUSUS LAYAR HP (RESPONSIF)
   ======================================================== */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.85rem;
    }

    .article-hero-img {
        height: 250px !important; /* Gambar mengecil di HP agar tidak memenuhi layar */
    }

    /* Di HP, tombol bagikan pindah ke atas atau bawah (menjadi 1 kolom vertikal) */
    .grid-article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-share-sidebar {
        position: relative;
        top: 0;
        flex-direction: row; /* Menjadi berjejer ke samping di HP */
        justify-content: center;
        margin-bottom: 15px;
    }
}
/* ========================================================
   ✍️ KOTAK INFORMASI PENULIS (AUTHOR BOX)
   ======================================================== */
.author-profile-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 45px;
    padding: 25px;
    background-color: #fafafa;
    border: 1px solid #eef0f2;
    border-radius: 6px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--dds-charcoal, #2c3035);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-icon {
    font-size: 1.6rem;
}

.author-info-text {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 0.75rem;
    color: var(--dds-gold, #cda242);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c3035;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.author-title-tag {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    font-style: italic;
}

@media (max-width: 576px) {
    .author-profile-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}
/* ========================================================
   👤 KOTAK PROFIL PENULIS ADVOKAT (DENGAN AVATAR BULAT)
   ======================================================== */
.author-profile-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 50px;
    padding: 30px;
    background-color: #fcfdfe;
    border: 1px solid #e9ecf0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.author-avatar-wrapper {
    flex-shrink: 0;
}

.author-avatar-img-circle {
    width: 75px;
    height: 75px;
    background-color: #2c3035; /* Warna latar belakang lingkaran avatar */
    border: 2px solid #cda242; /* Aksen warna emas di pinggiran lingkaran foto */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Jika foto belum diupload, otomatis memunculkan inisial huruf nama pengacara dengan elegan */
.author-avatar-initial {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.author-info-text {
    flex-grow: 1;
}

.author-label {
    font-size: 0.75rem;
    color: #cda242;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c3035;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.author-bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

@media (max-width: 576px) {
    .author-profile-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
}
/* ========================================================
   🏢 LAYOUT KUSTOM HALAMAN TENTANG KAMI
   ======================================================== */
.grid-2-about {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi dua kolom sama rata (Kiri Gambar, Kanan Teks) */
    gap: 45px;
    align-items: flex-start;
    margin-top: 20px;
}

.about-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.about-hero-img {
    width: 100% !important;
    height: 400px !important; /* Memaksa tinggi gambar agar presisi dan sejajar dengan teks */
    object-fit: cover !important; /* Menjaga foto kantor tetap proporsional, tidak penyet */
    object-position: center;
    display: block;
}

.about-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
}

/* Penyesuaian tampilan di layar Handphone (HP) */
@media (max-width: 768px) {
    .grid-2-about {
        grid-template-columns: 1fr; /* Di HP berubah menjadi satu kolom bertumpuk ke bawah */
        gap: 30px;
    }
    
    .about-hero-img {
        height: 250px !important; /* Memperkecil tinggi foto di HP agar pas di layar */
    }
}
/* ========================================================
   🍔 BURGER MENU & RESPONSIVE NAV FOR DDS LAW
   ======================================================== */

/* Default di Desktop: Sembunyikan Tombol Burger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3035;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* KETIKA DIAKSES LEWAT HP (MAX 768PX) */
@media (max-width: 768px) {
    /* 1. Atur container agar logo di kiri, burger di kanan */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
        padding: 10px 20px !important;
    }

    /* 2. Munculkan tombol burger */
    .menu-toggle {
        display: block !important;
    }

    /* 3. Paksa menu utama bersembunyi & melayang ke bawah saat aktif */
    .main-navigation {
        display: none; /* Sembunyikan menu bawaan di HP */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 10px 0 !important;
    }

    /* 4. Ketika ditambahkan class .active oleh JS, menu akan muncul */
    .main-navigation.active {
        display: block !important;
    }

    /* 5. Ubah susunan list menu menjadi vertikal/turun berderet */
    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main-navigation ul li {
        width: 100% !important;
        text-align: left !important;
    }

    .main-navigation ul li a {
        display: block !important;
        padding: 12px 25px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 6. Sembunyikan tombol CTA lama yang berantakan di luar menu */
    .header-cta {
        display: none !important;
    }

    /* 7. ANIMASI BURGER: Mengubah Garis 3 menjadi Silang (X) */
    .menu-toggle.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* ========================================================
   🍔 FIX BURGER MOBILE RESPONSIVE NAV FOR DDS LAW
   ======================================================== */

/* Pengaturan Awal Tombol Burger (Sembunyi di Laptop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 9999;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3035;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Sembunyikan tombol duplikat mobile saat di layar laptop */
.mobile-only-cta {
    display: none;
}

/* ATURAN BERAKSI SAAT LAYAR HP / MOBILE (MAX 768PX) */
@media (max-width: 768px) {
    /* Atur container header agar Logo di kiri, Burger di kanan */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        padding: 10px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tampilkan tombol burger */
    .menu-toggle {
        display: block !important;
    }

    /* Sembunyikan Tombol CTA Desktop lama yang bikin berantakan */
    .header-cta {
        display: none !important;
    }

    /* Ubah navigasi utama menjadi panel melayang ke bawah */
    .main-navigation {
        display: none; /* Default sembunyi sebelum diklik */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        z-index: 9998 !important;
        padding: 10px 0 !important;
    }

    /* Ketika burger diklik, class .active bekerja dan menu muncul */
    .main-navigation.active {
        display: block !important;
    }

    /* Tampilkan tombol konsultasi khusus di dalam menu mobile */
    .mobile-only-cta {
        display: block !important;
    }

    /* Paksa susunan menu ul li turun berderet ke bawah (vertikal) */
    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main-navigation ul li {
        width: 100% !important;
        text-align: left !important;
    }

    .main-navigation ul li a {
        display: block !important;
        padding: 14px 25px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        color: #2c3035 !important;
        font-size: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* ANIMASI BURGER: Mengubah Garis 3 menjadi simbol Silang (X) saat diklik */
    .menu-toggle.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* ========================================================
   🍔 FIX FINAL: PURE CSS BURGER (ANTI-GAGAL / TANPA JS)
   ======================================================== */

.menu-toggle {
    display: none;
    text-decoration: none;
    padding: 5px;
    z-index: 99999;
}
.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3035;
    margin: 5px 0;
    transition: all 0.2s ease-in-out;
}
.mobile-only-cta { display: none; }
#nav-open { display: none; }

/* KETIKA DIAKSES LEWAT HP / MOBILE (MAX 768PX) */
@media (max-width: 768px) {
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        padding: 10px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tampilkan tombol buka burger secara default */
    .menu-toggle.open-btn {
        display: block !important;
    }
    .menu-toggle.close-btn {
        display: none !important;
    }
    .header-cta {
        display: none !important;
    }

    /* Sembunyikan menu navigasi utama */
    header .header-container .main-navigation {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        z-index: 99990 !important;
        padding: 10px 0 !important;
    }

    /* TRIK UTAMA: Ketika link burger diklik, target aktif memicu menu untuk turun */
    #nav-open:target ~ .main-navigation {
        display: block !important;
    }
    /* Tukar tombol burger menjadi tombol silang (Close) */
    #nav-open:target ~ .menu-toggle.open-btn {
        display: none !important;
    }
    #nav-open:target ~ .menu-toggle.close-btn {
        display: block !important;
    }

    /* Pengaturan list menu mobile agar vertikal */
    .mobile-only-cta { display: block !important; }
    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    .main-navigation ul li {
        width: 100% !important;
        text-align: left !important;
    }
    .main-navigation ul li a {
        display: block !important;
        padding: 14px 25px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        color: #2c3035 !important;
        font-size: 1rem !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
}
/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--dds-charcoal);
    background: #fff;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--dds-gold);
    border-color: var(--dds-gold);
    color: #fff;
}

.pagination .current {
    background: var(--dds-gold);
    border-color: var(--dds-gold);
    color: #fff;
}

@media (max-width: 600px) {
    .pagination ul {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }
}