/* ================== D-BOT SERIES SECTION IMPROVEMENTS ================== */

/* Increase height for D-Bot Series section */
.container {
    min-height: 75vh !important; /* Increase minimum height */
}

.slide-content {
    min-height: 75vh !important; /* Ensure full viewport height */
    display: flex;
    align-items: center;
}

/* Fix image display to show without cropped sides */
.slide-image-content {
    position: relative;
    width: 100%;
    overflow: visible !important; /* Allow image to be fully visible */
}

.slide-robot-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure full image is visible without cropping */
    max-width: none !important;
}

.img-slide-dbot {
    object-fit: contain !important;
    width: 90% !important;
    height: auto !important;
}

/* Germany flag repositioning - move to bottom right and remove background */
.de_flag_slider_container {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    background: none !important; /* Remove background color */
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 10;
}

.de_flag_slider_bars {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
}

.de_flag_slider_bar {
    width: 20px;
    height: 6px;
}

.de_flag_slider_black {
    background-color: #000;
}

.de_flag_slider_red {
    background-color: #dd0000;
}

.de_flag_slider_gold {
    background-color: #ffce00;
}

.de_flag_slider_text {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-align: center;
    background: none !important;
    padding: 0 !important;
}

/* ================== RESPONSIVE D-BOT HEADER SECTION ================== */

/* Base container improvements */
.container {
    min-height: 75vh;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wrapper {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive slide content layout - OPTIMIZED FOR TARGET DESIGN */
.slide-content {
    display: grid !important;
    grid-template-columns: 40% 60% !important; /* Adjusted ratio to match target image */
    gap: 3rem !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 2rem 4rem !important; /* Reduced padding for better space utilization */
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100vw !important;
    box-sizing: border-box !important;
}

/* Text content responsive styling */
.slide-text-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
    order: 1 !important;
    min-height: auto !important;
    padding-left: 2rem !important; /* Add left padding for text positioning */
}

.slide-text-content-06 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
    order: 1 !important;
    min-height: auto !important;
    padding-left: 8rem !important; /* Add left padding for text positioning */
}

.slide-text-content .container-inner {
    width: 100vw !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Image content responsive styling - OPTIMIZED FOR TARGET IMAGE SIZE */
.slide-image-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
    position: relative !important;
    overflow: visible !important; /* Allow proper image display */
    padding: 0 !important;
    height: 100% !important;
    min-height: 500px !important;
}

/* Responsive image sizing - OPTIMIZED TO MATCH TARGET */
.slide-robot-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80vh !important; /* Optimal height for target design */
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(1.1) !important; /* Slight scale for better presence */
}

.img-slide-dbot {
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    transform: scale(1.1) !important;
}

/* Responsive typography - MATCHING TARGET PROPORTIONS */
.slide-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem) !important; /* Optimized for target design */
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
}

.slide-description {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem) !important; /* Optimized for target design */
    line-height: 1.5 !important;
    margin-bottom: 2rem !important;
}

/* Germany flag positioning - EXACT MATCH TO TARGET */
.de_flag_slider_container {
    position: absolute !important;
    bottom: 2rem !important;
    right: 3rem !important;
    background: none !important;
    padding: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.de_flag_slider_bars {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
    gap: 1px;
}

.de_flag_slider_bar {
    width: 24px;
    height: 8px;
}

.de_flag_slider_text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    background: none !important;
    padding: 0 !important;
}

/* ================== RESPONSIVE BREAKPOINTS - OPTIMIZED FOR ALL DESKTOP SIZES ================== */

@media (min-width: 1200px) and (max-width: 1599px) {
    .slide-content {
        grid-template-columns: 40% 60% !important;
        padding: 2rem 3rem !important;
        gap: 3rem !important;
    }

    .img-slide-dbot {
        max-height: 100vh !important;
        transform: scale(1.4) !important;
    }


}

