/* Akçakara - Tailwind tamamlayıcı stiller */

:root {
    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --line-height-body: 1.65;
    --line-height-ui: 1.5;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 100%;
}

body.site-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    background-image: url('../img/bg.png');
    background-repeat: repeat;
    background-attachment: scroll;
}

@media (min-width: 768px) {
    body.site-body {
        background-attachment: fixed;
    }
}

body.site-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: -1;
}

.panel-bg {
    background-color: #535353;
    background-image: url('../img/altMenuBg.png');
    background-repeat: repeat-x;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-bar {
    background-color: #990000;
    background-image: url('../img/baslikBg.jpg');
    background-repeat: repeat-x;
    background-position: top;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.04em;
}

.menu-bullet {
    position: relative;
}

.menu-bullet::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('../img/menuNokta.png') no-repeat center / contain;
    pointer-events: none;
    z-index: 1;
}

.menu-bullet:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-link-active {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Slideshow */
[data-slideshow] {
    background-image: url('../img/yukleniyor.gif');
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

[data-slideshow]::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

[data-slideshow] .slayt {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

[data-slideshow] .slayt.is-active {
    opacity: 1;
    pointer-events: auto;
}

[data-slideshow] .slayt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 8s ease;
}

[data-slideshow] .slayt.is-active img {
    transform: scale(1);
}

/* Widget kartları (anasayfa) */
.widget-card {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.widget-card.form-section {
    padding: 1rem;
}

.widget-card:hover {
    border-color: rgba(153, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.18);
}

.widget-card a {
    display: block;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.widget-card a:last-child {
    border-bottom: none;
}

.widget-card a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Splash intro accordion */
.intro-menu li {
    flex: 0 0 160px;
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.intro-menu li:hover {
    flex: 1 1 540px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.intro-menu a,
.intro-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.intro-card__label {
    position: absolute;
    left: 10px;
    bottom: 16px;
    z-index: 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #990000;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    pointer-events: none;
}

.intro-menu a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(153, 0, 0, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-menu li:hover a::after {
    opacity: 1;
}

.intro-menu img {
    height: 340px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: left center;
    transition: transform 0.4s ease;
}

.intro-menu li:hover img {
    transform: scale(1.03);
}

.splash-logo-glow {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .intro-menu li,
    .intro-menu li:hover {
        flex: 1 1 calc(50% - 8px);
    }

    .intro-menu img {
        width: 100%;
        height: 220px;
        object-position: center;
    }

    .intro-card__label {
        font-size: 1.1rem;
        left: 8px;
        bottom: 12px;
    }
}

@media (max-width: 479px) {
    .intro-menu a {
        min-height: 44px;
    }

    .splash-logo-glow {
        max-width: 92vw;
    }

    .intro-menu li,
    .intro-menu li:hover {
        flex: 1 1 100%;
    }

    .intro-menu img {
        height: 180px;
    }
}

@media (hover: none) {
    .intro-menu li:hover {
        flex: 0 0 160px;
        box-shadow: none;
    }

    .intro-menu li:hover img {
        transform: none;
    }

    .intro-menu li:hover a::after {
        opacity: 0;
    }
}

/* Legacy içerik */
.legacy-content h1:not(.page-title),
.legacy-content h3 {
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: #fff;
    height: 28px;
    line-height: 28px;
    padding: 0 0 0 10px;
    margin: 0 0 1rem;
    max-width: 100%;
    border-radius: 3px 3px 0 0;
    background-color: #990000;
    background-image: url('../img/baslikBg.jpg');
    background-repeat: repeat-x;
    background-position: top;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.05em;
}

.legacy-content > div {
    padding: 0 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legacy-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
}

.legacy-content p {
    margin: 0.85rem 0;
    line-height: 1.65;
}

.legacy-content p img[align="left"] {
    float: left;
    margin: 0 1rem 1rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.legacy-content p[align="center"] img {
    display: inline-block;
    margin: 0.25rem;
    border-radius: 3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.legacy-content p[align="center"] img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.legacy-content img {
    max-width: 100%;
    height: auto;
}

.legacy-content img[style*="border"] {
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.about-page img[align="left"] {
    width: 200px;
    max-width: 42%;
    height: auto;
}

.about-page .about-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.about-page .about-gallery img {
    width: 180px;
    max-width: calc(50% - 0.35rem);
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-page .about-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
    .about-page .about-gallery img {
        width: 200px;
        max-width: calc(25% - 0.5rem);
    }
}

.legacy-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.35rem;
    min-width: 0;
}

.legacy-content table td {
    padding: 0.25rem 0.5rem;
    vertical-align: top;
}

.legacy-content table tr:hover td {
    background: rgba(0, 0, 0, 0.1);
}

.legacy-content a {
    color: #e8e8e8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legacy-content a:hover {
    color: #fff;
}

.legacy-content strong {
    color: #fff;
}

.legacy-content input[type="text"],
.legacy-content input[type="email"],
.legacy-content input[type="tel"],
.legacy-content textarea,
.legacy-content select {
    background: #fff;
    border: 1px solid #999;
    color: #333;
    padding: 8px 10px;
    font-family: inherit;
    font-size: var(--font-size-base);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.legacy-content input:focus,
.legacy-content textarea:focus,
.legacy-content select:focus {
    outline: none;
    border-color: #990000;
    box-shadow: 0 0 0 2px rgba(153, 0, 0, 0.25);
}

.legacy-content input[type="submit"],
.legacy-content input[type="reset"] {
    background: linear-gradient(180deg, #aa0000 0%, #880000 100%);
    border: 1px solid #660000;
    color: #fff;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.legacy-content input[type="submit"]:hover {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Modern formlar */
.form-intro {
    margin: 0 0 1.25rem;
    line-height: var(--line-height-body);
    font-size: var(--font-size-base);
}

.form-required {
    color: #ff9999;
}

.site-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
}

/* Sayfa başlığı (form ve içerik sayfaları) */
.page-title {
    margin: 0 0 0.75rem;
    padding: 0 0 0.65rem;
    font-size: var(--font-size-xl);
    font-weight: bold;
    line-height: 1.35;
    letter-spacing: 0.03em;
    color: #fff;
    text-transform: none;
    background: none;
    background-image: none;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    border-bottom: 2px solid rgba(153, 0, 0, 0.55);
}

.page-title::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-bottom: 0.5rem;
    background: #990000;
    border-radius: 1px;
}

.site-breadcrumb {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-ui);
}

.site-breadcrumb__item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-breadcrumb__item a:hover {
    color: #fff;
}

.site-breadcrumb__item span[aria-current="page"] {
    color: #fff;
    font-weight: bold;
}

.site-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    line-height: 1;
}

.form-section__title {
    margin: 0 0 1rem;
    padding: 0.35rem 0 0.35rem 0.65rem;
    font-size: var(--font-size-xs);
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0 3px 3px 0;
    border-left: 3px solid #990000;
    background: rgba(0, 0, 0, 0.18);
    background-image: none;
    box-shadow: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1rem;
}

.form-grid--2 {
    grid-template-columns: 1fr;
}

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

@media (min-width: 640px) {
    .form-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: #fff;
}

.form-field input,
.form-field textarea,
.form-field select,
.form-table input,
.form-table textarea,
.form-table select {
    width: 100%;
    background: #fff;
    border: 1px solid #999;
    color: #333;
    padding: 8px 10px;
    font-family: inherit;
    font-size: var(--font-size-base);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form-table input:focus,
.form-table textarea:focus {
    outline: none;
    border-color: #990000;
    box-shadow: 0 0 0 2px rgba(153, 0, 0, 0.25);
}

.form-field input.is-invalid,
.form-table input.is-invalid,
.form-field textarea.is-invalid {
    border-color: #cc3333;
    box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.2);
}

.form-hint {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-top: 0.15rem;
}

.form-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-sm);
    font-weight: normal;
    color: #ddd;
    cursor: pointer;
}

.form-radio-group input {
    width: auto;
    accent-color: #990000;
}

.form-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.form-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.form-table th {
    font-size: var(--font-size-xs);
    color: #fff;
    text-align: left;
    padding: 0.25rem 0.35rem;
}

.form-table td {
    vertical-align: middle;
    padding: 0.15rem 0.35rem;
}

.form-table td.row-label {
    width: 2rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.25rem;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-btn i {
    font-size: 0.95em;
    line-height: 1;
}

.form-btn--primary {
    border: 1px solid #660000;
    background: linear-gradient(180deg, #aa0000 0%, #880000 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-btn--primary:hover {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%);
    transform: translateY(-1px);
}

.form-btn--secondary {
    border: 1px solid #777;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
}

.form-btn--secondary:hover {
    background: #fff;
}

@media (max-width: 639px) {
    .form-actions {
        flex-direction: column;
    }

    .form-btn {
        width: 100%;
    }

    .form-grid--3 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 0.85rem;
    }
}

/* Galeri grid hover */
.gallery-item img {
    transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Footer */
.footer-accent {
    background: linear-gradient(90deg, transparent, #990000, transparent);
    height: 2px;
    opacity: 0.6;
}

.footer-heading {
    position: relative;
    margin: 0 0 0.85rem;
    padding: 0 0 0.45rem;
    font-size: var(--font-size-xs);
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0 0.55rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.footer-panel-toggle span:first-child {
    position: relative;
}

.footer-panel-toggle span:first-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 2.5rem;
    height: 2px;
    background: #990000;
}

.footer-panel-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.footer-panel-icon::before,
.footer-panel-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-panel-icon::before {
    transform: translate(-50%, -50%);
}

.footer-panel-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.footer-panel.is-open .footer-panel-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.footer-panel-body {
    padding-top: 0.85rem;
}

@media (max-width: 639px) {
    .footer-panel:not(.is-open) .footer-panel-body {
        display: none;
    }

    .footer-panel-toggle {
        margin-bottom: 0;
    }
}

@media (min-width: 640px) {
    .footer-panel-toggle {
        pointer-events: none;
        cursor: default;
        padding-top: 0;
        padding-bottom: 0.45rem;
    }

    .footer-panel-toggle span:first-child::after {
        bottom: -0.45rem;
    }

    .footer-panel-icon {
        display: none;
    }

    .footer-panel-body {
        display: block !important;
    }
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 2px;
    background: #990000;
}

.footer-panel-toggle.footer-heading::after {
    display: none;
}

.footer-link-item {
    position: relative;
}

.footer-link-item::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #990000;
    font-weight: bold;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #990000;
    font-size: 0.95rem;
}

.footer-contact-value {
    min-width: 0;
    flex: 1;
}

.footer-region-card {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-region-card:hover {
    border-color: rgba(153, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.22);
}

.footer-cta-btn {
    min-width: 7rem;
}

.footer-cta-btn i,
.footer-panel-toggle span:first-child i,
.splash-action-link i,
.popup-action-link i,
.inline-link-btn i {
    line-height: 1;
}

.footer-panel-toggle span:first-child i {
    margin-right: 0.35rem;
}

.splash-action-link,
.popup-action-link,
.inline-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.popup-action-link {
    color: #e8e8e8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.popup-action-link:hover {
    color: #fff;
}

.inline-link-btn {
    gap: 0.35rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inline-link-btn:hover {
    color: #fff;
}

@media (max-width: 639px) {
    .footer-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .footer-cta-btn {
        width: 100%;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

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

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    border: 3px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(153, 0, 0, 0.8);
}

/* Responsive layout */
.site-shell {
    width: 100%;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.mobile-topbar {
    top: env(safe-area-inset-top, 0);
}

.mobile-topbar-inner {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
}

.mobile-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
}

.mobile-menu-icon i {
    font-size: 0.95rem;
    line-height: 1;
}

body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 767px) {
    .site-sidebar {
        position: fixed;
        inset: 0;
        z-index: 100;
        width: auto;
        height: auto;
        max-width: none;
        pointer-events: none;
        visibility: hidden;
    }

    .site-sidebar.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-nav-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .site-sidebar.is-open .mobile-nav-backdrop {
        opacity: 1;
    }

    .site-sidebar-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .site-sidebar.is-open .site-sidebar-panel {
        transform: translateX(0);
    }

    .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .widget-card a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-links a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding: 0.15rem 0.35rem;
    }

    .footer-main {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.footer-links .text-neutral-600 {
    display: none;
}

@media (min-width: 640px) {
    .footer-links .text-neutral-600 {
        display: inline;
    }
}

@media (max-width: 767px) {
    .site-sidebar nav a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .legacy-content {
        font-size: var(--font-size-base);
        line-height: 1.7;
    }

    .legacy-content p img[align="left"] {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        max-width: 100%;
    }

    .legacy-content h1:not(.page-title),
    .legacy-content h3:not(.page-title) {
        height: auto;
        min-height: 28px;
        line-height: 1.35;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .legacy-content input[type="text"],
    .legacy-content input[type="email"],
    .legacy-content input[type="tel"],
    .legacy-content textarea,
    .legacy-content select {
        width: 100%;
        font-size: var(--font-size-base);
        padding: 10px 12px;
    }

    .legacy-content input[type="submit"],
    .legacy-content input[type="reset"] {
        width: 100%;
        min-height: 48px;
        margin-bottom: 0.5rem;
        font-size: var(--font-size-sm);
    }

    .legacy-content table td {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 479px) {
    [data-slideshow] {
        min-height: 110px;
        border-width: 6px;
    }

    .panel-bg .p-4,
    .panel-bg .md\:p-5 {
        padding: 0.85rem;
    }
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.lang-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.25rem 0.45rem;
    border-radius: 3px;
    color: #cccccc;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-switcher__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__link.is-active {
    color: #fff;
    background: #990000;
}

.mobile-topbar .lang-switcher {
    padding: 0.15rem;
}

.site-sidebar .lang-switcher {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}
