@font-face {
    font-family: 'DejaVu Sans';
    src: url('fonts/dejavusans/dejavu-sans-webfont.woff2') format('woff2'),
         url('fonts/dejavusans/dejavu-sans-webfont.woff') format('woff'),
         url('fonts/dejavusans/dejavu-sans-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BPG LE Studio 02 Caps';
    src: url('fonts/bpglestudiocaps/bpg-le-studio-02-caps-webfont.woff2') format('woff2'),
         url('fonts/bpglestudiocaps/bpg-le-studio-02-caps-webfont.woff') format('woff'),
         url('fonts/bpglestudiocaps/bpg-le-studio-02-caps-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-black: #111111;
    --color-text: #222222;
    --color-muted: #666666;
    --color-light: #999999;
    --color-border: #dddddd;
    --color-border-dark: #cccccc;
    --color-primary: #e53935;
    --color-accent: #e53935;
    --color-bg: #ffffff;
    --font-title: 'DejaVu Sans', Arial, sans-serif;
    --font-ui: 'BPG LE Studio 02 Caps', Arial, sans-serif;
    --container-width: 1140px;
}

body {
    font-family: var(--font-ui);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-dark);
}

.header-top {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--color-border);
}

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-top-start {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.site-logo {
    font-family: var(--font-ui);
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--color-black);
    text-decoration: none;
    text-align: center;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-divider {
    color: var(--color-light);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    padding: 2px 4px;
}

.lang-btn.active {
    color: var(--color-black);
}

.search-toggle {
    justify-self: end;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-black);
    padding: 4px;
    display: flex;
    align-items: center;
}

.main-nav {
    background: #102d53;
    border-bottom: 1px solid #0c223d;
}

.main-nav .container {
    position: relative;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav ul li {
    display: flex;
    align-items: center;
}

.main-nav ul li:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 2px;
    flex-shrink: 0;
}

.main-nav ul li a {
    display: block;
    padding: 12px 11px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 2px;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-black);
    flex-shrink: 0;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.hamburger-icon {
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}

.search-overlay {
    display: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    background: #fafafa;
}

.search-overlay.active {
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border-dark);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--color-black);
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-muted);
}

.page-container {
    padding: 36px 20px 60px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.main-content.full-width {
    grid-template-columns: 1fr;
}

.main-content.full-width .sidebar {
    display: none;
}

.section-title {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-black);
}

.breaking-news-section {
    margin-bottom: 0;
}

.hero-slider {
    position: relative;
    margin-bottom: 0;
}

.hero-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: relative;
    cursor: pointer;
}

.hero-slide.active {
    display: block;
}

.hero-slide:not(.active) {
    display: none !important;
}

.hero-slide-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    overflow: hidden;
    background: #111;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #222;
}

.hero-slide-image.hero-image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px 52px 50px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.hero-slide-meta {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.hero-slide-caption .hero-title {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slider .hero-excerpt {
    display: none !important;
}

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(192, 57, 43, 0.92);
}

.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }

.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    padding: 0 52px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}

.hero-slider-dot.active {
    background: #fff;
    transform: scale(1.15);
}

.hero-article {
    cursor: pointer;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: #eee;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 0.85rem;
}

.article-meta {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin: 14px 0 10px;
    letter-spacing: 0.02em;
}

.article-meta .category {
    color: #e53935;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.article-meta .category:hover {
    text-decoration: underline;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-black);
    margin-bottom: 14px;
}

.hero-excerpt {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.secondary-article,
a.secondary-article {
    display: block;
    padding-top: 10px;
    margin-top: 0;
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.breaking-news-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.breaking-news-section > .section-title {
    margin-bottom: 16px;
}

.breaking-news-section .secondary-article .article-meta,
.breaking-news-section a.secondary-article .article-meta {
    margin-top: 0;
    margin-bottom: 8px;
}

@media (min-width: 769px) {
    .breaking-news-hero .secondary-article,
    .breaking-news-hero a.secondary-article {
        padding-top: 10px;
    }
}

.secondary-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-excerpt {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.65;
}

.sidebar {
    border-left: 1px solid var(--color-border);
    padding-left: 36px;
}

.daily-feed-item,
a.daily-feed-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.daily-feed-thumb {
    width: 88px;
    height: 66px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    background: #eee;
}

.daily-feed-thumb-placeholder {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 0.62rem;
    text-align: center;
    padding: 4px;
}

.daily-feed-content {
    flex: 1;
    min-width: 0;
    width: 0;
}

.daily-feed-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.daily-feed-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e53935;
    margin-bottom: 8px;
}

.daily-feed-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-black);
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-right: 1px;
    padding-bottom: 2px;
    text-wrap: pretty;
}

