:root {
    --primary: #4f46e5;
    --primary-soft: #6366f1;
    --primary-dark: #1e1b4b;
    --accent: #f97316;
    --accent-soft: #fb923c;
    --bg-deep: #94a3b8;
    --bg-hero: radial-gradient(circle at top left, #1d4ed8 0, #94a3b8 40%, #94a3b8 100%);
    --border-soft: rgba(148, 163, 184, 0.35);
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: #94a3b8 url('../img/background.png') center center / cover no-repeat fixed;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
}

section {
    padding: 4.5rem 0;
}

/* HEADER / NAV */

header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar {
    backdrop-filter: blur(18px);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    position: relative;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: conic-gradient(from 190deg, #0ea5e9, #38bdf8, #f97316, #facc15, #0ea5e9);
    padding: 2px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.75);
}

.logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    background: radial-gradient(circle at 20% 0, #facc15, #ea580c 35%, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #f9fafb;
}

.logo-text-main {
    color: #f9fafb;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.75rem;
    color: #cbd5f5;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    position: relative;
    font-size: 0.92rem;
    color: #e5e7eb;
    font-weight: 500;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.75);
    font-size: 0.8rem;
    color: #f9fafb;
    background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.5), rgba(15, 23, 42, 0.95));
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(251, 191, 36, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.nav-toggle-line {
    width: 20px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: all 0.2s ease;
}

.nav-toggle-line::before {
    top: -6px;
}

.nav-toggle-line::after {
    top: 6px;
}

.nav-open .nav-toggle-line {
    background: transparent;
}

.nav-open .nav-toggle-line::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-open .nav-toggle-line::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding-bottom: 0.85rem;
}

.nav-mobile a {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.nav-mobile a + a {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 0.75rem;
}

.nav-mobile .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
}

/* HERO */

.hero {
    position: relative;
    background: transparent;
    color: #e5e7eb;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(251, 191, 36, 0.35), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.30), transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.14) 0, transparent 55%),
        linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: auto, 60px 1px, 1px 60px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding-top: 3.3rem;
    padding-bottom: 3.7rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.hero-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.8rem;
}

.hero-tag-pill {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 0, #facc15, #f97316);
    color: #111827;
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(2.6rem, 4.3vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 0.85rem;
}

.hero-title span {
    background: linear-gradient(90deg, #f97316, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 36rem;
    color: #cbd5f5;
    margin-bottom: 1.5rem;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
}

.hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #e5e7eb;
}

.hero-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.4);
    margin-top: 0.15rem;
}

.hero-meta-label {
    font-weight: 500;
}

.hero-meta-text {
    color: #cbd5f5;
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background: radial-gradient(circle at 0 0, #f97316, #facc15 40%, #4f46e5 100%);
    color: #111827;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    font-size: 0.85rem;
    cursor: pointer;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #cbd5f5;
}

.hero-note strong {
    color: #fde68a;
}

/* HERO RIGHT */

.hero-right {
    display: grid;
    gap: 1.25rem;
}

.hero-map-card {
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), rgba(15, 23, 42, 0.98));
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
}

.hero-map-inner {
    border-radius: 20px;
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.55), rgba(15, 23, 42, 0.98));
    padding: 0.9rem;
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 0.75rem;
}

