/*
Theme Name: Indonesia Insight
Theme URI: http://localhost/indonesia-insight
Author: Indonesia Insight
Description: Tema portal berita sederhana dan profesional untuk Indonesia Insight.
Version: 1.0
Text Domain: indonesia-insight
*/

/* =====================================================
   DASAR
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* =====================================================
   TOP BAR
   ===================================================== */

.top-bar {
    max-width: 1400px;
    margin: auto;
    padding: 9px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #e5e5e5;

    font-size: 12px;
    color: #555;
}

.top-bar a {
    margin-right: 20px;
}

.top-bar a:hover {
    color: #c8102e;
}

.top-bar span {
    margin-left: 20px;
}


/* =====================================================
   LOGO
   ===================================================== */

.logo-area {
    max-width: 1400px;
    margin: auto;
    text-align: center;
    padding: 25px 20px 22px;
}

.logo {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.logo span {
    color: #c8102e;
}

.tagline {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}


/* =====================================================
   MENU
   ===================================================== */

.main-menu {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;

    display: flex;
    justify-content: center;
    align-items: stretch;

    overflow-x: auto;
    white-space: nowrap;
}

.main-menu a {
    position: relative;
    padding: 14px 17px;

    font-size: 13px;
    font-weight: 700;
}

.main-menu a:hover {
    color: #c8102e;
}

.main-menu a.active {
    color: #c8102e;
}

.main-menu a.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 0;

    height: 3px;

    background: #c8102e;
}


/* =====================================================
   CONTAINER
   ===================================================== */

.container {
    max-width: 1400px;
    margin: auto;
    padding: 22px 25px 50px;
}


/* =====================================================
   LAYOUT
   ===================================================== */

.news-layout {
    display: grid;

    grid-template-columns:
        1fr
        2fr
        1fr;

    gap: 22px;
}


/* =====================================================
   KOLOM KIRI
   ===================================================== */

.left-column {
    padding-right: 20px;
    border-right: 1px solid #ddd;
}


/* =====================================================
   KOLOM TENGAH
   ===================================================== */

.main-column {
    min-width: 0;
}


/* =====================================================
   KOLOM KANAN
   ===================================================== */

.right-column {
    padding-left: 20px;
    border-left: 1px solid #ddd;
}


/* =====================================================
   JUDUL SECTION
   ===================================================== */

.section-heading {
    position: relative;

    padding-bottom: 9px;
    margin-bottom: 15px;

    border-bottom: 2px solid #111;

    font-size: 15px;
    font-weight: 800;
}

.section-heading::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -2px;

    width: 65px;
    height: 3px;

    background: #c8102e;
}


/* =====================================================
   BERITA SAMPING
   ===================================================== */

.side-story {
    padding-bottom: 17px;
    margin-bottom: 17px;

    border-bottom: 1px dotted #aaa;
}

.side-story:last-child {
    border-bottom: none;
}

.side-story img {
    width: 100%;
    height: 135px;

    object-fit: cover;

    display: block;

    margin-bottom: 10px;
}

.side-story h3 {
    margin: 0 0 7px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;
    line-height: 1.2;
}

.side-story p {
    margin: 0 0 8px;

    color: #555;

    font-size: 13px;
    line-height: 1.4;
}


/* =====================================================
   META
   ===================================================== */

.meta {
    display: block;

    margin-top: 8px;

    color: #777;

    font-size: 11px;
}


/* =====================================================
   BERITA UTAMA
   ===================================================== */

.hero-story img {
    width: 100%;
    height: 350px;

    object-fit: cover;

    display: block;
}

.category {
    margin-top: 13px;

    color: #c8102e;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
}

.hero-story h1 {
    margin: 6px 0 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 39px;
    line-height: 1.08;

    letter-spacing: -0.5px;
}

.hero-story p {
    margin: 0;

    color: #555;

    font-size: 15px;
    line-height: 1.5;
}


/* =====================================================
   NASIONAL
   ===================================================== */

.national-heading {
    margin-top: 28px;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.national-heading strong {
    font-size: 15px;
}

.national-heading a {
    color: #c8102e;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   KARTU BERITA
   ===================================================== */

.news-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.news-card img {
    width: 100%;
    height: 115px;

    object-fit: cover;

    display: block;

    margin-bottom: 9px;
}

.news-card h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 16px;
    line-height: 1.2;
}


/* =====================================================
   BERITA TERKINI
   ===================================================== */

.latest-story {
    display: grid;

    grid-template-columns: 18px 1fr;

    gap: 8px;

    padding-bottom: 15px;
    margin-bottom: 15px;

    border-bottom: 1px dotted #aaa;
}

.latest-story > span {
    color: #c8102e;

    font-size: 10px;

    padding-top: 5px;
}

.latest-story h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 16px;
    line-height: 1.25;
}

.latest-story b {
    color: #c8102e;
}


/* =====================================================
   LIHAT SEMUA
   ===================================================== */

.view-all {
    display: inline-block;

    margin-top: 3px;

    color: #c8102e;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    border-top: 1px solid #222;

    padding: 28px 20px;

    text-align: center;

    color: #666;
}

.footer strong {
    color: #111;

    font-size: 21px;
}

.footer strong span {
    color: #c8102e;
}

.footer p {
    margin: 7px 0 0;

    font-size: 12px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1050px) {

    .news-layout {
        grid-template-columns:
            1fr
            1.8fr;
    }

    .right-column {
        grid-column: 1 / -1;

        padding: 20px 0 0;

        border-left: none;
        border-top: 1px solid #ddd;
    }

    .right-column .latest-story {
        display: inline-grid;

        width: 48%;

        vertical-align: top;

        margin-right: 1%;
    }
}


/* =====================================================
   HP
   ===================================================== */

@media (max-width: 700px) {

    .top-bar {
        display: none;
    }

    .logo-area {
        padding: 22px 15px;
    }

    .logo {
        font-size: 31px;
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 11px;
    }

    .main-menu {
        justify-content: flex-start;
    }

    .main-menu a {
        padding: 13px 14px;
        font-size: 12px;
    }

    .container {
        padding: 15px;
    }

    .news-layout {
        display: block;
    }

    .left-column {
        padding-right: 0;

        border-right: none;

        margin-bottom: 30px;
    }

    .right-column {
        margin-top: 30px;

        padding-left: 0;
    }

    .hero-story img {
        height: 230px;
    }

    .hero-story h1 {
        font-size: 29px;
    }

    .news-cards {
        grid-template-columns: 1fr;
    }

    .news-card {
        display: grid;

        grid-template-columns: 120px 1fr;

        gap: 12px;

        padding-bottom: 14px;
        margin-bottom: 14px;

        border-bottom: 1px dotted #aaa;
    }

    .news-card img {
        height: 85px;

        margin: 0;

        grid-row: span 2;
    }

    .right-column .latest-story {
        display: grid;

        width: auto;

        margin-right: 0;
    }
}

/* =====================================================
   KETERANGAN FOTO UTAMA
   ===================================================== */

.hero-image {
    margin: 0;
}

.hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    margin-top: 6px;
    color: #2f2d2d;
    font-size: 11px;
    line-height: 1.4;
    font-style: italic;
}


/* =====================================================
   MENU UTAMA DASHBOARD
   ===================================================== */

.top-menu .primary-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 24px !important;
}

.top-menu .primary-menu > li {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.top-menu .primary-menu > li > a {
    display: block !important;

    padding: 8px 0 !important;

    color: #555 !important;

    text-decoration: none !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;

    white-space: nowrap !important;
}

.top-menu .primary-menu > li > a:hover {
    color: #c8102e !important;
}