/* style_v11.css */
/* FINAL: Perbaikan Keterbacaan Konten Artikel & Detail Visual */

/* --- Variabel Global & Reset Dasar --- */
:root {
    --primary-color: #0A759F;
    --secondary-color: #1c3f94;
    --accent-color: #da521e;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --light-gray: #f4f6f9;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --font-stack: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --border-radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); font-size: 16px; line-height: 1.6; color: var(--text-color); background-color: var(--light-gray); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; display: block; }
.not-found { text-align: center; padding: 50px; font-size: 1.2em; color: var(--text-light); }

/* --- Header & Navbar --- */
.main-header { background-color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 20px; }
.navbar-brand { padding: 5px 0; display: flex; align-items: center; height: 70px; }
.navbar-brand img { max-height: 20px; width: auto; }
.navbar-toggle { background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; display: block; }
.navbar-collapse { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--primary-color); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.navbar-collapse.active { display: block; }
.navbar-nav { list-style: none; }
.nav-item .nav-link { display: block; color: var(--white); padding: 15px 20px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-item .nav-link:hover { background-color: var(--secondary-color); }
.search-container { position: relative; width: 100%; padding: 10px 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.search-container input { width: 100%; padding: 8px 35px 8px 15px; border-radius: 20px; border: 1px solid transparent; font-size: 14px; }
.search-container button { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; color: var(--text-light); cursor: pointer; }

/* --- Konten Utama & Judul Section --- */
.main-content { margin-top: 100px; padding-bottom: 40px; }
.page-header { margin-bottom: 30px; }
.page-title, .section-title { font-size: 28px; border-bottom: 3px solid var(--primary-color); padding-bottom: 10px; }
.section-title { font-size: 24px; }
.main-content > .container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: flex-start; }
.main-column { width: 100%; }
.sidebar-area { width: 100%; }

/* --- Hero Section --- */
.hero-section { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; }
.hero-featured { position: relative; aspect-ratio: 16 / 9; height: auto; max-height: 60vh; border-radius: var(--border-radius); overflow: hidden; background-size: cover; background-position: center; color: var(--white); display: flex; align-items: flex-end; }
.hero-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%); z-index: 1; }
.hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-link { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: flex-end; color: inherit; }
.hero-content { padding: 20px; width: 100%; }
.card-category { font-size: 12px; font-weight: bold; color: var(--accent-color); text-transform: uppercase; margin-bottom: 10px; }
.hero-content .card-category { background-color: var(--accent-color); color: var(--white); padding: 4px 10px; border-radius: 4px; display: inline-block; }
.hero-content h2 { font-size: 24px; line-height: 1.3; margin: 10px 0; text-shadow: 2px 2px 6px rgba(0,0,0,0.7); }
.card-meta { font-size: 13px; color: var(--white); opacity: 0.9; }
.card-meta span { margin-right: 15px; }
.hero-secondary-headlines { display: flex; flex-direction: column; }
.headline-item a { display: block; padding: 20px 0; border-bottom: 1px solid var(--border-color); color: var(--text-color); }
.headline-item:last-child a { border-bottom: none; }
.headline-item a:hover h3 { color: var(--primary-color); }
.headline-item h3 { font-size: 18px; line-height: 1.4; }

/* --- Grid & Kartu Artikel --- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.post-card { background-color: var(--white); box-shadow: var(--shadow); border-radius: var(--border-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.card-image-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--light-gray); }
.card-image-link img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h2 { font-size: 20px; margin-bottom: 15px; flex-grow: 1; line-height: 1.4; }
.card-content h2 a { color: var(--text-color); }
.card-content p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { border-top: 1px solid var(--border-color); padding-top: 15px; font-size: 12px; color: var(--text-light); }

/* --- Halaman Artikel Tunggal (Layout) --- */
.post-single { background-color: var(--white); } /* Memindahkan background ke post-single */
.content-area { width: 100%; }
.post-header { padding: 30px 30px 20px 30px; }
.post-header h1 { font-size: 28px; margin-bottom: 15px; line-height: 1.3; }
.post-meta span { display: inline-block; margin-right: 15px; margin-bottom: 5px; }
.post-media { margin: 0 0 30px 0; }
.author-box, .social-share { margin: 40px 30px 30px 30px; }

