/* Kompas.com Style Theme Overrides */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header & Navigation */
#header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 2px solid #f37021;
}

.logo-banner {
    padding: 15px 0;
    background: #fff;
}

.nav-main {
    background: #0f52ba;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-main ul.nav > li > a {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 20px;
    transition: all 0.2s ease;
}

.nav-main ul.nav > li > a:hover {
    background: #f37021;
    color: #fff !important;
}

/* Post Items & Cards */
.post-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.post-item-image {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.post-item-details {
    padding: 15px;
}

.post-item-details .title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-item-details .title a {
    color: #222;
    transition: color 0.2s ease;
}

.post-item-details .title a:hover {
    color: #f37021;
}

.post-item-details .post-meta {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.post-item-details .post-meta a {
    color: #0f52ba;
    font-weight: 600;
}

/* Sidebar Widgets */
#sidebar .widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
}

#sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-left: 4px solid #f37021;
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Section Headings */
.section-head {
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-head .title {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0;
    text-transform: uppercase;
}

.section-head .title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #f37021;
}

/* Latest Articles specific (Horizontal List) */
.post-item-horizontal {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: background 0.2s;
}

.post-item-horizontal:hover {
    background: #fdfdfd;
}

.post-item-horizontal .item-image {
    flex: 0 0 150px;
    margin-right: 15px;
}

.post-item-horizontal .item-image img {
    border-radius: 6px;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.post-item-horizontal .item-content {
    flex: 1;
}

.post-item-horizontal .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.post-item-horizontal .post-meta {
    font-size: 12px;
    color: #888;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .post-item-horizontal {
        flex-direction: column;
    }
    .post-item-horizontal .item-image {
        flex: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .post-item-horizontal .item-image img {
        height: auto;
    }
    
    /* Responsive Video Section */
    .video-section .row {
        display: flex;
        flex-direction: column;
    }
    .video-playlist {
        max-height: 300px;
        margin-top: 20px;
    }
    .nav-main {
        padding: 10px 0;
    }
    .nav-main ul.nav > li > a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-head .title {
        font-size: 16px;
    }
    .post-item-details .title {
        font-size: 14px;
    }
}
