:root {
    --primary: #e31e24;
    --secondary: #000;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --border: #eeeeee;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; background: var(--bg-light); color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.d-flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }

/* Header - Forced Single Row */
.clean-header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.clean-header .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 38px; display: block; }

.main-nav { display: none; }
.nav-list { display: flex; gap: 25px; }
.nav-list a { font-weight: 800; font-size: 1.1rem; color: var(--text-dark); transition: 0.3s; }
.nav-list a:hover { color: var(--primary); transform: translateY(-2px); }

.header-right { display: flex; gap: 15px; }
.icon-link { font-size: 1.3rem; color: var(--text-dark); }
.menu-toggle { background: none; border: none; font-size: 1.6rem; color: var(--primary); cursor: pointer; display: block; }

@media (min-width: 992px) {
    .clean-header { padding: 12px 0; }
    .logo img { height: 52px; }
    .hero-logo { height: 100px; }
    .main-nav { display: block; }
    .menu-toggle { display: none; }
}

/* News Ticker */
.news-ticker-mini { background: #fff5f5; border-bottom: 1px solid #ffecec; padding: 10px 0; font-size: 0.95rem; font-weight: 700; }
.ticker-label { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 3px; margin-right: 15px; }

/* Hero Section - Compact */
.hero-clean { background: #fff; padding: 25px 0; text-align: center; border-bottom: 1px solid var(--border); }
.hero-logo { height: 60px; margin-bottom: 15px; filter: grayscale(100%) contrast(1.2); -webkit-filter: grayscale(100%); opacity: 0.7; }
.hero-clean p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }

.search-box-clean { 
    max-width: 600px; 
    margin: 0 auto;
    padding: 0 15px;
}

.search-box-clean form {
    display: flex; 
    background: #fff;
    border: 2px solid #eee; 
    border-radius: 50px; 
    overflow: hidden; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.search-box-clean form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(227, 30, 36, 0.12);
}

.search-box-clean input { 
    flex: 1; 
    border: none; 
    padding: 14px 20px; 
    outline: none; 
    font-size: 1rem;
    font-weight: 600;
}

.search-box-clean button { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 0 25px; 
    cursor: pointer; 
    font-size: 1.1rem;
    transition: 0.3s;
}

.search-box-clean button:hover {
    background: var(--secondary);
}

/* Grid & Cards */
.category-grid-clean { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
.cat-box { background: var(--primary); color: #fff; text-align: center; padding: 12px; font-weight: 800; border-radius: 4px; }

@media (min-width: 768px) {
    .category-grid-clean { grid-template-columns: repeat(4, 1fr); }
    .hero-clean { padding: 50px 0; }
    .hero-clean h1 { font-size: 3rem; }
}

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

.card-list { background: #fff; border-radius: 8px; padding: 10px; box-shadow: var(--shadow); margin-bottom: 20px; }
.section-title { border-bottom: 2px solid var(--primary); margin-bottom: 15px; padding-bottom: 5px; font-size: 1.2rem; font-weight: 900; }

.list-item { display: block; padding: 10px 15px; border-bottom: 1px solid var(--bg-light); font-weight: 600; font-size: 0.9rem; }
.list-item:hover { background: #fff5f5; color: var(--primary); padding-left: 20px; }

/* Footer */
footer { background: var(--secondary); color: #fff; padding: 40px 0 100px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 2000; border-top: 1px solid #eee; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; }
.bottom-nav a i { font-size: 1.2rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--primary); }

@media (min-width: 992px) { .bottom-nav { display: none; } footer { padding-bottom: 40px; } }

/* Single Post Page */
.post-header { background: #fff; padding: 30px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.post-title { font-size: 1.5rem; color: var(--primary); font-weight: 800; }
.post-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.post-content { background: #fff; padding: 25px; border-radius: 8px; box-shadow: var(--shadow); }
.post-content h2, .post-content h3 { color: var(--primary); margin: 20px 0 10px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.post-content th { background: #f8f9fa; }

/* Auth Pages */
.auth-container { max-width: 400px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.btn-block { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 4px; font-weight: 700; cursor: pointer; }
