/* ======================================================
   1. LAYOUT UTAMA 
   ====================================================== */
.front-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px; 
    gap: 48px;
    margin-top: 40px;
    align-items: start;

    /* Container Wrapper */
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* ======================================================
   2. HEADER & SEKAT
   ====================================================== */
.fs-tag-section {
    margin-bottom: 5px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 18px;
}
.fs-tag-section:last-child {
    border-bottom: none;
}

.fs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    border-left: 4px solid #E21818; 
    padding-left: 16px;
}

.fs-title a {
    font-size: 2.2rem;
    font-weight: 700;
    color: #15171a;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.fs-more {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E21818;
    text-decoration: none;
}

/* ======================================================
   3. POST GRID & KARTU BERITA
   ====================================================== */
.fs-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
}

.fs-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fs-card-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fs-card:hover .fs-card-img {
    transform: scale(1.05);
}

.fs-card-title {
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.fs-card-title a {
    color: #15171a;
    text-decoration: none;
}

.fs-card-meta {
    font-size: 1.2rem;
    color: #738a94;
    margin-top: auto;
}

/* ======================================================
   4. SIDEBAR & WIDGET STYLE
   ====================================================== */
.fs-sidebar {
    position: sticky;
    top: 30px;
}

.fs-widget {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.fs-widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #E21818;
    display: inline-block;
    margin-bottom: 20px;
}

/* Widget Subscribe */
.fs-subscribe-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.fs-subscribe-form button {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ======================================================
   5. YOUTUBE WIDGET STYLE
   ====================================================== */
.yt-widget-wrap {
    background: #000;
    color: #fff;
    border-bottom: 3px solid #e21818;
    border-radius: 4px;
    overflow: hidden;
}

.yt-widget-header {
    background: #111;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yt-widget-header h3 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
}

.yt-badge {
    background: #e21818;
    padding: 2px 6px;
    margin-right: 8px;
    border-radius: 3px;
    font-size: 11px;
}

.yt-iframe-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.yt-iframe-box iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.yt-main-title {
    padding: 12px 15px;
    margin: 0;
    font-size: 14px;
    color: #fff;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.yt-playlist-list {
    height: 280px;
    overflow-y: auto;
    background: #222;
}
.yt-playlist-list::-webkit-scrollbar { width: 6px; }
.yt-playlist-list::-webkit-scrollbar-thumb { background: #555; }

.yt-item {
    padding: 10px; border-bottom: 1px solid #333;
}
.yt-item:hover { background: #333; }

/* ======================================================
   6. RESPONSIF (TABLET & MOBILE)
   ====================================================== */
@media (max-width: 1024px) {
    /* Tablet */
    .front-layout-grid { padding-left: 20px; padding-right: 20px; gap: 30px; }
    .fs-post-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
    /* Tablet Kecil: Sidebar Turun */
    .front-layout-grid { grid-template-columns: 1fr; }
    .fs-sidebar { position: static; margin-top: 40px; border-top: 1px solid #ddd; padding-top: 40px; }
    .fs-post-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    /* HP */
    .fs-post-grid { grid-template-columns: 1fr !important; }
    .front-layout-grid { padding-left: 15px; padding-right: 15px; }
}
/* =========================================
   STYLE KHUSUS IKLAN PALING ATAS
   ========================================= */

/* Wadah Baris Iklan */
.header-top-ad-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

/* Slot Iklan */
.ad-slot-top {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    max-width: 1200px;
}

/* Gambar Iklan */
.ad-slot-top img {
    max-height: 90px;
    width: auto;      
    max-width: 100%; 
    display: block;
    margin: 0 auto;
}
.ad-hidden {
    display: none !important;
    padding: 0 !important;
}
.gh-head-inner {
    padding-top: 10px;
}

/* --- RESPONSIF--- */
@media (max-width: 767px) {
    .header-top-ad-row {
        background-color: #fff;
        padding: 5px 0;
    }
    .ad-slot-top img {
        max-height: 60px;
    }
}
/* =========================================
   STYLE SHARE MENU
   ========================================= */

.gh-article-footer {
    margin-top: 40px;
    margin-bottom: 40px;
}
.medium-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}
.medium-share-left,
.medium-share-right {
    display: flex;
    align-items: center;
    gap: 15px; 
}
.medium-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #757575; 
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}
.medium-btn:hover {
    color: #000000;
}
.medium-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5; 
}
.medium-label {
    font-size: 1.4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: 500;
}
@media (max-width: 600px) {
    .medium-share-bar {
        padding: 12px 0;
    }
    .medium-share-right {
        gap: 20px; 
    }
    .medium-label {
        display: none; 
    }
}

/* --- LAYOUT SECTION OPINI --- */
.section-opinion {
    margin-top: 24px;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Header */
.opini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 10px;
    margin-bottom: 10px;
}

.opini-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0;
    color: #000;
}

.opini-more {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}

.opini-more:hover {
    text-decoration: underline;
}

/* --- GRID SYSTEM 3 KOLOM --- */
.opini-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Pembagian lebar kolom */
    gap: 30px;
    border-top: 1px solid #e5e5e5; /* Garis tipis pemisah header dan konten */
    padding-top: 25px;
}

