/* Case Study Convenience Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
; }

.case-study-hero .container {
    max-width: none;
    padding: 0;
    width: 100%;
; }

.case-study-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('../images/pinguin/336754109_603406791299726_6858093614144048978_n.jpg'); */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 90vh;
; }

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 42, 74, 0.6) 30%, rgba(251, 194, 19, 0.1) 70%, rgba(25, 54, 95, 0.8) 100%);
    z-index: 1;
; }

.case-study-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
; }

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-family: var(--font-bold);
}

.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);
}

/* Content Section */
.content-section {
    padding: 6rem 0;
    background: #000000;
    color: var(--white);
; }

.content-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
; }

.left-side {
    padding-right: 2rem;
; }

.services-title {
    font-size: var(--font-size-2xl); /* 24px - Medium headings */

    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
; }

.services-list {
    font-size: var(--font-size-lg); /* 18px - Large text */
    color: var(--white);
    line-height: 1.6;
    margin: 0;
; }

.right-side {
    padding-left: 2rem;
; }

.project-title {
    font-size: var(--font-size-3xl); /* 32px - Large headings */

    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
; }

.project-description {
    font-size: var(--font-size-lg); /* 18px - Large text */
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 1.5rem;
; }

/* Full Width Image Section */
.full-width-image-section {
    padding: 0;
    margin: 4rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
; }

.full-width-image-container {
    width: 100%;
    max-width: 900px;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 16px;
; }

.full-width-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.01);
    transition: transform 0.3s ease;
; }

.full-width-image-container img:hover {
    transform: scale(1.04);
; }

/* Image Gallery Styles */
.image-gallery-section {
    margin-top: 4rem ;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #000000;
    padding: 4rem 0;
; }

.image-gallery-section h3 {
    font-size: var(--font-size-2xl); /* 24px - Medium headings */

    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
; }

.image-gallery {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
; }

.gallery-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
; }

.gallery-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transform: scale(1.02);
    transition: all 0.3s ease, opacity 0.2s ease;
; }

.gallery-main img:hover {
    transform: scale(1.12);
; }

.gallery-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
; }

.thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
; }

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
; }

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(251, 194, 19, 0.3);
    transform: translateY(-2px);
; }

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0; /* Hide any alt text that might appear */
    color: transparent; /* Hide any alt text that might appear */
; }

/* CTA Section */
.cta-section {
    padding: 6rem 0;
background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    color: var(--white);
; }

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
; }

.cta-text {
    text-align: left;
; }

.cta-title {
    font-size: var(--font-size-3xl); /* 32px - Large headings */

    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-bold);
; }

.cta-subtitle {
    font-size: var(--font-size-lg); /* 18px - Large text */
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
; }

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
; }

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;

    font-size: var(--font-size-base); /* 16px - Base text */
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
; }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
; }

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
; }

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: var(--font-size-lg); /* 18px - Large text */
; }

.cta-logo {
    text-align: center;
; }

.cta-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
    transition: transform 0.3s ease;
; }

.cta-logo img:hover {
    transform: scale(1.05);
; }

/* Mobile Slider Elements - Hidden by Default */
.mobile-slider-container,
.mobile-slider-controls {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }

    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .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{
        height: 45vh;
    }
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .left-side,
    .right-side {
        padding: 0;
    }

    .services-title {
        font-size: 1.3rem;
    }

    .services-list {
        font-size: 0.95rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .cta-text {
        text-align: center;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-logo {
        order: -1;
        margin-bottom: 2rem;
    }

    .cta-logo img {
        max-width: 150px;
        height: auto;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }

    /* Mobile Full Screen Slider */
    .image-gallery-section {
        padding: 2rem 0;
        margin: 0;
    }

    .image-gallery {
        max-width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
    }

    .gallery-main {
        display: none;
    }

    .gallery-thumbnails {
        display: none;
    }

    /* Mobile Slider Container */
    .mobile-slider-container {
        position: relative;
        width: 100vw;
        height: 60vh;
        margin-left: calc(-50vw + 50%);
        overflow: hidden;
        border-radius: 0;
    }

    .mobile-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-slide.active {
        opacity: 1;
    }

    .mobile-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Mobile Slider Controls */
    .mobile-slider-controls {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
        z-index: 10;
        padding: 0 1rem;
    }

    .mobile-slider-btn {
        background: rgba(251, 194, 19, 0.95);
        color: var(--white);
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        pointer-events: auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
    }

    .mobile-slider-btn:hover {
        background: rgba(251, 194, 19, 1);
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-slider-btn:active {
        transform: scale(1.05);
    }

    /* Ensure buttons are always visible */
    .mobile-slider-btn.prev {
        margin-left: 0.5rem;
    }

    .mobile-slider-btn.next {
        margin-right: 0.5rem;
    }

    /* Additional mobile button visibility */
    @media (max-width: 480px) {
        .mobile-slider-btn {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
            background: rgba(251, 194, 19, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .mobile-slider-btn:hover {
            background: rgba(251, 194, 19, 1);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .mobile-slider-controls {
            padding: 0 0.5rem;
        }
    }

}

@media (max-width: 360px) {
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}

/* Footer Logo and Paragraph - Match Akbar */
.footer-brand .logo {
    height: 100px !important; /* Reduced from 150px */
    width: 140px !important; /* Reduced from 200px */
}

.footer-brand p {
    margin-bottom: 1rem !important; /* Reduced from 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;
}

/* ========================================
   CASE STUDY CONTENT SECTION - UNIVERSAL
   ======================================== */

/* Content Section */
.case-study-content-section {
    padding: 6rem 0;
    background: #19365f;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 400px;
    overflow: visible;
}

.case-study-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Side - Services */
.case-study-services-side {
    text-align: left;
}

.case-study-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-family: var(--font-bold);
}

.case-study-services-list {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Right Side - Project Description */
.case-study-project-side {
    text-align: left;
}

.case-study-project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    line-height: 1.3;
    font-family: var(--font-bold);
}

.case-study-project-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-content-section {
        padding: 4rem 0;
    }
    
    .case-study-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-study-project-title {
        font-size: 1.8rem;
    }
    
    .case-study-services-title {
        font-size: 1.3rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-content-section {
        padding: 3rem 0;
    }
    
    .case-study-content-grid {
        gap: 2rem;
    }
    
    .case-study-project-title {
        font-size: 1.5rem;
    }
    
    .case-study-services-title {
        font-size: 1.2rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 0.95rem;
    }
}
