/* =========================================
   1. LAYOUT UTAMA
   ========================================= */
.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.author-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.author-main-content {
    flex: 1; 
    min-width: 0;
}

.author-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.author-sidebar .sidebar-inner {
    position: sticky;
    top: 90px;
}

/* =========================================
   2. HEADER PROFIL AUTHOR (STYLE KHUSUS)
   ========================================= */
.author-header-card {
    display: flex;
    gap: 25px; /* Jarak foto ke teks */
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee; /* Garis pemisah antara profil dan list artikel */
    align-items: flex-start;
}

/* Avatar Bulat */
.author-avatar-wrapper img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Membuat bulat */
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

/* Info Text Wrapper */
.author-info-wrapper {
    flex: 1;
}

/* Nama Author */
.author-name {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

/* Role / Jabatan */
.author-role {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase; /* Biar rapi kayak "EDITOR LIPUTAN6" */
    margin-bottom: 12px;
}

/* Bio / Deskripsi */
.author-bio {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* =========================================
   3. LIST ARTIKEL (Copy Style Archive)
   ========================================= */
.author-list-wrapper {
    display: flex;
    flex-direction: column;
}

.author-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.author-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.author-thumb {
    width: 240px; 
    height: 160px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.author-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.author-thumb:hover img { transform: scale(1.05); }

.author-content {
    display: flex; flex-direction: column; justify-content: center;
}

.author-cat a {
    font-size: 12px; font-weight: 700; color: #003399; 
    text-decoration: none; text-transform: uppercase; margin-bottom: 5px;
}

.author-item-title {
    font-size: 22px; font-weight: 700; line-height: 1.35; margin: 5px 0 10px 0;
}
.author-item-title a { text-decoration: none; color: #111; }
.author-item-title a:hover { color: #003399; }

.author-meta { font-size: 13px; color: #999; }

/* Pagination */
.author-pagination { margin-top: 15px; text-align: center; }
.nav-links .page-numbers {
    padding: 8px 14px; border: 1px solid #ddd; margin: 0 4px;
    text-decoration: none; color: #333; border-radius: 4px;
}
.nav-links .current { background: #003399; color: #fff; border-color: #003399; }


/* =========================================
   4. RESPONSIF MOBILE & TABLET
   ========================================= */
@media (max-width: 991px) {
    
    .author-row { flex-direction: column; }

    /* FIX PADDING ATAS HEADER */
    .author-container {
        padding-top: 90px !important;
        padding-left: 15px; padding-right: 15px; padding-bottom: 0;
    }

    /* Layout Header Profil di Mobile */
    .author-header-card {
        flex-direction: column; 
        align-items: center;   
        text-align: center;     
        gap: 15px;
    }

    /* LIST ITEM MOBILE */
    .author-item {
        gap: 15px;
        border-bottom: none !important; 
        margin-bottom: 25px; /* Kasih jarak antar artikel biar ga terlalu rapet karena gambar gede */
        padding-bottom: 0;
        align-items: flex-start; /* Pastikan teks sejajar atas */
    }
    
    /* --- PERUBAHAN DISINI (GAMBAR LEBIH BESAR & PORTRAIT) --- */
    .author-thumb {
        width: 120px;   /* Sedikit lebih lebar */
        height: 120px;  /* Jauh lebih tinggi (Kotak Kebawah / Portrait) */
        flex-shrink: 0; /* Agar gambar tidak menciut */
        border-radius: 0px;
    }
    
    .author-item-title {
        font-size: 16px; 
        line-height: 1.4; /* Sedikit lebih renggang biar enak baca judul panjang */
        margin-bottom: 5px;
        display: -webkit-box; 
        -webkit-line-clamp: 4; /* Judul boleh lebih panjang (4 baris) karena gambarnya tinggi */
        -webkit-box-orient: vertical; 
        overflow: hidden;
    }

    .author-cat a { font-size: 10px; margin-bottom: 4px; }
    .author-meta { font-size: 11px; }

    /* SIDEBAR MOBILE */
    .author-sidebar {
        width: 100%; margin-top: 0; padding-top: 0; border-top: none; margin-bottom: 50px;
    }
}