/* ===== SITE-WIDE STYLES ===== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #dce3ea;
    font-family: Arial, Helvetica, sans-serif;
    font-size: calc(16px * var(--site-font-scale, 1));
    color: #222;
    margin: 0;
}

.site-container {
    max-width: var(--site-max-width, 1240px);
    margin: 0 auto;
    padding: 0 8px;
}

/* ===== SITE FOOTER ===== */

.site-footer {
    position: relative;
    background: linear-gradient(180deg, #f0f7fd 0%, #d7e9f8 35%, #b3d1ee 70%, #93bce3 100%);
    color: #1a3a6a;
    margin-top: 24px;
    padding: 18px 0 14px;
    font-size: 13px;
    border: 1px solid #86aed3;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -6px 10px -6px rgba(26, 58, 106, 0.25),
        0 2px 6px rgba(26, 58, 106, 0.15);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #6e1622, #a02c3f, #6e1622);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer-version {
    color: #4a6da3;
    font-family: "Consolas", monospace;
}

/* ===== TOP BAR ===== */

.site-topbar {
    position: relative;
    background: linear-gradient(180deg, #f0f7fd 0%, #d7e9f8 35%, #b3d1ee 70%, #93bce3 100%);
    border: 1px solid #86aed3;
    border-radius: 12px;
    padding: 5px 0 9px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -6px 10px -6px rgba(26, 58, 106, 0.25),
        0 2px 6px rgba(26, 58, 106, 0.15);
    overflow: hidden;
}

.site-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #6e1622, #a02c3f, #6e1622);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.site-logo img {
    height: 80px;
}

.site-logo-text {
    font-size: 25px;
    font-weight: bold;
    color: #1a3a6a;
    letter-spacing: 2px;
}

/* Hamburger toggle — hidden by default */
.nav-toggle-check {
    display: none;
}

.nav-hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: #1a3a6a;
    padding: 4px 8px;
    line-height: 1;
    user-select: none;
}

.top-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.top-nav a {
    color: #1a3a6a;
    text-decoration: none;
    padding: 4px 10px;
    font-size: 17px;
    border-right: 1px solid #8ab0d0;
}

.top-nav a:last-child {
    border-right: none;
}

.top-nav a:hover {
    text-decoration: underline;
}

.top-nav-login {
    background: #c3d9f0;
    color: #1a3a6a !important;
    border-radius: 6px;
    border-right: none !important;
    padding: 4px 10px;
}

.top-nav-login:hover {
    background: #aecbec;
    text-decoration: none !important;
}

.top-nav-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.top-nav-logout-form button.top-nav-login {
    cursor: pointer;
    border: none;
    font-size: 17px;
    font-family: inherit;
}

.top-nav-admin {
    color: #8a0000 !important;
    font-weight: bold;
}

.top-nav-user {
    color: #1a3a6a;
    padding: 4px 8px;
    font-size: 14px;
    border-right: 1px solid #8ab0d0;
}

/* ===== LAYOUT GRID ===== */

.site-body {
    padding-top: 8px;
    padding-bottom: 16px;
}

/* ===== WEATHER ALERT BANNER ===== */

.weather-alert-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.weather-alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.weather-alert-text {
    flex: 1;
}

.weather-alert-link {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    color: inherit;
    text-decoration: underline;
}

.alert-minor {
    background: #fff3b0;
    border: 1px solid #e0c200;
}

.alert-moderate {
    background: #ffd580;
    border: 1px solid #e08a00;
}

.alert-severe {
    background: #ff9a80;
    border: 1px solid #cc3300;
    color: #fff;
}

.alert-extreme {
    background: #cc0000;
    border: 1px solid #990000;
    color: #fff;
}

.layout-grid {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr;
    gap: 16px;
    align-items: start;
}

.col-left,
.col-right {
    position: sticky;
    top: 12px;
}

/* ===== SIDEBARS ===== */