.hero-map-visual {
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0, rgba(251, 191, 36, 0.7), transparent 60%),
        radial-gradient(circle at 90% 35%, rgba(56, 189, 248, 0.5), transparent 60%),
        linear-gradient(160deg, #0f172a, #020617);
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.hero-map-visual::before {
    content: "NESSEBAR";
    position: absolute;
    bottom: 0.7rem;
    left: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.95);
    background: rgba(248, 250, 252, 0.85);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.hero-map-overlay {
    position: absolute;
    inset: 10%;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.4);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.hero-map-dots {
    position: absolute;
    inset: 20%;
    border-radius: 999px;
    border: 1px dashed rgba(15, 23, 42, 0.35);
}

.hero-map-pin {
    position: absolute;
    top: 35%;
    left: 42%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 0 0 8px rgba(248, 250, 252, 0.65), 0 0 0 12px rgba(220, 38, 38, 0.4);
}

.hero-map-caption {
    position: absolute;
    top: 18%;
    right: 12%;
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero-stats-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-stat-card {
    border-radius: 14px;
    padding: 0.7rem 0.7rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 0.8rem;
    color: #e5e7eb;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.18rem;
}

.hero-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-bottom-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
    font-size: 0.76rem;
}

.hero-strip-item {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #cbd5f5;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.hero-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

/* BELT */

.belt {
    background: rgba(2, 6, 23, 0.85);
    border-bottom: 1px solid rgba(30, 64, 175, 0.8);
    border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.belt-inner {
    padding: 1.1rem 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
    font-size: 0.78rem;
    color: #e5e7eb;
}

.belt-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.belt-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    color: #9ca3af;
}

.belt-value {
    font-weight: 600;
}

.belt-sub {
    color: #6b7280;
    font-size: 0.72rem;
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    margin-bottom: 2.7rem;
}

.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-soft);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.9rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 34rem;
    margin: 0 auto;
}

/* INFO */

#info {
    background: rgba(2, 6, 23, 0.55);
    position: relative;
}

#info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

#info .container {
    position: relative;
}

.info-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.info-group-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.4), rgba(15, 23, 42, 0.95));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    transform: translateY(18px);
    opacity: 0;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.5), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(129, 140, 248, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.card-text {
    font-size: 0.86rem;
    color: #cbd5f5;
    margin-bottom: 0.55rem;
}

.card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.info-facts {
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.3rem;
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.65), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: var(--shadow-soft);
}

.info-facts-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.4rem;
    font-size: 0.8rem;
}

.fact-label {
    color: #cbd5f5;
}

.fact-value {
    color: #facc15;
    font-weight: 600;
}

.info-links-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.4rem;
    font-size: 0.8rem;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5f5;
}

.info-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.7);
}

/* MINI ABOUT / COMMUNITY */

.info-community {
    margin-top: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.4), rgba(15, 23, 42, 0.98));
    padding: 1rem 1.1rem;
    font-size: 0.82rem;
}

.info-community-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.info-community-badges {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.info-community-badge {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.72rem;
    color: #e5e7eb;
}

/* NEWS */

#news {
    background: rgba(2, 6, 23, 0.55);
    position: relative;
}

#news::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.3), transparent 55%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.25), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

#news .container {
    position: relative;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.1fr);
    gap: 2.3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
}

.news-item {
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem 1.2rem;
}

.news-date-pill {
    grid-row: span 2;
    align-self: flex-start;
    border-radius: 0.9rem;
    padding: 0.6rem 0.7rem;
    background: rgba(15, 23, 42, 1);
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #c7d2fe;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.18rem;
}

.news-text {
    font-size: 0.86rem;
    color: #cbd5f5;
}

.news-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

.news-tags-row {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.news-tag {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.news-aside {
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 1), rgba(30, 64, 175, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: var(--shadow-soft);
}

.news-aside-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.news-aside-text {
    font-size: 0.83rem;
    color: #cbd5f5;
    margin-bottom: 0.8rem;
}

.timeline {
    border-left: 1px solid rgba(148, 163, 184, 0.7);
    margin-left: 0.3rem;
    padding-left: 0.8rem;
    margin-bottom: 0.9rem;
}

.timeline-item {
    margin-bottom: 0.6rem;
    position: relative;
    font-size: 0.78rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.92rem;
    top: 0.2rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35);
}

.timeline-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    color: #c7d2fe;
}

.timeline-text {
    color: #e5e7eb;
}

.news-mini-table {
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.78rem;
}

.news-mini-row {
    display: flex;
    justify-content: space-between;
    padding: 0.18rem 0;
    color: #cbd5f5;
}

.news-mini-row span:first-child {
    color: #9ca3af;
}

