/* ESKO Case Study Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.case-study-hero .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

/* Removed background image - now using full-width banner section */

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.case-study-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-hero-title {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-bold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive for ESKO Case Study */
@media (max-width: 1536px) {
    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 1024px) {
    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .case-study-hero-background {
        min-height: 50vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 640px) {
    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .case-study-hero-background {
        min-height: 40vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 360px) {
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}

/* ========================================
   FOOTER SIZE REDUCTION
   ======================================== */

/* Footer Logo Size Reduction */
.footer-brand .logo {
    height: 100px !important;
    width: 140px !important;
}

/* Footer Paragraph Spacing Reduction */
.footer-brand p {
    margin-bottom: 1rem !important;
}
/* ========================================
   FULL WIDTH BANNER IMAGE SECTION
   ======================================== */

.full-width-banner-section {
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.banner-image-container {
    width: 100%;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   THREE IMAGES SECTION (DESKTOP)
   ======================================== */

.esko-three-images {
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--light-gray);
}

.three-images-container {
    display: flex;
    gap: 0; /* No gap between images */
    width: 100%;
    margin: 0;
    padding: 0;
}

.image-item {
    flex: 1;
    min-width: 33.333%;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   MOBILE SLIDER SECTION
   ======================================== */

/* Mobile Slider Section - Hidden on desktop */
.mobile-slider-section {
    padding: 0;
    margin: 0;
    background: var(--light-gray);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: none; /* Hidden on desktop by default */
}

.mobile-slider-section .container {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-slider-container {
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mobile-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

.mobile-slider-slide {
    min-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
}

.mobile-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-slider-controls {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.mobile-slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    pointer-events: auto;
    position: absolute;
}

.mobile-slider-btn.prev {
    left: 1rem;
}

.mobile-slider-btn.next {
    right: 1rem;
}

.mobile-slider-btn:hover {
    transform: scale(1.1);
}

.mobile-slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobile/Tablet: Hide 3 images, show slider at 800px and below */
@media (max-width: 800px) {
    /* Hide desktop 3-image section */
    .esko-three-images {
        display: none !important;
    }
    
    /* Hide full-width image section above footer */
    .esko-image-section {
        display: none !important;
    }
    
    /* Show mobile slider */
    .mobile-slider-section {
        display: block;
    }
    
    
    
    .mobile-slider-controls {
        display: flex;
    }
}

