﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E31937;
    --secondary-color: #003DA5;
    --dark-bg: #2a2a2a;
    --darker-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #ffffff;
    color: #1f1f1f;
    padding: 0;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.header-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 20px;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-650px);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    width: 100%;
}

.header-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header-date {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.logo {
    flex: 0 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.08);
}

.logo-img {
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.05) drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.logo-container:hover .logo-img {
    filter: brightness(1.08) drop-shadow(0 4px 8px rgba(0,0,0,0.12));
    transform: translateY(-1px);
}

.hamburger {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 6px 14px;
    gap: 6px;
    transition: var(--transition);
    width: 180px;
    margin-left: 0;
    margin-top: 0;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 4px;
}

.search-bar:focus-within {
    background: #ffffff;
    border-color: #0039e6;
    box-shadow: 0 0 0 3px rgba(0,57,230,0.12);
}

.search-bar input {
    flex: 1;
    padding: 4px 6px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 120px;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 0;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    color: #001a9c;
}

.theme-toggle {
    background: none;
    border: none;
    color: #1f1f1f;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 6px;
    border-radius: 4px;
}

.theme-toggle:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.drawer-overlay.active {
    display: block;
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 101;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-menu.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 12px;
    border-bottom: 1px solid #e6e6e6;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f1f1f;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    transform: scale(1.1);
    color: #0039e6;
}

.drawer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drawer-nav-link {
    display: block;
    padding: 16px 20px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    letter-spacing: 0.5px;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
    background: #f0f0f0;
    color: #0039e6;
    border-left-color: #ffdd00;
}

.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid #e6e6e6;
    margin-top: auto;
}

.drawer-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #1f1f1f;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
}

.drawer-theme-toggle:hover {
    background: #e0e0e0;
    border-color: #0039e6;
    color: #0039e6;
}

.drawer-theme-toggle i {
    font-size: 1.1rem;
}

.navbar {
    display: none;
}

.navbar.active {
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    background: #f0f0f0;
    color: #0039e6;
    border-left-color: #ffdd00;
}

body.dark-mode {
    background-color: #0a0a0a;
    background-image: none;
    color: #ffffff;
}

body.dark-mode .header {
    background: #0d1521 !important;
    border-bottom-color: #2a3a4e;
    color: #ffffff;
}

body.dark-mode .header-minimal {
    background: #0d1521 !important;
}

body.dark-mode .hamburger span {
    background: #ffffff;
}

body.dark-mode .search-bar {
    background: #3a5a7e;
    border-color: #4a6a8e;
}

body.dark-mode .search-bar input {
    color: #ffffff;
}

body.dark-mode .search-bar input::placeholder {
    color: #999;
}

body.dark-mode .search-bar button {
    color: #0039e6;
}

body.dark-mode .header-date {
    color: #c0c0c0;
}

body.dark-mode .theme-toggle {
    color: #ffffff;
}

body.dark-mode .theme-toggle:hover {
    background: #1a1f2e;
}

body.dark-mode .navbar {
    background: #1a1f2e;
    border-bottom-color: #2a3040;
}

body.dark-mode .drawer-menu {
    background: #1a1f2e;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .drawer-header {
    border-bottom-color: #2a3040;
}

body.dark-mode .drawer-close {
    color: #ffffff;
}

body.dark-mode .drawer-close:hover {
    color: #ffdd00;
}

body.dark-mode .drawer-nav-link {
    color: #ffffff;
}

body.dark-mode .drawer-nav-link:hover,
body.dark-mode .drawer-nav-link.active {
    background: #252d3d;
    color: #ffdd00;
}

body.dark-mode .drawer-footer {
    border-top-color: #2a3040;
}

body.dark-mode .drawer-theme-toggle {
    background: #252d3d;
    border-color: #3a4050;
    color: #ffffff;
}

body.dark-mode .drawer-theme-toggle:hover {
    background: #2a3040;
    border-color: #ffdd00;
    color: #ffdd00;
}

body.dark-mode .nav-link {
    color: #ffffff;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background: #252d3d;
    color: #ffdd00;
}

@media (max-width: 768px) {
    .header-minimal {
        padding: 10px 16px;
    }

    .logo-img {
        height: 60px;
    }

    .search-bar {
        width: 160px;
    }

    .header-date {
        display: none;
    }
}
    gap: 40px;
    box-shadow: none;
    border-bottom: 4px solid #E31937;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.5);
}

.featured-section {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.featured-main {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 30px 30px;
    color: #fff;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.featured-content p {
    font-size: 1rem;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    font-weight: 500;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    border-left: 5px solid var(--secondary-color);
    border-top: 3px solid var(--primary-color);
}

.featured-item:hover {
    box-shadow: 0 5px 20px rgba(0, 61, 165, 0.3);
    transform: translateX(5px) translateY(-2px);
}

.featured-item img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.featured-item h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-dark);
}

