/* ==========================================================================
   KAMENSKOE.CITY — Modern Portal Stylesheet & Design System
   Features:
   - Light & Dark Themes (Automatic OS sync + manual toggle)
   - Onest Typography & Scaled Readability
   - Clean Editorial Hierarchy (No unnecessary vertical bars on headings)
   - Strictly Icon-free Highlighted Callouts
   - Mobile-First Architecture (Hero -> Newsfeed -> Publications)
   ========================================================================== */

/* 1. CSS VARIABLES & THEMES */
:root {
    /* Brand Palette */
    --brand-navy: #195898;
    --brand-navy-dark: #123d6a;
    --brand-accent: #00b2db;
    --brand-yellow: #00b2db;
    --brand-accent-hover: #0099bd;
    --brand-yellow-hover: #0099bd;
    --brand-blue-accent: #229ED9;
    --brand-blue-subtle: rgba(34, 158, 217, 0.08);

    /* Light Theme (Default) */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F1F5F9;
    --text-main: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;
    --header-bg: #FFFFFF;
    --header-border: #E2E8F0;

    /* Shadows & Radii */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Dark Theme via attribute or media query */
[data-theme="dark"] {
    --bg-page: #0B0F19;
    --bg-card: #131B2E;
    --bg-card-subtle: #1C263D;
    --text-main: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --border-color: #243352;
    --border-subtle: #19243C;
    --header-bg: #0D1424;
    --header-border: #1E293B;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-page: #0B0F19;
        --bg-card: #131B2E;
        --bg-card-subtle: #1C263D;
        --text-main: #F8FAFC;
        --text-secondary: #CBD5E1;
        --text-muted: #94A3B8;
        --text-light: #64748B;
        --border-color: #243352;
        --border-subtle: #19243C;
        --header-bg: #0D1424;
        --header-border: #1E293B;
        --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.6);
    }
}

/* 2. BASE & RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 3. SITE HEADER */
header.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Brand Logo: kamianske • city with Theater on hover */
.brand-logo {
    display: inline-flex;
    align-items: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-main);
    user-select: none;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-logo .dot,
.brand-logo .logo-circle-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #195898;
    margin: 0 4px;
    position: relative;
    top: -1px;
    box-shadow: 0 2px 6px rgba(25, 88, 152, 0.35);
    vertical-align: middle;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo .dot {
    width: 11px;
    height: 11px;
}

.brand-logo .logo-circle {
    display: block;
    width: 11px;
    height: 11px;
    opacity: 0;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-circle-wrapper,
.brand-logo:focus .logo-circle-wrapper,
.brand-logo:active .logo-circle-wrapper {
    box-shadow: 0 4px 14px rgba(25, 88, 152, 0.45);
}

.brand-logo:hover .logo-circle,
.brand-logo:focus .logo-circle,
.brand-logo:active .logo-circle {
    width: 54px;
    height: 54px;
    opacity: 1;
}

/* Header Navigation (Single line with logo & actions, modern city typography) */
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

nav.main-nav a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #000000;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 72px;
    padding: 0 4px;
    transition: opacity 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

nav.main-nav a:hover {
    color: #000000;
    opacity: 0.75;
}

nav.main-nav a.active {
    color: #000000;
    font-weight: 800;
    opacity: 1;
}

nav.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--brand-yellow);
    border-radius: 3px 3px 0 0;
}

[data-theme="dark"] nav.main-nav a {
    color: #FFFFFF;
}

[data-theme="dark"] nav.main-nav a:hover {
    color: #FFFFFF;
    opacity: 0.8;
}

[data-theme="dark"] nav.main-nav a.active {
    color: #FFFFFF;
    opacity: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-search-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search-nav:hover {
    color: var(--text-main);
    border-color: var(--brand-yellow);
    transform: scale(1.05);
}

.btn-theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: all 0.2s ease;
    padding: 0;
}

.btn-theme-toggle:hover {
    border-color: var(--brand-yellow);
    transform: scale(1.05);
}

#themeIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#themeIcon svg {
    display: block;
    width: 19px;
    height: 19px;
    color: currentColor;
    transition: transform 0.2s ease;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #229ED9;
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.3);
    transition: all 0.2s ease;
}

.btn-telegram:hover {
    background-color: #1B8DC4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

.btn-telegram svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-burger {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px;
    color: var(--text-main);
    cursor: pointer;
}

/* 4. MAIN LAYOUT & PORTAL GRID */
.main-layout {
    padding: 24px 0 60px;
}

.grid-portal {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    align-items: start;
}

/* Newsfeed Column (Flush bottom bound via JS/CSS) */
.newsfeed-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.newsfeed-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.newsfeed-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 6px;
}

