:root {
    /* Colors - Light Theme (Default) */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #01120F;
    /* Dark Army Green - Always Dark */
    --color-bg-card: #F9F9F9;

    --color-accent-green: #1B4332;
    /* Primary Army Green */
    --color-accent-red: #E2481A;
    --color-price-green: #3A9A30;

    --color-text-primary: #01120F;
    --color-text-secondary: #707070;
    --color-text-muted: #A5A9A8;
    --color-text-white: #FFFFFF;

    --color-border: #E5E5E5;
    --color-border-dark: #01120F;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display SC', serif;
    --font-size-title: 20px;

    /* Spacing & Layout */
    --container-max-width: 1440px;
    --sidebar-width: 310px;
    --center-width: 683px;
    --gap-base: 40px;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --color-bg-primary: #060F0D;
    --color-bg-card: #0B1E1B;

    --color-accent-green: #4CAF50;
    /* Brighter for dark mode visibility */
    --color-text-primary: #E0E0E0;
    --color-text-secondary: #A5A9A8;
    --color-border: #1A2E2A;
}

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

html {
    scroll-behavior: smooth;
}

.flex {
    display: flex
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.mt-05 {
    margin-top: .5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.ml-1 {
    margin-left: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.\!mt-2 {
    margin-top: 2rem !important;
}

.mt-4 {
    margin-top: 4rem;
}

.mr-2 {
    margin-right: 2rem;
}

.font-bold {
    font-weight: 700;
}

.gap-1 {
    gap: 1rem
}

.gap-05 {
    gap: .5rem
}

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

.items-center {
    align-items: center;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.ai-logo {
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
}

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

/* Header & Top Bar */
.top-header {
    width: 100%;
    display: contents;
}

.hamburger-btn,
.mobile-search {
    display: none;
}

.top-bar {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
    padding: 12px 0;
    height: 70px;
    display: flex;
    align-items: center;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    box-shadow: 0 2px 0 0 black;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: height 0.3s ease, padding 0.3s ease, margin-bottom 0.3s ease;
}

.top-bar.sticky-active {
    height: 50px;
    padding: 6px 0;
    margin-bottom: 60px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-nav a {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-white);
    text-decoration: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--color-text-white);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .fade-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #23282d 100%);
}

[data-theme="dark"] .category-header {
    border-bottom: 1px solid var(--color-border);
}

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

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    filter: brightness(0) invert(1);
}

/* Logo Section */
.logo-section {
    padding: 24px 0;
    background-color: var(--color-bg-secondary);
}

.logo-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-left {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: -22px
}

.main-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.description-text {
    justify-self: center;
    display: flex;
    flex-direction: column;
}

.agency-title {
    font-family: var(--font-secondary);
    font-size: 46px;
    /* Restored to Figma size */
    letter-spacing: 0.1em;
    color: var(--color-text-white);
    line-height: 1;
}

.lang-switcher {
    justify-content: end;
    margin-top: -22px;
    margin-left: 255px;
    display: flex;
    gap: 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-white);
    width: 500px;
}

.lang-switcher span {
    cursor: pointer;
}

.lang-switcher span:hover {
    color: var(--color-text-white);
    opacity: 0.8;
}

.lang-switcher .active {
    text-decoration: underline;
    color: var(--color-text-white);
}

.logo-right {
    display: flex;
    align-items: center;
    gap: 40px;
    filter: brightness(0) invert(1);
}

.logo-flag {
    height: 100%;
    display: flex;
    align-items: flex-end;
    min-height: 60px;
    margin-left: -15px;
}

.social-icons {
    height: 32px;
    width: auto;
}

.flag-icon {
    height: 32px;
    width: auto;
}

/* Utilities */
.text-upper {
    text-transform: uppercase;
}

.text-bold {
    font-weight: 700;
}

.text-light {
    font-weight: 300;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Hero Section */
.hero-section {
    margin: 40px 0;
}

.hero-card {
    position: relative;
    width: 100%;
    height: 384px;
    /* Exact Figma height */
    overflow: hidden;
    border-radius: 4px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px;
    background: linear-gradient(transparent, rgba(1, 18, 15, 0.9));
    color: var(--color-text-white);
}

.hero-date {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: var(--font-size-title);
    font-weight: 700;
    line-height: 1.25;
    max-width: 615px;
    text-transform: uppercase;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 1);
    text-align: left;
}

/* Combat Losses Section */
.losses-section {
    border-bottom: 1px solid var(--color-bg-secondary);
}



.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-title);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-green);
    letter-spacing: 0.1em;
}

