/*
 * Responsive Overrides Overview
 * -----------------------------
 * This file contains breakpoint-based overrides for tablet and mobile layouts.
 * It loads last so media-query adjustments can safely override desktop defaults.
 *
 * Breakpoints currently covered:
 * - max-width: 950px
 * - max-width: 610px
 *
 * The 850px casecard-back visibility swap remains in the layout file to
 * preserve original cascade position from the legacy stylesheet.
 */

/* ============================================ */
/*                 Responsive                  */
/* ============================================ */

@media only screen and (max-width: 950px) {
    /* Tablet-to-mobile transition:
       collapse desktop side-by-side layout into stacked sections and keep
       widths bounded so content remains readable without horizontal overflow. */
    .hero-section {
        flex-direction: column;
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 600px;
        margin: 4rem auto;
        box-sizing: border-box;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 2rem;
        box-sizing: border-box;

    }
    
.hero-nav-img {
    height: clamp(24px, 4.5vw, 32px);
    width: clamp(24px, 4.5vw, 32px);
}

    .video-box-wrapper {
        padding: 20px 20px 0 20px !important;
    }

    .video-box {
        width: 100%;
        max-width: 500px !important;
        box-sizing: border-box;
        max-height: none;
        align-self: center;
        padding: 0;

    }

    .card.gamecard .gamecard-game-title{
        display:none;
    }
    

    .video-text {
        font-size: 24pt;
    }
    
    .icon-container {
        width: 90%;
    }
    
    .gamecard-links-container {
        gap: 1rem;
        width: 100%;
        margin-top: 0;
    }
    


    
     .firsttable {
      width: 55% !important;
      transform: translateX(10px);
      min-width: 300px;
    }

    .card {
        flex-direction: column !important;
        padding: 1rem 1.5rem;
        width: 90%;
    }

    .case-study-container {
        width: 100%;
    }

    .role-container {
        width: 100%;
    }

    .card.gamecard {
    text-align: center;
    gap: 0.5rem;
    max-width: 500px;
    width: 80%;
    }

    .gamecard-text {
        width:80%;
        align-self:center;
    }

    .gamecard-image-container {
        width: 90%;
    }

    .card.rolecard {
        width:80%;
        max-width: 600px;
        padding: 1rem 0rem;
    }

    .card.casecard {
        display: flex;
        flex-direction: column !important;
        padding: 1rem 0rem;
        width: 90%;
        max-width: 700px;
    }

    .card.casecard.flipped {
        flex-direction: column !important;
    }

    .casecard-content {
        width: 90% !important;
        align-self:center;
    }
    
    .video-box-wrapper-content {
        width: 90% !important;
    }

    .gamecard-image-container {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
        justify-content: center;
    }

    .gamecard-top {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .gamecard-bottom {
        flex-direction: column;
        align-items: center;

    }

    .gamecard-bottom-left {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gamecard-bottom-right {
        width: 100%;
    }

    .gamecard-platform-mobile {
        display: block;
    }

    .gamecard-platform-desktop {
        display: none;
    }
    
    .gamecard-picture {
        max-width: 100%;
        height: auto;
    }
    
    .gamecard-picture img {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

.gamecard-caselinks {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap:10px;
    padding-top:20px;
}

    .game-note {
        width: 21rem !important;
    }

}

@media only screen and (max-width: 610px) {
    /* Final small-phone adjustments for the case-study navigation area. */
    .casecard-back {
        flex-direction: column;
        align-items: center;
    }
    
    .casecard-back a {
        width: auto;
        min-width: auto;
    }
}
