@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --bg: #ececec;
    --bg-alt: #fcfcfc;
    --text: #171717;
    --text-alt: #767676;
    --primary: #1877f2;
    --accent: #004080;
    --border: #e2e8f0;
    --info: #242424;
    --menu: #242424;
    --brbred: #d80d17;
    --brbblue: #032048;
    --card-bg: #ffffff;
    --panel-bg: #ffffff;
    --border-soft: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 28px 65px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.1);
    --meta-border: rgba(0, 0, 0, 0.07);
    --footer-bg: #10151f;
    --footer-text: #d8dff3;
    --footer-link: #cbd5e1;
    --footer-border: rgba(255, 255, 255, 0.08);
    --border-author: rgb(0, 0, 0);
    --nav-height: 82px;
    --nav-content-gap: 32px;
    --container-pad: 24px;
}

[data-theme="dark"] {
    --bg: #181920;
    --bg-alt: #23263a;
    --text: #ececec;
    --text-alt: #b5b5b5;
    --primary: #90caf9;
    --accent: #4093d5;
    --border: #33364b;
    --info: #cfcfcf;
    --menu: #cfcfcf;
    --brbred: #e30613;
    --brbblue: #88baff;
    --card-bg: #1f2430;
    --panel-bg: #23263a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 28px 65px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.24);
    --meta-border: rgba(255, 255, 255, 0.10);
    --footer-bg: #10151f;
    --footer-text: #d8dff3;
    --footer-link: #cbd5e1;
    --footer-border: rgba(255, 255, 255, 0.08); 
    --border-author: rgb(255, 255, 255);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    background: var(--bg);
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100%;
    padding-top: calc(var(--nav-height) + var(--nav-content-gap));
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: var(--brbblue);
    font-weight: bold;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.navbar {
    background: var(--bg-alt);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: var(--nav-height);
}

.menu-toggle,
.theme-toggle {
    background: transparent;
    border: 1px solid var(--menu);
    border-radius: 5px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.navbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle i {
    font-size: 1rem;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    position: relative;
    transition: transform 0.25s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.navbar .logo img{
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(360px, 92%);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
    z-index: 1100;
    overflow-y: auto;
    will-change: transform;
}

.menu-header {
    position: sticky;
    top: 0;
    background: var(--brbred);
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 16px 16px;
    z-index: 1110;
}

.menu-logo {
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.menu-date {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 4px;
}

.menu-actions {
    padding: 16px 18px 0;
}

.subscribe-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #e30613;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.subscribe-btn:hover {
    background: #b2050f;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 18px 24px;
}

.menu-items a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
}

.menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

.nav-links.open {
    transform: translateX(0);
}

.menu-items a:last-child {
    border-bottom: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1050;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.hero {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.slide-news {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: clamp(340px, 58vh, 600px);
    overflow: hidden;
    border-radius: 0;
    background: rgba(12, 13, 20, 0.15);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    z-index: 1;
}

.news-item {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    color: #ffffff;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

.news-item.active {
    opacity: 1;
    transform: translateX(0);
}

.news-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    z-index: 1;
}

.news-overlay {
    position: absolute;
    top: auto;
    bottom: clamp(150px, 28%, 230px);
    left: 40px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.news-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.news-item h3,
.news-item p {
    position: relative;
    z-index: 2;
}

.news-item h3 {
    font-size: clamp(2rem, 2.6vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.12;
}

.news-item p {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 var(--container-pad);
    width: min(100%, 1180px);
}

.main-content {
    width: 100%;
    min-width: 0;
    margin: 0 0 80px;
    padding: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
    gap: 32px;
    align-items: start;
}

.content-grid > * {
    min-width: 0;
}

.section-header {
    margin-bottom: 24px;
    text-align: left;
}

.section-header h2 {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-alt);
    max-width: 780px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.news-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.sidebar-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar-card:last-child {
    border-bottom: none;
}

.sidebar-card img {
    width: 88px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.sidebar-card-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.sidebar-card > a.category-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.sidebar-card-body {
    flex: 1;
}

.sidebar-card-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 18px 20px 20px;
    display: grid;
    gap: 12px;
}

.sidebar-list li {
    color: var(--text);
    font-size: 0.98rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-alt);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px;
    background: var(--brbred);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-card-content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.news-card h4 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.news-card p {
    margin: 0;
    color: var(--text-alt);
    line-height: 1.75;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: var(--brbblue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.read-more:hover {
    background: var(--brbblue);
    transform: translateY(-1px);
}

.hidden-news {
    display: none;
}

.more-wrapper {
    margin-top: 32px;
    text-align: center;
}

.btn-primary {
    background: var(--brbblue);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(24, 119, 242, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--brbblue);
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 42px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social-link {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    justify-content: center;
}

.footer-column h4 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-copy {
    text-align: center;
    color: var(--text-alt);
    font-size: 0.95rem;
    border-top: 1px solid var(--footer-border);
    padding-top: 20px;
}

@media (max-width: 760px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-column h4,
    .footer-column ul {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        gap: 24px;
    }
}

@media (max-width: 1080px) {
    .navbar {
        padding: 16px 18px;
    }

    .container {
        padding: 0 18px;
    }

    .news-card img {
        height: 220px;
    }
}

@media (max-width: 920px) {
    .container {
        padding: 0 16px;
    }

    .news-list {
        gap: 22px;
    }

    .news-card {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    }

    .news-card img {
        height: 220px;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-content-gap: 24px;
    }

    body {
        padding-top: calc(var(--nav-height) + var(--nav-content-gap));
    }

    .navbar {
        padding: 14px 16px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        border-radius: 20px;
    }

    .news-card img {
        height: 200px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-card-content {
        padding: 18px 18px 22px;
    }

    .news-card h4 {
        font-size: 1.3rem;
    }

    .read-more {
        width: 100%;
        padding: 14px 18px;
    }
}

@media (max-width: 560px) {
    html, body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 12px 14px;
    }

    .news-card img {
        height: 180px;
    }

    .news-card-content {
        padding: 16px 16px 20px;
    }

    .news-card h4 {
        font-size: 1.2rem;
    }

    .news-card p {
        font-size: 0.96rem;
    }

    .btn-primary,
    .read-more {
        font-size: 0.95rem;
    }
}

/* News detail page styles */
.news-detail {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.copy-Image {
    display: block;
    text-align: right;
    padding: 8px 24px 0;
    font-size: 0.75rem;
    color: var(--text-alt);
}

.news-teaser {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.news-teaser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-teaser-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
}

.news-detail .news-meta {
    padding: 16px 24px 0;
    display: flex;
    gap: 12px;
}

.news-detail h1 {
    padding: 16px 24px 8px;
    font-size: 2rem;
    margin: 0;
    color: var(--primary);
}

.news-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px 18px;
    flex-wrap: wrap;
    margin-top: 15px;
    border-bottom: 1px dotted var(--border-author);
}

.news-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-alt);
    font-size: 0.95rem;
}

.author-name {
    font-weight: 700;
    color: var(--text);
}

.news-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.share-btn:hover {
    background: var(--border-soft);
    transform: translateY(-1px);
}

.news-detail .news-content {
    padding: 0 24px 24px;
}

.news-detail .news-content img,
.news-detail .news-content table,
.news-detail .news-content iframe {
    max-width: 100%;
}

.news-detail .news-content table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-detail .news-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Region menu styles */
.region-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-main {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent);
    padding: 10px 0 5px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 5px;
}

.region-sub {
    padding-left: 20px;
    font-size: 0.9rem;
    border-bottom: none;
}

/* News gallery slider styles */
.news-gallery {
    width: 100%;
    padding: 0 24px 32px;
    margin-bottom: 32px;
}

/* Contact page styles */
.contact-page .news-content {
    display: block;
}

.contact-info-grid,
.contact-form-grid,
.contact-two-columns {
    display: grid;
    gap: 18px;
}

.contact-info-grid,
.contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-info-box,
.contact-section-title {
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.contact-info-box p {
    margin: 0;
}

.contact-page .form-group {
    margin-bottom: 12px;
}

.contact-page .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text);
}

.contact-page .form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 10px 12px;
    background: var(--card-bg);
    color: var(--text);
}

.contact-page textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.contact-page .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-page .error-message {
    min-height: 18px;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.contact-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 4px;
    font-size: 0.9rem;
}

.contact-checkbox input {
    margin-top: 4px;
}

.privacy-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.captcha-wrap {
    margin: 12px 0;
    min-height: 78px;
}

.contact-submit {
    width: 100%;
    margin-top: 8px;
}

.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.contact-modal.is-open {
    display: block;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.contact-modal-dialog {
    position: relative;
    width: min(820px, calc(100% - 32px));
    margin: 8vh auto;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.contact-modal-header h5 {
    margin: 0;
}

.contact-modal-close {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.contact-modal-body {
    padding: 20px;
}

.contact-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .contact-info-grid,
    .contact-form-grid,
    .contact-two-columns {
        grid-template-columns: 1fr;
    }
}

.gallery-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 16px;
}

.gallery-controls button {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-controls button:hover {
    background: var(--border-soft);
    transform: translateY(-1px);
}

.gallery-controls button:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.gallery-controls button:disabled:hover {
    background: var(--bg-alt);
}

.gallery-track-wrapper {
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.gallery-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: calc((100% - 20px) / 2);
    position: relative;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: #fff;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal.open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: min(1200px, 100%);
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.image-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2;
}

.card-overlay p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.96);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

@media (max-width: 920px) {
    .gallery-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .gallery-controls button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 560px) {
    .gallery-card img {
        height: 220px;
    }
}

.share-btn.copied {
    background: #28a745;
    color: #fff;
}

@media (max-width: 1180px) {
    :root {
        --container-pad: 18px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 920px) {
    :root {
        --container-pad: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .slide-news {
        height: clamp(320px, 50vh, 520px);
    }

    .news-overlay {
        left: 28px;
        right: 28px;
        bottom: 150px;
        width: fit-content;
        max-width: calc(100% - 56px);
    }
}

@media (max-width: 760px) {
    :root {
        --nav-height: 74px;
        --container-pad: 14px;
    }

    body {
        padding-top: calc(var(--nav-height) + var(--nav-content-gap));
    }

    .navbar {
        min-height: var(--nav-height);
        padding: 10px 14px;
        gap: 12px;
    }

    .navbar .logo {
        min-width: 0;
    }

    .navbar .logo img {
        max-height: 42px;
        max-width: min(52vw, 220px);
    }

    .navbar-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .menu-toggle,
    .theme-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .nav-links {
        width: min(340px, 88vw);
    }

    .menu-header {
        padding: 18px 56px 14px 16px;
    }

    .menu-items {
        gap: 4px;
        padding: 16px;
    }

    .menu-items a,
    .nav-links a {
        padding: 12px 0;
    }

    .hero {
        margin-bottom: 28px;
    }

    .slide-news {
        height: clamp(360px, 64vh, 520px);
        box-shadow: none;
        backdrop-filter: none;
    }

    .news-item {
        padding: 22px 16px 58px;
        gap: 12px;
    }

    .news-item::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
    }

    .news-overlay {
        left: 16px;
        right: 16px;
        bottom: 172px;
        max-width: calc(100% - 32px);
        padding: 8px 12px;
        font-size: 0.84rem;
        line-height: 1.25;
    }

    .news-item h3 {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
    }

    .news-item p {
        font-size: 0.96rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-dots {
        bottom: 18px;
        gap: 9px;
    }

    .dot {
        width: 11px;
        height: 11px;
    }

    .container,
    .main-content {
        width: 100%;
        margin-bottom: 48px;
    }

    .container {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section-header h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.15;
    }

    .section-header p {
        margin: 0;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card,
    .sidebar-widget,
    .news-detail,
    .gallery-card {
        border-radius: 12px;
    }

    .news-card {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

    .news-card:hover {
        transform: none;
    }

    .news-card img {
        height: clamp(180px, 52vw, 240px);
    }

    .news-meta {
        padding: 12px 16px;
        align-items: flex-start;
        justify-content: flex-start;
        font-size: 0.9rem;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card h4 {
        font-size: 1.22rem;
        line-height: 1.25;
    }

    .read-more,
    .btn-primary {
        width: 100%;
        min-height: 46px;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
    }

    .sidebar-header {
        padding: 14px 16px;
    }

    .sidebar-card,
    .sidebar-card > a.category-link {
        gap: 12px;
    }

    .sidebar-card {
        padding: 14px 16px;
    }

    .sidebar-card img {
        width: 78px;
        height: 62px;
        border-radius: 10px;
    }

    .sidebar-list {
        padding: 14px 16px 16px;
    }

    .news-teaser {
        height: clamp(220px, 58vw, 340px);
    }

    .copy-Image {
        padding: 8px 16px 0;
        text-align: left;
        line-height: 1.35;
    }

    .news-detail h1 {
        padding: 14px 16px 8px;
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.18;
    }

    .news-meta-row {
        padding: 0 16px 16px;
        gap: 12px;
    }

    .news-share {
        width: 100%;
        justify-content: flex-start;
    }

    .share-btn {
        width: 42px;
        height: 42px;
    }

    .news-detail .news-content {
        padding: 0 16px 20px;
    }

    .news-detail .news-content p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .news-gallery {
        padding: 0 16px 24px;
        margin-bottom: 24px;
    }

    .gallery-track-wrapper {
        border-radius: 12px;
    }

    .gallery-track {
        gap: 0;
    }

    .gallery-card {
        flex: 0 0 100%;
        min-width: 100%;
        box-shadow: none;
    }

    .gallery-card img {
        height: clamp(210px, 58vw, 300px);
    }

    .card-footer {
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px;
        font-size: 0.86rem;
    }

    .image-modal-content {
        max-width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .image-modal-content img {
        max-height: 78dvh;
        border-radius: 10px;
    }

    .image-modal-close {
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.45);
    }

    .contact-info-grid,
    .contact-form-grid,
    .contact-two-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-page textarea.form-control {
        min-height: 150px;
    }

    .captcha-wrap {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .contact-modal-dialog {
        width: calc(100% - 24px);
        margin: 5dvh auto;
        max-height: 90dvh;
        overflow-y: auto;
    }
}

@media (max-width: 560px) {
    :root {
        --nav-height: 68px;
        --container-pad: 12px;
    }

    html,
    body {
        font-size: 0.95rem;
    }

    body {
        padding-top: calc(var(--nav-height) + var(--nav-content-gap));
    }

    .navbar {
        padding: 8px 12px;
    }

    .navbar .logo img {
        max-height: 38px;
        max-width: min(48vw, 190px);
    }

    .menu-toggle,
    .theme-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .nav-links {
        width: 92vw;
    }

    .slide-news {
        height: min(520px, calc(100dvh - var(--nav-height)));
        min-height: 360px;
    }

    .news-item {
        padding: 18px 14px 54px;
    }

    .news-overlay {
        left: 14px;
        right: 14px;
        bottom: 168px;
        max-width: calc(100% - 28px);
        border-radius: 4px;
    }

    .news-item h3 {
        font-size: clamp(1.35rem, 8vw, 1.85rem);
    }

    .news-item p {
        -webkit-line-clamp: 2;
    }

    .news-card img {
        height: clamp(170px, 56vw, 220px);
    }

    .news-card-content,
    .sidebar-header,
    .sidebar-card,
    .sidebar-list,
    .news-detail .news-content,
    .news-gallery {
        padding-left: 14px;
        padding-right: 14px;
    }

    .news-detail h1 {
        padding-left: 14px;
        padding-right: 14px;
    }

    .news-meta-row {
        padding-left: 14px;
        padding-right: 14px;
    }

    .news-teaser {
        height: 220px;
    }

    .sidebar-card img {
        width: 72px;
        height: 58px;
    }

    .gallery-controls button {
        width: 40px;
        height: 40px;
    }
}