.featured-item time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.category-badge.small {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.latest-news-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--secondary-color);
    font-size: 1.5em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 6px solid var(--primary-color);
    position: relative;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(227, 25, 55, 0.3);
    border-top-color: var(--secondary-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: #0039e6;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-body h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.45;
    color: var(--text-dark);
    transition: var(--transition);
    font-weight: 700;
}

.news-card:hover .news-body h3 {
    color: var(--primary-color);
}

.news-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.read-time {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(227, 25, 55, 0.3);
}

.load-more {
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 16px 45px;
    font-size: 1.05rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(227, 25, 55, 0.4);
}

.btn-primary:hover {
    background: #c41530;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(227, 25, 55, 0.5);
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.most-read-section {
    padding: 50px 0;
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin: 0;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.most-read-item:hover {
    background-color: #f9fafb;
}

.most-read-item:last-child {
    border-bottom: none;
}

.most-read-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #E31937, #dc2626);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.most-read-content {
    flex: 1;
}

.most-read-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.most-read-content h3:hover {
    color: #E31937;
}

.most-read-category {
    display: inline-block;
    background: #E31937;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 10px;
}

.most-read-views {
    font-size: 0.85rem;
    color: #6b7280;
}

.categories-section {
    padding: 50px 0;
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, display 0.4s ease;
}

.categories-section.active {
    display: block;
    max-height: 600px;
}

.categories-toggle {
    background: #0039e6;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.categories-toggle:hover {
    background: #001a9c;
    transform: scale(1.05);
}

.categories-toggle i {
    transition: transform 0.3s ease;
}

.categories-toggle.active i {
    transform: rotate(180deg);
}

.categories-section.active {
    display: block;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fafafa;
    padding: 24px 18px;
    text-align: center;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(227, 25, 55, 0.2);
    border-color: rgba(227, 25, 55, 0.1);
}

.category-item i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    transition: var(--transition);
}

.category-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.15);
}

.category-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.most-read-section {
    padding: 50px 0;
    background: #fff;
}

.most-read-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.read-list {
    list-style: none;
}

.read-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.read-item:hover {
    background: var(--light-bg);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.read-item .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.read-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.read-item:hover a {
    color: var(--primary-color);
}

.category-small {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.sidebar-widget p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    color: var(--text-dark);
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 61, 165, 0.3);
}

.btn-secondary:hover {
    background: #001a60;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 61, 165, 0.4);
}

