/*
Theme Name: Kedan News
Theme URI: https://kedannews.co.id
Author: Kedan News
Description: Theme WordPress portal berita modern dan responsif.
Version: 1.0
Text Domain: kedan-news
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    background: #ffffff;
}

/* HEADER ATAS */

.header-top {
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* LOGO */

.site-logo a {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.site-logo strong {
    color: #111111;
}

.site-logo span {
    color: #d71920;
}


/* DESKRIPSI */

.site-description {
    flex: 1;
    color: #777777;
    font-size: 14px;
}


/* SEARCH */

.header-search {
    width: 240px;
}

.header-search form {
    display: flex;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    outline: none;
}

.header-search button {
    padding: 10px 15px;
    border: 0;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
}


/* =========================================
   NAVIGATION
========================================= */

.navigation-wrapper {
    background: #111111;
}

.main-navigation {
    overflow-x: auto;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 15px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.main-navigation a:hover {
    background: #d71920;
}


/* =========================================
   BREAKING NEWS
========================================= */

.breaking-news {
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.breaking-inner {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.breaking-label {
    padding: 7px 12px;
    background: #d71920;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.breaking-text {
    padding-left: 15px;
    font-size: 13px;
    color: #555555;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .header-inner {
        min-height: 75px;
        gap: 10px;
    }

    .site-logo a {
        font-size: 24px;
    }

    .site-description {
        display: none;
    }

    .header-search {
        width: 150px;
    }

    .main-navigation a {
        padding: 13px 12px;
        font-size: 13px;
    }

}

/* =========================================
   HOMEPAGE
========================================= */

.homepage {
    padding: 30px 0 50px;
}


/* =========================================
   HEADLINE
========================================= */

.headline-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}


/* BERITA UTAMA */

.headline-main {
    position: relative;
    overflow: hidden;
    background: #111;
}

.headline-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.headline-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.9)
    );
}

.headline-content h1 {
    margin: 8px 0;
    font-size: 32px;
    line-height: 1.2;
}

.headline-content h1 a {
    color: #ffffff;
}


/* BERITA SAMPING */

.headline-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.headline-small {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.headline-small img {
    width: 140px;
    height: 105px;
    object-fit: cover;
}

.headline-small h2 {
    margin: 5px 0;
    font-size: 18px;
    line-height: 1.25;
}


/* =========================================
   CATEGORY
========================================= */

.category-label {
    display: inline-block;
    color: #d71920;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================
   META
========================================= */

.post-meta {
    color: #888888;
    font-size: 12px;
    margin-top: 6px;
}


/* =========================================
   CONTENT LAYOUT
========================================= */

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}


/* =========================================
   SECTION TITLE
========================================= */

.section-title {
    border-bottom: 2px solid #111111;
    margin-bottom: 20px;
}

.section-title h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 4px solid #d71920;
    font-size: 22px;
}


/* =========================================
   BERITA TERBARU
========================================= */

.latest-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.latest-item img {
    width: 240px;
    height: 150px;
    object-fit: cover;
}

.latest-content h3 {
    margin: 5px 0;
    font-size: 22px;
    line-height: 1.25;
}