.daily-feed-item:hover .daily-feed-title,
a.daily-feed-item:hover .daily-feed-title,
.daily-feed-item:focus-visible .daily-feed-title,
a.daily-feed-item:focus-visible .daily-feed-title {
    color: #e53935;
}

.daily-feed-excerpt {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-stories-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid var(--color-black);
}

.featured-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    margin-top: 24px;
    align-items: stretch;
}

.featured-stories-grid > .featured-card,
.featured-stories-grid > a.featured-card-link {
    align-self: stretch;
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-width: 0;
}

.featured-card,
a.featured-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.featured-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.featured-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: #eee;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.featured-card-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.featured-card-meta {
    font-size: 0.68rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.featured-card-meta .category {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.featured-card-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-black);
    margin-bottom: 10px;
    min-height: calc(1.35em * 4);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-excerpt {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-height: calc(1.55em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-body .read-more-link {
    margin-top: 12px;
    align-self: flex-start;
    flex-shrink: 0;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 16px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.35);
    border-radius: 2px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, gap 0.22s ease;
}

.read-more-link::after {
    content: '→';
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.featured-card:hover .read-more-link {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    gap: 11px;
}

.featured-card:hover .read-more-link::after {
    transform: translateX(3px);
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #e53935;
    border: 2px solid #e53935;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.view-more-link::after {
    content: '→';
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.view-more-link:hover {
    background: #fff;
    color: #e53935;
    transform: translateY(-1px);
}

.view-more-link:hover::after {
    transform: translateX(4px);
}

.view-more-link .arrows {
    display: none;
}

.sidebar .view-more-link {
    width: 100%;
    margin-top: 20px;
}

.featured-stories-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.inner-page {
    max-width: 780px;
}

.back-link {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    margin-bottom: 24px;
    padding: 0;
}

.back-link:hover {
    color: var(--color-accent);
}

.article-detail-view .hero-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin: 12px 0 20px;
}

.page-view .hero-title {
    font-family: var(--font-ui);
    font-size: 2.2rem;
    margin: 12px 0 20px;
}

.article-detail-view .hero-image,
.page-view .hero-image {
    margin: 24px 0;
}

.article-video {
    width: 100%;
    max-height: 480px;
    display: block;
    margin: 24px 0;
    background: #000;
    border-radius: 4px;
}

.article-full-content video,
.page-content video {
    width: 100%;
    display: block;
}

.news-video-wrap {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    background: #0a0a0a;
}

.news-video-wrap--embed {
    aspect-ratio: 16 / 9;
}

.news-video-wrap--embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.news-video-wrap .plyr {
    border-radius: 10px;
    --plyr-color-main: var(--color-accent, #c0392b);
    --plyr-video-control-color: #fff;
    --plyr-video-control-color-hover: #fff;
    --plyr-menu-background: rgba(15, 15, 15, 0.95);
    --plyr-menu-color: #fff;
    --plyr-font-family: var(--font-ui, Arial, sans-serif);
    --plyr-font-size-base: 14px;
    --plyr-font-size-small: 12px;
    --plyr-font-size-time: 13px;
    --plyr-range-fill-background: var(--color-accent, #c0392b);
    --plyr-video-background: #000;
}

.news-video-wrap .plyr--video .plyr__control--overlaid {
    background: var(--color-accent, #c0392b);
    border: 3px solid rgba(255, 255, 255, 0.9);
    opacity: 0.95;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.news-video-wrap .plyr--video .plyr__control--overlaid:hover,
.news-video-wrap .plyr--video .plyr__control--overlaid:focus {
    background: #a93226;
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(192, 57, 43, 0.28);
    transform: translate(-50%, -50%);
}

.news-video-wrap .plyr--video.plyr--paused .plyr__control--overlaid {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-video-wrap .plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding-top: 28px;
}

.article-full-content,
.page-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-full-content {
    font-family: var(--font-title);
}

.article-full-content h2 {
    font-family: var(--font-title);
    margin: 28px 0 14px;
}

.page-content h2 {
    font-family: var(--font-ui);
    margin: 28px 0 14px;
}

.article-full-content p,
.page-content p {
    margin-bottom: 16px;
}

.category-page-title {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-black);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}

.category-grid .featured-card {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.contact-page h2 {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border-dark);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

.turnstile-wrap {
    margin: 12px 0 16px;
}

.contact-info-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-info-block h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.contact-info-block p {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.btn {
    padding: 10px 24px;
    border: 1px solid var(--color-black);
    background: var(--color-black);
    color: var(--color-bg);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--color-bg);
    color: var(--color-black);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-black);
    border: 1px solid var(--color-border-dark);
}

.btn-secondary:hover {
    border-color: var(--color-black);
}

.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    color: #e5e5e5;
    border-top: 4px solid var(--color-accent);
    padding: 56px 0 0;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 0;
    padding-bottom: 44px;
}

.footer-logo {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    color: #fff;
}

.footer-section h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
}

.footer-section p,
.footer-section ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.85;
}

.footer-section > p:first-of-type {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 8px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
    text-align: center;
}

.admin-panel { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #f0f4f8; z-index: 10000; overflow-y: auto; }
.admin-panel.active { display: block; }
.admin-sidebar { position: fixed; left: 0; top: 0; width: 250px; height: 100vh; background: white; box-shadow: 2px 0 10px rgba(0,0,0,0.08); z-index: 1000; }
.admin-logo-section { padding: 25px; background: #111; color: white; text-align: center; }
.admin-logo-section h2 { font-size: 1.5rem; margin-bottom: 5px; }
.admin-menu { padding: 20px 0; }
.admin-menu-item { padding: 15px 25px; cursor: pointer; transition: all 0.3s; border-left: 3px solid transparent; display: flex; align-items: center; gap: 12px; }
.admin-menu-item:hover { background: #f0f4f8; border-left-color: #111; }
.admin-menu-item.active { background: #eee; border-left-color: #111; font-weight: 500; }
.admin-main { margin-left: 250px; padding: 30px; min-height: 100vh; }
.admin-header { background: white; padding: 20px 30px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #ddd; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border: 1px solid #ddd; border-left: 4px solid #111; }
.stat-card h3 { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.stat-card .number { font-size: 2rem; font-weight: bold; }
.admin-section { background: white; padding: 30px; border: 1px solid #ddd; display: none; }
.admin-section.active { display: block; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; font-size: 1rem; }
.form-group textarea { min-height: 150px; resize: vertical; }
table { width: 100%; border-collapse: collapse; }
thead { background: #f5f5f5; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #ddd; }
.badge { display: inline-block; padding: 5px 12px; font-size: 0.85rem; font-weight: 500; }
.badge-primary { background: #eee; }
.badge-success { background: #e8f5e9; }
.action-buttons { display: flex; gap: 10px; }
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 20000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 30px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.file-upload { border: 2px dashed #ccc; padding: 30px; text-align: center; cursor: pointer; }
.file-upload input { display: none; }
.loading { display: flex; justify-content: center; align-items: center; padding: 20px; color: #666; }
.btn-danger { background: #cc0000; color: white; border-color: #cc0000; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn-primary { background: #111; color: white; border-color: #111; }

@media (max-width: 1024px) {
    .featured-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 14px 0 12px;
    }

    .header-top-inner {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .header-top-start {
        gap: 6px;
    }

    .site-logo {
        font-size: 1.45rem;
        justify-self: center;
    }

    .language-switcher {
        font-size: 0.62rem;
    }

    .hamburger {
        display: inline-flex;
    }

    .main-nav {
        height: 0;
        overflow: visible;
        border-bottom: none;
    }

    .main-nav .container {
        position: static;
        padding: 0;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 12px;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #102d53;
        border-bottom: 1px solid #0c223d;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        z-index: 200;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li:not(:last-child)::after {
        display: none;
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: left;
        font-family: var(--font-title);
        font-size: 0.95rem;
        font-weight: 700;
        color: #fff;
        -webkit-text-fill-color: #fff;
        text-transform: none;
        letter-spacing: 0.02em;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        background: transparent;
    }

    .main-nav ul li:first-child a {
        border-top: none;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        -webkit-text-fill-color: #fff;
    }

    body.is-home .page-container {
        padding-top: 12px;
    }

    .breaking-news-hero {
        display: contents;
    }

    .breaking-news-section {
        display: flex;
        flex-direction: column;
    }

    .breaking-news-section .hero-slider {
        order: 1;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .breaking-news-section .section-title {
        order: 2;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .breaking-news-section .secondary-article,
    .breaking-news-section a.secondary-article {
        order: 4;
    }


    .main-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 36px;
    }

    .featured-stories-grid {
        grid-template-columns: 1fr;
    }

    body.is-home .featured-stories-grid,
    body.layout5.is-home .featured-stories-grid {
        grid-template-columns: 1fr !important;
    }

    body.is-home .featured-stories-section {
        margin-top: 20px;
        padding-top: 16px;
    }

    body.is-home .main-content {
        grid-template-columns: 1fr !important;
        padding-right: 0;
    }

    body.is-home .sidebar {
        position: static;
        width: auto;
        padding-left: 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none;
    }

    .hero-slide-caption {
        padding: 18px 14px 44px;
    }

    .hero-slide-caption .hero-title {
        font-size: 1.05rem;
        -webkit-line-clamp: 2;
    }

    .hero-slider-dots {
        padding: 0 14px;
    }

    .article-detail-view .hero-title,
    .page-view .hero-title {
        font-size: 1.6rem;
    }
}

.site-logo-img {
    max-height: 52px;
    width: auto;
    vertical-align: middle;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo-text {
    line-height: 1;
}

.site-logo--image .site-logo-text {
    display: none !important;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-social a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

@media (min-width: 769px) {
    body.is-home .main-content {
        display: block;
        position: relative;
        padding-right: 288px;
    }

    body.is-home .main-section {
        width: 100%;
    }

    body.is-home .sidebar {
        position: absolute;
        top: 0;
        right: 0;
        width: 260px;
        padding-left: 24px;
    }

    body.is-home .daily-feed-thumb,
    body.is-home .daily-feed-thumb-placeholder {
        width: 72px;
        height: 54px;
    }

    body.is-home .daily-feed-item,
    body.is-home a.daily-feed-item {
        gap: 10px;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    body.is-home .featured-stories-section {
        margin-top: 20px;
        padding-top: 18px;
        width: 100%;
    }

    body.is-home .featured-stories-grid,
    body.layout5.is-home .featured-stories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.is-home .featured-stories-grid .featured-card,
    body.is-home .featured-stories-grid a.featured-card-link,
    body.layout5.is-home .featured-stories-grid .featured-card,
    body.layout5.is-home .featured-stories-grid a.featured-card-link {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
    }

    body.is-home .featured-stories-grid .featured-card-image,
    body.is-home .featured-stories-grid .featured-card-image-placeholder,
    body.layout5.is-home .featured-stories-grid .featured-card-image,
    body.layout5.is-home .featured-stories-grid .featured-card-image-placeholder {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    body.is-home .featured-stories-grid,
    body.layout5.is-home .featured-stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

body.layout2 .main-content {
    grid-template-columns: 2fr 1fr;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--color-accent, #c0392b);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

.api-error-banner {
    background: #fdecea;
    color: #611a15;
    border-bottom: 1px solid #f5c6cb;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
}

.api-error-banner[hidden] {
    display: none !important;
}

.contact-form-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 0.9rem;
}

.contact-form-status[hidden] {
    display: none !important;
}

.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 12px 0 20px;
    font-size: 0.9rem;
}

.article-share a {
    color: var(--color-accent, #c0392b);
    text-decoration: none;
    font-weight: 600;
}

.article-share a:hover {
    text-decoration: underline;
}

.related-articles {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

a.featured-card-link:focus-visible {
    outline: 2px solid var(--color-accent, #c0392b);
    outline-offset: 2px;
}

.search-results-grid {
    margin-top: 20px;
}

@media print {
    .site-header, .sidebar, .featured-stories-section, .site-footer, .article-share {
        display: none !important;
    }
    .main-section {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.layout5 .featured-card {
        grid-template-columns: 1fr;
    }

}
