/*
Theme Name: Museum VR Gallery
Theme URI: https://museum-vr.com
Author: Museum Team
Author URI: https://museum-vr.com
Description: Custom theme for Virtual Museum VR Gallery with payment integration
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: museum-theme
Tags: museum, vr, gallery, custom
*/

:root {
    --color-background: #050505;
    --color-primary-text: #ffffff;
    --color-accent: #d93d86;
    --color-accent-glow: rgba(217, 61, 134, 0.6);
    --font-main: 'Inter', sans-serif;
    --spacing-container: 1443px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-primary-text);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

/* Utility */
.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #d93d86 0%, #a02b63 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 0 20px var(--color-accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-2px);
}

/* Button with Timer Styles */
.btn-primary.btn-timer-active {
    font-family: 'Inter', monospace;
}

.btn-primary.btn-timer-active #btn-timer {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.btn-primary.btn-timer-expiring {
    font-family: 'Inter', monospace;
}

.btn-primary.btn-timer-expiring #btn-timer {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    animation: pulse-warning 1s ease-in-out infinite;
}

.btn-primary.btn-timer-expired {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary.btn-timer-expired #btn-timer {
    color: #ffffff;
    letter-spacing: 1px;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Page Background */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: lighten;
}

.site-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* Header */
.site-header {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    /* Ensure header doesn't overlap mobile menu */
    isolation: isolate;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    /* Take visible space */
}

.site-logo img {
    height: 60px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 300;
}

.lang-selector .globe-icon {
    color: var(--color-accent);
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.mobile-menu-lang .globe-icon {
    color: var(--color-accent);
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation {
    display: block;
    /* Let wrapper handle alignment */
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: flex-end;
    /* Align right */
}

.main-navigation a {
    font-size: 16px;
    text-transform: capitalize;
    opacity: 0.8;
}

.main-navigation a:hover {
    opacity: 1;
    text-decoration: underline;
}

.enter-btn {
    border: 1px solid rgba(217, 61, 134, 0.5);
    padding: 10px 40px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(217, 61, 134, 0.1) 0%, rgba(217, 61, 134, 0.3) 100%);
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(217, 61, 134, 0.2), inset 0 0 10px rgba(217, 61, 134, 0.1);
}

.enter-btn:hover {
    background: linear-gradient(180deg, rgba(217, 61, 134, 0.2) 0%, rgba(217, 61, 134, 0.5) 100%);
    box-shadow: 0 0 25px rgba(217, 61, 134, 0.4), inset 0 0 15px rgba(217, 61, 134, 0.2);
    transform: translateY(-1px);
    border-color: rgba(217, 61, 134, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    /* Header space */
    text-align: center;
    overflow: hidden;
    z-index: 1;
    /* Ensure hero doesn't overlap mobile menu */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-pretitle {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
    position: relative;
    display: inline-block;
}

.hero-pretitle::before,
.hero-pretitle::after {
    content: "";
    display: inline-block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, #F6339A 0%, rgba(188, 8, 103, 0.40) 100%);
    vertical-align: middle;
    margin: 0 15px;
}

.hero-pretitle::before {
    transform: rotate(180deg);
}

.hero-title {
    font-family: 'Yellowtail', cursive;
    color: #FFF;
    text-align: center;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px #8F1136,
        0 0 40px #8F1136,
        0 0 80px #8F1136;
    font-size: 114px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
}

.hero-title-line {
    width: 436px;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 51, 154, 0.30) 0%, #D91D81 50%, rgba(188, 8, 103, 0.30) 100%);
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-separator {
    display: block;
    margin: 20px auto;
    width: 234px;
    height: auto;
}

.access-info {
    font-size: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.price-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 20px;
}

/* VR Gallery page: hide site header and background for full immersion */
body.vr-gallery-page .site-header,
body.vr-gallery-page .site-background {
    display: none !important;
}

/* Sections General */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 100px;
    position: relative;
}

.section-title {
    font-size: 32px;
    display: inline-block;
    position: relative;
    padding: 0 40px;
}

.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d93d86);
}

