.vmh-container {
    background-color: #ffffff;
    background-image: url('https://nardiv.unibuc.ro/wp-content/uploads/2026/09/image-1789949314782.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333333;
    font-family: sans-serif;
    
    /* Force full viewport width breaking out of Elementor boxed sections */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
}

.vmh-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: rgba(255,255,255,0.7);
}

.vmh-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 3rem; /* Space for scroll indicator */
}

.vmh-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    z-index: 1; /* Ensure logo is above any overlay */
    position: relative;
}

.vmh-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive typography */
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
}

.vmh-hero-plaque-wrapper {
    width: 100%;
    max-width: 800px;
}

.vmh-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

.vmh-hallway-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.vmh-hallway {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.vmh-door-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 5vw 10vw;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 5vw;
}

.vmh-door-wrapper.layout-door-left {
    flex-direction: row;
}
.vmh-door-wrapper.layout-door-right {
    flex-direction: row-reverse;
}

/* Layout for missing image - center everything */
.vmh-door-wrapper.layout-no-image {
    justify-content: center;
    text-align: center;
}

.vmh-door-column,
.vmh-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vmh-door-column {
    align-items: center;
}

.vmh-text-column {
    justify-content: flex-end;
}

/* Override alignment when no image is present */
.layout-no-image .vmh-text-column {
    justify-content: center;
    align-items: center;
    max-width: 800px;
    flex: none; /* remove flex stretch so it centers based on content */
    width: 100%;
    height: auto;
}

/* Plaque title container */
.vmh-door-plaque-wrapper {
    height: auto;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.no-image-plaque {
    width: auto;
}

/* Container for just the door to match text box height */
.vmh-door-container {
    width: 100%;
    flex: 1; /* take remaining height after plaque and gap */
    display: flex;
    min-height: 400px;
}

/* Plaque Styling */
.vmh-text-box, .vmh-door-plaque, .vmh-hero-plaque {
    background-color: #fdfbf7;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(240, 238, 233, 0.9)),
        linear-gradient(135deg, transparent 40%, rgba(200, 200, 200, 0.1) 45%, rgba(180, 180, 180, 0.2) 50%, transparent 55%),
        linear-gradient(45deg, transparent 60%, rgba(220, 220, 220, 0.15) 65%, transparent 70%);
    background-size: 100% 100%, 300% 300%, 200% 200%;
    background-position: center;
    border: 3px solid #e0dfdb;
    border-radius: 6px;
    box-shadow: 
        0 8px 15px rgba(0,0,0,0.15),
        inset 0 0 20px rgba(255,255,255,0.8),
        inset 0 2px 5px rgba(255,255,255,1);
    position: relative;
    overflow: hidden;
}

.vmh-text-box {
    width: 100%;
    flex: 1; 
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-top: calc(61px + 20px); /* JS override */
}

.layout-no-image .vmh-text-box {
    flex: none; /* override the stretch */
    margin-top: 0 !important; /* reset js calculated margin */
    text-align: center;
}

.vmh-door-plaque {
    padding: 15px 30px;
    text-align: center;
    min-width: 220px;
}

.vmh-hero-plaque {
    padding: 2rem 3rem;
    text-align: center;
}

.vmh-text-box::before, .vmh-door-plaque::before, .vmh-hero-plaque::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxmaWx0ZXIgaWQ9Im4iPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjAxIiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+') !important;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.vmh-door-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
    line-height: 1.2;
}

.vmh-door-text, .vmh-hero-plaque-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
    z-index: 1;
}

.vmh-door {
    width: 100%;
    height: 100%;
    min-height: inherit;
    position: relative;
    cursor: pointer;
    background: #000;
    border: 8px solid #3d2314;
    transition: box-shadow 0.3s ease;
    flex: 1;
    display: flex;
}

.vmh-door:hover {
    box-shadow: 0 0 20px #FFD100;
}

.vmh-door-inner {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.5);
    flex: 1;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 992px) {
    .vmh-door-wrapper,
    .vmh-door-wrapper.layout-door-left,
    .vmh-door-wrapper.layout-door-right {
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        height: auto;
        min-height: auto;
    }

    .vmh-door-column,
    .vmh-text-column {
        height: auto;
        width: 100%;
        display: block;
    }

    .vmh-door-container {
        height: 60vh; /* Give door a fixed height on mobile instead of flex stretch */
        min-height: 400px;
        display: block;
    }
    
    .vmh-door, .vmh-door-inner {
        min-height: 400px; /* Ensure door actually takes height on mobile */
        height: 100%;
        display: block;
    }
    
    .vmh-text-column {
        justify-content: flex-start;
    }

    .vmh-text-box {
        margin-top: 0 !important; /* Disable JS height matching on mobile */
        flex: none;
        height: auto;
        padding: 2rem;
        display: block;
    }
}