/* ======================================================
   1. LAYOUT UTAMA (GRID SYSTEM)
   ====================================================== */
.front-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* Konten Kiri | Sidebar Kanan */
    gap: 48px;
    margin-top: 40px;
    align-items: start;

    /* Container Wrapper (Agar tidak mepet) */
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* ======================================================
   2. HEADER & SEKAT (SECTION HEADERS)
   ====================================================== */
.fs-tag-section {
    margin-bottom: 60px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 40px;
}
.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; /* Warna Aksen */
    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 (4 KOLOM) & 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; }
}