.section-title::before {
    right: 100%;
}

.section-title::after {
    left: 100%;
    transform: rotate(180deg);
}

/* Cards Section */
/* Cards Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    border: 1px solid #d93d86;
    border-radius: 0;
    padding: 24px;
    width: 312px;
    height: 365px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(180deg, rgba(20, 0, 10, 0.4) 0%, rgba(20, 0, 10, 0.8) 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(217, 61, 134, 0.3),
        inset 0 0 20px rgba(217, 61, 134, 0.1);
    border-color: #ff5ba8;
}

.card-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 32px rgba(255, 128, 170, .6)) drop-shadow(0 0 16px rgba(255, 128, 170, .4));
}

.card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-icon path {
    fill: #FF80AA;
    fill-opacity: 0.1;
    stroke: #ff80aa;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.card-title {
    font-family: var(--font-main);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.card-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 51, 154, 0.30) 0%, #D91D81 50%, rgba(188, 8, 103, 0.30) 100%);
}

.card-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    text-align: center;
    max-width: 240px;
    margin: 0 auto;
    color: #ffdceb;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    /* Increased visibility as per design */
    z-index: 0;
    mix-blend-mode: normal;
    transition: transform 0.5s ease;
}

.card:hover .card-bg-img {
    transform: scale(1.05);
}

/* Gradient overlay on hover or always? Design looks like it has a gradient */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.00) 0%, #3a0820 100%);
    z-index: 1;
    opacity: 0.8;
}

/* How It Works Section */
.how-it-works {
    text-align: center;
    padding: 20px 0 80px;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d93d86;
    border-radius: 50%;
    border: 1px solid #FF80AA;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 32px -0.6px #B70A66, 0 0 32px -9.6px #D91D81 inset;
}

.step-icon path {
    fill: #FF80AA;
    fill-opacity: 0.3;
    stroke: #ff80aa;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}


.step-arrow {
    font-size: 24px;
    color: #d93d86;
    opacity: 0.5;
}

.confirmation-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    opacity: 0.8;
    cursor: pointer;
    position: relative;
}