/* --- Sidebar & Widget --- */
.sidebar-area { width: 100%; margin-top: 30px; }
.widget { background-color: var(--white); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.widget-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.widget-list { list-style: none; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { font-weight: bold; }
.widget-list span { font-size: 12px; color: var(--text-light); display: block; margin-top: 5px; }
.popular-posts li { display: flex; align-items: flex-start; counter-increment: popular-counter; }
.popular-posts li::before { content: counter(popular-counter); font-size: 24px; font-weight: bold; color: var(--border-color); margin-right: 15px; line-height: 1; }
.author-box { padding-top: 30px; border-top: 1px solid var(--border-color); display: flex; align-items: flex-start; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; margin-right: 20px; }

/* --- Tombol Share --- */
.social-share { padding: 30px; background-color: var(--light-gray); border-radius: var(--border-radius); text-align: center; }
.share-title { font-size: 20px; margin-bottom: 20px; color: var(--text-color); }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 5px; color: var(--white); font-weight: bold; text-decoration: none; transition: transform 0.2s ease, opacity 0.2s ease; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; color: var(--white); }
.share-btn .fab { font-size: 1.2em; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.linkedin { background-color: #0A66C2; }

/* --- Paginasi & Footer --- */
.pagination { display: flex; justify-content: center; margin-top: 50px; }
.pagination ul { list-style: none; display: flex; gap: 8px; }
.pagination a { display: block; min-width: 40px; text-align: center; padding: 10px 15px; background: var(--white); border: 1px solid var(--border-color); border-radius: 5px; color: var(--primary-color); font-weight: bold; transition: all 0.2s ease; }
.pagination a:hover, .pagination a.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.main-footer { background-color: #333; color: #eee; padding: 20px 0; text-align: center; margin-top: 40px; }

/* ================================================= */
/* --- Tipografi & Konten Artikel Tunggal --- */
/* ================================================= */
.post-content {
    padding: 0 30px 30px 30px;
    max-width: 75ch; /* Batasi panjang baris agar mudah dibaca */
    margin: 0 auto; /* Posisikan di tengah .content-area */
}
/* Paragraf utama */
.post-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #212121;
}
/* Headings di dalam artikel */
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: bold;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--text-color);
}
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.2rem; }
/* Lists (ordered & unordered) */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.post-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0.5em;
}
/* Blockquotes */
.post-content blockquote {
    margin: 2em 0;
    padding: 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    font-size: 18px;
    color: var(--text-light);
}
/* Elemen lainnya */
.post-content strong { color: var(--text-color); }
.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}
.post-content a:hover {
    color: var(--accent-color);
}
.post-content .contact-btn {
    color: var(--white) !important; /* Paksa warna teks menjadi putih */
    text-decoration: none !important; /* Hapus garis bawah */
    font-weight: bold; /* Pastikan tetap tebal */
}


@media (min-width: 992px) {
    .main-content > .container { grid-template-columns: minmax(0, 1fr) 320px; }
    .main-column:only-child { grid-column: 1 / -1; }
    .hero-section { grid-template-columns: 2fr 1fr; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-header h1 { font-size: 36px; }
    .hero-content h2 { font-size: 32px; }
    .navbar-toggle { display: none; }
    .navbar-collapse { display: flex; position: static; width: auto; background: none; box-shadow: none; align-items: center; }
    .navbar-nav { display: flex; align-items: center; }
    .nav-item .nav-link { border-bottom: none; }
    .search-container { width: 250px; padding: 0; border: none; }
}
@media (min-width: 1200px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .main-content > .container { grid-template-columns: minmax(0, 1fr) 350px; }
}

/* ================================================= */
/* --- Gaya Halaman Panduan & FAQ --- */
/* ================================================= */

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: -10px;
}

.card-contact {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 2.5em;
    text-align: center;
}

