/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f4f4f4; color: #222; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== HEADER ===== */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }

.header-top { padding: 10px 0; border-bottom: 1px solid #eee; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 45px; }

.header-right { display: flex; align-items: center; gap: 12px; }

.epaper-btn {
    padding: 8px 16px; background: #d32f2f; color: #fff; border-radius: 5px;
    font-size: 0.85rem; font-weight: 600; transition: background 0.3s;
}
.epaper-btn:hover { background: #b71c1c; }
.epaper-btn i { margin-right: 5px; }

.owner-circle { border-radius: 50%; overflow: hidden; border: 2px solid #1a237e; flex-shrink: 0; }
.owner-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== CATEGORY NAV ===== */
.category-nav { background: #1a237e; }
.category-nav .container { overflow: hidden; }
.nav-scroll {
    display: flex; overflow-x: auto; gap: 0; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
    padding: 12px 18px; color: rgba(255,255,255,0.8); font-size: 0.85rem;
    transition: all 0.3s; flex-shrink: 0;
}
.nav-scroll a:hover, .nav-scroll a.active {
    color: #fff; background: rgba(255,255,255,0.1);
}
.nav-scroll a.active { border-bottom: 3px solid #fff; }

/* ===== DISTRICT NAV ===== */
.district-nav { background: #fff; border-bottom: 1px solid #eee; padding: 8px 0; }
.district-filter { display: flex; align-items: center; gap: 10px; }
.district-filter select {
    padding: 6px 12px; border: 1px solid #ddd; border-radius: 5px;
    font-size: 0.85rem; background: #fff; cursor: pointer; min-width: 200px;
}
.district-filter select:focus { outline: none; border-color: #1a237e; }

/* ===== MAIN CONTENT ===== */
.main-content { padding: 20px 0; }

/* ===== FEATURED ===== */
.featured-section {
    display: grid; grid-template-columns: 2fr 1fr; gap: 15px;
    margin-bottom: 30px;
}
.featured-main {
    position: relative; border-radius: 10px; overflow: hidden;
    min-height: 350px; background: #222;
}
.featured-main a { display: block; height: 100%; }
.featured-main img { width: 100%; height: 100%; object-fit: cover; }
.featured-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 20px 20px; color: #fff;
}
.featured-overlay h2 { font-size: 1.3rem; margin-top: 8px; line-height: 1.4; }
.featured-overlay .time { font-size: 0.75rem; opacity: 0.7; }
.cat-badge {
    background: #d32f2f; padding: 3px 10px; border-radius: 3px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}

.featured-side {
    display: flex; flex-direction: column; gap: 10px;
}
.featured-side-item {
    flex: 1; position: relative; border-radius: 8px; overflow: hidden;
    background: #222;
}
.featured-side-item a { display: block; height: 100%; position: relative; }
.featured-side-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.featured-side-item h4 {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; font-size: 0.85rem; line-height: 1.3;
}

/* ===== NEWS SECTION ===== */
.section-title {
    font-size: 1.1rem; color: #1a237e; padding-bottom: 10px;
    border-bottom: 2px solid #1a237e; margin-bottom: 20px;
    display: inline-block;
}

.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.12); }
.news-card a { display: block; }
.news-card-img { height: 180px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 15px; }
.cat-label { font-size: 0.7rem; color: #d32f2f; font-weight: 600; text-transform: uppercase; }
.news-card-body h4 { font-size: 0.95rem; margin-top: 5px; line-height: 1.4; color: #222; }
.news-time { font-size: 0.75rem; color: #888; margin-top: 8px; display: block; }

.no-news {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #aaa;
}
.no-news i { font-size: 3rem; margin-bottom: 15px; }

/* ===== FOOTER ===== */
.site-footer { background: #1a237e; color: #fff; padding: 25px 0; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.footer-brand p { font-size: 0.8rem; opacity: 0.7; margin-top: 5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.75rem; opacity: 0.5; text-align: center; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo img { height: 35px; }
    .epaper-btn { padding: 6px 12px; font-size: 0.8rem; }
    .epaper-btn span { display: none; }
    
    .district-filter select { width: 100%; min-width: auto; }
    
    .featured-section { grid-template-columns: 1fr; }
    .featured-main { min-height: 220px; }
    .featured-side { flex-direction: row; overflow-x: auto; }
    .featured-side-item { min-width: 200px; min-height: 120px; }
    
    .news-grid { grid-template-columns: 1fr; gap: 12px; }
    .news-card { display: flex; flex-direction: row; }
    .news-card-img { width: 120px; height: auto; min-height: 90px; flex-shrink: 0; }
    .news-card-body { padding: 10px; }
    .news-card-body h4 { font-size: 0.85rem; }
    
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}