.checkbox-group input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #FF80AA;
    border-radius: 4px;
    /* Standard radius, adjust if circle desired */
    box-shadow: 0 0 32px -9.6px #D91D81 inset;
    filter: drop-shadow(0 0 32px #B70A66);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Checked state indicator */
.checkbox-group input:checked~.checkbox-custom::after {
    content: "";
    /* Simple checkmark using borders */
    width: 6px;
    height: 12px;
    border: solid #FF80AA;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
    display: block;
}

.checkbox-group:hover .checkbox-custom {
    border-color: #ff5ba8;
    background: rgba(255, 128, 170, 0.1);
}

/* Footer Section (in Front Page or global) */
.site-footer {
    padding: 60px 0 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

/* History Page Background Logic */
.history-page,
.term-page,
.privacy-page {
    min-height: 100vh;
    background-color: var(--color-background);
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow-x: hidden;
}

.history-page::before,
.term-page::before,
.privacy-page::before,
.contacts-page::before,
.checkout-page::before,
.blog-page::before,
.single-post-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/page-bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}

.history-page::after,
.term-page::after,
.privacy-page::after,
.contacts-page::after,
.checkout-page::after,
.blog-page::after,
.single-post-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1200px;
    background-image: url('assets/img/hero-bg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    z-index: 2;
    opacity: 0.28;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

@media (max-width: 768px) {

    .history-page::after,
    .term-page::after,
    .privacy-page::after,
    .contacts-page::after,
    .checkout-page::after,
    .blog-page::after,
    .single-post-page::after {
        background-size: cover;
        height: 1000px;
        opacity: 0.4;
    }
}

/* history-bg class removed as per new CSS-only background approach */

.history-container,
.term-container,
.privacy-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.history-content-wrapper,
.term-content-wrapper,
.privacy-content-wrapper {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.history-title,
.term-title,
.privacy-title {
    font-family: var(--font-main);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.history-title::before,
.term-title::before,
.privacy-title::before,
.history-title::after,
.term-title::after,
.privacy-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, #F6339A 0%, rgba(188, 8, 103, 0.40) 100%);
    flex-shrink: 0;
}

.history-title::before,
.term-title::before,
.privacy-title::before {
    transform: rotate(180deg);
}

.history-separator {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 51, 154, 0.30) 0%, #D91D81 50%, rgba(188, 8, 103, 0.30) 100%);
    margin: 0 auto 40px;
}

.history-entry-content,
.term-entry-content,
.privacy-entry-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-align: left;
}

.history-entry-content p,
.term-entry-content p,
.privacy-entry-content p {
    margin-bottom: 24px;
}

.history-entry-content h1,
.term-entry-content h1,
.privacy-entry-content h1 {
    font-size: 3rem;
}

.history-entry-content h1,
.term-entry-content h1,
.privacy-entry-content h1,
.history-entry-content h2,
.term-entry-content h2,
.privacy-entry-content h2,
.history-entry-content h3,
.term-entry-content h3,
.privacy-entry-content h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.history-entry-content h1::before,
.term-entry-content h1::before,
.privacy-entry-content h1::before,
.history-entry-content h1::after,
.term-entry-content h1::after,
.privacy-entry-content h1::after,
.history-entry-content h2::before,
.term-entry-content h2::before,
.privacy-entry-content h2::before,
.history-entry-content h2::after,
.term-entry-content h2::after,
.privacy-entry-content h2::after,
.history-entry-content h3::before,
.term-entry-content h3::before,
.privacy-entry-content h3::before,
.history-entry-content h3::after,
.term-entry-content h3::after,
.privacy-entry-content h3::after {
    content: "";
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, #F6339A 0%, rgba(188, 8, 103, 0.40) 100%);
    flex-shrink: 0;
}

.history-entry-content h1::before,
.term-entry-content h1::before,
.privacy-entry-content h1::before,
.history-entry-content h2::before,
.term-entry-content h2::before,
.privacy-entry-content h2::before,
.history-entry-content h3::before,
.term-entry-content h3::before,
.privacy-entry-content h3::before {
    transform: rotate(180deg);
}

.history-entry-content img,
.term-entry-content img,
.privacy-entry-content img {
    border: 2px solid #FF80AA;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 32px 2.395px #B44C68 inset;
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    display: block;
}

.history-entry-content img.aligncenter,
.term-entry-content img.aligncenter,
.privacy-entry-content img.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.history-entry-content img.alignleft,
.term-entry-content img.alignleft,
.privacy-entry-content img.alignleft {
    float: left;
    margin-right: 30px;
}

.history-entry-content img.alignright,
.term-entry-content img.alignright,
.privacy-entry-content img.alignright {
    float: right;
    margin-left: 30px;
}

/* Tables in entry content (History, Terms, Privacy) */
.history-entry-content .wp-block-table,
.history-entry-content table,
.term-entry-content .wp-block-table,
.term-entry-content table,
.privacy-entry-content .wp-block-table,
.privacy-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 128, 170, 0.35);
    box-shadow: 0 0 24px rgba(217, 61, 134, 0.12), inset 0 0 20px rgba(217, 61, 134, 0.04);
    overflow: hidden;
    border-radius: 8px;
}

.history-entry-content .wp-block-table table,
.term-entry-content .wp-block-table table,
.privacy-entry-content .wp-block-table table {
    margin: 0;
    border: none;
    box-shadow: none;
}

