:root {
    --red: #ff3e3e;
    --white: #ffffff;
    --border: #f0f0f0;
    --text-main: #1a1a1a;
    --text-muted: #777;
}

body {
    background: #fff;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    overflow-x: hidden;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    gap: 5px;
}

.nav-logo-text .t2 {
    color: var(--red);
}

.nav-btn {
    display: none !important;
}

.footer-logo {
    font-weight: 900;
}

.footer-logo span {
    color: var(--red);
}

.news-layout-container {
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.news-main-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 60px;
    align-items: flex-start;
}

.news-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap svg {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.search-input-wrap input {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 12px 16px 12px 42px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    outline: none;
    transition: all 0.3s;
}

.search-input-wrap input:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 8px 24px rgba(255, 62, 62, 0.06);
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--border);
}

.sidebar-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 10px;
}

.sidebar-item {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    padding-left: 15px;
    position: relative;
    transition: color 0.2s;
    display: block;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    background: #ddd;
    border-radius: 1px;
}

.sidebar-item:hover, .sidebar-item.active { color: var(--red); }
.sidebar-item:hover::before, .sidebar-item.active::before { background: var(--red); }

.fb-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.fb-card:hover { transform: translateY(-5px); }
.fb-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.fb-logo-circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); overflow: hidden; }
.fb-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.fb-name { font-size: 0.9rem; font-weight: 900; display: block; }
.fb-sub { font-size: 0.7rem; color: #888; font-weight: 700; }
.fb-btn { background: #1877F2; color: #fff; padding: 10px; border-radius: 8px; text-align: center; font-size: 0.8rem; font-weight: 800; }

.article-content {
    max-width: 900px;
}

.article-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 25px;
    color: #000;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 24px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
}

.article-hero-img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    cursor: zoom-in;
}

.article-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #222;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-weight: 700;
}

.article-gallery {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f5f5f5;
}

.gallery-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 260px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 9999;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(15px);
}
.lb-content { position: relative; max-width: 95vw; max-height: 80vh; }
.lb-content img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lb-counter { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; }
.lb-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; z-index: 10000; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; transform: translateY(-50%) rotate(180deg); }

@media (max-width: 1100px) {
    .news-main-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-sidebar { position: relative; top: 0; order: 2; }
    .news-layout-container { padding-top: 100px; }
    .article-content { order: 1; }
}

@media (max-width: 768px) {
    .news-layout-container { padding-top: 90px; padding-bottom: 40px; }
    .article-title { font-size: 1.8rem; letter-spacing: -0.5px; margin-bottom: 20px; }
    .article-text { font-size: 1.05rem; line-height: 1.65; }
    .article-meta { font-size: 0.75rem; gap: 10px 15px; }
    .article-hero-img { max-height: 350px; margin-bottom: 25px; }
    .gallery-item { flex: 0 0 200px; }
    .sidebar-block { gap: 30px; }
    .lb-arrow { width: 40px; height: 40px; }
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; transform: translateY(-50%) rotate(180deg); }
}

@media (max-width: 480px) {
    .article-title { font-size: 1.6rem; }
    .nav-logo img { height: 45px; }
    .nav-logo-text { font-size: 1rem; }
}
