/*
Theme Name: Loker Elegan Premium
Theme URI: https://badmintonoke.web.id/
Author: Web Developer
Description: Tema WordPress kustom untuk informasi lowongan kerja dengan desain modern, responsif, elegan (Merah, Hitam, Putih).
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: loker-elegan
*/

/* --- Reset & Variabel Warna --- */
:root {
    --primary: #E50914; /* Merah Elegan */
    --dark: #141414;    /* Hitam Dominan */
    --light: #FFFFFF;   /* Putih */
    --gray: #F5F5F7;    /* Abu-abu terang untuk background kartu */
    --text-dark: #333333;
    --text-light: #AAAAAA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--light);
}

/* --- Layout Kontainer --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigasi --- */
.site-header {
    background-color: #000000;
    border-bottom: 3px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: var(--light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo h1 a span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: var(--light);
    padding: 10px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.main-nav ul li a:hover {
    color: var(--primary);
}

/* --- Hero Section (Pencarian Loker) --- */
.hero-section {
    background: linear-gradient(rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1200') no-repeat center center/cover;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #222;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.search-filter-box {
    background: #000000;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    display: inline-block;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* --- Main Content (Daftar Lowongan) --- */
.main-wrapper {
    padding: 40px 0;
}

.job-list-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    text-transform: uppercase;
}

.jobs-container {
    display: grid;
    grid-template-columns: 100%;
    gap: 20px;
}

.job-card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background-color: #252525;
}

.job-details h3 a {
    color: var(--light);
    font-size: 1.3rem;
}

.job-details h3 a:hover {
    color: var(--primary);
}

.job-meta {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.job-meta span {
    margin-right: 15px;
}

.job-meta .job-type {
    background-color: var(--primary);
    color: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.btn-apply {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-apply:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* --- Footer --- */
.site-footer {
    background-color: #000000;
    border-top: 1px solid #222;
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p span {
    color: var(--primary);
}

/* --- RESPONSIVE BREAKPOINTS (Mobile Friendly) --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-apply {
        width: 100%;
        text-align: center;
    }
}/* --- Tambahan Desain Frontpage (Merah, Hitam, Putih) --- */

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    text-transform: uppercase;
    color: var(--light);
}

/* Welcome Section Grid (2 Kolom) */
.welcome-section {
    background-color: #0b0b0b;
    padding: 80px 0;
    border-bottom: 1px solid #222;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.welcome-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--light);
}

.welcome-text h2 span {
    color: var(--primary);
}

.welcome-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.welcome-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary-action {
    background-color: var(--primary);
    color: var(--light);
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-primary-action:hover {
    background-color: #b80710;
    color: var(--light);
}

.btn-secondary-action {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-secondary-action:hover {
    background-color: var(--light);
    color: var(--dark);
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid #1f1f1f;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

/* Articles Section (Tips Lowongan Kerja) */
.articles-section {
    background-color: #141414;
    padding: 60px 0;
    border-top: 1px solid #222;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #1f1f1f;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    transition: 0.3s;
}

.article-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.article-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 20px;
}

.article-info h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.article-info h3 a {
    color: var(--light);
}

.article-info h3 a:hover {
    color: var(--primary);
}

.article-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    font-weight: bold;
    font-size: 0.9rem;
}
/* --- TATA LETAK GRID & DESAIN KARTU (CARD DESIGN MODERN) --- */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-link:hover {
    color: var(--light);
}

/* Responsif Grid Otomatis */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Arsitektur Komponen Utama Kartu */
.job-card-modern {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Hover Efek Naik & Glow Border Merah Semu */
.job-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.15);
    background-color: #242424;
}

/* Bagian Atas Kartu (Badges & Ikon) */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.badges-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badge Tipe Kerja (Merah Transparan) */
.badge-type {
    background-color: rgba(229, 9, 20, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Badge Kategori Kerja (Putih/Abu Transparan) */
.badge-cat {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.company-icon {
    background: #2a2a2a;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    font-size: 1.1rem;
}

/* Bagian Tengah Kartu */
.card-body {
    margin-bottom: 25px;
    flex-grow: 1; /* Memastikan tinggi body fleksibel */
}

.job-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.job-title a {
    color: var(--light);
}

.job-title a:hover {
    color: var(--primary);
}

.company-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
}

.job-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Bagian Bawah Kartu */
.card-footer {
    border-top: 1px solid #333;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location {
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 500;
}

.post-date {
    color: #777;
    font-size: 0.8rem;
}

/* Tombol Detail Elegan Pendek */
.btn-apply-modern {
    background-color: var(--primary);
    color: var(--light);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-apply-modern:hover {
    background-color: #b80710;
    color: var(--light);
}

.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 50px 0;
}
/* --- STYLING DETAIL SINGLE LOKER & SIDEBAR RELATED --- */

.loker-single-wrapper {
    background-color: #141414;
    padding: 50px 0;
}

/* Tata Letak Pembagian 2 Kolom */
.loker-single-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* --- KOLOM UTAMA (KIRI) --- */
.loker-header-card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-bottom: 3px solid var(--primary);
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

.loker-badge-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.loker-single-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--light);
    line-height: 1.3;
    margin-bottom: 10px;
}

.loker-single-company {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.loker-meta-strip {
    display: flex;
    gap: 20px;
    color: #aaa;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Banner Gambar Tengah */
.loker-single-thumb {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

.loker-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Area Konten Konten */
.loker-body-content {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-top: none;
    padding: 40px 30px;
    border-radius: 0 0 12px 12px;
}

.block-title {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content {
    color: #e5e5e5;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Format teks editor bawaan di dalam single post */
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin-left: 20px; margin-bottom: 20px; color: #e5e5e5; }
.entry-content li { margin-bottom: 8px; }

/* Box CTA Apply */
.loker-action-box {
    background: linear-gradient(135deg, #220305 0%, #000000 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.loker-action-box h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.loker-action-box p {
    color: #aaa;
    margin-bottom: 20px;
}

.btn-submit-cv {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-submit-cv:hover {
    background-color: #b80710;
    transform: translateY(-2px);
    color: var(--light);
}

/* --- SIDEBAR RELATED LOKER (KANAN) --- */
.sidebar-sticky-box {
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 100px; /* Menempel saat di-scroll ke bawah */
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--light);
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.related-loker-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mini Card */
.related-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.related-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-thumb-mini {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #444;
}

.related-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.related-info h4 a {
    color: var(--light);
}

.related-info h4 a:hover {
    color: var(--primary);
}

.rel-meta {
    font-size: 0.8rem;
    color: #888;
}

/* --- BREAKPOINT RESPONSIVE UNTUK SMARTPHONE --- */
@media (max-width: 992px) {
    .loker-single-grid {
        grid-template-columns: 1fr; /* Kolom berubah menumpuk ke bawah */
        gap: 30px;
    }
    .sidebar-sticky-box {
        position: relative;
        top: 0;
    }
    .loker-single-title {
        font-size: 1.8rem;
    }
}
/* Responsif Tambahan */
@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .job-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Modifikasi Responsif Tambahan */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .welcome-buttons {
        justify-content: center;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .welcome-text h2 {
        font-size: 2.2rem;
    }
}