/* Styling Umum Kartu */
.opini-card a {
    text-decoration: none;
    color: inherit;
}

.opini-tag, .opini-tag-small {
    display: block;
    font-size: 1.1rem;
    color: #D0021B; /* Warna Merah Khas Berita */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.opini-heading {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #111;
}

.opini-heading:hover {
    color: #D0021B;
}

/* --- KOLOM 1: MAIN (Kiri) --- */
.main-card {
    display: flex;
    gap: 20px;
}

.opini-content {
    flex: 1;
}

.opini-excerpt {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opini-media {
    flex: 0 0 140px; /* Lebar gambar kecil */
}

.opini-media img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 2px;
}

/* --- KOLOM 2: VISUAL (Tengah) --- */
.visual-card {
    display: flex;
    flex-direction: column;
}

.opini-media-large img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 2px;
}

/* --- KOLOM 3: LIST (Kanan) --- */
.list-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.list-card:last-child {
    border-bottom: none;
}

.opini-heading-small {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #222;
}

.opini-heading-small:hover {
    color: #D0021B;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .opini-grid {
        grid-template-columns: 1fr; /* Jadi 1 kolom di HP */
        gap: 40px;
    }

    .main-card {
        flex-direction: column-reverse; /* Gambar diatas teks di HP */
    }

    .opini-media {
        flex: auto;
        width: 100%;
    }
    
    .opini-media img {
        height: auto;
        aspect-ratio: 16/9;
    }
}
/* --- STYLE AUTHOR OPINI --- */

/* Wadah Meta (Agar ada jarak) */
.opini-meta {
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 1.2rem; 
    color: #666; 
    line-height: 1.2;
}

.opini-byline a {
    color: #333; 
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.opini-byline a:hover {
    color: #D0021B; /* Berubah merah saat disorot */
    border-bottom: 1px solid #D0021B;
}

/* Koreksi Jarak di Kolom Kanan (List) */
.opini-col-list .opini-meta {
    margin-bottom: 0;
    font-size: 1.1rem; /* Lebih kecil sedikit di list */
}
/* =========================================
   STYLE FOOTER TAMBANG MAGAZINE
   ========================================= */

.gh-foot {
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
    padding: 60px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    margin-top: 22px;
}

/* --- BAGIAN ATAS (Top) --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 29px;
    margin-top: 30px;
}

/* Brand Area */
.footer-brand {
    max-width: 300px;
}
.footer-logo img {
    height: 27px; /* Sesuaikan tinggi logo */
    width: auto;
    margin-bottom: 10px;
}
.footer-tagline {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: #666; /* Warna ikon abu-abu */
}
.footer-social a:hover svg {
    fill: #D0021B; /* Merah saat hover */
}

/* App Buttons */
.footer-apps {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.app-btn img {
    height: 40px;
    width: auto;
}

/* Newsletter Area */
.footer-newsletter {
    max-width: 350px;
    flex: 1;
}
.footer-newsletter h4 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #444;
}
.footer-subscribe-form input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 1.4rem;
    background: transparent;
}
.footer-subscribe-form input:focus {
    outline: none;
    border-bottom: 1px solid #D0021B;
}
.footer-subscribe-form button {
    width: 100%;
    background-color: #E6292F; /* Merah TJP */
    color: white;
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}
.footer-subscribe-form button:hover {
    background-color: #a80013;
}
/* Sembunyikan pesan sukses/error default Ghost, atur sesuai kebutuhan */
.success-message { display:inline-block; green; font-size: 1.2rem; margin-top: 5px; }
form[data-members-form="success"] .success-message { display: block; }
form[data-members-form="success"] .form-group { display:inline-blcok; }


