/*
Theme Name: Zuberha News Agency Premium
Description: Профессиональный новостной шаблон (Compliance RF).
Version: 1.0.3
*/

:root {
    --primary: #2d5a27; /* Зеленый (основной) */
    --primary-dark: #1e3d1a;
    --accent: #d32f2f; /* Красный (акцент/18+) */
    --text-main: #222222;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e9ecef;
    --font-ui: 'Roboto', sans-serif;
    --font-read: 'Merriweather', serif;
}

body {
    background-color: var(--bg-light);
    font-family: var(--font-ui);
    margin: 0;
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary); }

.site-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

/* --- ВЕРХНЯЯ ПАНЕЛЬ (LEGAL) --- */
.top-bar {
    background: #111;
    color: #ccc;
    font-size: 12px;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.age-badge {
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 900;
    font-size: 14px;
}

/* --- ШАПКА --- */
.header-main {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo img { max-height: 60px; width: auto; }

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

/* --- МЕНЮ --- */
.nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.2);
}

.nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
}

.nav-bar li a {
    display: block;
    padding: 18px 20px;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.nav-bar li a:hover { 
    color: var(--primary); 
    border-bottom: 3px solid var(--primary); 
    margin-bottom: -3px; 
}

/* =========================================
   БЛОК: СЛАЙДЕР + ПРАВЫЙ СПИСОК (НОВОЕ)
   ========================================= */

.top-news-wrapper {
    display: flex;
    gap: 30px; /* Расстояние между слайдером и списком */
    padding: 30px 30px 0 30px;
    margin-bottom: 30px;
}

/* Слайдер (левая часть) */
.hero-slider {
    flex: 2; /* Широкая часть (66%) */
    height: 420px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.slide-cat {
    background: var(--primary);
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 12px;
    border-radius: 2px;
}

.slide-title {
    font-size: 32px;
    color: #fff;
    font-family: var(--font-read);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-title a { color: #fff; text-decoration: none; }

/* Правый список (узкая часть) */
.top-sidebar {
    flex: 1; /* Узкая часть (33%) */
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    height: 420px;
    overflow-y: auto; /* Скролл если не влезает */
    box-sizing: border-box;
    border-radius: 4px;
}

.section-header {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    font-weight: 900;
    color: #000;
}

.top-news-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.top-news-item:last-child { border: none; }

.time-badge {
    color: var(--primary);
    font-weight: bold;
    font-size: 13px;
    min-width: 40px;
}

.top-news-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}
.top-news-link:hover { color: var(--primary); }


/* =========================================
   ОСНОВНОЙ КОНТЕНТ И СЕТКА КАРТОЧЕК
   ========================================= */

.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px; /* Основной контент + Сайдбар */
    gap: 40px;
    padding: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: inline-block;
    color: #000;
}

/* Сетка из 3-х карточек */
.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 25px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-img-link {
    display: block;
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img { transform: scale(1.05); }

.card-cat {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    font-family: var(--font-read);
}
.card-title a { color: var(--text-main); }


/* --- САЙДБАР (ОБЩИЙ) --- */
.sidebar-news {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 4px;
    height: fit-content;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    line-height: 1.4;
}
.news-item:last-child { border: none; }

/* --- FOOTER --- */
.site-footer {
    background: #1a1a1a;
    color: #888;
    padding: 50px 30px;
    font-size: 13px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.footer-col h4 { color: #fff; text-transform: uppercase; margin-bottom: 20px; }
.rkn-badge { border: 1px solid #444; padding: 10px; margin-top: 15px; font-size: 11px; }

/* --- АДАПТИВ (МОБИЛЬНЫЕ) --- */
@media (max-width: 900px) {
    .top-news-wrapper { flex-direction: column; padding: 20px 15px 0 15px; }
    .hero-slider { height: 250px; width: 100%; }
    .top-sidebar { width: 100%; height: auto; }
    
    .main-grid { grid-template-columns: 1fr; padding: 20px 15px; }
    .slide-title { font-size: 20px; }
    .header-main { flex-direction: column; gap: 15px; text-align: center; }
}