.newsfeed-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.newsfeed-heading-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.newsfeed-heading-link:hover {
    color: var(--brand-yellow);
}

.newsfeed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.newsfeed-list::-webkit-scrollbar {
    width: 4px;
}
.newsfeed-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.newsfeed-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

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

.newsfeed-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    padding-top: 2px;
}

.newsfeed-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.newsfeed-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 1px;
}

.newsfeed-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.38;
    display: block;
    text-decoration: none;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

.newsfeed-item:hover .newsfeed-link {
    color: var(--text-main);
    font-weight: 700;
}

.newsfeed-bottom-action {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 14px;
}

.btn-more-news {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-more-news:hover {
    background: var(--brand-yellow);
    color: #111827;
    border-color: var(--brand-yellow);
}

/* Circular Arrow Buttons (Signature Reference Element) */
.circle-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.circle-arrow-btn.sm {
    width: 28px;
    height: 28px;
}

.circle-arrow-btn:hover {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow);
    color: #111827;
    transform: translateX(2px);
}

.circle-arrow-btn.white {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.circle-arrow-btn.white:hover {
    border-color: #00b2db;
    background: #00b2db;
    color: #111827;
    transform: translateX(2px);
}

/* Editorial Column (Right side) */
.editorial-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Story Card */
.hero-story-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.hero-image-wrap {
    position: relative;
    background-color: #CBD5E1;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

.hero-story-card:hover .hero-image-wrap img {
    transform: scale(1.03);
}

.category-pill {
    display: none !important;
}

.hero-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.32;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-pub-date {
    color: var(--text-secondary);
}

.hero-meta-divider {
    color: var(--border-color);
}

/* 3 Sub-stories Grid */
.sub-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.story-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #CBD5E1;
}

.story-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image-wrap img {
    transform: scale(1.04);
}

.story-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.story-badge {
    display: none !important;
}

.story-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 10px;
}

.story-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.story-title a:hover {
    color: var(--brand-yellow);
}

.story-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.story-meta {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* 5. PUBLICATIONS DARK TEAL/NAVY SECTION (Signature Style) */
.publications-dark-section {
    margin: 44px 0 20px;
}

.publications-inner-box {
    background: #173644;
    border-radius: 16px;
    padding: 32px 30px 36px 30px;
    color: #ffffff;
}

[data-theme="dark"] .publications-inner-box {
    background: #112833;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.pub-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.pub-section-link {
    font-size: 14px;
    font-weight: 700;
    color: #00b2db;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pub-section-link:hover {
    opacity: 0.85;
}

.features-dark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-dark-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feature-dark-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 11, 0.4);
}

.feature-dark-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-dark-card .feature-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.feature-dark-card .feature-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-dark-card:hover .feature-img-wrap img {
    transform: scale(1.04);
}

.feature-dark-card .feature-info {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.feature-dark-card .feature-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.feature-dark-card .feature-excerpt {
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-dark-card .feature-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-dark-card .feature-date {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Telegram Brand Banner (Homepage & Category) */
.telegram-brand-banner {
    margin: 36px auto 10px;
}

.telegram-banner-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
}

.telegram-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00b2db;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 210, 11, 0.35);
}

.telegram-icon-circle svg {
    width: 28px;
    height: 28px;
}

.telegram-banner-text-wrap {
    flex-grow: 1;
}

.telegram-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.telegram-banner-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.btn-telegram-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: #229ED9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-telegram-banner:hover {
    background: #1b86b9;
    transform: translateY(-1px);
}
/* 6. INNER ARTICLE PAGE */
.article-page-container {
    margin-top: 20px;
    margin-bottom: 48px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-sep {
    color: var(--text-light);
    opacity: 0.6;
}

.breadcrumbs a:hover {
    color: var(--brand-blue-accent);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

.article-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    padding: 36px 40px;
}

.article-category-badge {
    display: none !important;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.article-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Author Block & Circular Share Buttons (Reference Layout) */
.article-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.author-meta-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #173644;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

[data-theme="dark"] .author-avatar-circle {
    background: #244b5e;
}

.author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-display-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.article-publish-date {
    font-size: 12.5px;
    color: var(--text-light);
    font-weight: 500;
}

.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 24px;
}

.article-share-bar.bottom {
    margin: 36px 0 24px;
    border-bottom: none;
    padding-bottom: 0;
}

.share-bar-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.share-circular-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.circle-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.circle-share-btn:hover {
    color: var(--text-main);
    border-color: var(--brand-yellow);
    transform: translateY(-2px);
}

.circle-share-btn.copied {
    border-color: #10b981;
    color: #10b981;
}

.article-main-image-wrap {
    margin: 0 0 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--border-subtle);
    aspect-ratio: 16 / 9;
}