.news-mini-row:not(:last-child) {
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.news-aside-actions {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-ghost {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    color: #e5e7eb;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

/* ANNOUNCEMENTS */

#announcements {
    background: rgba(2, 6, 23, 0.55);
    position: relative;
}

#announcements::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 -30%, rgba(129, 140, 248, 0.4), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

#announcements .container {
    position: relative;
}

.ann-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.ann-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.ann-item {
    border-radius: 1.1rem;
    padding: 1rem 1.05rem;
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.6);
    font-size: 0.83rem;
}

.ann-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: #c7d2fe;
    margin-bottom: 0.25rem;
}

.ann-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ann-text {
    color: #cbd5f5;
    margin-bottom: 0.4rem;
}

.ann-meta {
    font-size: 0.74rem;
    color: #9ca3af;
}

.ann-side {
    border-radius: var(--radius-xl);
    padding: 1.3rem 1.25rem;
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.7), #020617);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: var(--shadow-soft);
}

.ann-side-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.ann-side-text {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-bottom: 0.7rem;
}

.ann-side-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    font-size: 0.8rem;
}

.ann-side-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.ann-side-row span:first-child {
    color: #9ca3af;
}

.ann-keyline {
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
    margin: 0.9rem 0 0.7rem;
}

.ann-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.ann-link {
    color: #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* FOOTER */

footer {
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid rgba(30, 64, 175, 0.8);
    color: #9ca3af;
}

.footer-inner {
    padding: 1.8rem 0 1.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    font-size: 0.8rem;
}

.footer-left p {
    margin-bottom: 0.3rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.footer-badge {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.65);
    color: #e5e7eb;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.footer-col-title {
    font-size: 0.85rem;
    color: #e5e7eb;
    margin-bottom: 0.4rem;
}

.footer-links {
    display: grid;
    gap: 0.25rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #e5e7eb;
}

/* SCROLL TOP */

.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at 0 0, #f97316, #facc15 40%, #4f46e5 100%);
    color: #020617;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.75);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
    font-size: 1.2rem;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* REGION / VILLAGES */
.villages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.village-chip {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.82rem;
  cursor: pointer;
}
.village-chip:hover {
  border-color: rgba(251, 191, 36, 0.9);
}

/* FILTERS */
.filters-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
#searchInput, #locationSelect, #categorySelect {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 0.6rem 0.75rem;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cat-chip {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.82rem;
  cursor: pointer;
}
.cat-chip:hover { border-color: rgba(251, 191, 36, 0.9); }

/* FEED LIST */
.feed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1100px) { .feed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .feed-list { grid-template-columns: minmax(0, 1fr); } }

.feed-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.98));
  padding: 0.9rem 1rem;
}
.feed-card-head {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.feed-badge {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: rgba(248, 250, 252, 0.9);
  color: #111827;
  font-size: 0.74rem;
}
.feed-loc {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #cbd5f5;
  font-size: 0.74rem;
}
.feed-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }
.feed-text { font-size: 0.86rem; color: #cbd5f5; }

/* Контейнер със полу-прозрачен фон за карти */
.articles-featured,
.articles-grid {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.empty-state {
  margin-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero-grid,
    .info-columns,
    .news-layout,
    .ann-layout,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        max-width: 460px;
        margin: 0 auto;
    }

    .belt-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .cards-grid,
    .ann-columns,
    .footer-right {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 768px) {
    .navbar-inner {
        padding: 0.75rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        padding: 1rem 0;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        color: #f1f5f9;
        text-align: left;
    }

    .nav-links a:hover {
        background: rgba(148, 163, 184, 0.1);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .articles-featured { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .nav-open .nav-mobile {
        display: flex;
    }

    .hero-inner {
        padding-top: 2.8rem;
        padding-bottom: 3.2rem;
    }

    section {
        padding: 3.6rem 0;
    }

    .hero-meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-bottom-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .belt-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .belt-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
    }
}

/* TOP MENU */
.top-menu {
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
.top-menu-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
}
.top-menu-title {
  font-size: 0.78rem;
  color: #9ca3af;
}
.top-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}
.top-menu-links a {
  color: #cbd5f5;
  font-size: 0.86rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
}
.top-menu-links a:hover {
  border-color: rgba(251, 191, 36, 0.7);
}
.top-menu-links.top-villages {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.top-menu-links.top-villages a {
  flex: 0 0 auto;
}

/* Top menu adjustments: allow horizontal scroll */
.top-menu .container {
  max-width: calc(1240px + 40px);
}
.top-menu-links.top-villages {
  flex-wrap: nowrap;
  overflow-x: auto; /* allow horizontal scroll */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.top-menu-links.top-villages::-webkit-scrollbar {
  height: 6px;
}
.top-menu-links.top-villages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 3px;
}
.top-menu-links.top-villages::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

/* ARTICLE CARDS - NIVО DESIGN */

.articles-container {
  padding: 2rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.article-card {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 360px;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.65);
  border-color: rgba(251, 191, 36, 0.7);
}

.article-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.9) 100%);
}