.sidebar-header {
    background: #cc0000;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    padding: 4px 8px;
    text-align: center;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #c0c8d8;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-ad-spacing {
    padding-bottom: 16px;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.sidebar-list li {
    border-bottom: 1px dotted #d0d8e8;
}

.sidebar-list li:last-child {

}

.sidebar-list a {
    display: block;
    padding: 3px 8px;
    color: #1a3a6a;
    text-decoration: none;
    font-size: 15px;
}

.road-conditions-list a {
    display: inline;
    padding: 0;
}

.road-conditions-list li {
    padding: 4px 8px;
}

.road-conditions-time {
    display: block;
    font-size: 12px;
    color: #7a8aa0;
    padding-top: 2px;
}


.submit-news-sidebar-box {
    margin-bottom: 12px;
}

.submit-news-link {
    display: block;
    background: repeating-linear-gradient(
        -45deg,
        #f4f7fc,
        #f4f7fc 12px,
        #e8eef8 12px,
        #e8eef8 24px
    );
    border: 2px dashed #9abde8;
    border-radius: 6px;
}

.submit-news-image {
    width: 100%;
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.submit-news-link:hover .submit-news-image {
    opacity: 0.85;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    color: #cc0000;
    text-decoration: underline;
}

.partners-carousel-viewport {
    overflow: hidden;
    height: 138px;
    padding: 6px 6px 0 6px;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-item {
    position: relative;
    margin-bottom: 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.partner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partner-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 10px;
    background: rgba(26, 58, 106, 0.85);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.partner-item:hover .partner-item-caption {
    opacity: 1;
    transform: translateY(0);
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    height: 130px;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.partner-item a:hover {
    border-color: #cc0000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.partner-item img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.partner-item:hover img {
    transform: scale(1.05);
}

.partner-item span {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

/* ===== PARTNERS SECTION (home page) ===== */

.partners-section {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.partners-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #555;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.partners-section .partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 0;
}

.partners-section .partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    text-decoration: none;
}

.partners-section .partner-logo {
    height: 50px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 4px;
    background: #fafafa;
}

.partners-section .partner-logo:hover {
    filter: none;
}

.partners-section .partner-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    background: #f5f5f5;
}

.partners-section .partner-name:hover {
    background: #e8e8e8;
}

/* ===== WEATHER WIDGET ===== */

.weather-loading {
    padding: 12px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.weather-widget {
    background: #fff;
    font-size: 14px;
    padding: 10px;
}

.weather-city {
    font-size: 16px;
    font-weight: bold;
    color: #1a3a6a;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e8f0;
}

.weather-current-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.weather-icon-big {
    font-size: 36px;
    line-height: 1;
}

.weather-temp-block {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 30px;
    font-weight: bold;
    color: #1a3a6a;
    line-height: 1;
}

.weather-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.weather-wind {
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #444;
    background: #f4f8fc;
    border-radius: 5px;
    padding: 6px 8px;
    margin-bottom: 8px;
}

.weather-divider {
    height: 3px;
    background: linear-gradient(to right, #1a7fc1, #5ab0e8);
    border-radius: 2px;
    margin-bottom: 8px;
}

.weather-daily {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    margin-bottom: 6px;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.weather-day-name {
    font-size: 11px;
    font-weight: bold;
    color: #1a3a6a;
}

.weather-day-icon {
    font-size: 18px;
    line-height: 1;
}

.weather-day-temp {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.weather-source {
    text-align: right;
    font-size: 10px;
}

.weather-source a {
    color: #999;
    text-decoration: none;
}

.weather-source a:hover {
    text-decoration: underline;
}

/* ===== AIR QUALITY ===== */

.air-quality-widget {
    background: #fff;
    font-size: 14px;
}

.air-quality-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.air-quality-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.air-quality-label {
    font-size: 13px;
    color: #555;
}

.aqi-good      { background: #4caf50; }
.aqi-fair      { background: #8bc34a; }
.aqi-moderate  { background: #ffc107; color: #333; }
.aqi-poor      { background: #ff9800; }
.aqi-very-poor { background: #f44336; }
.aqi-extreme   { background: #7b1fa2; }
.aqi-unknown   { background: #9e9e9e; }

.air-quality-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
}

/* ===== UTILITY PROVIDERS ===== */

.utility-list {
    padding: 4px 0;
}

.utility-item {
    padding: 8px;
    border-bottom: 1px dotted #d0d8e8;
}

.utility-item:last-child {
    border-bottom: none;
}

.utility-item-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.utility-category {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: #1a3a6a;
    border-radius: 4px;
    padding: 1px 6px;
}

.utility-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.utility-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.utility-links a {
    font-size: 13px;
    color: #1a3a6a;
    text-decoration: none;
}

.utility-links a:hover {
    text-decoration: underline;
}

/* ===== POLL ===== */

.poll-widget {
    background: #fff;
    font-size: 15px;
}

.poll-question {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

/* ===== PROMO (SPONSORED) PLACEHOLDER ===== */

.promo-carousel-viewport {
    overflow: hidden;
    height: 170px;
    padding: 8px 8px 0 8px;
}

.promo-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-item {
    position: relative;
    height: 150px;
    padding: 5px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: content-box;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-item a {
    display: block;
    height: 100%;
    line-height: 0;
}

.promo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.promo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-item:hover img {
    transform: scale(1.02);
}

.promo-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 10px;
    background: rgba(26, 58, 106, 0.85);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.promo-item:hover .promo-item-caption {
    opacity: 1;
    transform: translateY(0);
}

.promo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 12px;
    text-align: center;
    background: repeating-linear-gradient(
        -45deg,
        #f4f7fc,
        #f4f7fc 12px,
        #e8eef8 12px,
        #e8eef8 24px
    );
    border: 2px dashed #9abde8;
    border-radius: 6px;
}

.promo-placeholder-icon {
    font-size: 28px;
}

.promo-placeholder-text {
    color: #1a3a6a;
    font-weight: bold;
    font-size: 14px;
}

/* ===== LOGIN PAGE ===== */

.login-page {
    padding: 0;
}

.login-card {
    background: #fff;
    border: 1px solid #c0c8d8;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 2px 10px rgba(26, 58, 106, 0.12);
}

.login-card-header {
    background: linear-gradient(to bottom, #c8dff8, #9abde8);
    border-bottom: 1px solid #8ab0d0;
    color: #1a3a6a;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    padding: 10px 12px;
}

.login-card-body {
    padding: 20px 24px 24px;
}

.login-subtitle {
    text-align: center;
    color: #5a6a85;
    font-size: 14px;
    margin: 0 0 16px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a3a6a;
    cursor: pointer;
}

.login-btn {
    background: #cc0000;
    border-color: #cc0000;
    font-weight: bold;
}

.login-btn:hover,
.login-btn:focus {
    background: #a80000;
    border-color: #a80000;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 4px;
    color: #8a95a8;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #d0d8e8;
}

/* ===== ARTICLE CARD ===== */

.article-card {
    background: #fff;
    border: 1px solid #c0c8d8;
    border-radius: 10px;
    overflow: hidden;
}

.article-title-bar {
    background: linear-gradient(to bottom, #c8dff8, #9abde8);
    padding: 5px 10px;
    border-bottom: 1px solid #8ab0d0;
    border-radius: 10px 10px 0 0;
}

.article-title-bar a {
    color: #1a3a6a;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.article-title-bar a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    padding: 3px 10px;
    font-size: 15px;
    background: #f0f4fa;
    border-bottom: 1px solid #dde4f0;
    color: #444;
}

.article-meta a {
    color: #0055aa;
    text-decoration: none;
    font-weight: bold;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-date {
    color: #666;
}

.article-author {
    color: #555;
    font-style: italic;
}

.article-author-footer {
    font-style: italic;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.article-body {
    padding: 8px 10px 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 60px;
}

.article-thumb-link {
    flex-shrink: 0;
}

.article-thumb {
    display: block;
    width: var(--article-thumb-width, 220px);
    height: var(--article-thumb-height, 160px);
    object-fit: contain;
    background: #fff;
    border: 1px solid #c0c8d8;
    border-radius: 6px;
}

.article-body p {
    margin: 0;
    line-height: 1.5;
    font-size: 17px;
    flex: 1;
}

.article-readmore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-top: 1px dotted #c0c8d8;
    background: #f8fafd;
}

.article-readmore a {
    color: #0055aa;
    font-size: 15px;
}

.article-readmore a:hover {
    text-decoration: underline;
}

/* ===== ARTICLE DETAIL ===== */

.article-detail {
    background: #fff;
    border: 1px solid #c0c8d8;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-detail-content {
    padding: 12px;
    line-height: 1.7;
    font-size: 18px;
}

.article-detail-content::after {
    content: "";
    display: block;
    clear: both;
}

.article-detail-image {
    float: left;
    width: 320px;
    max-width: 45%;
    height: auto;
    margin: 4px 16px 8px 0;
    border: 1px solid #c0c8d8;
    border-radius: 6px;
}

.article-back {
    padding: 8px 12px;
    border-top: 1px solid #dde4f0;
    background: #f5f8fc;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-views {
    color: #5a6a80;
    font-size: 13px;
}

/* ===== PAGE TITLE ===== */

.page-section-header {
    background: linear-gradient(to bottom, #c8dff8, #9abde8);
    padding: 5px 10px;
    font-weight: bold;
    font-size: 15px;
    color: #1a3a6a;
    border: 1px solid #8ab0d0;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

/* ===== VALIDATION ===== */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ===== BLAZOR ERROR ===== */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Възникна грешка."
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===== ADMIN SECTION ===== */

/* Filters bar */
.admin-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search {
    flex: 1;
    min-width: 200px;
}

.admin-filter-select {
    width: auto;
    min-width: 160px;
}

.admin-pagesize {
    min-width: 130px;
}

.admin-results-info {
    font-size: 13px;
    color: #5a6a80;
    margin-bottom: 8px;
}

.admin-loading {
    padding: 20px 0;
    color: #5a6a80;
}

/* Pagination */
.admin-pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination-ellipsis {
    padding: 4px 6px;
    color: #888;
    font-size: 17px;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
    border-radius: 0;
}

.admin-sidebar {
    width: 220px;
    background: #1a2535;
    color: #c8d3e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-brand {
    padding: 18px 16px;
    border-bottom: 1px solid #2e3f55;
}

.admin-brand a {
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
}

.admin-nav {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
}

.admin-nav li a {
    display: block;
    padding: 10px 20px;
    color: #c8d3e0;
    text-decoration: none;
    font-size: 17px;
    transition: background 0.15s;
}

.admin-nav li a:hover {
    background: #2e3f55;
    color: #fff;
}

.admin-nav-divider {
    border-top: 1px solid #2e3f55;
    margin: 6px 0;
}

.admin-footer-nav {
    padding: 14px 20px;
    border-top: 1px solid #2e3f55;
    font-size: 13px;
}

.admin-footer-nav a {
    color: #8a9bb0;
    text-decoration: none;
}

.admin-footer-nav a:hover {
    color: #fff;
}

.admin-content {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
}

.admin-unauthorized {
    text-align: center;
    padding: 60px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dde3ed;
}

.admin-page-header h1 {
    font-size: 25px;
    margin: 0;
    color: #1a2535;
}

.admin-filter-tabs {
    display: flex;
    gap: 8px;
}

/* Stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.15s;
}

.admin-stat-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #1a2535;
}

.stat-label {
    font-size: 13px;
    color: #5a6a80;
}

.admin-stat-pending .stat-number {
    color: #c0392b;
}

.admin-quick-actions {
    background: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    padding: 16px 20px;
}

.admin-quick-actions h2 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #1a2535;
}

.admin-quick-actions .btn {
    margin-right: 8px;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    overflow: hidden;
    font-size: 17px;
}

.admin-table thead th {
    background: #2e3f55;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}

.admin-table tbody tr {
    border-bottom: 1px solid #edf0f5;
}

.admin-table tbody tr:hover {
    background: #f5f8fc;
}

.admin-table tbody tr.row-pending {
    background: #fffbf0;
}

.admin-table td {
    padding: 9px 12px;
    vertical-align: top;
}

.admin-actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.admin-file-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submission-gallery {
    margin: 10px 0 20px;
}

.submission-gallery-items {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.submission-gallery-item {
    width: 160px;
}

.submission-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

.submission-gallery-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.submission-gallery-video {
    display: block;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.comment-content {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-empty {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: #e2e6ea; color: #383d41; }
.badge-danger { background: #f8d7da; color: #721c24; }

.btn-status-toggle {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
}
.btn-status-toggle:hover:not(:disabled) { filter: brightness(0.95); }
.btn-status-toggle:disabled { opacity: 0.6; cursor: default; }

.admin-article-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Admin Form */
.admin-form {
    background: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    padding: 24px;
    max-width: 900px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* Modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-modal {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    width: 420px;
    max-width: 95vw;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.admin-modal-wide {
    width: 600px;
}

.admin-modal h2 {
    font-size: 18px;
    margin: 0 0 18px;
    color: #1a2535;
}

.admin-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* Confirm dialog */
.admin-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.admin-confirm-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    width: 360px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.admin-confirm-dialog p {
    margin-bottom: 18px;
    font-size: 18px;
}

.admin-confirm-dialog .btn {
    margin: 0 6px;
}

/* Poll options */
.poll-option-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

/* Image upload */
.image-upload-box {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px;
    background: #f8f9fa;
}

.image-preview-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.image-preview {
    max-height: 160px;
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #dde4f0;
    display: block;
}

.image-preview-watermark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    opacity: 0.85;
    pointer-events: none;
}

.watermark-drag-box {
    position: absolute;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.watermark-drag-box .image-preview-watermark {
    position: static;
    width: 100%;
    display: block;
    opacity: 0.85;
    pointer-events: none;
}

.watermark-resize-handle {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    cursor: nwse-resize;
    touch-action: none;
}

.watermark-drag-hint {
    display: block;
    margin-top: 6px;
}

.image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.image-tab {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.image-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

.image-upload-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-hint {
    color: #888;
    font-size: 12px;
}

.upload-progress {
    font-size: 13px;
    color: #0d6efd;
    padding: 4px 0;
}

/* Quill rich text editor */
.quill-editor {
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.ql-toolbar.ql-snow {
    border: 1px solid #ced4da;
    border-radius: 4px 4px 0 0;
    background: #f8f9fa;
}

/* Image resize / align controls inside the article editor */
.ql-image-controls-container {
    position: relative;
}

.quill-editor img {
    cursor: pointer;
}

.ql-image-toolbar {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 2px;
    background: #1a3a6a;
    border-radius: 6px;
    padding: 3px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.ql-image-toolbar button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.ql-image-toolbar button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ql-image-toolbar-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

.ql-image-resize-handle {
    position: absolute;
    z-index: 20;
    width: 14px;
    height: 14px;
    background: #1a3a6a;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: nwse-resize;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ql-container.ql-snow {
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.ql-editor {
    min-height: inherit;
    line-height: 1.7;
}

.ql-editor p {
    margin-bottom: 6px;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}

.btn:disabled { opacity: 0.65; cursor: default; }

.btn-primary    { background: #0d6efd; color: #fff; }
.btn-primary:hover { background: #0b5ed7; color: #fff; }
.btn-secondary  { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; color: #fff; }
.btn-success    { background: #198754; color: #fff; }
.btn-success:hover { background: #157347; color: #fff; }
.btn-danger     { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #b02a37; color: #fff; }
.btn-warning    { background: #ffc107; color: #212529; }
.btn-warning:hover { background: #e0a800; color: #212529; }
.btn-sm         { padding: 4px 10px; font-size: 13px; }
.btn-outline-secondary { background: transparent; color: #6c757d; border: 1px solid #6c757d; }
.btn-outline-secondary:hover { background: #6c757d; color: #fff; }

/* ===================================================
   RESPONSIVE — Bootstrap-style breakpoints
   lg  >= 992px  : 3-column desktop (default)
   md  768–991px : 2-column tablet  (hide left sidebar)
   sm  < 768px   : 1-column mobile
   =================================================== */

/* ── Tablet (md) ── */
@media (max-width: 991px) {
    .layout-grid {
        grid-template-columns: 6fr 2fr;
    }

    .col-left {
        display: none;
    }

    .article-thumb {
        width: 180px;
        height: 130px;
    }
}

/* ── Mobile (sm) ── */
@media (max-width: 767px) {

    /* Article detail — image full width on small screens */
    .article-detail-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 12px 0;
    }

    /* Navigation — hamburger */
    .nav-hamburger {
        display: flex;
        align-items: center;
        order: 2;
    }

    .top-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        border-top: 1px solid #8ab0d0;
        padding-top: 4px;
        gap: 0;
    }

    .nav-toggle-check:checked ~ .top-nav {
        display: flex;
    }

    .top-nav a,
    .top-nav-logout-form button.top-nav-login {
        border-right: none;
        border-bottom: 1px solid #c8daea;
        padding: 9px 12px;
        font-size: 16px;
        width: 100%;
        text-align: left;
    }

    .top-nav a:last-child {
        border-bottom: none;
    }

    .top-nav-user {
        border-right: none;
        border-bottom: 1px solid #c8daea;
        padding: 9px 12px;
    }

    .top-nav-logout-form {
        display: block;
    }

    /* Layout — single column, reorder */
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .col-main  { order: 1; }
    .col-right { order: 2; }
    .col-left  { order: 3; display: block; }

    .col-left,
    .col-right {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Article card */
    .article-body {
        flex-direction: column;
        gap: 8px;
    }

    .article-thumb-link {
        width: 100%;
    }

    .article-thumb {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        background: #fff;
    }

    .article-meta {
        flex-direction: column;
        gap: 2px;
    }

    .article-readmore {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Partners sidebar — horizontal row on mobile */
    .partners-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .partner-item {
        flex: 1 1 140px;
    }

    /* Admin sidebar — collapse on mobile */
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 8px 12px;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        gap: 4px;
    }

    .admin-nav li a {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 4px;
    }

    .admin-brand {
        padding: 8px 12px;
        border-bottom: none;
    }

    .admin-footer-nav {
        border-top: none;
        padding: 8px 12px;
    }

    .admin-content {
        padding: 16px 12px;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table thead th,
    .admin-table td {
        padding: 7px 8px;
    }
}

/* ===== POLL RESULTS (Admin) ===== */
.poll-result-card {
    background: #fff;
    border: 1px solid #dde4f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.poll-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    background: #f4f6fb;
    border-bottom: 1px solid #dde4f0;
}

.poll-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2340;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-result-id {
    font-size: 12px;
    font-weight: 500;
    color: #8a96ab;
    background: #e8edf5;
    border-radius: 4px;
    padding: 2px 6px;
}

.poll-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-result-total {
    font-size: 12px;
    color: #6c757d;
}

.poll-result-options {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-result-row {
    display: grid;
    grid-template-columns: 220px 1fr 90px;
    align-items: center;
    gap: 12px;
}

.poll-result-row.poll-result-winner .poll-result-label {
    font-weight: 600;
    color: #1a2340;
}

.poll-result-row.poll-result-winner .poll-result-bar {
    background: linear-gradient(90deg, #0d6efd, #4e9bff);
}

.poll-result-label {
    font-size: 14px;
    color: #444c5c;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poll-winner-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.poll-result-bar-wrap {
    height: 14px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.poll-result-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c9fd8, #aec9f0);
    border-radius: 8px;
    transition: width .4s ease;
    min-width: 2px;
}

.poll-result-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 13px;
}

.poll-result-pct {
    font-weight: 600;
    color: #1a2340;
    min-width: 44px;
    text-align: right;
}

.poll-result-votes {
    color: #8a96ab;
}

@media (max-width: 600px) {
    .poll-result-row {
        grid-template-columns: 1fr 90px;
        row-gap: 4px;
    }

    .poll-result-label {
        grid-column: 1 / -1;
    }
}

/* About page */
.about-page {
    padding: 0.5rem 0 2rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary, #b30000);
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-primary, #b30000);
    padding-bottom: 0.25rem;
}

.about-section p {
    line-height: 1.75;
    color: #333;
}

.about-team-table {
    width: 100%;
    border-collapse: collapse;
}

.about-team-table th,
.about-team-table td {
    padding: 0.45rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.about-team-table th {
    width: 160px;
    font-weight: 600;
    color: #555;
}

.about-team-table td {
    color: #222;
}

/* ===== CONTACTS PAGE ===== */

.contacts-page {
    padding: 1rem 0 2rem;
}

.contacts-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a6a;
    margin: 0 0 4px;
}

.contacts-subtitle {
    color: #5a6a80;
    margin: 0 0 1.2rem;
}

.contacts-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.contacts-columns-single {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .contacts-columns {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: #fff;
    border: 1px solid #c0c8d8;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.contacts-columns .contact-card {
    margin-top: 0;
}

.contact-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a6a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #cc0000;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-info-icon {
    font-size: 18px;
    line-height: 1.4;
}

.contact-info-label {
    font-weight: 700;
    color: #1a3a6a;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-info-value {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.contact-social {
    margin-top: 8px;
}

.contact-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.contact-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.contact-social-fb {
    background: #3b5998;
}

.contact-social-tw {
    background: #1da1f2;
}

.contact-social-yt {
    background: #cc0000;
}

.contact-form-field {
    margin-bottom: 14px;
}

.contact-form-field label {
    display: block;
    font-weight: 700;
    color: #1a3a6a;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #c0c8d8;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #8ab0d0;
    box-shadow: 0 0 0 2px rgba(138, 176, 208, 0.35);
}

.contact-form-textarea {
    resize: vertical;
}

.contact-form-status {
    margin-bottom: 14px;
    padding: 8px 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    color: #1b5e20;
    font-size: 14px;
}

.contact-form-submit {
    width: 100%;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.contact-form-submit:hover {
    background: #a30000;
}

.contact-map-card {
    margin-top: 16px;
}

.contact-map-embed {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #c0c8d8;
}

.contact-map-embed iframe {
    width: 100%;
    height: 260px;
    border: none;
    display: block;
}

/* Изпрати новина */
.submit-news-page {
    padding: 1rem 0 2rem;
}

.submit-news-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.submit-news-divider {
    border: none;
    border-top: 1px solid #d8dee8;
    margin: 0 0 1.4rem;
}

.submit-news-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .submit-news-row {
        grid-template-columns: 1fr;
    }
}

.submit-news-box {
    background: #efefef;
    border-radius: 6px;
    padding: 24px;
    margin-top: 20px;
}

.submit-news-box .form-group {
    margin-bottom: 18px;
}

.submit-news-file-row {
    margin-bottom: 8px;
}

.submit-news-file-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.submit-news-file-ok {
    color: #1a7a3a;
    font-weight: 600;
    margin-top: 6px;
}

.submit-news-file-preview {
    margin-top: 10px;
}

.submit-news-file-preview img {
    max-width: 260px;
    max-height: 260px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.submit-news-file-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.submit-news-file-item {
    position: relative;
    width: 140px;
    height: 140px;
}

.submit-news-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.submit-news-file-generic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.85em;
    word-break: break-word;
}

.submit-news-file-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
}

.submit-news-captcha label {
    font-weight: 600;
}

.submit-news-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: transparent;
}

.submit-news-agree .form-check-input {
    margin-top: 4px;
    flex-shrink: 0;
}

.submit-news-agree .form-check-label {
    font-size: 0.9rem;
    color: #333;
}

.required {
    color: #c00;
}
