/* 1. RESET & DASAR */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: #f4f4f4; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* 2. HEADER & NAVIGASI */
.topbar { background: #222; color: #fff; font-size: 13px; padding: 8px 0; }
.social-icons a { color: #fff; margin-left: 15px; text-decoration: none; }

header { background: #fff; padding: 25px 0; border-bottom: 3px solid #e11d48; }
.logo { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.logo span { color: #e11d48; }

.search-box { display: flex; }
.search-box input { padding: 8px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
.search-box button { background: #e11d48; color: white; border: none; padding: 0 15px; border-radius: 0 4px 4px 0; cursor: pointer; }

.main-nav { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li a { display: block; padding: 15px 20px; text-decoration: none; color: #333; font-weight: 600; text-transform: uppercase; font-size: 14px; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: #e11d48; border-bottom: 2px solid #e11d48; }

/* 3. LAYOUT UTAMA */
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 30px; }

.featured { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.featured img { width: 100%; display: block; }
.featured-text { position: absolute; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; padding: 30px 20px; width: 100%; }
.category { background: #e11d48; padding: 4px 10px; font-size: 12px; font-weight: bold; border-radius: 3px; color: white; }

.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card img { width: 100%; border-radius: 5px; }
.card h3 { font-size: 16px; margin-top: 10px; line-height: 1.4; }

/* 4. SIDEBAR & WIDGET */
.widget { background: #fff; padding: 20px; border-radius: 5px; margin-bottom: 20px; }
.widget-title { font-size: 18px; border-left: 4px solid #e11d48; padding-left: 10px; margin-bottom: 15px; }
.pop-list { list-style: none; }
.pop-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.rank { font-size: 24px; font-weight: 800; color: #ddd; margin-right: 15px; }
.pop-list a { text-decoration: none; color: #444; font-size: 14px; font-weight: 500; }

/* 5. STYLING TABEL (DI LUAR MEDIA QUERY) */
.table-container { overflow-x: auto; margin: 25px 0; }
.styled-table { border-collapse: collapse; width: 100%; font-size: 0.9em; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); }
.styled-table thead tr { background-color: #e11d48; color: #ffffff; text-align: left; }
.styled-table th, .styled-table td { padding: 12px 15px; border: 1px solid #ddd; }
.styled-table tbody tr:nth-of-type(even) { background-color: #f3f3f3; }
.styled-table tbody tr:hover { background-color: #f1f1f1; cursor: pointer; }
.badge { background: #eee; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; }

/* 6. RESPONSIVE (KHUSUS HP) */
@media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
    .main-nav ul { overflow-x: auto; }
}