:root {
    --primary-dark: #1a1a1a;
    --primary-green: #cad4d4;
    --primary-teal: #0d3b3b;
    --primary-red: #d32f2f;
    --secondary-red: #c62828;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --text-muted: #777;
    --link-hover: #1565c0;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
    --primary-dark: #1a1a1a;
    --bg-light: #121212;
    --text-dark: #e0e0e0;
    --text-muted: #aaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

[data-theme="dark"] body {
    background-color: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] .header {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-link {
    color: #e0e0e0;
}

[data-theme="dark"] .navbar-brand .logo-baltic {
    color: #fff;
}

[data-theme="dark"] .navbar-toggler {
    border-color: #fff;
}

[data-theme="dark"] .navbar-toggler:hover {
    background: #fff;
}

[data-theme="dark"] .navbar-toggler:hover .toggler-icon {
    color: #1e1e1e;
}

[data-theme="dark"] .toggler-icon {
    color: #fff;
}

[data-theme="dark"] .news-card,
[data-theme="dark"] .card-large,
[data-theme="dark"] .news-feed {
    background: #1e1e1e;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .card-title {
    color: #e0e0e0;
}

[data-theme="dark"] .card-date {
    color: #aaa;
}

[data-theme="dark"] .card-date-overlay {
    color: #aaa;
}

[data-theme="dark"] .card-title-overlay {
    color: #e0e0e0;
}

[data-theme="dark"] .card-desc {
    color: #bbb;
}

[data-theme="dark"] .section-title {
    color: #e0e0e0;
}

[data-theme="dark"] .card-large .card-image:has(img[src=""]),
[data-theme="dark"] .card-large .card-image:not(:has(img)),
[data-theme="dark"] .card-large .card-image.no-image,
[data-theme="dark"] .card-large .card-image:has(img[src=""]),
[data-theme="dark"] .card-large .card-image:not(:has(img)) {
    background: #2a2a2a !important;
}

[data-theme="dark"] .card-large .card-image.no-image .card-title-overlay {
    color: #e0e0e0;
}

[data-theme="dark"] .card-large .card-image.no-image .card-desc {
    color: #bbb;
}

[data-theme="dark"] .card-large .card-image.no-image .card-overlay {
    background: #2a2a2a;
}

[data-theme="dark"] .card-large .card-image.no-image .card-date-overlay {
    color: #aaa;
}

[data-theme="dark"] .news-item {
    border-color: #333;
}

[data-theme="dark"] .news-item-title {
    color: #e0e0e0;
}

[data-theme="dark"] .footer {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .footer-text {
    color: #aaa;
}

[data-theme="dark"] .footer-text a {
    color: #64b5f6;
}

[data-theme="dark"] .bn-text {
    color: #aaa;
}

[data-theme="dark"] .bn-circle {
    border-color: #cad4d4;
    color: #fff;
}

[data-theme="dark"] .arrow-btn-small {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .arrow-btn-small:hover {
    background: #cad4d4;
    border-color: #cad4d4;
    color: #fff;
}

[data-theme="dark"] .card-icons span {
    background: #2a2a2a;
    color: #aaa;
}

[data-theme="dark"] .card-icons span:hover {
    background: #cad4d4;
    color: #fff;
}

[data-theme="dark"] .card-share-top span {
    background: rgba(255,255,255,0.15);
    color: #e0e0e0;
}

[data-theme="dark"] .card-share-top span:hover {
    background: #cad4d4;
    color: #fff;
}

[data-theme="dark"] .card-date-top {
    background: rgba(0,0,0,0.5);
}

[data-theme="dark"] .card-category {
    background: rgba(0,0,0,0.6);
}

[data-theme="dark"] .three-columns-section {
    background: #1a1a1a;
}

[data-theme="dark"] .recommend-section {
    background: #121212;
}

[data-theme="dark"] .articles-section {
    background: #1a1a1a;
}

[data-theme="dark"] .section-header {
    border-color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-green);
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.btn-read-more:hover {
    background: var(--secondary-red);
    transform: translateX(5px);
    color: #fff;
}

.btn-read-more i {
    transition: transform var(--transition-fast);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3436 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-content .logo-baltic,
.loader-content .logo-news {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
}

.loader-content .logo-baltic {
    color: #fff;
}

.loader-content .logo-news {
    color: var(--primary-red);
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    margin: 30px auto 0;
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    border-radius: 3px;
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease;
    overflow: visible;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 15px 0;
    overflow: visible;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-baltic {
    color: var(--primary-dark);
}

.logo-news {
    color: var(--primary-red);
}

.navbar-toggler {
    border: 2px solid var(--primary-dark);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background: var(--primary-dark);
}

.navbar-toggler:hover .toggler-icon {
    color: #fff;
}

.toggler-icon {
    color: var(--primary-dark);
    font-size: 20px;
    transition: color var(--transition-fast);
}

.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-item.dropdown {
    position: relative;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.05);
}

#categoriesLink.active,
.nav-item.dropdown.show > .dropdown-toggle {
    color: var(--primary-red) !important;
}

.nav-link i {
    font-size: 14px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .nav-link {
        padding: 12px 15px !important;
    }

    #categoriesLink {
        cursor: pointer;
    }

    .navbar-nav .dropdown-menu {
        display: none;
        position: static;
        border: none;
        box-shadow: none;
        background: #f5f5f5;
        padding: 10px 0;
        margin: 0;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-item {
        padding: 10px 20px;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
    }

    [data-theme="dark"] .navbar-nav .dropdown-menu {
        background: #1e1e1e;
    }

    [data-theme="dark"] .navbar-nav .dropdown-item {
        color: #e0e0e0;
    }

    [data-theme="dark"] .navbar-nav .dropdown-item:hover {
        background: var(--primary-red);
        color: #fff;
    }
}

@media (min-width: 992px) {
    [data-theme="dark"] .navbar-collapse {
        background: transparent;
    }

    [data-theme="dark"] .navbar-collapse .nav-link {
        color: #e0e0e0 !important;
    }

    [data-theme="dark"] .navbar-collapse .nav-link:hover {
        color: var(--primary-red) !important;
        background: rgba(211, 47, 47, 0.1);
    }
}

@media (max-width: 991px) {
    [data-theme="dark"] .navbar-collapse {
        background: #1e1e1e !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    }

    [data-theme="dark"] .navbar-collapse .nav-link {
        color: #e0e0e0 !important;
    }

    [data-theme="dark"] .navbar-collapse .nav-link:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.1);
    }

    [data-theme="dark"] #categoriesLink.active,
    [data-theme="dark"] .nav-item.dropdown.show > .dropdown-toggle {
        color: #ff5252 !important;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-red);
    color: #fff;
}

[data-theme="dark"] .dropdown-menu {
    background: #1e1e1e;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--primary-red);
    color: #fff;
}

.hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3436 100%);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 30%),
        linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(0,0,0,1) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 15px;
}

.hero-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-category {
    background: var(--primary-green);
    color: #fff;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.hero-category:hover {
    background: #2e7d32;
    transform: scale(1.05);
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    transform: scale(1.1);
}

.arrow-btn:active {
    transform: scale(0.95);
}

.hero-date {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-content {
    max-width: 800px;
    padding-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-slide.active .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-slide.active .hero-date {
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-dark);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-title-light {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.section-title-light::after {
    background: var(--primary-red);
}

.section-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn-small:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: scale(1.1);
}

.arrow-btn-small:active {
    transform: scale(0.95);
}

.arrow-btn-small.light {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.arrow-btn-small.light:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

.news-card {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-normal);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.news-card:hover .card-category {
    transform: translateY(-5px);
}

.category-society { background: var(--primary-green); }
.category-city { background: var(--primary-teal); }
.category-incidents { background: var(--secondary-red); }
.category-politics { background: #1565c0; }

.news-card .card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.news-card:hover .card-title {
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .news-card:hover .card-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-icons {
    display: flex;
    gap: 8px;
}

.card-icons span {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-icons span:hover {
    background: var(--primary-dark);
    color: #fff;
}

.three-columns-section {
    background: #fff;
    padding: 60px 0;
}

.column {
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.col-lg-4 {
    min-height: 900px;
}

.column-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    flex-grow: 1;
}

.card-large {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all var(--transition-normal);
}

.card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-large .card-image {
    position: relative;
    height: 289px;
    overflow: hidden;
}

.card-large .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-large:hover .card-image img {
    transform: scale(1.1);
}

.card-large .card-image:has(img[src=""]) .card-overlay,
.card-large .card-image:not(:has(img)) .card-overlay {
    background: #fff;
    color: #333;
}

.card-large .card-image:has(img[src=""]) .card-date-overlay,
.card-large .card-image:not(:has(img)) .card-date-overlay {
    color: #666;
}

.card-large .card-image:has(img[src=""]) .card-title-overlay,
.card-large .card-image:not(:has(img)) .card-title-overlay {
    color: #1a1a1a;
}

.card-large .card-image:has(img[src=""]) .card-title-overlay:hover,
.card-large .card-image:not(:has(img)) .card-title-overlay:hover {
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .card-large .card-image:has(img[src=""]) .card-title-overlay:hover,
[data-theme="dark"] .card-large .card-image:not(:has(img)) .card-title-overlay:hover {
    color: #fff;
}

.card-large .card-image:has(img[src=""]) .card-desc,
.card-large .card-image:not(:has(img)) .card-desc {
    color: #555;
}

.card-large .card-image:has(img[src=""]) .card-share span,
.card-large .card-image:not(:has(img)) .card-share span {
    background: #e0e0e0;
    color: #333;
}

.card-large .card-image:has(img[src=""]) .card-share span:hover,
.card-large .card-image:not(:has(img)) .card-share span:hover {
    background: #d32f2f;
    color: #fff;
}

.card-large .card-image:has(img[src=""]),
.card-large .card-image:not(:has(img)),
.card-large .card-image.no-image {
    background: #fff;
    min-height: 289px;
}

.card-large .card-image.no-image img {
    display: none;
}

.card-large .card-image.no-image .card-category {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.card-share-top {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-share-top span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-share-top span:hover {
    background: #cad4d4;
    color: #fff;
}

.card-date-top {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.card-date-top i {
    margin-right: 5px;
}

.card-header-row .card-share span {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.card-header-row .card-share span:hover {
    background: var(--primary-red);
    color: #fff;
}

.card-share-top {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.card-share-top span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-share-top span:hover {
    background: #cad4d4;
    color: #fff;
}

.card-date-top {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
}

.card-date-top i {
    margin-right: 5px;
}

.card-date-top {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.card-date-overlay {
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title-overlay {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.card-large:hover .card-title-overlay {
    color: #fff;
}

[data-theme="dark"] .card-large:hover .card-title-overlay {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.card-desc {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

.card-share {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.card-share span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-share span:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.news-feed {
    background: #f8f8f8;
    padding: 25px;
    padding-top: 30px;
    border-radius: 8px;
    min-height: 900px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 950px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) #e0e0e0;
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

.news-item {
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all var(--transition-fast);
}

.news-item:hover {
    padding-left: 10px;
    background: rgba(211, 47, 47, 0.03);
}

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

.news-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.5;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.news-item:hover .news-item-title {
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .news-item:hover .news-item-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.video-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0a2929 100%);
    padding: 60px 0;
}

.video-card {
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-teal);
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.video-card:hover .video-title {
    color: #ddd;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .video-card:hover .video-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.articles-section {
    background: var(--bg-light);
}

.article-card {
    cursor: pointer;
    border-radius: 0px;
    overflow: hidden;
    transition: transform var(--transition-normal);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 0px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.article-card:hover .article-title {
    color: #fff;
}

[data-theme="dark"] .article-card:hover .article-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.footer {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-text {
    max-width: 800px;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.footer-text p {
    margin-bottom: 8px;
}

.footer-text a {
    color: var(--primary-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-text a:hover {
    color: var(--primary-red);
}

.footer-logo {
    text-align: center;
    flex-shrink: 0;
}

.bn-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bn-circle {
    width: 70px;
    height: 70px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-green);
    transition: all var(--transition-normal);
}

.bn-circle:hover {
    transform: rotate(360deg) scale(1.1);
    background: var(--primary-green);
    color: #fff;
}

.bn-text {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animated.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-on-scroll.animated.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-on-scroll.animated.slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.animate-on-scroll.animated.slide-right {
    animation: slideRight 0.6s ease forwards;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-container {
        min-height: 450px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-text {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-content {
        padding-bottom: 10px;
    }

    .hero-dots {
        padding: 10px 0;
    }

    .btn-read-more {
        padding: 10px 20px;
        font-size: 13px;
    }

    .news-card .card-image {
        height: 180px;
    }

    .card-large .card-image {
        height: 236px;
    }

    .video-thumbnail img {
        height: 160px;
    }

    .article-image {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.light-theme .search-overlay {
    background: rgba(255, 255, 255, 0.98);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

body.light-theme .search-close {
    color: #333;
}

.search-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.search-container {
    width: 90%;
    max-width: 700px;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 28px;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

body.light-theme .search-input {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.light-theme .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-input:focus {
    border-bottom-color: #e74c3c;
}

.search-info {
    display: block;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

body.light-theme .search-info {
    color: rgba(0, 0, 0, 0.5);
}