.history-entry-content table th,
.history-entry-content table td,
.term-entry-content table th,
.term-entry-content table td,
.privacy-entry-content table th,
.privacy-entry-content table td,
.history-entry-content .wp-block-table th,
.history-entry-content .wp-block-table td,
.term-entry-content .wp-block-table th,
.term-entry-content .wp-block-table td,
.privacy-entry-content .wp-block-table th,
.privacy-entry-content .wp-block-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.history-entry-content table thead th,
.term-entry-content table thead th,
.privacy-entry-content table thead th,
.history-entry-content .wp-block-table thead th,
.term-entry-content .wp-block-table thead th,
.privacy-entry-content .wp-block-table thead th {
    background: linear-gradient(135deg, rgba(217, 61, 134, 0.25) 0%, rgba(143, 17, 54, 0.2) 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 128, 170, 0.5);
}

.history-entry-content table tbody tr:hover,
.term-entry-content table tbody tr:hover,
.privacy-entry-content table tbody tr:hover,
.history-entry-content .wp-block-table tbody tr:hover,
.term-entry-content .wp-block-table tbody tr:hover,
.privacy-entry-content .wp-block-table tbody tr:hover {
    background: rgba(255, 128, 170, 0.06);
}

.history-entry-content table tbody tr:last-child td,
.term-entry-content table tbody tr:last-child td,
.privacy-entry-content table tbody tr:last-child td,
.history-entry-content .wp-block-table tbody tr:last-child td,
.term-entry-content .wp-block-table tbody tr:last-child td,
.privacy-entry-content .wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table wrapper: allow horizontal scroll on small screens */
.history-entry-content .wp-block-table,
.term-entry-content .wp-block-table,
.privacy-entry-content .wp-block-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-entry-content table,
.term-entry-content table,
.privacy-entry-content table {
    min-width: 480px;
}

