/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme untuk GeneratePress
 Author:       Admin
 Author URI:   https://example.com
 Template:     generatepress
 Version:      1.0.0
*/



/* =========================================================
   VARIABEL WARNA & DASAR
========================================================= */
:root {
    --tk-accent: #1E61F0;
    --tk-accent-hover: #1549BA;
    --tk-hf-bg: #F1F4F9;
    --tk-text-dark: #1A1D24;
    --tk-text-muted: #646D7A;
    --tk-border: #E5E9F0;
}

body {
    background-color: #FFFFFF;
    color: var(--tk-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   HEADER STYLING (Ukuran Presisi & Background #F1F4F9)
========================================================= */
.site-header,
.main-navigation,
.nav-float-right .inside-header {
    background-color: var(--tk-hf-bg) !important;
}

.site-header {
    border-bottom: 1px solid var(--tk-border);
    height: 70px;
    display: flex;
    align-items: center;
}

.inside-header {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Ukuran Logo Header */
.site-header .site-logo img {
    max-height: 36px;
    width: auto;
}
.main-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}
.main-title a {
    color: var(--tk-accent) !important;
}

/* Menu Navigasi Sejajar & Garis Bawah Aktif #1E61F0 */
.main-navigation .main-nav ul li a {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--tk-text-dark) !important;
    padding: 0 14px !important;
    line-height: 70px !important;
    position: relative;
    transition: color 0.2s;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--tk-accent) !important;
    background: transparent !important;
}

.main-navigation .main-nav ul li.current-menu-item > a::after,
.main-navigation .main-nav ul li a:hover::after {
    content: "";
    position: absolute;
    bottom: 16px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background-color: var(--tk-accent);
    border-radius: 2px;
}

/* Ikon Search di Header */
.main-navigation .menu-bar-items .search-item a {
    color: var(--tk-text-muted) !important;
    font-size: 15px;
    padding: 0 10px;
}
.main-navigation .menu-bar-items .search-item a:hover {
    color: var(--tk-accent) !important;
}

/* =========================================================
   CONTAINER UTAMA HOMEPAGE
========================================================= */
.custom-portal-wrap {
    max-width: 1140px;
    margin: 28px auto 50px;
    padding: 0 20px;
}

/* =========================================================
   1. HERO SECTION (Kiri Besar + 4 Kanan)
========================================================= */
.tk-hero-section {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.tk-headline-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.tk-headline-thumb img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.tk-badge-headline {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--tk-accent);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tk-headline-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.32;
    margin: 0 0 10px;
}

.tk-headline-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.tk-headline-title a:hover {
    color: var(--tk-accent);
}

.tk-headline-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tk-text-muted);
    margin: 0;
}

/* Hero Kolom Kanan */
.tk-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.tk-hero-side-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tk-border);
}

.tk-hero-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tk-side-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 6px;
}

.tk-side-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
}

.tk-side-title a:hover {
    color: var(--tk-accent);
}

.tk-side-excerpt {
    font-size: 12.5px;
    line-height: 1.48;
    color: var(--tk-text-muted);
    margin: 0;
}

/* =========================================================
   2. STRIP 5 BERITA BERGAMBAR
========================================================= */
.tk-subhero-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px 0 26px;
    border-top: 1px solid var(--tk-border);
    border-bottom: 1px solid var(--tk-border);
    margin-bottom: 32px;
}

.tk-strip-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tk-strip-thumb img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    display: block;
}

.tk-strip-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.38;
    margin: 0;
}

.tk-strip-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
}

.tk-strip-title a:hover {
    color: var(--tk-accent);
}

/* =========================================================
   3. MAIN COLUMNS (NEWS FEED + TERPOPULER)
========================================================= */
.tk-main-columns {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 32px;
}

/* Section Title dengan Garis Vertikal #1E61F0 */
.tk-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tk-text-dark);
    margin: 0 0 18px;
    padding-left: 11px;
    border-left: 3.5px solid var(--tk-accent);
    line-height: 1.2;
}

/* NEWS FEED */
.tk-news-feed-block {
    margin-bottom: 36px;
}

.tk-feed-item {
    display: flex;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--tk-border);
}

.tk-feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tk-feed-thumb {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.tk-feed-thumb img {
    width: 185px;
    height: 118px;
    object-fit: cover;
    display: block;
}

.tk-feed-meta {
    font-size: 11.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tk-cat-accent {
    color: var(--tk-accent) !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.tk-dot, .tk-date {
    color: #8A94A6;
}

.tk-feed-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}

.tk-feed-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
}

.tk-feed-title a:hover {
    color: var(--tk-accent);
}

.tk-feed-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--tk-text-muted);
    margin: 0;
}

/* ARTIKEL TERBARU (3 KOLOM x 2 BARIS) */
.tk-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.tk-grid-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tk-grid-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.tk-grid-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.38;
    margin: 0;
}

.tk-grid-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
}

.tk-grid-title a:hover {
    color: var(--tk-accent);
}

/* Tombol Artikel Selanjutnya */
.tk-btn-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    border: 1px solid var(--tk-border);
    border-radius: 6px;
    background-color: #FFFFFF;
    color: var(--tk-accent) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.tk-btn-next:hover {
    border-color: var(--tk-accent);
    background-color: var(--tk-hf-bg);
}

/* =========================================================
   4. SIDEBAR TERPOPULER
========================================================= */
.tk-sidebar-sticky {
    position: sticky;
    top: 24px;
}

.tk-pop-top {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--tk-border);
}

.tk-pop-top-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tk-pop-top-thumb img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

.tk-pop-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--tk-border);
}

.tk-pop-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tk-pop-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tk-pop-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--tk-accent);
    color: var(--tk-accent);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tk-pop-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.tk-pop-title a {
    color: var(--tk-text-dark);
    text-decoration: none;
}

.tk-pop-title a:hover {
    color: var(--tk-accent);
}

/* =========================================================
   5. FOOTER STYLING (Background #F1F4F9)
========================================================= */
.site-footer,
.site-footer .footer-widgets,
.site-info {
    background-color: var(--tk-hf-bg) !important;
    color: var(--tk-text-muted) !important;
}

.site-footer {
    border-top: 1px solid var(--tk-border);
}

.site-footer .footer-widgets {
    padding: 44px 20px 32px !important;
}

.footer-widgets-container {
    max-width: 1140px !important;
}

.site-footer .footer-widgets .widget-title {
    color: var(--tk-text-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

.site-footer .footer-widgets a {
    color: var(--tk-text-muted) !important;
    font-size: 13px !important;
    text-decoration: none;
    line-height: 2;
}

.site-footer .footer-widgets a:hover {
    color: var(--tk-accent) !important;
}

.site-info {
    border-top: 1px solid var(--tk-border);
    padding: 18px 20px !important;
    font-size: 12.5px !important;
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */
@media (max-width: 900px) {
    .tk-hero-section,
    .tk-main-columns {
        grid-template-columns: 1fr;
    }
    .tk-subhero-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .tk-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tk-headline-thumb img {
        height: 220px;
    }
    .tk-feed-item {
        flex-direction: column;
    }
    .tk-feed-thumb img {
        width: 100%;
        height: 180px;
    }
    .tk-subhero-strip,
    .tk-grid-3col {
        grid-template-columns: 1fr;
    }
}