.losses-meta {
    display: flex;
    gap: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent-green);
    text-transform: uppercase;
}

.losses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 column grid */
    gap: 1px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-secondary);
}

.stat-card {
    background-color: var(--color-bg-primary);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.stat-card.highlight {
    background-color: var(--color-bg-primary);
    /* Remove highlight bg */
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-accent-green);
}

.stat-sub {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stat-price {
    font-size: var(--font-size-title);
    font-weight: 700;
    color: var(--color-price-green);
}

.losses-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.losses-nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background: none;
    border: 1px solid var(--color-bg-secondary);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

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

.nav-btn:hover img {
    filter: invert(1);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

/* News Feed */
.feed-section {
    margin-bottom: 60px;
}

/* Main Page Grid - High Precision Layout */
.main-page-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--center-width) var(--sidebar-width);
    gap: var(--gap-base);
    margin: 40px auto;
    align-items: start;
    width: 1363px;
    /* Precise sum of columns and gaps */
}

/* Grid Column Utilities */
.grid-col-2 {
    grid-column: 2;
}

.grid-col-3 {
    grid-column: 3;
}

.grid-wide {
    grid-column: 2 / 4;
}

.grid-full {
    grid-column: 1 / 4;
    /* Spans across all 3 columns including sidebar */
}

.grid-w-full {
    grid-template-columns: 1fr 1fr;
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    gap: 40px
}

/* Left Sidebar - Dedicated Corridor */
.left-sidebar {
    grid-column: 1;
    grid-row: 1 / span 2;
    /* Spans across Hero and Deep Strikes rows, stops for Breakouts */
    width: var(--sidebar-width);
    border-right: 1px solid var(--color-border);
    padding-right: 20px;
}

.sidebar-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.sidebar-title {
    font-size: var(--font-size-title);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-green);
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

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

.news-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
}

.news-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.latest-news-list .news-title {
    font-size: 16px;
}

.news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.btn-see-all-sidebar {
    display: block;
    width: 100%;
    border: 1px solid var(--color-border-dark);
    padding: 14px;
    text-align: center;
    color: var(--color-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-top: 20px;
    transition: all var(--transition-speed) ease;
}

.btn-see-all-sidebar:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
    border-color: var(--color-bg-secondary);
}

/* Center Content */
.center-content {
    display: flex;
    flex-direction: column;
}

/* Hero Section */
/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-bg-secondary);
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 40px 40px;
    background: linear-gradient(to top, rgba(1, 18, 15, 0.95) 0%, rgba(1, 18, 15, 0.4) 60%, transparent 100%);
    color: var(--color-text-white);
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 615px;
    line-height: 1.2;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 24px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-text-white);
    border-color: var(--color-text-white);
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-dark);
    margin-bottom: 24px;
}

.category-title {
    font-size: var(--font-size-title);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-green);
    letter-spacing: 0.05em;
}

.category-header.large .category-title {
    font-size: 24px;
}

.see-all {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.deep-strikes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    /* Gaps handled by padding for separators */
}

.ds-card {
    position: relative;
    display: block;
    text-decoration: none;
    height: 250px;
    padding: 0 12px;
}

.ds-card:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.ds-card:first-child {
    padding-left: 0;
}

.ds-card:last-child {
    padding-right: 0;
}

.ds-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.ds-card .news-card-img,
rc-img-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.ds-card:hover .news-card-img,
rc-img-wrapper {
    transform: scale(1.05);
}

