/**
 * Hero Section Styles
 * Based on Dacia Digital Standard Guide
 * Slider functionality with Dacia branding
 * 
 * @package Dacia_Dealers_Theme
 */

/* ============================================
   HERO SECTION CONTAINER
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 600px;
    background-color: #000000;
    overflow: hidden;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================
   RESPONSIVE TEMPLATE TOGGLES
   Ensures mobile/desktop templates render correctly
   ============================================ */
@media (max-width: 1023px) {
    .hero-section {
        min-height: auto !important;
        background-color: #ffffff !important;
        overflow: visible !important;
    }

    /* Hide desktop slider on mobile */
    .hero-slider-desktop,
    #hero-section:not(.hero-section-mobile) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Show mobile slider on mobile */
    .hero-section-mobile,
    .hero-slider-mobile {
        display: block !important;
        visibility: visible !important;
    }
}

@media (min-width: 1024px) {
    /* Hide mobile slider on desktop */
    .hero-section-mobile,
    .hero-slider-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Show desktop slider on desktop */
    .hero-slider-desktop {
        display: block !important;
        visibility: visible !important;
    }
}

#page.site {
    margin-top: 0;
    padding-top: 0;
}

/* ============================================
   HERO IMAGE (STATIC & SLIDER)
   ============================================ */

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-static,
.hero-slider {
    width: 100%;
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow: hidden;
    min-height: 600px;
}

.hero-slider .carousel-inner {
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    overflow: hidden !important;
    height: 600px;
}