.article-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prevent accidental duplicate lead image in body if cover image is present */
.article-main-image-wrap ~ .article-body > p:first-child:has(> img:only-child),
.article-main-image-wrap ~ .article-body > p:first-child > img:only-child,
.article-main-image-wrap ~ .article-body > p:nth-child(2):has(> img:only-child),
.article-main-image-wrap ~ .article-body > p:nth-child(2) > img:only-child,
.article-main-image-wrap ~ .article-body > figure:first-child {
    display: none !important;
}

.image-caption {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Article Body Typography */
.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

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

.article-body strong {
    font-weight: 700;
    color: var(--text-main);
}

.article-body h2, .article-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 36px 0 14px;
    line-height: 1.35;
}

.article-body ul {
    margin: 0 0 20px 24px;
}

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

.article-body blockquote {
    border-left: 4px solid var(--brand-yellow);
    padding-left: 18px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}


/* SEO & Engagement: Inline Contextual Linking («Читайте також») */
.read-also-inline {
    margin: 28px 0;
    padding: 16px 20px;
    background: var(--bg-card-subtle);
    border-left: 4px solid var(--brand-navy);
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .read-also-inline {
    border-left-color: var(--brand-blue-accent);
}

.read-also-inline .read-also-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-navy);
    margin-bottom: 6px;
}

[data-theme="dark"] .read-also-inline .read-also-label {
    color: var(--brand-blue-accent);
}

.read-also-inline .read-also-link {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.45;
    display: inline-block;
    transition: color 0.15s ease-in-out;
}

.read-also-inline .read-also-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

[data-theme="dark"] .read-also-inline .read-also-link:hover {
    color: var(--brand-yellow);
}

@media screen and (max-width: 768px) {
    .read-also-inline {
        margin: 20px 0;
        padding: 14px 16px;
    }
    .read-also-inline .read-also-link {
        font-size: 15px;
    }
}

/* Article Source Box */
.article-source-box {
    margin-top: 24px;
    padding: 14px 18px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.article-source-box a {
    color: var(--brand-blue-accent);
    word-break: break-all;
}

/* Article Tags */
.article-tags-wrap {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.article-tag-pill:hover {
    color: #111827;
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

/* Telegram CTA card in article */
.telegram-icon-circle-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00b2db;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 210, 11, 0.35);
}

.telegram-icon-circle-sm svg {
    width: 22px;
    height: 22px;
}

.telegram-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 22px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.telegram-cta-text {
    flex-grow: 1;
}

.telegram-cta-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.telegram-cta-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-telegram-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: #229ED9;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.btn-telegram-action:hover {
    background: #1b86b9;
}

/* Telegram Button inside Article (Reference Layout) */
.article-telegram-action-box {
    margin: 32px 0 28px;
}

.article-telegram-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #173644;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(23, 54, 68, 0.2);
}

.article-telegram-action-btn:hover {
    background-color: #214b5f;
    color: #00b2db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 54, 68, 0.3);
}

[data-theme="dark"] .article-telegram-action-btn {
    background-color: #204557;
}

/* Related Dark Box (Reference Layout: Deep Teal with Numbered Stories) */
.related-dark-box {
    margin-top: 40px;
    background: #173644;
    border-radius: 16px;
    padding: 28px 28px 22px;
    color: #ffffff;
}

[data-theme="dark"] .related-dark-box {
    background: #112833;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-dark-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.related-dark-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.related-dark-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    margin: 0;
}

.related-dark-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-dark-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
}

.related-dark-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.related-dark-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.related-dark-link:hover {
    transform: translateX(4px);
}

.related-dark-link:hover .related-title {
    color: #00b2db;
}

.related-num {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    min-width: 24px;
    font-variant-numeric: tabular-nums;
}

.related-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-dark-box .related-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    transition: color 0.2s ease;
}

.related-dark-box .related-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Sidebar in Article */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 22px 20px;
}

.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title-link {
    font-size: 12px;
    color: var(--brand-blue-accent);
    text-decoration: none;
    font-weight: 700;
}

.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.widget-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-item:first-child {
    padding-top: 2px;
}

.widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 42px;
    flex-shrink: 0;
}

.widget-item-date {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.widget-item-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
}

.widget-item-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    text-decoration: none;
    flex: 1;
    transition: color 0.15s ease;
}

.widget-item-title:hover {
    color: var(--brand-blue-accent);
}

/* 7. FOOTER */
footer.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    margin-top: 60px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--brand-blue-accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

/* 8. MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 200;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.25s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 20px;
}

.drawer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-nav a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

/* 8. CATEGORY & ARCHIVE LISTS */
.category-page {
    margin-top: 20px;
    margin-bottom: 60px;
}