@media (max-width: 768px) {

    .history-title,
    .term-title,
    .privacy-title {
        font-size: 42px;
    }

    .history-entry-content,
    .term-entry-content,
    .privacy-entry-content {
        font-size: 16px;
    }

    .history-entry-content table th,
    .history-entry-content table td,
    .term-entry-content table th,
    .term-entry-content table td,
    .privacy-entry-content table th,
    .privacy-entry-content table td,
    .history-entry-content .wp-block-table th,
    .history-entry-content .wp-block-table td,
    .term-entry-content .wp-block-table th,
    .term-entry-content .wp-block-table td,
    .privacy-entry-content .wp-block-table th,
    .privacy-entry-content .wp-block-table td {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Contacts Page */
body.page-template-page-contacts {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contacts-page {
    flex: 1;
    background-color: var(--color-background);
    position: relative;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background logic handled above in History section */

.contacts-container {
    position: relative;
    z-index: 10;
    width: 100%;
    /* No flex here yet, let content-wrapper handle it */
}

.contacts-content-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contacts-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    /* Reduced from 3rem */
    color: #fff;
    margin-bottom: 40px;
    /* Reduced from 60px */
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.contacts-title::before,
.contacts-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, #F6339A 0%, rgba(188, 8, 103, 0.40) 100%);
    flex-shrink: 0;
}

.contacts-title::before {
    transform: rotate(180deg);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    /* Reduced from 100px */
    text-align: left;
    align-items: center;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Reduced from 40px */
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Reduced from 10px */
}

.contact-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-value {
    font-size: 24px;
    color: #fff;
    font-weight: 300;
}

.contact-value a {
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #FF00FF;
}

/* Contact Form 7 Styling */
.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    /* Reduced gap from 30px */
}

.wpcf7-form p {
    width: 100%;
    margin-bottom: 0;
}

/* First/Last name side-by-side logic */
.wpcf7-form p:has(input[name="first-name"]),
.wpcf7-form p:has(input[name="last-name"]) {
    width: calc(50% - 10px);
}

.wpcf7-form label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid !important;
    border-image-source: linear-gradient(90deg, rgba(246, 51, 154, 0.30) 0%, #D91D81 50%, rgba(188, 8, 103, 0.30) 100%) !important;
    border-image-slice: 1 !important;
    color: #fff !important;
    padding: 10px 0 !important;
    font-family: var(--font-main);
    font-size: 18px;
    outline: none;
    transition: opacity 0.3s ease;
    border-radius: 0 !important;
}

.wpcf7-textarea {
    height: 120px;
    resize: none;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus {
    opacity: 0.8;
}

.wpcf7-submit {
    margin-top: 10px;
    /* Reduced from 20px */
    background: rgba(255, 255, 255, 0.02) !important;
    color: #fff !important;
    border: 1px solid #FF80AA !important;
    padding: 12px 40px !important;
    /* Slightly reduced padding */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px !important;
    box-shadow: 0 0 32px 2.395px #8F1136, 0 0 32px 2.395px #B44C68 inset !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wpcf7-submit:hover {
    box-shadow: 0 0 45px 5px #8F1136, 0 0 30px 5px #B44C68 inset !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
}

.wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    right: 0;
}

/* Responsive for Contacts */
@media (max-width: 768px) {
    body.page-template-page-contacts {
        overflow: auto;
        /* Allow scroll on mobile if absolutely necessary, but try to fit it */
    }

    .contacts-page {
        height: auto;
        min-height: calc(100vh - 100px);
        padding-top: 80px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacts-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .contacts-info {
        gap: 20px;
    }

    .contact-value {
        font-size: 18px;
    }

    .contacts-title::before,
    .contacts-title::after {
        width: 40px;
    }
}

/* Footer adjustment for Contacts Page */
body.page-template-page-contacts .site-footer {
    padding: 20px 0;
}

/* Note: .content-wrapper styled in History section is reused here */
.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    background: #e2e8f0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Checkout Page */
body.page-template-page-checkout {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-page {
    flex: 1;
    background-color: var(--color-background);
    position: relative;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    /* Reduced from 3rem */
    max-width: 450px;
    /* Precise from Figma info */
    width: 90%;
    box-shadow: 0 0 25px 5px #B44C68;
    /* Soft Blush Shadow */
    z-index: 10;
    position: relative;
    color: #000;
}

.checkout-header {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-logo {
    display: none;
    /* Removed as per Figma description summary */
}

.checkout-title {
    font-family: var(--font-main);
    font-size: 24px;
    color: #000;
    margin-bottom: 5px;
    font-weight: 700;
}

.checkout-subtitle {
    color: #718096;
    font-size: 14px;
}

.price-info {
    background: rgba(0, 0, 0, 0.05);
    /* Translucent gray */
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #4a5568;
}

.price-row.total {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.paypal-buttons-wrapper {
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.features-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #4a5568;
    font-size: 14px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D91D81;
    /* Pink checkmark */
    font-weight: bold;
    font-size: 18px;
}

.back-link {
    text-align: center;
    margin-top: 15px;
}

.back-link a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #000;
}

/* Mobile Adjustments for Checkout */
@media (max-width: 768px) {
    body.page-template-page-checkout {
        overflow: auto;
    }

    .checkout-page {
        height: auto;
        min-height: calc(100vh - 100px);
        padding: 80px 16px 40px;
    }

    .checkout-container {
        padding: 24px;
        width: 100%;
        max-width: 100%;
    }
}

/* Footer adjustment for Checkout Page */
body.page-template-page-checkout .site-footer {
    padding: 20px 0;
}


/* Blog and Single Post Pages */
.blog-page,
.single-post-page {
    min-height: 100vh;
    background-color: var(--color-background);
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    color: #fff;
}

.blog-container,
.single-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.blog-title,
.post-header-title {
    font-family: var(--font-main);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.blog-title::before,
.blog-title::after,
.post-header-title::before,
.post-header-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 2px;
    background: linear-gradient(90deg, #F6339A 0%, rgba(188, 8, 103, 0.40) 100%);
    flex-shrink: 0;
}

.blog-title::before,
.post-header-title::before {
    transform: rotate(180deg);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(217, 29, 129, 0.3);
    box-shadow: 0 0 30px rgba(217, 29, 129, 0.15);
    transform: translateY(-5px);
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.post-card .post-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #F6339A;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #F6339A;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    border-bottom-color: #F6339A;
    letter-spacing: 0.5px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: rgba(217, 29, 129, 0.2);
    border-color: #F6339A;
    color: #fff;
    box-shadow: 0 0 15px rgba(217, 29, 129, 0.3);
}

/* Single Post Styles */
.post-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-header-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -40px;
    margin-bottom: 40px;
}

.post-thumbnail-featured {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 50px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: #fff;
    margin: 40px 0 20px;
}

.post-content a {
    color: #F6339A;
    text-decoration: underline;
}

.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: rgba(217, 29, 129, 0.1);
    border-color: #F6339A;
    color: #fff;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.nav-link {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #F6339A;
}

.nav-link-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nav-link-title {
    color: #fff;
    font-weight: 600;
}

.back-to-blog {
    text-align: center;
    margin-top: 60px;
}

.back-to-blog a {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 4px;
    border: 1px solid #FF80AA;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 32px 2.395px #8F1136, 0 0 32px 2.395px #B44C68 inset;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-blog a:hover {
    background: rgba(246, 51, 154, 0.1);
    box-shadow: 0 0 30px rgba(143, 17, 54, 0.6);
}

@media (max-width: 768px) {

    .blog-page,
    .single-post-page {
        padding-top: 100px;
    }

    .blog-title,
    .post-header-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .blog-title::before,
    .blog-title::after,
    .post-header-title::before,
    .post-header-title::after {
        width: 40px;
    }

    .post-content {
        padding: 25px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-thumbnail {
        height: 250px;
    }
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

/* Mobile Overlay - Hidden by default */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    /* Fallback */
    background-image: url('assets/img/page-bg.png');
    /* Match site bg */
    background-size: cover;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.is-open {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    position: relative;
    /* Gradient overlay similar to design if needed */
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.8) 100%);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-menu-logo img {
    height: 40px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific styling for the close button circle from Figma */
.close-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu-list li a {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-footer {
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-lang {
    font-size: 18px;
    opacity: 0.8;
}

.mobile-enter-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {

    /* Background Fix - Ensure it covers on mobile */
    .site-background {
        width: 100%;
        height: 100%;
        position: fixed;
    }

    .site-background img {
        object-fit: cover;
        object-position: center top;
        opacity: 0.6;
        /* Match design opacity */
        width: 100%;
        height: 100%;
    }

    /* Header */
    .site-header {
        padding: 20px 0;
        /* Mobile header padding */
    }

    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        /* standard mobile padding */
        position: relative;
        /* Ensure absolute center works relative to this */
        height: 60px;
        /* Define height for vertical alignment */
    }

    .header-center,
    .main-navigation,
    .lang-selector {
        display: none;
    }

    .header-center {
        display: block;
        /* Override for this specific element as we want it shown now */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        z-index: 10;
    }

    .enter-btn {
        padding: 8px 32px;
        /* Slightly smaller padding for mobile if needed, or keep same */
        font-size: 16px;
        min-width: 120px;
        text-align: center;
        /* Ensure distinct glow matches screenshot */
        background: rgba(217, 61, 134, 0.4);
        border: 1px solid rgba(255, 128, 170, 0.8);
        box-shadow: 0 0 15px rgba(217, 61, 134, 0.6);
    }

    .header-right {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 100;
        /* Ensure distinct glow matches screenshot if needed, or keeping it plain as requested "без обводки" */
    }

    /* Mobile Overlay - Updated to match screenshot */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2147483647;
        /* Max Z-Index to force visibility on Front Page */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
        /* Ensure clickable */

        /* Transparent parent as requested, background managed by children */
        background-color: transparent;
        isolation: isolate;
        /* Create new stacking context to ensure menu is always on top */
    }

    .mobile-menu-overlay.is-open {
        transform: translateX(0);
    }

    .mobile-menu-content {
        padding: 0;
        /* Remove padding from container to allow children to fill edge-to-edge colors */
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Menu Header inside Overlay */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 66px;
        /* User specified height */
        padding: 0 16px;
        /* Restore padding here */

        /* User specified styles */
        background: rgba(15, 22, 41, 0.03);
        backdrop-filter: blur(7.2px);

        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
        /* Align perfectly with body */
        position: relative;
        flex: 0 0 66px;
        overflow: visible !important;
        /* Important for glow */
        z-index: 2147483647;
        /* Ensure header is on top of everything inside overlay */
        isolation: isolate;
        /* Create new stacking context to ensure close button is always visible */
    }

    .mobile-menu-logo img {
        height: 40px;
        width: auto;
    }

    /* Re-use enter-btn styles but ensure it's centered if needed or flex handles it */
    .mobile-header-btn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);

        /* Figma Dimensions exactly */
        width: 120px;
        height: 34px;
        min-width: unset;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(255, 255, 255, 0.02);
        border: 1px solid #ff80aa;
        box-shadow: 0 0 15px rgba(217, 61, 134, 0.4);
        font-size: 14px;
        z-index: 1;
        /* Lower z-index to ensure close button is always on top */
    }

    .mobile-menu-close {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        width: 48px !important;
        height: 48px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        cursor: pointer !important;
        overflow: visible !important;
        /* important for glow */
        pointer-events: auto !important;
        /* Force clickable */
        z-index: 2147483647 !important;
        /* Max Z-Index locally */
        position: relative !important;
        /* Ensure z-index applies */
        flex-shrink: 0 !important;
        /* Prevent button from shrinking */
        order: 3 !important;
        /* Ensure close button is last in flex order */
        min-width: 48px !important;
        /* Ensure minimum width */
        min-height: 48px !important;
        /* Ensure minimum height */
    }

    /* SVG */
    .mobile-menu-close svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: inherit !important;

        filter:
            drop-shadow(0 0 32px rgba(255, 128, 170, .6)) drop-shadow(0 0 16px rgba(255, 128, 170, .4));
    }

    /* Cross lines */
    .mobile-menu-close path {
        stroke: #ffffff !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        opacity: 1 !important;
    }

    .mobile-navigation {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 16px;

        /* User specified body background */
        background: #0F1629;
        backdrop-filter: blur(7.2px);

        flex-grow: 1;
        /* Fill remaining space */
        width: 100%;
    }

    /* Menu List */
    .mobile-menu-list {
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
    }

    .mobile-menu-list li {
        width: 100%;
        border-bottom: none;
    }

    .mobile-menu-list li a {
        display: inline-block;
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 400;
        color: #FFFFFF;
        padding: 0;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-transform: none;
    }

    /* Language Selector in Menu */
    .mobile-menu-lang {
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
    }

    /* Footer Area in Menu */
    .mobile-menu-footer {
        padding: 16px;
        background: #0F1629;
        /* Continue body background */
        backdrop-filter: blur(7.2px);
        /* Consistent blur */
        width: 100%;
    }

    .mobile-lang {
        /* Deprecated class, safe to ignore or remove */
        display: none;
    }

    .mobile-enter-btn {
        width: 100%;
        max-width: 100%;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: linear-gradient(90deg, #D93D86 0%, #8F1136 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0px 0px 20px rgba(217, 61, 134, 0.4);
    }

    /* Hero Section Adjustments */
    .hero {
        padding-top: 100px;
        min-height: auto;
        /* Allow content to dictate height, or reduce specifically */
        height: auto;
        padding-bottom: 60px;
        align-items: center;
        /* Center vertically if needed, or flex-start */
    }

    .hero-content {
        width: 100%;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 42px;
        /* Reduced from 52px to fit better */
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-pretitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero-pretitle::before,
    .hero-pretitle::after {
        display: none;
        /* Remove lines on mobile for cleaner look or adjust width */
    }

    /* Decorative lines for history headings enabled on mobile as requested */
    .history-title::before,
    .history-title::after,
    .history-entry-content h1::before,
    .history-entry-content h1::after,
    .history-entry-content h2::before,
    .history-entry-content h2::after,
    .history-entry-content h3::before,
    .history-entry-content h3::after {
        display: block;
        width: 40px;
        /* Smaller lines for mobile to fit screen */
    }

    .history-entry-content {
        font-size: 16px;
    }

    .hero-title-line {
        width: 100px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.5;
        padding: 0;
        margin-bottom: 30px;
        opacity: 0.7;
    }

    .access-info {
        flex-direction: column;
        gap: 10px;
        font-size: 16px;
    }

    /* Cards Stack */
    .cards-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        height: 340px;
        /* Adjust height for mobile */
    }

    /* How it works */
    .steps {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        /* Keep centered mainly */
    }

    .step {
        /* Create a grid to align icons and text strictly */
        display: grid;
        grid-template-columns: 80px 1fr;
        /* Fixed icon column width */
        align-items: center;
        width: 100%;
        max-width: 320px;
        /* Limit width to keep it compact */
        gap: 0;
        /* managed by grid cols */
    }

    .step-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto;
        /* Center in the 80px column */
    }

    .step span {
        text-align: left;
        /* Ensure text aligns left */
        font-size: 18px;
    }

    .step-arrow {
        transform: rotate(90deg);
        opacity: 0.3;
        font-size: 20px;
        margin: 5px 0;
        display: block;
        margin-left: 31px;
        /* Align roughly with the 64px icon center (32px - half arrow) */
    }

    /* Confirmation Form */
    .confirmation-form {
        padding: 0 16px;
    }

    .confirmation-form .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Entry gate: cookie consent + age verification (blur until both confirmed)
   ========================================================================== */
/* Hide overlay from first paint when user already consented (avoids flash on refresh) */
body.entry-gate-skip .entry-gate-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.entry-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.entry-gate-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-gate-modal {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(217, 61, 134, 0.15);
}

.entry-gate-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary-text);
}

.entry-gate-section {
    margin-bottom: 24px;
}

.entry-gate-section:last-of-type {
    margin-bottom: 16px;
}

.entry-gate-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.5;
}

.entry-gate-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 12px;
}

