.image_container {
    height: 45.563rem;
    width: 100%;
    max-width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: inherit;
    inset: 0;
    margin: auto; /* Add this */
    display: flex; /* Add this */
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
    background-color: #f4f6f8;
    flex: none;
    flex-wrap: nowrap;
    padding-top: 4rem;
}



.image_container2 {
    height: auto;
    width: 100%;
    max-width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: inherit;
    inset: 0;
    margin: auto; /* Add this */
    display: flex; /* Add this */
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
    flex: none;
    flex-wrap: nowrap;
}


.outer_container {
    opacity: 1;
    filter: blur(0px);
    will-change: auto;
    transform: none;
    object-position: center;
    display: flex; /* Add this */
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
    overflow: visible;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(
        180deg,
        rgba(227, 176, 41, 0.4) 0%,
        rgb(255, 255, 255) 52.298001126126124%,
        rgb(247, 235, 191) 100%
    );
    height: fit-content;
    max-height: 45.563rem;
    margin-bottom: 3rem;
}

.outer_container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    right: 50%;
    bottom: 50%;
    background: linear-gradient(
        180deg,
        rgba(227, 176, 41, 0.4) 0%,
        rgb(255, 255, 255) 52.298001126126124%,
        rgb(247, 235, 191) 100%
    );
    mix-blend-mode: overlay; /* This creates the overlay effect */
    z-index: 0; /* Place it behind the content */
}

.middle_container {
    flex: 0 0 auto;
    height: fit-content;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
    object-position: center;
    display: flex; /* Add this */
    justify-content: center; /* Add this */
    align-items: center; /* Add this */
    opacity: 80%;
}

.image_container img {
    max-width: 100%;
    max-height: 45.563rem;
    height: auto;
    display: block;
    object-position: center;
    object-fit: contain;
    overflow: clip;
    overflow-clip-margin: 594px;
}

.image-container-mini {
    width: 100%;
    margin: 2rem 0;  /* Optional: adds some vertical spacing */
}

.image_container-mini img {
    width: 100%;
    height: auto;  /* This maintains the aspect ratio */
    display: block;
}


.case-study-description {
    width: 53.75rem;
    margin: 0 auto;
}

.case-study-description h1 {
    font-family: "Sequelsans_med_disp";
    font-size: 3.5rem;
    line-height: 4rem;
    margin-bottom: 1rem;
    color: #3b3d41;
    letter-spacing: -0.01em;
}

.case-study-description h2 {
    font-family: "Sequelsans_book_disp";

    font-size: 3.5rem;
    line-height: 4rem;
    color: #3b3d41;
    letter-spacing: -0.26px;
}

.case-study-description h3 {
    font-family: "Sequelsans_book_disp";
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: .75rem;
    color: #a0a5ac;
}


.case-study-description h4 {
    font-family: "Sequelsans_book_disp";
    font-size: 2.25rem;
    line-height: 2.75rem;
    color: #3b3d41;
    margin-bottom: .5rem;
}

.case-study-description h5 {
    font-family: "Sequelsans_book_disp";
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #3b3d41;
    margin-bottom: .25rem;
}


.case-study-description-header h6 {
    font-family: "Sequelsans_book_body";
    font-size: .75rem;
    line-height: 1rem;
    color: #3b3d41;
}


 .case-study-description p {
    font-size: 1rem;
    line-height: 1.75rem;
    color: #3b3d41;
    font-family: "Sequelsans_book_body";
} 






.case-study-description-header {
    width: 44.25rem;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 3.5rem;
}

.case-study-description-header p {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #a0a5ac;
    font-family: "Sequelsans_book_head";
}


@media (max-width: 860px) {
    .case-study-description {
        width: 90%;
        padding: 2rem 1rem;
    }

    .case-study-description h1 {
        font-size: 2rem;
    }

    .case-study-description h2 {
        font-size: 3.5rem;
    }

    .case-study-description h3 {
        font-size: 1.25rem;
    }
}

.case-study-description ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    font-family: "Sequelsans_light_body";
    color: #323234;
}

.case-study-description li {
    font-size: 1rem;
    line-height: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: "Sequelsans_book_body";

}

.case-study-description blockquote {
    border-left: 4px solid #eee;
    padding-left: 1rem;
    margin: 2rem 0;
    color: #a0a5ac;
    font-family: "Sequelsans_book_obl_disp";
    font-size: 1.25rem;
}

.figma_container {
    width: 100%;
    height: 40vh; /* Using viewport height for better responsiveness */
    margin-bottom: 2rem;
}

.figma_container iframe {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f4f6f8;
}

@media (max-width: 860px) {
    .figma_container {
        height: 60vh;
    }
}




