/* TI MARMITE Launch Case Study Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    padding: 0;
    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%;
}

.case-study-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url("../images/TI-MARMITE/ti-1.png"); */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 80vh;
    min-height: 80vh;
}

.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: #ffffff;
}

.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);
    font-weight: 600;
    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;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Content Section */
.content-section {
    padding: 6rem 0;
    background: #19365f;
    color: #ffffff;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Left Side - Services */
.left-side {
    text-align: left;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.services-list {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Right Side - Project Description */
.right-side {
    text-align: left;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    line-height: 1.3;
}

.project-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 194, 19, 0.1) 0%, transparent 70%);
    animation: ctaGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes ctaGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.cta-logo img {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.1);
}

/* Image Section */
.ti-marmite-image-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.ti-marmite-image-section .image-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Slider Styles */
.image-slider {
    padding: 0px 0;
    background: #f8f9fa;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.slider-slide {
    min-width: calc(32.333% - 1rem) !important;
    flex: 0 0 calc(32.333% - 1rem) !important;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-slide img {
    width: 400px !important;
    height: 395px !important;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.slider-slide:hover img {
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 45% !important;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    padding: 0;
}

.slider-btn.prev {
    position: absolute;
    left: -5px;
    background: rgba(200, 200, 200, 0.9);
    color: #666666;
}

.slider-btn.next {
    position: absolute;
    right: -5px;
    background: #19365f;
    color: #ffffff;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #19365f;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    pointer-events: all;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.slider-btn.prev {
    background: rgba(200, 200, 200, 0.9);
    color: #666666;
}

.slider-btn.next {
    background: #19365f;
    color: #ffffff;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.slider-btn.prev:hover {
    background: rgba(180, 180, 180, 0.95);
    color: #333333;
}

.slider-btn.next:hover {
    background: #fbc213;
    color: #19365f;
}

.slider-btn:disabled {
    background: rgba(200, 200, 200, 0.5);
    color: #999999;
    cursor: not-allowed;
    transform: none;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.play-btn, .mute-btn {
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a365d;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.play-btn:hover, .mute-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.mute-btn {
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    font-size: 18px;
    position: static;
    transform: none;
}

/* Hide overlay when video is playing */
.video-wrapper.playing .video-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Show overlay on hover when playing */
.video-wrapper.playing:hover .video-overlay {
    opacity: 0.8;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
    
    .video-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .case-study-category {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .services-title {
        font-size: 1.3rem;
    }
    
    .services-list,
    .project-description {
        font-size: 1rem;
    }
    
    .video-section {
        padding: 40px 0;
    }
    
    .video-wrapper {
        border-radius: 15px;
    }
    
    .video-player {
        border-radius: 15px;
    }
    
    .play-btn, .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
        font-size: 18px;
    }
    
    .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
        font-size: 16px;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-logo {
        height: 250px;
    }
    
    .cta-logo img {
        max-width: 250px;
    }
    
    .slider-slide {
        min-width: calc(50% - 0.75rem);
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .slider-slide img {
        height: 250px;
        object-position: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .slider-btn.prev {
        left: -20px;
    }
    
    .slider-btn.next {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
        background-size: cover;
        background-position: center center;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .content-layout {
        gap: 2rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .services-title {
        font-size: 1.2rem;
    }
    
    .services-list,
    .project-description {
        font-size: 0.95rem;
    }
    
    .play-btn, .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
        font-size: 16px;
    }
    
    .mute-btn {
        width: clamp(35px, 6vw, 50px);
        height: clamp(35px, 6vw, 50px);
        font-size: 14px;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-outline {
        width: 200px;
        text-align: center;
    }
    
    .cta-logo {
        height: 200px;
    }
    
    .cta-logo img {
        max-width: 200px;
    }
    
    .slider-slide {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        gap: 0;
    }
    
    .slider-wrapper {
        gap: 0;
    }
    
    .slider-slide img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-position: center;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .slider-btn.prev {
        left: -15px;
    }
    
    .slider-btn.next {
        right: -15px;
    }
}

@media (max-width: 1536px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (max-width: 360px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .case-study-hero {
        height: 80vh;
        min-height: 100vh;
    }
    
    .case-study-hero-background {
        height: 100vh;
        min-height: 100vh;
    }
}


/* ========================================
   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;
}


/* ========================================
   VIMEO VIDEO CONTROLS
   ======================================== */

/* Vimeo Video Container */
.vimeo-video-container {
    position: relative;
    width: 100%;
    background: #000;
}

/* Hide Vimeo spinner and UI */
.vimeo-video-container iframe {
    pointer-events: auto;
}

.vimeo-video-container .vp-spinner,
.vimeo-video-container [class*="spinner"],
.vimeo-video-container [class*="loading"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Big Centered Play Button */
.vimeo-video-controls-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    transition: all 0.3s ease;
}

.vimeo-play-btn-big {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.vimeo-play-btn-big:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.vimeo-play-btn-big i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #19365f;
    margin-left: 5px; /* Optical alignment for play icon */
}

/* Bottom Video Controls */
.vimeo-video-controls-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 150;
    pointer-events: none;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

/* Small Play/Pause Button */
.vimeo-play-btn-small {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 160;
}

.vimeo-play-btn-small:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vimeo-play-btn-small i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.vimeo-play-btn-small.playing i {
    color: #27ae60;
}

.vimeo-play-btn-small.paused i {
    color: #e74c3c;
}

/* Volume Button */
.vimeo-volume-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 160;
}

.vimeo-volume-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vimeo-volume-btn i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.vimeo-volume-btn.muted i {
    color: #e74c3c;
}

.vimeo-volume-btn.unmuted i {
    color: #27ae60;
}

/* Vimeo Controls Responsive */
@media (max-width: 768px) {
    .vimeo-video-controls-bottom {
        gap: 0.8rem;
    }
    
    .vimeo-play-btn-big {
        width: clamp(70px, 15vw, 100px);
        height: clamp(70px, 15vw, 100px);
    }
    
    .vimeo-play-btn-big i {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .vimeo-play-btn-small,
    .vimeo-volume-btn {
        width: 45px;
        height: 45px;
    }
    
    .vimeo-play-btn-small i,
    .vimeo-volume-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vimeo-video-controls-bottom {
        bottom: 15px;
        right: 15px;
        gap: 0.6rem;
    }
    
    .vimeo-play-btn-big {
        width: clamp(60px, 15vw, 80px);
        height: clamp(60px, 15vw, 80px);
    }
    
    .vimeo-play-btn-big i {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .vimeo-play-btn-small,
    .vimeo-volume-btn {
        width: 40px;
        height: 40px;
    }
    
    .vimeo-play-btn-small i,
    .vimeo-volume-btn i {
        font-size: 0.9rem;
    }
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


/* ========================================
   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;
    }
}

