/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #121212;
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 50px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.search-form input {
    padding: 0.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    flex-grow: 1;
}

.search-form button {
    background: #0051ff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.search-form button:hover {
    background: #0051ff;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0051ff;
}

.theme-toggle:hover {
    color: #0051ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Category Filter */
.category-filter {
    background: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-buttons a {
    padding: 0.5rem 1rem;
    background: #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.filter-buttons a.active,
.filter-buttons a:hover {
    background: #0051ff;
    color: #fff;
}

/* News Section */
.news-section {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Perkecil lebar card */
    gap: 1rem; /* Kurangi jarak antar card */
}

.news-card {
    background: #fff;
    border-radius: 8px; /* Kurangi radius sudut */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Kurangi intensitas bayangan */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px); /* Kurangi efek hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 150px; /* Perkecil tinggi gambar */
    object-fit: cover;
}

.card-content {
    padding: 0.75rem; /* Kurangi padding */
}

.category-tag {
    display: inline-block;
    background: #0051ff;
    color: #fff;
    padding: 0.2rem 0.5rem; /* Kurangi ukuran tag kategori */
    border-radius: 4px;
    font-size: 0.75rem; /* Perkecil ukuran font */
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1rem; /* Perkecil ukuran judul */
    margin: 0.5rem 0;
    color: #333;
    line-height: 1.4; /* Tambah jarak antar baris teks */
}

.news-card p {
    font-size: 0.875rem; /* Perkecil ukuran deskripsi */
    line-height: 1.4;
    color: #666;
    margin-bottom: 0.75rem;
}

.post-meta {
    margin-top: 0.25rem;
    font-size: 0.75rem; /* Perkecil ukuran tanggal */
    color: #888;
}

.read-more {
    display: inline-block;
    background: #0051ff;
    color: #fff;
    text-decoration: none;
    padding: 0.375rem 0.75rem; /* Kurangi ukuran tombol */
    border-radius: 4px;
    font-size: 0.875rem; /* Perkecil ukuran font tombol */
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #0051ff;
}

/* Sport and Entertainment Grid */
.sport-entertainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sport-section,
.entertainment-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Image List View */
.image-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.image-content {
    padding: 1rem;
    flex-grow: 1;
}

.image-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.image-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.image-content .read-more {
    display: inline-block;
    background: #0051ff;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.image-content .read-more:hover {
    background: #0051ff;
}

/* Technology and General Section */
.tech-general-section .technology-section,
.tech-general-section .general-section {
    margin-bottom: 2rem;
}

/* Post Meta */
.post-meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.post-meta .post-date {
    display: inline-block;
    margin-right: 1rem;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}