.ds-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.ds-title {
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card-img {
    width: 100%;
    aspect-ratio: 329/184;
    object-fit: cover;
    border-radius: 2px;
}

.war-week-img {
    width: 100%;
    aspect-ratio: 1024/456;
    object-fit: cover;
    border-radius: 2px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Combat Losses Section */
.losses-container {
    background: var(--color-bg-primary);
    max-height: 470px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fffafa #f6f4f4;
}

.losses-header {
    margin-bottom: 0;
}

.losses-title {
    font-size: var(--font-size-title);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-green);
}

.losses-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-green);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.losses-list {
    display: flex;
    flex-direction: column;
}

.loss-item {
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.loss-item.main {
    padding-top: 0;
}

.loss-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-primary);
    opacity: 0.8;
}

.loss-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.loss-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-green);
    line-height: 1;
}

.loss-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-price-green);
}

.loss-note {
    font-size: 11px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.losses-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-dark);
}

.total-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-green);
}

.total-value {
    font-size: var(--font-size-title);
    font-weight: 700;
    color: var(--color-accent-green);
}

.losses-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-dark);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.arrow-btn:hover {
    background: rgba(1, 18, 15, 0.05);
}

.arrow-btn img {
    width: 16px;
    height: 16px;
}

/* Page Container */
.page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Footer Section */
.main-footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 40px;
    text-wrap: nowrap;
}

.footer-link {
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.footer-links-line {
    border-bottom: 1px solid white;
    padding-bottom: 20px;
}

.legal-info {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 400px;
}

.legal-info .license {
    font-weight: 700;
    color: white;
}

.legal-info p {
    margin-bottom: 8px;
}

.contact-info a {
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
}


/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 18, 15, 0.95);
    /* Army dark green tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 100;
}

.search-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-label-modal {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    filter: invert(1);
    /* Make it white */
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(135deg);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-field {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 64px;
    font-weight: 700;
    color: var(--color-text-white);
    padding: 20px 0;
    outline: none;
    font-family: var(--font-primary);
}

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

.search-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--color-accent-green);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-field:focus+.search-underline {
    width: 100%;
}

.search-hints {
    margin-top: 40px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.search-hints kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

/* Responsiveness for Search */
@media (max-width: 768px) {
    .search-input-field {
        font-size: 32px;
    }
}

.btn-see-all-sidebar {
    display: block;
    width: 100%;
    border: none;
    padding: 0px;
    text-align: center;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
}

#map {
    /*height: 450px;*/
}

.category-hint {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Chart Overlay */
.chart-wrapper {
    position: relative;
    width: 100%;
}

.chart-overlay {
    position: absolute;
    top: 5px;
    right: 0;
    z-index: 10;
    pointer-events: none;
    text-align: right;
    font-family: var(--font-primary);
}

.overlay-row {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.total-label {
    color: var(--color-accent-green);
}

.overlay-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent-green);
    margin-top: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Progress Charts */
.goal-mark.yellow-border {
    border-color: #FFC400;
    color: #FFC400;
}

.from-2022-header {
    font-size: var(--font-size-title);
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.from-2022-header .bold {
    color: var(--color-accent-green);
    font-weight: 700;
}

.goal-header {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.goal-header .bold {
    color: var(--color-accent-green);
    font-weight: 700;
}

.analytics-card {
    position: relative;
}

.analytics-card .bold-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.25;
    color: var(--color-text-primary);
}

.analytics-img-wrapper {
    width: 100%;
    /* ratio 427 / 283 */
    aspect-ratio: 427 / 283;
    max-height: 280px;
    overflow: hidden;
    border-radius: 4px;
}

.analytics-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Vertical Separators between columns */
.analytics-section .news-grid.gtc-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.analytics-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0x;
    height: 280px;
    /* Only covers image area */
    width: 1px;
    background-color: var(--color-border);
}

.analytics-section .news-grid.with-sub-section .analytics-card:not(:last-child)::after {
    top: 80px;
}

/* Russian Crimes Section */
.grid-full {
    grid-column: 1 / -1;
}

.grid-half {
    grid-column: 1 / 3;
}

.rc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.rc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.rc-column {
    position: relative;
}

.rc-header {
    border-bottom: 1px solid var(--color-accent-green);
    margin-bottom: 20px;
    padding-bottom: 8px;
    width: fit-content;
    min-width: 100%;
}

.rc-sub-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-accent-green);
    letter-spacing: 0.02em;
}