.entry-gate-desc a,
.entry-gate-link {
    color: var(--color-accent);
    text-decoration: underline;
}

.entry-gate-desc a:hover,
.entry-gate-link:hover {
    color: #ff80aa;
}

.entry-gate-cookie-block,
.entry-gate-age-block {
    margin-bottom: 20px;
}

.entry-gate-checkbox {
    margin-top: 4px;
}

/* Use same checkbox style as main page (.checkbox-group is global) */
.entry-gate-modal .checkbox-group {
    font-size: 14px;
    opacity: 0.9;
}

.entry-gate-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
}

.entry-gate-buttons .btn-primary,
.entry-gate-buttons .entry-gate-btn-disagree {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 200px;
}

/* Agree: same as main page .btn-primary */
.entry-gate-modal .btn-primary {
    padding: 12px 32px;
    font-size: 18px;
    font-weight: 500;
}

.entry-gate-modal .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.entry-gate-modal .btn-primary:hover:not(:disabled) {
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-2px);
}

/* Disagree: secondary style matching site (outline/muted) */
.entry-gate-btn-disagree {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.entry-gate-btn-disagree:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.entry-gate-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* Optional: body class to blur main content when overlay is present (backup if backdrop-filter unsupported) */
body.entry-gate-active .site-background,
body.entry-gate-active #masthead,
body.entry-gate-active .site-footer,
body.entry-gate-active main {
    filter: blur(0);
}