.figma_container2 {
    width: 100%;
    margin-bottom: 2rem;
    height: 8240px;
}

.figma_container2 iframe {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff
}

@media (max-width: 860px) {
    .figma_container2 {
        height: 60vh;
    }
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Case Study Template Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-study-header {
    background: linear-gradient(135deg, #6441A5 0%, #2A0845 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.problem-statement {
    background: #f9f9f9;
    padding: 4rem 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.metric .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #6441A5;
    margin-bottom: 1rem;
}

/* Animation */
.solution-card {
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .impact-metrics {
        grid-template-columns: 1fr;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.three-ws-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.col-left {
    width: 30%;
}

.col-right {
    width: 50%;  /* This will make it take less space */
}

/* Mobile responsiveness for case studies */
@media (max-width: 809px) {
    .image_container {
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        max-height: 30rem;
    }
    
    .outer_container {
        max-height: 30rem;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .image_container img {
        max-width: 65%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .case-study-description {
        width: 100%;
        padding: 0 1rem;
    }
    
    .case-study-description h1 {
        font-size: 2rem;
        line-height: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .case-study-description h2 {
        font-size: 1.75rem;
        line-height: 2rem !important; 
    }
    
    .case-study-description h3 {
        font-size: 1rem;
        line-height: 1.25rem;
    }
    
    .case-study-description h4 {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }
    
    .case-study-description-header {
        width: 100%;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .case-study-description-header p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .figma_container {
        height: 50vh;
    }
    
    .figma_container2 {
        height: 400px !important; /* Override the very tall height */
        margin-top: 1rem;
    }
    
    blockquote {
        margin: 1.5rem 0;
        padding: 0.75rem .25rem;
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .video-container {
        margin: 1rem 0;
    }
    
    .image_container2 img,
    .image-container-mini img {
        max-width: 100%;
        height: auto;
    }
    
    .case-study-description {
        margin-bottom: .5rem;
    }
    
    .case-study-description p,
    .case-study-description li {
        font-size: .875rem !important;
        line-height: 1.5rem !important;
    }
    
    [style*="position: absolute"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    [style*="height: 27.5rem"] {
        height: auto !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .image_container {
        max-height: 20rem;
    }

    .image-container-mini {
        width: 100%;
        margin: .25rem 0;  /* Optional: adds some vertical spacing */
    }
    
    .outer_container {
        max-height: 20rem;
    }
    
    .case-study-description h1 {
        font-size: 1.75rem;
        line-height: 2rem;
    }
    
    .case-study-description h2 {
        font-size: 1.5rem;
        line-height: 1.825rem !important;
    }
    
    .case-study-description h4 {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }
    
    .figma_container {
        height: 40vh;
    }
    
    .figma_container2 {
        height: 900px !important;
    }
    
    .case-study-description h1 {
        font-size: 1.5rem !important;
        line-height: 1.8rem !important;
    }
    
    .case-study-description h3 {
        font-size: 1.125rem !important;
        line-height: 1.3rem !important;
    }
    
    .case-study-description h4 {
        font-size: 1.2rem !important;
        line-height: 1.5rem !important;
    }

    .case-study-description h5 {
        font-size: .9rem !important;
        line-height: 1.2rem !important;
    }
    
    .case-study-description {
        padding: 0 0.25rem !important;
        margin-bottom: .5rem;
    }
    
    .mobile-nav-links a {
        padding: 0.5rem;
    }
    
    .mobile-footer-links a {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 809px) {
  .case-study-description blockquote {
    font-size: 1rem;
    padding-left: 0.75rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
    margin: 0rem 0rem;
  }
}

/* Desktop/Mobile visibility classes for iterations */
.iterations_desktop {
    display: block;
}

.iterations_mobile {
    display: none;
}

@media (max-width: 809px) {
    .iterations_desktop {
        display: none !important;
    }
    
    .iterations_mobile {
        display: block !important;
    }
    
    /* Additional styling for mobile iterations */
    .iterations_mobile .about-mobile-sections {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .iterations_mobile .about-mobile-section {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .iterations_mobile .about-mobile-image {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .iterations_mobile .twitch-mobile-images {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .iterations_mobile .twitch-mobile-images img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }
}

@media (min-width: 809px) {
    .iterations_desktop {
        display: block !important;
    }
    
    .iterations_mobile {
        display: none !important;
    }
}

/* Add these rules to the existing media queries */
.final_desktop {
    display: block !important;
}

.final_mobile {
    display: none !important;
}

@media (max-width: 809px) {
    .final_desktop {
        display: none !important;
    }
    
    .final_mobile {
        display: block !important;
    }
    
    
}