.ad-space {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.ad-space img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0 25px;
    border-top: 6px solid #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);\n}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
    }

    .most-read-grid {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px;
    }

    .header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .search-bar {
        width: 140px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f9f9f9;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content h2 {
        font-size: 1.3rem;
    }

    .featured-main img {
        height: 250px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo {
        width: 100%;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .search-bar {
        margin-top: 15px;
    }

    .featured-main img {
        height: 200px;
    }

    .featured-sidebar {
        gap: 15px;
    }

    .featured-item {
        flex-direction: column;
    }

    .featured-item img {
        width: 100%;
        height: 150px;
    }

    .news-grid {
        gap: 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .read-item {
        grid-template-columns: 30px 1fr;
        gap: 10px;
        padding: 15px;
    }

    .category-small {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

.theme-toggle {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.8);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

.theme-toggle:focus {
    outline: none;
}

body.dark-mode {
    background-color: #0f1419;
    background-image: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    color: #e8e8e8;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #0d1b3a 0%, #05080f 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

body.dark-mode .latest-news-section,
body.dark-mode .featured-section,
body.dark-mode .most-read-section {
    background: linear-gradient(135deg, #1a1f2e 0%, #0a0a0a 100%);
}

body.dark-mode .most-read-item {
    border-bottom-color: #3a4252;
}

body.dark-mode .most-read-item:hover {
    background-color: #252d3d;
}

body.dark-mode .most-read-content h3 {
    color: #ffffff;
}

body.dark-mode .most-read-content h3:hover {
    color: #E31937;
}

body.dark-mode .most-read-views {
    color: #9ca3af;
}

body.dark-mode .news-card {
    background: #252d3d;
    color: #e8e8e8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-top-color: #E31937;
}

body.dark-mode .news-card:hover {
    background: #2d3647;
    box-shadow: 0 15px 45px rgba(227, 25, 55, 0.2);
}

body.dark-mode .news-card h3,
body.dark-mode .news-body h3 {
    color: #ffffff;
}

body.dark-mode .news-card h3:hover {
    color: #E31937;
}

body.dark-mode .news-body p {
    color: #a8a8a8;
}

body.dark-mode .news-footer {
    border-top-color: #3a4252;
    color: #909090;
}

body.dark-mode .sidebar-widget {
    background: #252d3d;
    color: #e8e8e8;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .sidebar-widget h3 {
    color: #ffffff;
    border-bottom: 2px solid #E31937;
    padding-bottom: 12px;
}

body.dark-mode .sidebar-widget p {
    color: #a8a8a8;
}

body.dark-mode .newsletter-form input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(227, 25, 55, 0.3);
    color: #e8e8e8;
    transition: all 0.3s ease;
}

body.dark-mode .newsletter-form input:focus {
    background: rgba(255,255,255,0.12);
    border-color: #E31937;
    box-shadow: 0 0 15px rgba(227, 25, 55, 0.2);
}

body.dark-mode .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

body.dark-mode .section-title,
body.dark-mode h2.section-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    border-bottom: 4px solid #E31937 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
}

body.dark-mode .section-title i,
body.dark-mode h2.section-title i {
    color: #E31937 !important;
    opacity: 1 !important;
}

body.dark-mode .read-item a {
    color: #e8e8e8;
}

body.dark-mode .read-item:hover a {
    color: #E31937;
}

body.dark-mode .read-item:hover {
    background: rgba(227, 25, 55, 0.1);
}

body.dark-mode .category-item {
    background: #252d3d;
    color: #e8e8e8;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

body.dark-mode .category-item:hover {
    background: #2d3647;
    border-color: #E31937;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 25, 55, 0.2);
}

body.dark-mode .category-item h3 {
    color: #ffffff;
}

body.dark-mode .category-item p {
    color: #a8a8a8;
}

body.dark-mode .categories-section {
    background: #1a1f2e;
    border-color: rgba(227, 25, 55, 0.2);
}

body.dark-mode .featured-item {
    background: #252d3d;
    border-left-color: #E31937;
    border-top-color: #003DA5;
}

body.dark-mode .featured-item:hover {
    background: #2d3647;
    box-shadow: 0 8px 25px rgba(0, 61, 165, 0.2);
}

body.dark-mode .featured-item h3,
body.dark-mode .featured-item time {
    color: #e8e8e8;
}

body.dark-mode .featured-content {
    background: linear-gradient(to top, rgba(15,20,25,0.95), rgba(15,20,25,0.5));
}

body.dark-mode .ad-space {
    background: #252d3d;
    border: 1px solid #3a4252;
}

body.dark-mode .search-bar {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .search-bar:focus-within {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(227, 25, 55, 0.3);
}

body.dark-mode .search-bar input {
    color: #e8e8e8;
}

body.dark-mode .search-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

body.dark-mode .footer {
    background: #0d1b3a;
    border-top: 3px solid #E31937;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffea00;
    color: #111827;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    animation: cookieSlideIn 0.35s ease;
}

.cookie-banner__content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner__content a {
    color: #111827;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-banner__btn {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ad-section {
    margin: 28px 0;
    display: flex;
    justify-content: center;
}

.ad-section .adsbygoogle {
    min-height: 90px;
    background: #f3f4f6;
    border-radius: 10px;
}

.ad-noticia-inline {
    margin: 24px 0;
}

.sponsored-section {
    padding: 20px 0 10px;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

.sponsored-container {
    margin-top: 12px;
}

.sponsored-inline {
    margin: 20px 0;
}

.sponsored-side {
    float: right;
    width: 310px;
    margin: 8px 0 20px 20px;
    display: block;
    background: rgba(0, 0, 0, 0.02);
    padding: 0;
    border-radius: 12px;
    box-sizing: border-box;
}

.sponsored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.sponsored-grid--image-only {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.sponsored-side .sponsored-grid--image-only {
    grid-template-columns: 1fr;
}

.sponsored-card {
    display: block;
    background: transparent;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsored-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sponsored-card-media {
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.sponsored-card-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    max-width: 100%;
    box-sizing: border-box;
}

.sponsored-side .sponsored-card-media {
    overflow: visible;
}

.sponsored-side .sponsored-card-media img {
    height: 160px;
    border-radius: 8px;
    padding: 4px;
}

.sponsored-slider {
    position: relative;
    width: 100%;
}

.sponsored-slider .sponsored-card {
    margin: 0;
}

body.dark-mode .sponsored-side {
    background: rgba(255, 255, 255, 0.05);
}

.sponsored-card-body {
    padding: 14px 16px 18px;
}

.sponsored-card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #111827;
}

.sponsored-card-body p {
    font-size: 0.9rem;
    color: #6b7280;
}

body.dark-mode .sponsored-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .sponsored-card-body h3 {
    color: #f9fafb;
}

body.dark-mode .sponsored-card-body p {
    color: #cbd5f5;
}

@media (max-width: 1024px) {
    .sponsored-side {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .sponsored-side {
        float: none;
        width: 100%;
        margin: 20px 0;
        clear: both;
        padding: 0;
        background: transparent;
    }

    .article-content {
        padding: 0;
    }
}

.cookie-banner--hide {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.dark-mode .cookie-banner {
    background: #fbbf24;
    color: #111827;
}

body.dark-mode .cookie-banner__content a {
    color: #111827;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 12px;
        right: 12px;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

mark {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

body.dark-mode mark {
    background: #ffc107;
    color: #000;
}

.article-content figure.media {
    max-width: 700px;
    margin: 20px auto;
}

.article-content figure.media iframe {
    max-width: 100%;
    height: auto;
}

figure.media {
    max-width: 700px;
    margin: 20px auto;
}

figure.media iframe {
    max-width: 100%;
}

.medias-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.media-item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.media-item figcaption {
    padding: 15px;
    background: #f5f5f5;
}