.card-contact h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--white); /* <-- Baris ini sudah benar */
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-btn:hover {
    color: var(--white); /* <-- Baris ini juga sudah benar */
    transform: translateY(-2px);
    opacity: 0.9;
}

.contact-btn.whatsapp { background-color: #25D366; }
.contact-btn.email { background-color: #EA4335; }

.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 0.8em;
}

/* --- Gaya FAQ Accordion --- */
.faq-accordion {
    border-top: 1px solid var(--border-color);
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question .fa-chevron-down {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question .fa-chevron-down {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    padding: 0 0 15px;
    color: var(--text-light);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Sesuaikan jika jawaban sangat panjang */
}

/* style_homepage.css */
/* Desain Khusus untuk Halaman Utama Portal Loker */


/* --- HERO SEARCH SECTION --- */
.hero-search-section {
    background-color: var(--secondary-color);
    background-image: linear-gradient(rgba(28, 63, 148, 0.8), rgba(28, 63, 148, 0.8)), url('hero-background.jpg'); /* Ganti dengan URL gambar Anda */
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.hero-search-section h1 { font-size: 36px; margin-bottom: 10px; }
.hero-search-section p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-search-form { display: flex; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.hero-search-form .form-group { flex-grow: 1; display: flex; align-items: center; }
.hero-search-form .form-group i { color: var(--text-light); padding-left: 20px; }
.hero-search-form input { width: 100%; border: none; padding: 20px 15px; font-size: 16px; outline: none; background: transparent; }
.hero-search-form button { background-color: var(--accent-color); color: #fff; border: none; padding: 0 30px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 0 8px 8px 0; transition: background-color 0.2s ease; }
.hero-search-form button:hover { background-color: #c04818; }

/* --- KATEGORI SECTION --- */
.categories-section { padding: 50px 0; background-color: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--light-gray); padding: 25px; border-radius: 8px; text-align: center; color: var(--text-color); font-weight: bold; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card i { color: var(--primary-color); margin-bottom: 15px; }

/* --- KONTEN UTAMA (Loker & Sidebar) --- */
.content-wrapper { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 50px 15px; }
.loker-list { display: flex; flex-direction: column; gap: 20px; }
.loker-item-card { display: flex; align-items: center; gap: 20px; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: var(--shadow); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.loker-item-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.loker-item-logo { flex-shrink: 0; width: 60px; height: 60px; border: 1px solid var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loker-item-logo img { max-width: 90%; max-height: 90%; }
.loker-item-info h3 { font-size: 18px; margin-bottom: 5px; color: var(--text-color); }
.loker-item-info .company-name { font-size: 15px; color: var(--text-light); font-weight: bold; margin-bottom: 10px; }
.loker-item-meta { display: flex; gap: 15px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.loker-item-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* --- SIDEBAR --- */
.widget { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.widget-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.widget-list { list-style: none; }
.location-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-weight: bold; }
.location-list a:hover { color: var(--accent-color); }
.location-list li:last-child a { border-bottom: none; }
.location-list span { color: var(--text-light); }
.sidebar-article-card { display: flex; gap: 15px; margin-top: 15px; }
.sidebar-article-image { flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; }
.sidebar-article-image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-article-content .card-category { font-size: 11px; font-weight: bold; color: var(--accent-color); }
.sidebar-article-content h4 { font-size: 14px; line-height: 1.4; }

/* --- CTA SECTION --- */
.cta-section { background-color: var(--secondary-color); text-align: center; padding: 50px 0; color: #fff; }
.cta-section h2 { font-size: 28px; margin-bottom: 10px; }
.cta-button { display: inline-block; background-color: var(--accent-color); color: #fff; font-weight: bold; padding: 15px 30px; border-radius: 8px; margin-top: 20px; transition: background-color 0.2s ease; }
.cta-button:hover { background-color: #c04818; }

/* --- MEDIA QUERIES --- */
@media (min-width: 992px) {
    .content-wrapper { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 768px) {
    .hero-search-form { flex-direction: column; }
    .hero-search-form button { border-radius: 8px; margin-top: 10px; padding: 15px; }
}