/* --- BAGIAN TENGAH (Link Columns) --- */
.footer-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 Kolom rata */
    gap: 20px;
    margin-bottom: 25px;
}
.link-column h5 {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}
.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.link-column ul li {
    margin-bottom: 1px;
}
.link-column ul li a {
    color: #111;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 100;
}
.link-column ul li a:hover {
    color: #D0021B;
}

/* --- BAGIAN BAWAH (Bottom) --- */
.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 3px;
    text-align: center;
}
.footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
    border-bottom:1px solid #e5e5e5;
}
.footer-bottom-links a {
    color: #666;
    font-size: 1.3rem;
    text-decoration: none;
}
.footer-bottom-links a:hover {
    color: #D0021B;
}
.footer-copyright {
    color: #888;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-newsletter {
        max-width: 100%;
        width: 100%;
    }
    .footer-logo img {
    justify-self: center;
}
    /* Ubah Grid jadi 2 kolom di Tablet, 1 kolom di HP */
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom di HP */
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* =========================================
   Widget Harga Acuan ESDM
   ========================================= */

/* Kontainer Utama Widget */
.esdm-widget-box {
    background: #f9f9f9; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 20px;
    margin-bottom: 30px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Judul Widget */
.esdm-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333; /* Warna teks judul */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--ghost-accent-color, #15171A);
    padding-bottom: 10px;
}

/* Keterangan Periode */
.esdm-periode {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Reset List Style */
.esdm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item List */
.esdm-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd; 
    font-size: 0.95rem;
}

/* Hapus garis di item terakhir */
.esdm-list li:last-child {
    border-bottom: none;
}

/* Nama Komoditas */
.esdm-name {
    color: #444;
    font-weight: 500;
}

/* Harga Komoditas */
.esdm-price {
    font-weight: 700;
    color: var(--ghost-accent-color, #2c3e50);
}

/* Sumber Data (Footer Widget) */
.esdm-source {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #999;
    text-align: right;
}

/* --- Support Dark Mode (Opsional) --- */
@media (prefers-color-scheme: dark) {
    .esdm-widget-box {
        background: #1d1d1d;
        border-color: #333;
    }
    .esdm-title { color: #fff; }
    .esdm-name { color: #ccc; }
    .esdm-periode { color: #aaa; }
    .esdm-price { color: #fff; }
}
/* Update CSS List Item agar lebih rapi */
.esdm-list li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertikal center */
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

/* Kolom Kiri: Nama Komoditas */
.esdm-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    flex: 1; /* Mengisi ruang kosong */
}

/* Kolom Kanan: Wrapper Harga & Satuan */
.esdm-price-box {
    text-align: right;
    display: flex;
    flex-direction: column; /* Harga atas, satuan bawah */
    align-items: flex-end;
}

/* Harga Angka */
.esdm-price {
    font-weight: 800;
    color: var(--ghost-accent-color, #15171A);
    font-size: 1rem;
}

/* Satuan Kecil di bawah harga */
.esdm-unit {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
    text-transform: uppercase;
}