/* Standard Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .slide-content {
        grid-template-columns: 42% 58% !important;
        padding: 2rem 3rem !important;
        gap: 2.5rem !important;
    }

    .slide-robot-image {
        max-height: 75vh !important;
        transform: scale(1.4) !important;
    }

    .slide-robot-image-06 {
        max-height: 80vh !important;
        transform: scale(1.4) !important;
    }


}

@media (min-height: 1000px) {
    .slide-robot-image-06 {
        max-height: 85vh !important;
    }

    .slide-robot-image-08 {
        max-height: 65vh !important;
    }

    .slide-robot-image-10 {
        max-height: 65vh !important;
    }

    .slide-robot-image-16 {
        max-height: 65vh !important;
    }

    .slide-robot-image-20 {
        max-height: 60vh !important;
    }

    .slide-robot-image-30 {
        max-height: 55vh !important;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) and (max-width: 1599px) {
    .slide-content {
        grid-template-columns: 40% 60% !important;
        padding: 2rem 4rem !important;
        gap: 4rem !important;
        max-width: 1500px !important;
    }

    .slide-image-content {
        min-height: 550px !important;
    }

    .slide-robot-image {
        max-height: 70vh !important;
        transform: scale(1.15) !important;
    }

    .slide-robot-image-06 {
        max-height: 80vh !important;
        transform: scale(1.15) !important;
    }

    .img-slide-dbot {
        max-height: 70vh !important;
        transform: scale(1.15) !important;
    }

    .de_flag_slider_container {
        bottom: 2.5rem !important;
        right: 4rem !important;
    }
}

/* Extra Large Desktop (1600px+) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .slide-content {
        grid-template-columns: 38% 62% !important;
        padding: 2rem 4rem !important;
        gap: 5rem !important;
        max-width: 1700px !important;
    }

    .slide-image-content {
        min-height: 600px !important;
    }

    .slide-robot-image {
        max-height: 75vh !important;
        transform: scale(1.2) !important;
    }

    .slide-robot-image-06 {
        max-height: 85vh !important;
        transform: scale(1.2) !important;
    }

    .img-slide-dbot {
        max-height: 75vh !important;
        transform: scale(1.2) !important;
    }

    .slide-title {
        font-size: clamp(3rem, 4vw, 5rem) !important;
    }

    .slide-description {
        font-size: clamp(1.2rem, 1.8vw, 1.8rem) !important;
    }

    .de_flag_slider_container {
        bottom: 3rem !important;
        right: 5rem !important;
    }
}

/* Ultra Wide Desktop (1920px+) */
@media (min-width: 1920px) {
    .slide-content {
        grid-template-columns: 35% 65% !important;
        padding: 2rem 4rem !important;
        gap: 6rem !important;
        max-width: 1900px !important;
    }

    .slide-image-content {
        min-height: 700px !important;
    }

    .slide-robot-image {
        max-height: 80vh !important;
        transform: scale(1.25) !important;
    }

    .slide-robot-image-06 {
        max-height: 80vh !important;
        transform: scale(1.25) !important;
    }

    .img-slide-dbot {
        max-height: 80vh !important;
        transform: scale(1.25) !important;
    }

    .slide-title {
        font-size: clamp(3.5rem, 4vw, 5.5rem) !important;
    }

    .slide-description {
        font-size: clamp(1.3rem, 1.8vw, 2rem) !important;
    }

    .de_flag_slider_container {
        bottom: 5.5rem !important;
        right: 6rem !important;
    }

    .de_flag_slider_bar {
        width: 28px;
        height: 9px;
    }

    .de_flag_slider_text {
        font-size: 12px;
    }
}

/* Medium screens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .slide-content {
        padding: calc(var(--nav-height-desktop) + 1.5rem) 3rem 1.5rem !important;
        gap: 2rem !important;
    }

    .slide-robot-image {
        max-height: 60vh !important;
    }
}

/* Small Desktop / Large Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .slide-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: calc(var(--nav-height-mobile) + 2rem) 2rem 2rem !important;
        gap: 2rem !important;
    }

    .slide-text-content {
        order: 1 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .slide-image-content {
        order: 2 !important;
        min-height: 350px !important;
    }

    .slide-robot-image {
        max-height: 50vh !important;
    }
}

/* Mobile Portrait (320px - 767px) */
@media (max-width: 767px) {
    .slide-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: calc(var(--nav-height-mobile) + 1rem) 1rem 1rem !important;
        gap: 1.5rem !important;
        min-height: calc(100vh - var(--nav-height-mobile)) !important;
    }

    .slide-text-content {
        order: 1 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .slide-image-content {
        order: 2 !important;
        min-height: 300px !important;
    }

    .slide-robot-image {
        max-height: 40vh !important;
        max-width: 90% !important;
    }

    .slide-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem !important;
    }

    .slide-description {
        font-size: clamp(0.9rem, 4vw, 1.2rem) !important;
        margin-bottom: 1.5rem !important;
    }

    .de_flag_slider_container {
        bottom: 0.5rem !important;
        right: 0.5rem !important;
        transform: scale(0.8) !important;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .slide-content {
        padding: calc(var(--nav-height-mobile) + 0.5rem) 0.5rem 0.5rem !important;
        gap: 1rem !important;
    }

    .slide-image-content {
        min-height: 250px !important;
    }

    .slide-robot-image {
        max-height: 35vh !important;
    }

    .de_flag_slider_container {
        transform: scale(0.7) !important;
    }
}

/* ================== HEIGHT-SPECIFIC RESPONSIVE ADJUSTMENTS ================== */

/* For very tall screens */
@media (min-height: 1000px) {
    .slide-content {
        min-height: 80vh !important;
    }

    .slide-image-content {
        min-height: 500px !important;
    }

    .slide-robot-image {
        max-height: 75vh !important;
    }
}

/* For shorter screens */
@media (max-height: 700px) {
    .slide-content {
        min-height: 90vh !important;
        padding-top: calc(var(--nav-height-desktop) + 1rem) !important;
        padding-bottom: 1rem !important;
    }

    .slide-robot-image {
        max-height: 50vh !important;
    }

    .slide-title {
        margin-bottom: 1rem !important;
    }

    .slide-description {
        margin-bottom: 1.5rem !important;
    }
}

/* ================== BUTTON RESPONSIVE IMPROVEMENTS ================== */
.button-frame {
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem) !important;
    min-width: auto !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    .button-frame {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
}


/* ================== END D-BOT SERIES IMPROVEMENTS ================== */
