
/* General Body Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(175, 169, 169, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
header {
    padding: 10px 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.logo h1 {
    font-family: 'Georgia', serif;
    font-size: 36px;
    color: #004C99;
}

.logo img {
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
}

.social-media a {
    margin: 0 8px;
    color: #555;
    font-size: 16px;
}

.search-bar {
    display: flex;
    margin-left: 15px;
}

.search-bar input {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    border-right: none;
}

.search-bar button {
    border: 1px solid #ff7927;
    background-color: #fe7828;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-icons {
    display: none; /* Hidden by default */
}


/* Navigation Styles */
nav {
    background-color: #ff7927;
    margin-top: 10px;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
}

nav li a {
    color: white;
    padding: 12px 15px;
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

nav li a:hover {
    background-color: #003366;
}

/* Main Content Grid */
.main-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.main-grid-full {
    padding: 20px;
}

@media (min-width: 992px) {
    .main-grid {
        grid-template-columns: 2.5fr 1fr;
    }
}

/* Section Titles */
.hero-slider h2, .nasional h2, .daerah h2, .latest-news h2, .populars h2, .related-articles h2, .categories h2 {
    color: #333;
    border-bottom: 3px solid #ffd3b8;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Hero Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
    scrollbar-width: none; /* for Firefox */
}

.slides::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
}

.slide-content h3, .slide-content h4 {
    margin: 0;
    font-size: 24px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}


.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}


/* Sidebar Styles */
.sidebar ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    margin-right: 15px;
}

.sidebar p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: bold;
}

.daerah {
    margin-top: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    header {
        padding: 0;
    }
    .top-bar {
        background-color: #ffffff;
        color: white;
        padding: 10px;
        position: relative;
    }
    .logo h1 {
        color: white;
        font-size: 28px;
    }
    .header-right {
        display: none;
    }
    .mobile-icons {
        display: flex;
        align-items: center;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
    .mobile-icons a {
        color: white;
        font-size: 20px;
        margin-left: 15px;
    }
    nav {
        background-color: #ff7927;
        margin-top: 0;
    }
    nav ul {
        justify-content: flex-start;
    }
    nav li a {
        color: #ffffff;
    }

    .slide img {
        height: 300px;
    }

    .slide-content h3, .slide-content h4 {
        font-size: 18px;
    }

    .prev-btn, .next-btn {
        padding: 10px;
        font-size: 16px;
    }
}


/* Latest News Styles */
.latest-news {
    margin-top: 30px;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-item img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.news-content {
    /* flex: 1; */
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.news-meta .category {
    font-weight: bold;
    color: #004C99;
}

.news-content h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.news-content h3:hover {
    color: #454545;
}



/* Sidebar Styles */
.popular-list {
    counter-reset: popular-counter;
}

.popular-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list li::before {
    counter-increment: popular-counter;
    content: counter(popular-counter);
    font-size: 36px;
    font-weight: bold;
    color: #27AE60;
    margin-right: 20px;
    line-height: 1;
}

.popular-list p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}


.footers {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

.footers a {
    margin: 5px 0;
    font-size: 10px;
    color: #555;
}

/* Article Detail Styles */
.article-detail {
    padding: 5px;
}

.article-detail h2 {
    font-size: 28px;
    margin-bottom: 10px;
}


.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta .fas {
    margin-right: 8px;
    color: #004C99;
}


.article-image {
    margin: 0 0 20px 0;
}

.article-image img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.article-image figcaption {
    font-size: 14px;
    color: #555;
    text-align: center;
    font-style: italic;
}


.article-detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Comments Section */
.comments-section {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.comments-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comments-section form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.comments-section form button {
    background-color: #004C99;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.comment {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

/* Related Articles Styles */
.related-articles {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-article-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-article-item h3 {
    font-size: 16px;
    line-height: 1.4;
}

.related-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.related-article-tags .tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.related-article-tags .tag:hover {
    background-color: #004C99;
    color: white;
}



.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: bold;
    font-size: 16px;
    margin-right: 5px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.telegram { background-color: #0088cc; }


/* Banner Styles */
.banner {
    margin: 10px;
    text-align: center;
}

.banner img {
    max-width: 100%;
    height: auto;
}