.dhc-wrapper {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.dhc-header {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.6s ease-in-out;
    border-radius: 0;
    margin: 0;
}

.dhc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 30, 50, 0.85);
    border-radius: inherit;
}

.dhc-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
    width: 100%;
    max-width: 100%;
}

.dhc-main-title {
    color: #ffffff;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    max-width: 100%;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.dhc-carousel-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(15px, 3vw, 30px) 0;
    z-index: 10;
    margin: 0;
}

.dhc-carousel-title {
    color: #ffffff;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    margin: 0 0 clamp(12px, 2vw, 20px) 0;
    padding: 0 clamp(20px, 4vw, 40px);
}

.dhc-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 clamp(20px, 4vw, 40px);
}

.dhc-carousel {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 5px 0;
    margin: 0 clamp(8px, 1.5vw, 15px);
}

.dhc-carousel::-webkit-scrollbar {
    display: none;
}

.dhc-carousel-item {
    flex: 0 0 clamp(200px, 25vw, 300px);
    height: clamp(120px, 15vw, 180px);
    border-radius: clamp(8px, 1vw, 12px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1;
}

.dhc-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dhc-item-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dhc-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(12px, 2vw, 20px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.dhc-item-title {
    color: #ffffff;
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 600;
    margin: 0 0 5px 0;
}

.dhc-item-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(11px, 1.2vw, 14px);
    margin: 0;
}

.dhc-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.dhc-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Remove any Elementor container padding interference */
.elementor-widget-dynamic_header_carousel {
    margin: 0 !important;
    z-index: 1 !important;
}

.elementor-widget-dynamic_header_carousel .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
}

/* Ensure header doesn't overlap other elements */
.dhc-wrapper {
    z-index: 1;
    isolation: isolate;
}

.dhc-header {
    z-index: 1;
}

.dhc-carousel-section {
    z-index: 2;
    position: absolute;
}

/* Make sure navigation menus stay on top */
.elementor-widget-nav-menu,
header,
nav {
    z-index: 999 !important;
}

.elementor-widget-nav-menu .elementor-nav-menu,
.elementor-widget-nav-menu .elementor-nav-menu__container {
    z-index: 999 !important;
}

/* Dropdown menus specifically */
.elementor-nav-menu--dropdown .elementor-nav-menu__container,
.elementor-nav-menu--dropdown ul.sub-menu,
.elementor-nav-menu--dropdown .elementor-nav-menu--dropdown {
    z-index: 9999 !important;
}

/* Container adaptations */
.elementor-section.elementor-section-boxed .dhc-wrapper {
    max-width: 100%;
}

.elementor-section.elementor-section-full_width .dhc-wrapper {
    max-width: 100%;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .dhc-header {
        height: clamp(300px, 40vh, 400px);
    }
    
    .dhc-carousel-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .dhc-header {
        height: clamp(250px, 35vh, 350px);
    }
    
    .dhc-main-title {
        font-size: clamp(20px, 5vw, 32px);
    }
    
    .dhc-carousel-section {
        padding: 15px 0;
    }
    
    .dhc-carousel-wrapper {
        max-width: 95%;
    }
    
    .dhc-carousel-container {
        padding: 0;
    }
    
    .dhc-carousel-title {
        padding: 0;
    }
    
    .dhc-nav-btn {
        display: flex;
    }
    
    .dhc-carousel {
        gap: 12px;
        margin: 0;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .dhc-header {
        height: 280px;
    }
    
    .dhc-main-title {
        font-size: 22px;
    }
    
    .dhc-carousel-title {
        font-size: 16px;
        padding: 0;
    }
    
    .dhc-carousel-container {
        padding: 0;
    }
    
    .dhc-carousel-section {
        padding: 12px 0;
    }
    
    .dhc-item-title {
        font-size: 13px;
    }
    
    .dhc-item-subtitle {
        font-size: 10px;
    }
}

/* Extra small containers */
@media (max-width: 360px) {
    .dhc-carousel-item:not([style*="height"]) {
        height: 90px;
    }
}