.category-header-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px 36px;
    margin-bottom: 32px;
}

.category-badge-pill {
    display: inline-block;
    background-color: var(--bg-card-subtle);
    color: var(--brand-blue-accent);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.category-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.category-page-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 800px;
    margin-bottom: 20px;
}

.category-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.category-chip {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.category-chip:hover {
    color: var(--brand-blue-accent);
    border-color: var(--brand-blue-accent);
}

.category-chip.active {
    background-color: var(--brand-yellow);
    color: #111827;
    border-color: var(--brand-yellow);
}

/* Category Grid */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.pagination {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.pagination li a:hover {
    border-color: var(--brand-blue-accent);
    color: var(--brand-blue-accent);
}

.pagination li.active span {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #111827;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-card-subtle);
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .grid-portal {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    .hero-story-card {
        grid-template-columns: 1fr;
    }
    .sub-stories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .category-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        font-size: 26px;
    }
    .brand-logo .dot,
    .brand-logo .logo-circle-wrapper {
        width: 12px;
        height: 12px;
    }
    .brand-logo:hover .logo-circle-wrapper,
    .brand-logo:focus .logo-circle-wrapper,
    .brand-logo:active .logo-circle-wrapper {
        width: 48px;
        height: 48px;
    }
    .brand-logo:hover .logo-circle,
    .brand-logo:focus .logo-circle,
    .brand-logo:active .logo-circle {
        width: 48px;
        height: 48px;
        opacity: 1;
    }
    .btn-burger {
        display: block;
    }
    nav.main-nav {
        display: none;
    }

    .grid-portal {
        grid-template-columns: 1fr;
    }
    /* Mobile order: Hero -> Sub-stories -> Newsfeed -> Publications */
    .newsfeed-col {
        order: 2;
        height: auto !important;
    }
    .newsfeed-card {
        height: auto;
        padding: 16px;
    }
    .newsfeed-list {
        overflow-y: visible;
        max-height: none;
    }
    .sub-stories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Publications Dark Section */
    .publications-inner-box {
        padding: 24px 18px 28px;
        border-radius: 14px;
    }
    .features-dark-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Telegram Brand Banner on mobile */
    .telegram-banner-box {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 16px;
    }
    .btn-telegram-banner {
        width: 100%;
        justify-content: center;
    }

    .article-card {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .article-title {
        font-size: 24px;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }
    .article-lead {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 16px;
    }
    .article-body {
        font-size: 17px;
        line-height: 1.65;
    }
    
    .article-author-row {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .article-share-bar {
        padding: 10px 0;
        margin: 16px 0 22px;
    }
    .article-share-bar.bottom {
        margin: 28px 0 20px;
    }
    .article-telegram-action-btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 14.5px;
    }

    /* Telegram CTA card on mobile */
    .telegram-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 14px;
    }
    .telegram-cta-text {
        text-align: center;
    }
    .btn-telegram-action {
        width: 100%;
        justify-content: center;
    }

    /* Related Dark Box on mobile */
    .related-dark-box {
        padding: 22px 16px;
        border-radius: 14px;
    }
    .related-dark-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    .category-header-box {
        padding: 24px 18px;
    }
    .category-page-title {
        font-size: 24px;
    }
    .category-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    .btn-telegram span {
        display: none;
    }
    .btn-telegram {
        padding: 8px 10px;
    }
    .container {
        padding: 0 14px;
    }
    .hero-content {
        padding: 16px;
    }
    .hero-title {
        font-size: 18px;
    }
    .pagination li a, .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 6px;
    }
}

/* ========================================================
   СТОРІНКА КОНТАКТІВ ТА ФОРМА ЗВОРОТНОГО ЗВ'ЯЗКУ
   ======================================================== */
.contacts-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .contacts-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.contacts-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contacts-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-of-type {
    border-bottom: none;
}

.contact-item-icon {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

.contact-email-link {
    color: var(--brand-blue-accent);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 700;
}

.contact-email-link:hover {
    color: #1d4ed8;
}

.contact-item-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.contact-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #229ED9;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.contact-tg-btn:hover {
    opacity: 0.9;
}

/* Форма */
.form-group-item {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.captcha-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.captcha-badge-icon {
    font-size: 15px;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background-color: var(--brand-blue-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-submit-btn:hover {
    background-color: #1d4ed8;
}

.form-submit-btn:active {
    transform: scale(0.99);
}

.form-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.form-alert-box.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-alert-box.alert-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

[data-theme="dark"] .form-alert-box.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #a7f3d0;
}

[data-theme="dark"] .form-alert-box.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