/* Mobile: Stack image on top, content below */
@media (max-width: 767px) {
    /* Desktop slider styles - not for mobile */
    .hero-slider-desktop {
        min-height: 0;
        max-height: 100vh;
        height: 100vh;
        padding-bottom: 0;
    }
    
    .hero-slider-desktop .carousel-inner .item {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-slider-desktop .carousel-inner {
        height: auto;
        min-height: auto;
        max-height: 100vh;
    }
    
    /* Mobile slider should not have 100vh constraints */
    .hero-slider-mobile {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .hero-slider-mobile .carousel-inner {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .hero-slider .hero-image,
    .hero-slider .hero-video-container {
        order: 1 !important; /* Image/video on top */
        width: 100% !important;
        position: relative !important;
    }
}

/* Fade transitions for carousel */
.carousel-fade .carousel-inner .item {
    opacity: 0;
    -webkit-transition: opacity 0.6s ease-in-out;
    -moz-transition: opacity 0.6s ease-in-out;
    -o-transition: opacity 0.6s ease-in-out;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none !important;
}

.carousel-fade .carousel-inner .item.active,
.carousel-fade .carousel-inner .item.next.left,
.carousel-fade .carousel-inner .item.prev.right {
    opacity: 1;
}

/* ONLY active item allows pointer events - critical for hover */
.carousel-fade .carousel-inner .item.active {
    pointer-events: auto !important;
    z-index: 10 !important; /* Ensure active is above non-active */
}

/* Ensure next.left and prev.right don't interfere */
.carousel-fade .carousel-inner .item.next.left,
.carousel-fade .carousel-inner .item.prev.right {
    pointer-events: none !important;
    z-index: 0 !important;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
    opacity: 0;
    pointer-events: none !important;
    z-index: 0 !important; /* Below active item */
}

.carousel-fade .carousel-inner .next,
.carousel-fade .carousel-inner .prev {
    opacity: 0;
    pointer-events: none !important;
    z-index: 0 !important; /* Below active item */
}

/* Ensure ALL non-active items are below active */
.carousel-fade .carousel-inner .item:not(.active) {
    z-index: 0 !important;
    pointer-events: none !important;
}

.carousel-fade .carousel-inner .item.active,
.carousel-fade .carousel-inner .item.next,
.carousel-fade .carousel-inner .item.prev {
    display: block;
}

/* Active item content allows pointer events */
.carousel-fade .carousel-inner .item.active .hero-slide-content,
.carousel-fade .carousel-inner .item.active .hero-buttons,
.carousel-fade .carousel-inner .item.active .hero-cta-button,
.carousel-fade .carousel-inner .item.active .hero-cta-button-2,
.carousel-fade .carousel-inner .item.active .btn,
.carousel-fade .carousel-inner .item.active a {
    pointer-events: auto !important;
}

.carousel-fade .carousel-inner .item {
    position: absolute;
    top: 0;
    width: 100%;
    display: block;
    z-index: 0; /* Default: below active item */
}

.carousel-fade .carousel-inner .item:first-child {
    position: relative;
}

.hero-slider .carousel-inner > .item {
    position: relative !important;
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.hero-slider .item img {
    width: 100%;
    max-width: 100vw;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Video Container */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
    background-color: #000000;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    object-fit: cover;
    border: none;
}

.hero-video-iframe video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
    /* Hero Slide Content - Desktop */
.hero-slide-content,
.item .hero-slide-content,
.item.active .hero-slide-content,
.item.next .hero-slide-content,
.item.prev .hero-slide-content {
    position: absolute !important;
    top: 0 !important;
    left: 100px !important; /* Space from left arrow */
    right: 100px !important; /* Space from right arrow */
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 4rem 2rem !important;
    z-index: 10 !important;
    color: #ffffff !important;
    /* Allow full interaction (click, hover) on buttons and links */
    pointer-events: auto !important;
}

.hero-slide-content *,
.hero-slide-content a,
.hero-slide-content .btn,
.hero-slide-content .hero-cta-button,
.hero-slide-content .hero-cta-button-2 {
    pointer-events: auto !important;
}

.hero-slide-title {
    font-size: 4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; /* Better readability */
    font-family: 'Dacia Block', sans-serif !important; /* Dacia Block for headings */
}

.hero-slide-subtitle {
    font-size: 2rem !important;
    font-weight: 400 !important; /* Dacia Block Extended Regular for subtitles */
    margin-bottom: 2rem !important;
    opacity: 0.95 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important; /* Better readability */
    font-family: 'Dacia Block', sans-serif !important; /* Dacia Block for subtitles */
}

.hero-slide-details {
    font-size: 1.125rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.95 !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important; /* Better readability */
    position: relative !important;
    z-index: 1 !important;
    pointer-events: none !important; /* Don't block clicks on buttons below */
    font-family: 'Read Font', sans-serif !important; /* Read Font for body text */
}

.hero-slide-details p {
    margin-bottom: 1rem;
    pointer-events: none !important; /* Don't block clicks on buttons */
}

.hero-slide-details p:last-child {
    margin-bottom: 0;
}

.hero-slide-details ul,
.hero-slide-details ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    pointer-events: none !important; /* Don't block clicks on buttons */
}

.hero-slide-details li {
    margin-bottom: 0.5rem;
    pointer-events: none !important; /* Don't block clicks on buttons */
}

.hero-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative !important;
    z-index: 30 !important; /* Higher than details (z-index: 1) */
    width: auto;
    height: auto;
    pointer-events: auto !important;
}

.hero-cta-button,
.hero-cta-button-2 {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-right: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 30 !important; /* Higher than details (z-index: 1) */
    position: relative !important;
    width: auto;
    height: auto;
    min-width: auto;
    min-height: auto;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hero-buttons .btn,
.hero-buttons a.btn,
.hero-buttons a {
    position: relative !important;
    z-index: 30 !important; /* Higher than details (z-index: 1) */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
    min-width: auto;
    min-height: auto;
    pointer-events: auto !important;
    cursor: pointer !important;
}

    /* Button styles for hero slides - Dacia styling (Desktop) */
.hero-slide-content .btn,
.hero-slide-content .btn-primary,
.hero-slide-content .btn-default,
.hero-slide-content .hero-cta-button,
.hero-slide-content .hero-cta-button-2 {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 12px 24px !important;
    font-size: 16px !important; /* Base size */
    line-height: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important; /* CTAs in uppercase per Dacia guidelines */
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 30 !important; /* Higher than details (z-index: 1) */
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    pointer-events: auto !important;
    font-family: 'Dacia Block', sans-serif !important; /* Dacia Block for buttons */
}

/* Primary Button - Dark green background, white text, hover: black */
/* Primary Button - Dark green background, white text, hover: black (Desktop) */
.hero-slide-content .btn-primary,
.hero-slide-content .hero-cta-button,
.hero-buttons .btn-primary,
.hero-buttons .hero-cta-button,
.hero-buttons a.btn-primary,
.hero-buttons a.hero-cta-button {
    background-color: var(--dacia-dark-green, #4e5844) !important; /* Dark green per Dacia guidelines */
    color: #ffffff !important;
    border: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hero-slide-content .btn-primary:hover,
.hero-slide-content .hero-cta-button:hover,
.hero-buttons .btn-primary:hover,
.hero-buttons .hero-cta-button:hover,
.hero-buttons a.btn-primary:hover,
.hero-buttons a.hero-cta-button:hover {
    background-color: #000000 !important; /* Black on hover per Dacia guidelines */
    color: #ffffff !important;
    border: none !important;
}

/* Ghost Button - White background, black border, hover: black background, white text */
.hero-slide-content .btn-default,
.hero-slide-content .hero-cta-button-2,
.hero-slide-content .btn-ghost,
.hero-buttons .btn-default,
.hero-buttons .hero-cta-button-2,
.hero-buttons .btn-ghost,
.hero-buttons a.btn-default,
.hero-buttons a.hero-cta-button-2,
.hero-buttons a.btn-ghost {
    background-color: #ffffff !important; /* White background per Dacia guidelines */
    color: #000000 !important; /* Black text */
    border: 1px solid #000000 !important; /* Black border */
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hero-slide-content .btn-default:hover,
.hero-slide-content .hero-cta-button-2:hover,
.hero-slide-content .btn-ghost:hover,
.hero-buttons .btn-default:hover,
.hero-buttons .hero-cta-button-2:hover,
.hero-buttons .btn-ghost:hover,
.hero-buttons a.btn-default:hover,
.hero-buttons a.hero-cta-button-2:hover,
.hero-buttons a.btn-ghost:hover {
    background-color: #000000 !important; /* Black background on hover */
    color: #ffffff !important; /* White text on hover */
    border-color: #000000 !important;
}
}

/* Slider Controls - Black Rectangular Buttons with White Arrows */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 2rem;
}

.slider-arrow-btn {
    background: #000000;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    font-family: inherit;
    pointer-events: all;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-arrow-btn:hover {
    background: #333333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slider-arrow-icon {
    display: block;
    color: #ffffff;
    font-weight: 300;
}

.slider-prev {
    margin-left: 0;
}

.slider-next {
    margin-right: 0;
}

/* Carousel Controls (Bootstrap 3.4) */
.hero-slider .left.carousel-control,
.hero-slider .right.carousel-control {
    width: 60px;
    height: 60px;
    background: #000000;
    border: none;
    color: #ffffff;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slider .left.carousel-control {
    left: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.hero-slider .right.carousel-control {
    right: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.hero-slider .left.carousel-control:hover,
.hero-slider .right.carousel-control:hover {
    background: #333333;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.hero-slider .left.carousel-control .glyphicon,
.hero-slider .right.carousel-control .glyphicon,
.hero-slider .left.carousel-control .carousel-icon,
.hero-slider .right.carousel-control .carousel-icon {
    width: 2rem;
    height: 2rem;
    fill: #ffffff;
    color: #ffffff;
    display: block;
    margin: 0 auto;
}

.hero-slider .left.carousel-control .sr-only,
.hero-slider .right.carousel-control .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Carousel Indicators - Hidden (we use navigation titles instead) */
.hero-slider .carousel-indicators {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Slide Navigation Titles Row - Bottom Center */
.slider-nav-titles {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 15;
    pointer-events: none;
    padding: 0 2rem;
    width: 100%;
}

.slider-nav-titles .container {
    pointer-events: all;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.slider-nav-titles-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background-color: transparent;
    padding: 0;
}

.slider-nav-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px; /* Matching UK website navigation titles */
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: 'Dacia Block', sans-serif; /* Dacia Block for navigation titles */
}

.slider-nav-title:hover {
    color: #ffffff;
    opacity: 1;
}

.slider-nav-title.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    opacity: 1;
}

/* ============================================
   WELCOME CARD OVERLAY
   ============================================ */

.hero-welcome-card {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 10;
}

.welcome-card-content {
    background-color: rgba(245, 245, 245, 0.95); /* Light grey background per Dacia mobile specifications */
    border-radius: 8px;
    padding: 24px;
    color: #000000; /* Black text on light grey background */
    font-family: 'Read Font', sans-serif; /* Read Font for welcome card content */
}

.welcome-card-title {
    font-size: 24px; /* Title size */
    line-height: 30px;
    font-weight: 700;
    color: #000000; /* Black text on light grey background */
    margin-bottom: 20px;
    font-family: 'Dacia Block', sans-serif; /* Dacia Block for welcome card title */
    text-transform: uppercase;
}

.welcome-card-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.welcome-card-icon {
    font-size: 20px;
    color: #000000; /* Black icons on light grey background */
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.welcome-card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    color: #000000; /* Black icons on light grey background */
}

.welcome-card-text {
    flex: 1;
}

.welcome-card-label {
    font-size: 13px; /* Nav text size */
    line-height: 16px;
    font-weight: 700;
    color: #000000; /* Black text on light grey background */
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00FF00; /* Green for live */
    display: inline-block;
    margin-left: 4px;
}

.welcome-card-arrow {
    margin-left: auto;
    font-size: 18px;
    font-weight: 300;
}

.welcome-card-value {
    font-size: 14px; /* Base size */
    line-height: 20px;
    font-weight: 400;
    color: #000000; /* Black text on light grey background */
}

.welcome-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px; /* Legal size */
    line-height: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Hide arrows on tablets and phones */
@media (max-width: 1024px) {
    .slider-controls,
    .slider-controls .slider-arrow-btn,
    .slider-arrow-btn,
    .slider-prev,
    .slider-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-slider .left.carousel-control,
    .hero-slider .right.carousel-control {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 767px) {
    /* Show dots under slider */
    .hero-slider .carousel-indicators {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        width: auto;
        height: auto;
        gap: 8px;
    }
    
    .hero-slider .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
    }
    
    .hero-slider .carousel-indicators li.active {
        background-color: #ffffff;
    }
    
    /* Show arrows under slider */
    .hero-slider .left.carousel-control,
    .hero-slider .right.carousel-control {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        top: auto;
        bottom: 30px;
        transform: none !important;
        width: 32px;
        height: 32px;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 0;
        align-items: center;
        justify-content: center;
    }
    
    .hero-slider .left.carousel-control {
        left: 10px;
    }
    
    .hero-slider .right.carousel-control {
        right: 10px;
    }
    
    .hero-slider .left.carousel-control .carousel-icon,
    .hero-slider .right.carousel-control .carousel-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-welcome-card {
        max-width: 100%;
        padding: 15px;
    }
    
    .welcome-card-content {
        padding: 20px;
    }
    
    .welcome-card-title {
        font-size: 20px;
        line-height: 26px;
    }
    
    .hero-slide-title {
        font-size: 2.5rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1.5rem;
    }
}

/* ============================================
   MOBILE STYLES (max-width: 767px)
   Completely separate from desktop styles
   ============================================ */

@media (max-width: 767px) {
    /* Hero slider minimum height 105vh on mobile */
    .hero-section {
        min-height: 105vh !important;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        overflow: visible !important; /* Allow content to be visible */
    }
    
    #hero-carousel {
        min-height: 105vh !important;
        overflow: visible !important;
    }
    
    .hero-slider {
        position: relative;
        width: 100%;
        max-width: 100vw;
        min-height: 105vh !important;
        display: flex;
        flex-direction: column;
        overflow: visible !important; /* Allow content to be visible */
    }
    
    .hero-slider .carousel-inner {
        min-height: 105vh !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important; /* Allow content to be visible */
    }
    
    /* Fade transitions for mobile */
    .carousel-fade .carousel-inner .item {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0;
        -webkit-transition: opacity 0.6s ease-in-out;
        -moz-transition: opacity 0.6s ease-in-out;
        -o-transition: opacity 0.6s ease-in-out;
        transition: opacity 0.6s ease-in-out;
        pointer-events: none !important; /* Default: no pointer events */
        z-index: 0 !important; /* Below active item */
    }
    
    .carousel-fade .carousel-inner .item.active,
    .carousel-fade .carousel-inner .item.next.left,
    .carousel-fade .carousel-inner .item.prev.right {
        opacity: 1;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .carousel-fade .carousel-inner .active.left,
    .carousel-fade .carousel-inner .active.right {
        opacity: 0;
        pointer-events: none !important;
        z-index: 0 !important;
    }
    
    .carousel-fade .carousel-inner .next,
    .carousel-fade .carousel-inner .prev {
        opacity: 0;
        pointer-events: none !important;
        z-index: 0 !important;
    }
    
    .carousel-fade .carousel-inner .item.active,
    .carousel-fade .carousel-inner .item.next,
    .carousel-fade .carousel-inner .item.prev {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* ONLY active item allows pointer events on mobile - critical for hover */
    .carousel-fade .carousel-inner .item.active {
        pointer-events: auto !important;
        z-index: 10 !important; /* Ensure active is above non-active */
    }
    
    /* Ensure next.left and prev.right don't interfere on mobile */
    .carousel-fade .carousel-inner .item.next.left,
    .carousel-fade .carousel-inner .item.prev.right {
        pointer-events: none !important;
        z-index: 0 !important;
    }
    
    /* Ensure ALL non-active items are below active on mobile */
    .carousel-fade .carousel-inner .item:not(.active) {
        z-index: 0 !important;
        pointer-events: none !important;
    }
    
    .carousel-fade .carousel-inner .item.active .hero-slide-content,
    .carousel-fade .carousel-inner .item.active .hero-buttons,
    .carousel-fade .carousel-inner .item.active .hero-cta-button,
    .carousel-fade .carousel-inner .item.active .hero-cta-button-2,
    .carousel-fade .carousel-inner .item.active .btn {
        pointer-events: auto !important;
    }
    
    .carousel-fade .carousel-inner .item {
        position: absolute;
        top: 0;
        width: 100%;
    }
    
    .carousel-fade .carousel-inner .item:first-child {
        position: relative;
    }
    
    .hero-slider .item,
    .carousel-item {
        min-height: 105vh !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important; /* Allow content to be visible */
    }
    
    /* Image at top, full mobile width with fixed height */
    .hero-slider .item img {
        width: 100% !important;
        max-width: 100vw !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover !important;
        display: block !important;
        order: 1;
    }
    
    /* Video container - full width with fixed height */
    .hero-video-container {
        width: 100% !important;
        max-width: 100vw !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        padding-bottom: 0 !important;
        order: 1;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video-iframe {
        width: 100% !important;
        max-width: 100vw !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover;
    }
    
    /* Content below image - Per Dacia specifications: Image on top, content below in Dacia grey */
    .hero-slide-content {
        padding: 20px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        z-index: 1 !important;
        background: var(--dacia-khaki, #646b52) !important; /* Dacia grey (khaki) background */
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        order: 2; /* Below image */
    }
    
    /* Ensure image is above content */
    .hero-slider .carousel-inner .item {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-slider .hero-image,
    .hero-slider .hero-video-container {
        order: 1 !important; /* Image/video on top */
        width: 100% !important;
        position: relative !important;
    }
    
    /* Ensure #hero-carousel .hero-slide-content has left: 0 on mobile */
    #hero-carousel .hero-slide-content {
        left: 0 !important;
        position: relative !important;
    }
    
    /* Title - white color on dark grey overlay, left aligned */
    .hero-slide-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        font-weight: 700 !important;
        color: #ffffff !important; /* White text on dark grey overlay per Dacia mobile specifications */
        text-shadow: none !important;
        order: 1;
        width: 100%;
        text-align: left;
        font-family: 'Dacia Block', sans-serif !important; /* Dacia Block for headings */
        text-transform: uppercase !important;
    }
    
    /* Subtitle - white color on dark grey overlay, left aligned */
    .hero-slide-subtitle {
        font-size: 1.25rem !important;
        font-weight: 400 !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        color: #ffffff !important; /* White text on dark grey overlay */
        opacity: 1 !important;
        text-shadow: none !important;
        order: 2;
        width: 100%;
        text-align: left;
        font-family: 'Read Font', sans-serif !important; /* Read Font for subtitles */
    }
    
    /* Details/Extra text - white color on dark grey overlay, left aligned, Read Font */
    .hero-slide-details {
        font-size: 0.875rem !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
        line-height: 1.5 !important;
        color: #ffffff !important; /* White text on dark grey overlay */
        opacity: 1 !important;
        text-shadow: none !important;
        order: 3;
        width: 100%;
        text-align: left;
        font-family: 'Read Font', sans-serif !important; /* Read Font for body text */
    }
    
    .hero-slide-details p {
        margin-bottom: 0.75rem;
        color: #ffffff !important; /* White text on dark grey overlay */
    }
    
    .hero-slide-details ul,
    .hero-slide-details ol {
        margin-left: 1rem;
        margin-bottom: 0.75rem;
        color: #ffffff !important; /* White text on Dacia grey background */
    }
    
    .hero-slide-details li {
        color: #ffffff !important; /* White text on Dacia grey background */
    }
    
    /* Buttons - stacked vertically, inside content container */
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 4;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile buttons - Per Dacia guidelines: at least 48x48px, thumb-friendly */
    .hero-buttons .btn,
    .hero-buttons a.btn,
    .hero-buttons .hero-cta-button,
    .hero-buttons .hero-cta-button-2,
    .hero-buttons a.hero-cta-button,
    .hero-buttons a.hero-cta-button-2 {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
        min-width: 48px !important; /* Minimum 48px width per Dacia mobile guidelines */
        min-height: 48px !important; /* Minimum 48px height per Dacia mobile guidelines */
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important; /* CTAs in uppercase per Dacia guidelines */
        margin: 0 !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        font-family: 'Dacia Block', sans-serif !important; /* Dacia Block for buttons */
    }
    
    /* Primary button - Dark green background, white text (Dacia styling) */
    .hero-slide-content .btn-primary,
    .hero-slide-content .hero-cta-button,
    .hero-slide-content a.btn-primary,
    .hero-slide-content a.hero-cta-button,
    .hero-slide-content .btn.btn-primary,
    .hero-slide-content a.btn.btn-primary,
    .hero-buttons .btn-primary,
    .hero-buttons .hero-cta-button,
    .hero-buttons a.btn-primary,
    .hero-buttons a.hero-cta-button,
    .hero-buttons .btn.btn-primary,
    .hero-buttons a.btn.btn-primary,
    #hero-carousel .hero-slide-content .btn-primary,
    #hero-carousel .hero-slide-content .hero-cta-button,
    #hero-carousel .hero-slide-content a.btn-primary,
    #hero-carousel .hero-slide-content a.hero-cta-button,
    #hero-carousel .hero-buttons .btn-primary,
    #hero-carousel .hero-buttons .hero-cta-button,
    #hero-carousel .hero-buttons a.btn-primary,
    #hero-carousel .hero-buttons a.hero-cta-button {
        background-color: var(--dacia-dark-green, #4e5844) !important; /* Dark green per Dacia guidelines */
        color: #ffffff !important;
        border: 2px solid var(--dacia-dark-green, #4e5844) !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 48px !important; /* Minimum 48px per Dacia mobile guidelines */
        min-height: 48px !important;
    }
    
    .hero-slide-content .btn-primary:hover,
    .hero-slide-content .hero-cta-button:hover,
    .hero-slide-content a.btn-primary:hover,
    .hero-slide-content a.hero-cta-button:hover,
    .hero-buttons .btn-primary:hover,
    .hero-buttons .hero-cta-button:hover,
    .hero-buttons a.btn-primary:hover,
    .hero-buttons a.hero-cta-button:hover,
    #hero-carousel .hero-slide-content .btn-primary:hover,
    #hero-carousel .hero-slide-content .hero-cta-button:hover,
    #hero-carousel .hero-buttons .btn-primary:hover,
    #hero-carousel .hero-buttons .hero-cta-button:hover {
        background-color: #000000 !important; /* Black on hover per Dacia guidelines */
        color: #ffffff !important;
        border-color: #000000 !important;
    }
    
    /* Secondary/Ghost button - white background, black text, black border (Dacia styling) */
    .hero-slide-content .btn-default,
    .hero-slide-content .hero-cta-button-2,
    .hero-slide-content a.btn-default,
    .hero-slide-content a.hero-cta-button-2,
    .hero-slide-content .btn.btn-default,
    .hero-slide-content a.btn.btn-default,
    .hero-buttons .btn-default,
    .hero-buttons .hero-cta-button-2,
    .hero-buttons a.btn-default,
    .hero-buttons a.hero-cta-button-2,
    .hero-buttons .btn.btn-default,
    .hero-buttons a.btn.btn-default,
    #hero-carousel .hero-slide-content .btn-default,
    #hero-carousel .hero-slide-content .hero-cta-button-2,
    #hero-carousel .hero-slide-content a.btn-default,
    #hero-carousel .hero-slide-content a.hero-cta-button-2,
    #hero-carousel .hero-buttons .btn-default,
    #hero-carousel .hero-buttons .hero-cta-button-2,
    #hero-carousel .hero-buttons a.btn-default,
    #hero-carousel .hero-buttons a.hero-cta-button-2 {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important; /* 1px border per Dacia guidelines */
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 48px !important; /* Minimum 48px per Dacia mobile guidelines */
        min-height: 48px !important;
    }
    
    .hero-slide-content .btn-default:hover,
    .hero-slide-content .hero-cta-button-2:hover,
    .hero-slide-content a.btn-default:hover,
    .hero-slide-content a.hero-cta-button-2:hover,
    .hero-buttons .btn-default:hover,
    .hero-buttons .hero-cta-button-2:hover,
    .hero-buttons a.btn-default:hover,
    .hero-buttons a.hero-cta-button-2:hover,
    #hero-carousel .hero-slide-content .btn-default:hover,
    #hero-carousel .hero-slide-content .hero-cta-button-2:hover,
    #hero-carousel .hero-buttons .btn-default:hover,
    #hero-carousel .hero-buttons .hero-cta-button-2:hover {
        background-color: #000000 !important;
        color: #ffffff !important;
        border-color: #000000 !important;
    }
    
    /* Hide arrow buttons on mobile */
    .slider-controls,
    .slider-controls .slider-arrow-btn,
    .slider-arrow-btn,
    .slider-prev,
    .slider-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .hero-slider .left.carousel-control,
    .hero-slider .right.carousel-control {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Navigation Titles - Hidden on mobile */
    .slider-nav-titles {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        pointer-events: none !important;
    }
    
    .slider-nav-titles * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Welcome card adjustments for mobile */
    .hero-welcome-card {
        padding: 10px;
        max-width: 100%;
        position: relative !important;
        order: 2;
    }
    
    .welcome-card-content {
        padding: 16px;
    }
    
    .welcome-card-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 16px;
    }
    
    .welcome-card-item {
        margin-bottom: 12px;
    }
    
    .welcome-card-label {
        font-size: 12px;
        line-height: 15px;
    }
    
    .welcome-card-value {
        font-size: 13px;
        line-height: 18px;
    }
}