.latest-content p {
    margin: 8px 0 0;
    color: #666666;
    line-height: 1.5;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar-box {
    margin-bottom: 30px;
}

.popular-news {
    margin: 0;
    padding-left: 30px;
}

.popular-news li {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.popular-news a {
    font-weight: 600;
    line-height: 1.4;
}

.advertisement {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999999;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .headline-section {
        grid-template-columns: 1fr;
    }

    .headline-main img {
        height: 300px;
    }

    .headline-content {
        padding: 20px;
    }

    .headline-content h1 {
        font-size: 24px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .latest-item {
        grid-template-columns: 120px 1fr;
        gap: 15px;
    }

    .latest-item img {
        width: 120px;
        height: 90px;
    }

    .latest-content h3 {
        font-size: 17px;
    }

    .latest-content p {
        display: none;
    }

}

@media (max-width: 480px) {

    .headline-small {
        grid-template-columns: 110px 1fr;
    }

    .headline-small img {
        width: 110px;
        height: 85px;
    }

    .headline-small h2 {
        font-size: 16px;
    }

}

/* =========================================
   SINGLE ARTICLE
========================================= */

.single-page {
    padding: 35px 0 60px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr;
    gap: 50px;
}


/* KATEGORI */

.article-category {
    margin-bottom: 12px;
}

.article-category a {
    color: #d71920;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}


/* JUDUL */

.article-title {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -1px;
}


/* EXCERPT */

.article-excerpt {
    margin-bottom: 20px;
    color: #666;
    font-size: 20px;
    line-height: 1.5;
}


/* META */

.article-meta {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    color: #777;
    font-size: 13px;
}


/* FOTO */

.article-featured-image {
    margin: 0 0 25px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-featured-image figcaption {
    padding: 8px 0;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}


/* ISI */

.article-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.8;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content h2 {
    margin-top: 35px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
}

.article-content h3 {
    font-family: Arial, Helvetica, sans-serif;
}


/* TAG */

.article-tags {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    font-size: 14px;
}

.article-tags a {
    color: #d71920;
}


/* SHARE */

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.article-share a {
    padding: 8px 12px;
    background: #111;
    color: #fff;
    font-size: 13px;
}


/* NAVIGASI */

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.article-navigation a {
    font-weight: 600;
}

.next-post {
    text-align: right;
}


/* SIDEBAR */

.article-sidebar {
    min-width: 0;
}


/* MOBILE */

@media (max-width: 768px) {

    .single-page {
        padding-top: 25px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-excerpt {
        font-size: 18px;
    }

    .article-meta {
        flex-direction: column;
        gap: 6px;
    }

    .article-content {
        font-size: 18px;
        line-height: 1.75;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .next-post {
        text-align: left;
    }

}

/* =========================================
   ARCHIVE / CATEGORY
========================================= */

.archive-page {
    padding: 35px 0 60px;
}


/* HEADER KATEGORI */

.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #111111;
}

.archive-label {
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.archive-header h1 {
    margin: 5px 0 0;
    font-size: 36px;
}

.archive-description {
    margin-top: 10px;
    color: #777777;
}


/* LAYOUT */

.archive-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 45px;
}


/* ITEM BERITA */

.archive-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
}

.archive-image img {
    width: 260px;
    height: 165px;
    object-fit: cover;
    display: block;
}

.archive-content h2 {
    margin: 5px 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.archive-content h2 a:hover {
    color: #d71920;
}

.archive-content p {
    margin: 10px 0 0;
    color: #666666;
    line-height: 1.5;
}


/* PAGINATION */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 35px;
}

.pagination .page-numbers {
    padding: 9px 13px;
    border: 1px solid #dddddd;
    font-size: 14px;
}

.pagination .current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}


/* SIDEBAR */

.archive-sidebar {
    min-width: 0;
}


/* TIDAK ADA BERITA */

.no-results {
    padding: 40px;
    background: #f7f7f7;
}

.no-results h2 {
    margin-top: 0;
}


/* MOBILE */

@media (max-width: 768px) {

    .archive-header h1 {
        font-size: 30px;
    }

    .archive-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .archive-item {
        grid-template-columns: 130px 1fr;
        gap: 15px;
    }

    .archive-image img {
        width: 130px;
        height: 95px;
    }

    .archive-content h2 {
        font-size: 17px;
    }

    .archive-content p {
        display: none;
    }

}

@media (max-width: 480px) {

    .archive-item {
        grid-template-columns: 110px 1fr;
    }

    .archive-image img {
        width: 110px;
        height: 85px;
    }

    .archive-content h2 {
        font-size: 16px;
    }

}