.rc-img-wrapper img {
    width: 100%;
    aspect-ratio: 289 / 192;
    max-height: 260px;
    overflow: hidden;
    border-radius: 4px;
    object-fit: cover
}

.rc-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 68px;
    /* Alignment with image area */
    height: 192px;
    width: 1px;
    background-color: var(--color-border);
}

.mobile-lang-switch {
    display: none;
}

.news-list-wrapper {
    position: relative;
    max-height: 870px;
    overflow: hidden;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Hide the button by default, JS will show it if needed */
#seeAllBtn {
    /*display: none;*/
    text-align: center;
    margin-top: 15px;
}

.hide {
    display: none;
}

/* =========================================
   RESPONSIVE DESIGN: 1-COLUMN MOBILE LAYOUT
   ========================================= */

@media (max-width: 992px) {
    .hide-sm {
        display: none;
    }
    .post-thumbnail img {
        max-width: 100% !important;
    }

    .article-breadcrumbs {
        margin: 12px 0 ;
    }

    .top-bar.sticky-active {
        height: 40px;
    }

    .losses-container {
        max-height: 100%;
        overflow: hidden;
    }

    .search-hints {
        display: none;
    }

    .mobile-lang-switch {
        display: block;
        margin-top: 6px;
    }

    .category-header.large .category-title {
        font-size: 22px;
    }

    .category-hint {
        font-size: 10px;
    }

    .news-list .category-title {
        margin-top: 2rem;
    }

    /* 1. Global Padding & Container Fixes */
    .container,
    .page-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }

    .page-container-padding {
        padding: 0 10px !important;
    }

    /* 2. Force Main Page into a Single Column Stacking Order */
    .main-page-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 3px auto !important;
    }

    .reversed-column-sm {
        flex-direction: column-reverse !important;
    }

    /* Reset grid column spans so elements take full width naturally */
    .left-sidebar,
    .grid-col-2,
    .grid-col-3,
    .grid-wide,
    .grid-full {
        grid-column: auto !important;
        width: 100% !important;
    }

    /* 3. Force ALL internal grids into Single Columns */
    .gtc-3,
    .rc-grid,
    .rc-grid-2,
    .deep-strikes-grid,
    .grid-w-full,
    .news-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    /* 4. Remove Desktop Borders & Dividers */
    .left-sidebar {
        border-right: none;
        padding-right: 0;
    }

    .analytics-card::after,
    .rc-column::after {
        display: none !important;
    }

    /* 5. Header Adjustments */
    .top-bar {
        height: auto;
        padding: 8px 0;
        /*position: relative;*/
        margin-bottom: -1px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-search {
        display: block;
    }

    .top-bar-inner {
        flex-direction: row !important;
        /* Put items in a row */
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    /* Hamburger styling */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 101;
    }

    .hamburger-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text-white);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hamburger Animation to 'X' */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Dropdown Menu Styling */
    .top-nav {
        position: absolute;
        top: 100%;
        /* Sit directly below the top bar */
        left: 0;
        width: 100%;
        background-color: var(--color-bg-secondary);
        flex-direction: column !important;
        align-items: flex-start;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        /* Hide links when closed */
        transition: max-height 0.4s ease, padding 0.4s ease;
        z-index: 100;
        gap: 0 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .top-nav.menu-open {
        max-height: 600px;
        /* Open state */
        padding: 10px 20px 20px;
        border-bottom: 1px solid white;
    }

    .top-nav a {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }

    .top-nav a:last-child {
        border-bottom: none;
    }

    /* Right side icons */
    .top-bar-right {
        width: auto !important;
        justify-content: flex-end;
        border-top: none !important;
        padding-top: 0 !important;
        gap: 2px;
    }

    /* Logo scaling fixes */
    .logo-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .logo-left {
        display: none;
        /* flex-direction: column; */
        /* gap: 16px; */
    }

    .logo {
        width: 70%;
    }

    .logo-section {
        padding: 6px 0;
    }

    .ai-logo {
        margin: -10px auto 0;
        justify-content: center;
    }

    .sub-logo,
    .logo-right,
    .desktop-search {
        display: none;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .agency-title {
        font-size: 32px;
    }

    /* 6. Component-Specific Fixes */

    /* Hero Slider */
    .hero-slider {
        height: 320px;
        order: -1;
        border-radius: 0;
    }

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

    .hero-overlay {
        padding: 40px 20px 24px;
    }

    /* Deep Strikes Cards */
    .ds-card {
        border-right: none !important;
        border-bottom: 1px solid var(--color-border);
        padding: 0 0 20px 0 !important;
        height: auto;
    }

    .ds-content {
        aspect-ratio: 16/9;
        height: auto;
    }

    /* Map */
    #map {
        height: 300px;
        margin-bottom: 24px;
    }

    /* Chart Overlay Fix (Stack title above chart instead of floating it) */
    .chart-overlay {
        position: relative;
        text-align: left;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
    }

    /* 7. Footer Adjustments */
    .main-footer .gtc-3,
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-links-line .flex {
        gap: 16px;
    }

    .footer-link {
        margin-right: 0 !important;
        white-space: normal;
    }

    .flex.justify-end {
        justify-content: center;
    }

    .legal-info {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* 8. Search Modal Scaling */
    .search-input-field {
        font-size: 28px;
        padding: 10px 0;
    }

    .search-header-modal {
        margin-bottom: 20px;
    }

    .war-week {
        margin-top: 0px;
    }

    .deep-strikes {
        margin-top: 0px;
    }

    .overlay-value {
        font-size: 22px;
    }
}

/* --- NEWS LIST PAGE --- */
.header-border-dark {
    border-bottom: 1px solid var(--color-border-dark);
}

.list-page-content {
    background-color: var(--color-bg-primary);
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-list-item {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

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

.news-list-img {
    min-width: 250px;
    width: 250px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-list-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-list-title a {
    color: var(--color-text-primary);
}

.news-list-title a:hover {
    color: var(--color-accent-green);
}

.news-list-excerpt {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-list-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
}

.pagination .disabled {
    pointer-events: none;
    opacity: 0.6;
    background-color: #f5f5f5;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.page-btn:not([disabled]):hover {
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
}

.page-btn.active {
    background-color: var(--color-accent-green);
    color: var(--color-text-white);
    border-color: var(--color-accent-green);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

[data-theme="dark"] .page-btn[disabled] {
    background-color: #1a1a1a;
}

.page-dots {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* --- SINGLE NEWS PAGE --- */
.article-page-content {
    background-color: var(--color-bg-primary);
    padding-top: 10px;
}

.article-breadcrumbs {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.article-breadcrumbs a {
    color: var(--color-text-primary);
}

.article-header {
    margin-bottom: 32px;
}

.article-category {
    margin-bottom: 16px;
}

.article-category-label {
    display: inline-block;
    color: var(--color-accent-green);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-accent-green);
    padding-bottom: 4px;
    transition: all var(--transition-speed);
}

.article-category-label:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-tags a {
    display: inline-flex;
    padding: 8px 16px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.article-tags a:before {
    content: '#';
}

.article-tags a:hover {
    background-color: var(--color-accent-green);
    color: var(--color-text-white);
    border-color: var(--color-accent-green);
}

.article-title {
    font-size: 36px;
    line-height: 1.2;
    font-family: var(--font-secondary);
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.article-author {
    color: var(--color-accent-green);
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-green);
    flex-shrink: 0;
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.author-card-bio {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.author-link {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.author-link:hover {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.article-social-share {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.share-btn:hover {
    background-color: var(--color-accent-green);
    border-color: var(--color-accent-green);
}

.article-featured-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 4px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    font-family: var(--font-secondary);
}

.article-body h3 {
    font-size: 22px;
    margin: 32px 0 16px;
    font-family: var(--font-secondary);
}

.article-body blockquote {
    border-left: 4px solid var(--color-accent-green) !important;
    padding: 20px 24px !important;
    margin: 32px 0 !important;
    background-color: var(--color-bg-card) !important;
    font-style: italic !important;
    font-size: 20px !important;
}

.article-body ul, .article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 24px 0 0 0;
    object-fit: cover;
}

.article-figure {
    margin: 24px 0;
}

.article-body figure {
    width: auto !important;
}

.article-body .fotorama__caption {
    display: none;
}

.article-figure .article-body-img {
    margin: 0;
}

.article-body figcaption, .article-figcaption {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.article-slider-container {
    position: relative;
    margin: 32px 0;
    overflow: hidden;
    border-radius: 4px;
}

.article-gallery-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slider-item {
    min-width: 100%;
    flex: 0 0 100%;
    margin: 0;
    position: relative;
}

.slider-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 18, 15, 0.7);
    color: var(--color-text-white);
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--color-accent-green);
}

.slider-arrow-prev {
    left: 16px;
}

.slider-arrow-next {
    right: 16px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .news-list-img {
        width: 200px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        gap: 16px;
    }

    .news-list-img {
        width: 100%;
        height: 200px;
    }

    .article-title {
        font-size: 28px;
        margin-top: 1rem;
    }

    .article-meta {
        flex-wrap: wrap;
    }

    .article-social-share {
        flex-wrap: wrap;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body p {
        margin-bottom: 16px;
    }

    .article-featured-img {
        margin-bottom: 5px;
    }
}

/* --- TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-accent-green);
    color: var(--color-text-white);
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.view-more-icon {
    height: 16px;
    width: 16px;
    margin-top: 3px;
}

.full-page-chart {
    min-height: 600px;
    width: 100%;
    margin-bottom:2rem;
}

.post-thumbnail img {
    max-width: 912px;
    height: auto;
    border-radius: 4px;
    margin: auto auto;
    display: block;
    box-shadow: 0 4px 20px #e9e9e9;
}

.war-week {
    .image-container {
        position: relative;
        width: 100%;
        max-width: 1000px; /* You can adjust this width to fit your layout */
        margin: 0 auto;
        overflow: hidden;
        font-family: Arial, sans-serif;
    }

    .background-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .overlay {
        position: absolute;
        top: 0;
        right: 0;
        width: 30%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        color: #ffffff;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        padding: 30px;
        transition: background 0.3s ease;
    }

    .overlay-content {
        width: 100%;
    }

    .overlay-title {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-bottom: 2px solid var(--color-price-green);
        padding-bottom: 10px;
    }

    .overlay-desc {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #e0e0e0;
    }

    @media (max-width: 768px) {
        .overlay {
            display: none;
        }
    }
}

.fire-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /*background: rgba(255, 69, 0, 0.2);*/
    /*border: 1px solid rgba(255, 69, 0, 0.6);*/
    /*border-radius: 50%;*/
    /*box-shadow: 0 0 4px rgba(0,0,0,0.4);*/
}
.popup-content b {
    font-size: 14px;
    color: #d32f2f;
}
.popup-content p {
    margin: 5px 0 0 0;
    font-size: 12px;
    line-height: 1.4;
}

#map {
    max-height: 460px;
    height: 460px;
}

/* Light Theme Legend UI */
.legend {
    background: #ffffff;
    color: #2c3e50;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.legend-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light Theme Loading State Indicator */
#loading {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1000;
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* Video Section */
.video-section {
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-bg-secondary);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}