/* --- Global Styles & Variables --- */
:root {
    --color-primary: #0a2342;  /* Biru Tua (Profesional) */
    --color-secondary: #ffffff; /* Putih */
    --color-accent: #d4a373;   /* Aksen Emas/Krem (Kredibel) */
    --color-text: #333333;
    --color-text-light: #f4f4f4;
    --color-bg-light: #f9f9f9;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
}


body {
    font-family: var(--font-body);
    color: var(--font-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--color-secondary);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.2em;
}

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

/* --- Utility Buttons --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #c99a6a;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #081b33;
}

/* --- Header & Navigation --- */
.navbar {
    background-color: var(--color-secondary);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
}

/* --- 1. Hero Section --- */
.hero {
    width: 100%;
    height: 60vh;
    position: relative;
    color: var(--color-text-light);
}

.hero-image-container {
    width: 100%;
    height: 100%;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Gelapkan gambar agar teks terbaca */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 0.5em;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 1.5em;
}

/* --- 2. Featured Books --- */
.featured-books {
    padding: 4rem 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--color-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.book-card h3 {
    padding: 1rem 1.5rem 0.5rem;
}

.book-card p {
    padding: 0 1.5rem;
    font-size: 0.95em;
}

.book-card .btn-secondary {
    margin: 0 1.5rem 1.5rem;
}

/* --- 3. Latest Weblog --- */
.latest-weblog {
    padding: 4rem 0;
}

.latest-weblog h2 {
    text-align: center;
}

.weblog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.weblog-post {
    background: var(--color-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weblog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.weblog-post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-date {
    font-size: 0.85em;
    color: #777;
    text-transform: uppercase;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.post-content p {
    font-size: 0.95em;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

/* --- 4. About the Author --- */
.about-author {
    padding: 4rem 0;
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image img {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border: 5px solid var(--color-accent);
}

.about-text h2 {
    color: var(--color-secondary);
    font-size: 2rem;
}

/* --- Footer --- */
.site-footer {
    padding: 2rem 0;
    background-color: #222;
    color: #aaa;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .book-grid, .weblog-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        /* Tambahkan fungsionalitas menu mobile di sini nanti */
        display: none; 
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .book-grid, .weblog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Halaman Header (Weblog) --- */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin: 0;
}

.page-header p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

/* --- Tata Letak Blog --- */
.blog-layout {
    display: flex;
    gap: 3rem;
    padding: 4rem 0;
}

/* 1. Feed Artikel Utama */
.main-feed {
    flex: 3; /* Mengambil 3 bagian ruang */
}

.blog-post-full {
    background: var(--color-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2.5rem;
    display: flex; /* Membuat gambar di kiri, teks di kanan */
    transition: box-shadow 0.3s ease;
}

.blog-post-full:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-post-full img {
    width: 40%;
    min-width: 300px;
    height: auto;
    object-fit: cover;
}

.post-content-full {
    padding: 2rem;
    flex: 1;
}

.post-content-full h2 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.post-content-full h2 a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.post-content-full h2 a:hover {
    color: var(--color-accent);
}

.post-content-full p {
    font-size: 1rem;
    line-height: 1.7;
}

/* 2. Sidebar */
.sidebar {
    flex: 1; /* Mengambil 1 bagian ruang */
    min-width: 280px;
}

.sidebar-widget {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Widget Pencarian */
.search-form {
    display: flex;
}

.search-form input[type="search"] {
    flex: 1;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 5px 0 0 5px;
    font-family: var(--font-body);
}

.search-form button {
    border: none;
    background-color: var(--color-primary);
    color: white;
    padding: 0 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Widget List (Kategori & Artikel Baru) */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 0.75rem;
}

.widget-list a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: var(--color-accent);
}

/* Widget Author */
.sidebar-author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
}

.sidebar-widget p {
    font-size: 0.95em;
    text-align: center;
}

.sidebar-widget a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    display: block;
    text-align: center;
}

/* --- Responsive untuk Halaman Blog --- */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-post-full {
        flex-direction: column;
    }
    
    .blog-post-full img {
        width: 100%;
        height: 250px;
    }
}
/* --- Halaman Artikel Tunggal --- */

.main-article {
    flex: 3; /* Mengambil ruang yang sama dengan main-feed */
    background-color: var(--color-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.article-meta {
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
}

.article-meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0.25rem 0 0.5rem;
}

.article-header .post-date {
    font-size: 0.9em;
    color: #777;
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Penyesuaian Responsive untuk Artikel */
@media (max-width: 992px) {
    .main-article {
        /* Di mode tablet/mobile, hapus padding berlebih agar pas */
        padding: 1rem;
    }
}
/* --- Halaman "About" --- */

.about-hero {
    height: 40vh; /* Lebih pendek dari hero homepage */
    position: relative;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.about-hero::before {
    /* Overlay gelap agar teks terbaca */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.about-hero .hero-text {
    position: relative; /* Pastikan di atas overlay */
    z-index: 2;
}

.about-hero h1 {
    font-size: 3rem;
    color: white;
    margin: 0;
}

.about-hero p {
    font-size: 1.25rem;
    color: white;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Konten Utama Halaman "About" */
.main-content-about {
    flex: 2.5; /* Beri lebih banyak ruang untuk teks */
    background-color: var(--color-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    line-height: 1.8;
}

.main-content-about h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}
.main-content-about h2:first-of-type {
    margin-top: 0;
}

.main-content-about ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1.5em;
}

/* Sidebar Halaman "About" */
.sidebar-about {
    flex: 1;
    min-width: 280px;
}

.about-page-author-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-page-author-name {
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
}

.about-page-author-title {
    text-align: center;
    font-size: 1rem;
    color: #777;
    margin-top: 0.25rem;
}

.widget-book-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-book-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-book-list img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.widget-book-list a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
}
.widget-book-list a:hover {
    color: var(--color-accent);
}

/* Penyesuaian Responsive */
@media (max-width: 992px) {
    .main-content-about {
        padding: 1.5rem;
    }
}
/* --- Halaman "About" --- */

.about-hero {
    height: 40vh; /* Lebih pendek dari hero homepage */
    position: relative;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.about-hero::before {
    /* Overlay gelap agar teks terbaca */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.about-hero .hero-text {
    position: relative; /* Pastikan di atas overlay */
    z-index: 2;
}

.about-hero h1 {
    font-size: 3rem;
    color: white;
    margin: 0;
}

.about-hero p {
    font-size: 1.25rem;
    color: white;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Konten Utama Halaman "About" */
.main-content-about {
    flex: 2.5; /* Beri lebih banyak ruang untuk teks */
    background-color: var(--color-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    line-height: 1.8;
}

.main-content-about h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}
.main-content-about h2:first-of-type {
    margin-top: 0;
}

.main-content-about ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1.5em;
}

/* Sidebar Halaman "About" */
.sidebar-about {
    flex: 1;
    min-width: 280px;
}

.about-page-author-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-page-author-name {
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
}

.about-page-author-title {
    text-align: center;
    font-size: 1rem;
    color: #777;
    margin-top: 0.25rem;
}

.widget-book-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-book-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-book-list img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.widget-book-list a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
}
.widget-book-list a:hover {
    color: var(--color-accent);
}

/* Penyesuaian Responsive */
@media (max-width: 992px) {
    .main-content-about {
        padding: 1.5rem;
    }
}

/* --- Halaman "Books" --- */

.book-list-section {
    padding: 4rem 0;
    background-color: var(--color-bg-light); /* Latar belakang abu-abu muda */
}

.book-entry {
    display: flex;
    gap: 2.5rem;
    background-color: var(--color-secondary); /* Latar belakang putih */
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.book-entry-image {
    width: 250px; /* Lebar tetap untuk sampul */
    height: 375px; /* Proporsi sampul buku yang umum */
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0; /* Mencegah gambar menyusut */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.book-entry-content {
    flex: 1; /* Ambil sisa ruang */
}

.book-entry-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-top: 0;
}

.book-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    color: #555;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.book-entry-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.book-purchase-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Penyesuaian Responsive untuk Halaman Buku */
@media (max-width: 900px) {
    .book-entry {
        flex-direction: column; /* Tumpuk secara vertikal */
        align-items: center; /* Pusatkan gambar */
        text-align: center;
    }

    .book-entry-image {
        width: 200px;
        height: 300px;
    }

    .book-purchase-links {
        justify-content: center;
    }
}
/* --- Halaman "Contact" --- */

.contact-section {
    padding: 4rem 0;
    background-color: var(--color-bg-light);
}

.contact-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start; /* Jaga agar bagian atas sejajar */
}

/* 1. Kontainer Formulir Kontak */
.contact-form-container {
    flex: 2.5; /* Beri lebih banyak ruang untuk formulir */
    background-color: var(--color-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-form-container h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 0;
}

/* 2. Info Kontak (Sidebar) */
.contact-details {
    flex: 1;
    min-width: 280px;
    /* Kita gunakan .sidebar-widget yang sudah ada gayanya */
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    line-height: 1.7;
}

.contact-info-list li {
    margin-bottom: 1.5rem;
}

.contact-info-list strong {
    color: var(--color-primary);
}

.contact-info-list a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

/* Penataan Formulir */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box; /* Pastikan padding tidak merusak lebar */
}

.form-group textarea {
    resize: vertical; /* Izinkan pengguna mengubah ukuran secara vertikal */
}

/* Tombol Submit (menggunakan .cta-button yang ada) */
.contact-form .cta-button {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Penyesuaian Responsive untuk Halaman Kontak */
@media (max-width: 992px) {
    .contact-layout {
        flex-direction: column-reverse; /* Pindahkan sidebar ke atas di mode mobile */
    }
}


/* === Halaman Internal & Halaman /ve/ === */

/* Header Halaman (untuk halaman selain homepage) */


/* Konten utama halaman */
.content-section {
    padding: 3rem 0;
}

.content-section > p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid untuk Halaman Verticals */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.vertical-item {
    background: var(--bg-light);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vertical-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.vertical-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.vertical-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Penyesuaian Responsive untuk Grid */
@media (max-width: 900px) {
    .vertical-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .vertical-grid {
        grid-template-columns: 1fr;
    }
}