.article-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(248, 250, 252, 0.95);
  color: #111827;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.article-card-location {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(251, 191, 36, 0.9);
  color: #111827;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 500;
  z-index: 10;
}

.article-card-body {
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-text {
  font-size: 0.68rem;
  color: #cbd5f5;
  margin-bottom: 0.3rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.75rem;
  color: #9ca3af;
  gap: 0.5rem;
}

.article-card-date {
  color: #cbd5f5;
  font-size: 0.75rem;
}

.article-card-readtime {
  color: #9ca3af;
  font-size: 0.75rem;
}

.article-card-views {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Featured articles - 4 по-големи карти на 1 ред */
.articles-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

/* Featured articles за селищни страници - 2 карти на 1 ред */
.articles-featured-location {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-bottom: 2.4rem;
}

.article-card-featured {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.75);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.article-card-featured .article-card-image {
  height: 200px;
}

.article-card-featured .article-card-body {
  padding: 1.2rem;
}

.article-card-featured .article-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.article-card-featured .article-card-text {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* For location pages featured articles - larger images */
.articles-featured-location .article-card-image {
  height: 280px !important;
}

.articles-featured-location .article-card-body {
  padding: 1.4rem !important;
}

.articles-featured-location .article-card-title {
  font-size: 1.2rem !important;
  margin-bottom: 0.7rem !important;
}

.articles-featured-location .article-card-text {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

/* Move badges 25px inward from border on featured articles */
.article-card-featured .article-card-badge {
  top: 25px;
  left: 25px;
}

.article-card-featured .article-card-location {
  bottom: 25px;
  left: 25px;
}

/* Small green ribbon inside article cards */
.ribbon-green {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(16, 185, 129, 0.25); /* emerald with transparency */
  color: #d1fae5; /* light mint text */
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 12;
}
/* Slightly larger on featured */
.article-card-featured .ribbon-green {
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  padding: 0.16rem 0.6rem;
}

.article-card-chips {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

/* Featured: изтегляме чиповете 10px навътре */
.article-card-featured .article-card-chips {
  margin-left: 10px;
}

/* Малки карти: намаляваме чиповете двойно, запазваме позицията */
.article-card:not(.article-card-featured) .article-card-chips {
  gap: 0.2rem;
}
.article-card:not(.article-card-featured) .chip {
  font-size: 0.34rem; /* ~ половината от 0.68rem */
  padding: 0.06rem 0.28rem; /* ~ половината от 0.12/0.55 */
  border-width: 1px;
}

/* Force small cards height */
.articles-grid .article-card { max-height: 320px !important; }
.articles-grid .article-card .article-card-image { height: 160px !important; }

/* Small cards grid for location pages - 4 per row */
.articles-grid-location {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}
/* ================================
   MOBILE RESPONSIVE STYLES
   ================================ */
/* Tablets and below (≤1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  /* Featured articles - 2 columns */
  .articles-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  /* Regular articles - 3 columns */
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  /* Location page small cards - 3 per row */
  .articles-grid-location {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  /* Location page featured - 2 per row */
  .articles-featured-location {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
/* Mobile landscape (≤768px) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .container {
    padding: 0 0.75rem;
  }
  section {
    padding: 2rem 0;
  }
  /* Hide desktop navigation by default on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 0;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin: 0;
    list-style: none;
  }

  /* Show when active */
  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #f1f5f9 !important;
    text-align: left;
  }

  .nav-links a:hover {
    background: rgba(148, 163, 184, 0.1);
  }

  /* Show mobile toggle */
  .nav-toggle {
    display: flex !important;
    z-index: 1001 !important;
    cursor: pointer !important;
  }

  /* CRITICAL: Show nav-links when active */
  .nav-links.active {
    display: flex !important;
  }
  /* Mobile menu */
  .navbar-inner {
    flex-wrap: wrap;
  }
  .nav-mobile {
    width: 100%;
    display: none;
  }
  .nav-open .nav-mobile {
    display: flex;
  }
  /* Logo smaller */
  .logo-text-main {
    font-size: 1rem;
  }
  .logo-text-sub {
    font-size: 0.7rem;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  /* Top menu (villages) - scroll horizontally */
  .top-menu-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .top-menu-links::-webkit-scrollbar {
    height: 4px;
  }
  .top-menu-links::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 2px;
  }
  .top-menu-links a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  /* Featured articles - 1 column */
  .articles-featured {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Regular articles - 2 columns */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  /* Location page - 2 columns */
  .articles-grid-location {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .articles-featured-location {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Article cards - smaller */
  .article-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  .article-card-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .article-card-meta {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-right {
    flex-direction: column;
    gap: 1.5rem;
  }
  /* Info container on home page - 2 columns */
  .home-info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .home-info-grid .article-card:last-child {
    grid-column: span 2;
  }
}
/* Mobile portrait (≤480px) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  .container {
    padding: 0 0.5rem;
  }
  section {
    padding: 1.5rem 0;
  }
  /* Logo even smaller */
  .logo-text-main {
    font-size: 0.9rem;
  }
  .logo-text-sub {
    font-size: 0.65rem;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  .logo-inner {
    font-size: 1rem;
  }
  /* All cards - single column */
  .articles-featured,
  .articles-grid,
  .articles-grid-location,
  .articles-featured-location {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  /* Card styling for mobile */
  .article-card {
    max-height: none !important;
  }
  .article-card-image {
    height: 180px !important;
  }
  .article-card-body {
    padding: 0.75rem;
  }
  .article-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .article-card-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  .article-card-meta {
    font-size: 0.7rem;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .article-card-badge,
  .article-card-location {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  /* Home info grid - single column */
  .home-info-grid {
    grid-template-columns: 1fr !important;
  }
  .home-info-grid .article-card:last-child {
    grid-column: span 1;
  }
  /* Top menu villages - smaller text */
  .top-menu-links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  /* Article page - full width image */
  .article-full {
    padding: 1.5rem 1rem;
  }
  .article-full-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    float: none;
    margin: 0 0 1rem 0;
  }
  .article-full-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .article-full-content {
    font-size: 0.95rem;
  }
  .article-full-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Footer - single column */
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Christmas lights - fewer on mobile */
  .christmas-lights .light:nth-child(n+23) {
    display: none;
  }
}
/* Small phones (≤375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 0.4rem;
  }
  .logo-text-main {
    font-size: 0.8rem;
  }
  .logo-text-sub {
    display: none;
  }
  .article-card-title {
    font-size: 0.9rem;
  }
  .article-card-text {
    font-size: 0.75rem;
  }
  .top-menu-links a {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}
/* ================================
   MOBILE FIXES - Horizontal scroll & Card sizing
   ================================ */
/* Force top menu villages to scroll horizontally on mobile */
@media (max-width: 768px) {
  .top-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .top-menu-row {
    min-width: max-content;
  }
  .top-villages {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .top-villages a {
    flex-shrink: 0;
  }
}
/* Fix card sizing on mobile - ensure they fit screen */
@media (max-width: 768px) {
  .article-card,
  .article-card-featured {
    max-width: 100%;
    width: 100%;
  }
  .articles-grid,
  .articles-featured,
  .articles-grid-location,
  .articles-featured-location {
    width: 100%;
    overflow: hidden;
  }
  /* Ensure images scale properly */
  .article-card-image {
    width: 100%;
    object-fit: cover;
  }
}
/* Mobile portrait - single column, full width cards */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
  }
  .article-card,
  .article-card-featured {
    width: 100% !important;
    max-width: 100% !important;
  }
  .article-card-image {
    width: 100% !important;
  }
  /* Grid containers full width */
  .articles-grid,
  .articles-featured,
  .articles-grid-location,
  .articles-featured-location,
  .home-info-grid {
    width: 100%;
    max-width: 100%;
  }
}
/* Ensure no horizontal scroll on entire page */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.page-shell {
  overflow-x: hidden;
  max-width: 100vw;
}
/* ============================================
   COMPREHENSIVE MOBILE FIXES - OVERRIDE ALL
   ============================================ */
/* Global mobile settings */
@media (max-width: 768px) {
  /* Prevent horizontal scroll on page */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  .page-shell {
    overflow-x: hidden;
    max-width: 100vw;
  }
  /* Container with minimal padding */
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100% !important;
    width: 100%;
  }
  /* СЕЛИЩНО МЕНЮ - FORCE HORIZONTAL SCROLL */
  .top-menu {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0 0.5rem;
  }
  .top-menu-row {
    width: max-content !important;
  }
  .top-villages,
  .top-menu-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    gap: 0.5rem;
    padding: 0.5rem 0;
    width: max-content !important;
  }
  .top-villages a,
  .top-menu-links a {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  /* КАРТИ - FULL WIDTH */
  .articles-featured,
  .articles-grid,
  .articles-grid-location,
  .articles-featured-location {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }
  .article-card,
  .article-card-featured {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  /* ЛАМПИЧКИ - FIX POSITIONING */
  .christmas-lights {
    display: none;
  }
}
/* Mobile portrait fixes */
@media (max-width: 480px) {
  .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .top-menu {
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px;
  }

  .top-villages,
  .top-menu-links {
    padding: 0.5rem 4px;
  }

  .article-card-body {
    padding: 0.75rem !important;
  }

  /* Hide some lights on small screens */
  .light:nth-child(n+30) {
    display: none;
  }
}
/* ============================================
   FINAL MOBILE OVERRIDE - FORCE ALL CHANGES
   ============================================ */
@media (max-width: 768px) {
  /* FORCE селищното меню да скролира */
  .top-menu,
  .top-menu .container,
  .top-menu-row,
  .top-villages,
  .top-menu-links {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .top-menu {
    width: 100vw !important;
    margin-left: calc(-1 * max(4px, env(safe-area-inset-left))) !important;
    margin-right: calc(-1 * max(4px, env(safe-area-inset-right))) !important;
  }
  .top-menu-row {
    display: block !important;
    width: max-content !important;
    min-width: 100% !important;
  }
  .top-villages,
  .top-menu-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    padding: 0.5rem 4px !important;
  }
  .top-villages a,
  .top-menu-links a {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  /* FORCE container padding 4px */
  .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  /* FORCE картите да са пълни с 4px отстояние */
  section > .container > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .home-shell,
  .location-shell,
  .info-shell {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .home-shell > div,
  .location-shell > div,
  .info-shell > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  #contentContainer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .top-villages,
  .top-menu-links {
    padding: 0.5rem 4px !important;
  }
}
/* ============================================
   EXTRA WIDE CARDS ON MOBILE - 2px padding
   ============================================ */
@media (max-width: 768px) {
  /* Намаляваме padding на 2px за още по-широки карти */
  .container {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .top-menu {
    margin-left: -2px !important;
    margin-right: -2px !important;
    padding: 0 2px !important;
  }
  .top-villages,
  .top-menu-links {
    padding: 0.5rem 2px !important;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .top-villages,
  .top-menu-links {
    padding: 0.5rem 2px !important;
  }
}
