/* The Gym Group case study. Every rule is scoped under .gg-case-study. No font-family is set. */
.gg-case-study {
    --gg-bg: #03060f;
    --gg-card: #0a1a33;
    --gg-blue: #0B77C3;
    --gg-cyan: #36c6f0;
    --gg-line: rgba(11, 119, 195, .35);
    --gg-text: #fff;
    --gg-muted: #b9c8dc;
    background: radial-gradient(900px 500px at 85% -5%, rgba(11, 119, 195, .28), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(11, 119, 195, .14), transparent 60%), var(--gg-bg);
    color: var(--gg-muted);
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 30px;
}

.gg-case-study * {
    box-sizing: border-box
}

/* 30px gap between sections */
.gg-case-study>section,
.gg-case-study>header {
    padding: 0
}

.gg-case-study>header {
    padding-top: 30px
}

.gg-case-study>section {
    margin-top: 30px
}

/* typography (h1 to h3 only) */
.gg-case-study .gg-h1,
.gg-case-study .gg-h2,
.gg-case-study .gg-h3 {
    color: var(--gg-text);
    font-weight: 700;
    line-height: 1.2
}

.gg-case-study .gg-h1 {
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    letter-spacing: -.02em;
    margin-bottom: 22px
}

.gg-case-study .gg-h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin-bottom: 16px;
    letter-spacing: -.01em
}

.gg-case-study .gg-h3 {
    font-size: 1.15rem;
    margin: 0 0 10px
}

.gg-case-study .gg-hero-text,
.gg-case-study .gg-text {
    color: var(--gg-muted)
}

.gg-case-study .gg-hero-text {
    max-width: 560px;
    margin-bottom: 28px;
    font-size: 1.05rem
}

.gg-case-study .gg-lead {
    max-width: 760px;
    font-size: 1.05rem;
    margin-bottom: 36px
}

.gg-case-study .gg-text {
    margin-bottom: 0
}

.gg-case-study .gg-accent {
    color: var(--gg-cyan);
    font-size: 1.35rem
}

/* buttons */
.gg-case-study .gg-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px
}

.gg-case-study .gg-btn {
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 600;
    color: #fff;
    background: var(--gg-blue);
    border-color: var(--gg-blue);
    transition: transform .2s, box-shadow .2s, background .2s
}

.gg-case-study .gg-btn:hover {
    background: #0e86db;
    border-color: #0e86db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(11, 119, 195, .55)
}

.gg-case-study .gg-btn-ghost {
    background: transparent;
    border-color: var(--gg-line)
}

.gg-case-study .gg-btn-ghost:hover {
    background: rgba(11, 119, 195, .15);
    border-color: var(--gg-cyan)
}

.gg-case-study .gg-btn:focus,
.gg-case-study .gg-btn:focus-visible {
    outline: 2px solid var(--gg-cyan);
    outline-offset: 3px;
    box-shadow: none
}

/* image frames (aspect ratio kept, never stretched) */
.gg-case-study .gg-media {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--gg-line);
    overflow: hidden;
    background: linear-gradient(135deg, #0a2a52, #06142a 60%, #0b3b70);
    box-shadow: 0 0 60px rgba(11, 119, 195, .25)
}

.gg-case-study .gg-media-wide {
    aspect-ratio: 16/10
}

.gg-case-study .gg-media-logo {
    aspect-ratio: 16/10
}

.gg-case-study .gg-media-side {
    height: 100%;
    min-height: 300px;
    aspect-ratio: 8/9
}

.gg-case-study .gg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.gg-case-study .gg-media.gg-img-missing .gg-img {
    visibility: hidden
}

/* two-image frames: both images equal size, frame size equals the single-image frame */
.gg-case-study .gg-pair {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 16px
}

.gg-case-study .gg-pair-img {
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
    height: 100%;
    object-fit: contain;
    display: block
}

/* three phone screens, equal size, cropped at the bottom like the reference */
.gg-case-study .gg-media-trio {
    aspect-ratio: 2/1
}

.gg-case-study .gg-media-trio .gg-pair {
    padding: 24px 24px 0;
    gap: 20px
}

.gg-case-study .gg-media-trio .gg-pair-img {
    object-fit: cover;
    object-position: top center;
    border-radius: 18px 18px 0 0
}

/* meta strip, full width */
.gg-case-study .gg-meta {
    margin: 30px 0 0;
    border: 1px solid var(--gg-line);
    border-radius: 16px;
    background: rgba(10, 26, 51, .7);
    overflow: hidden
}

.gg-case-study .gg-meta-item {
    padding: 22px 24px;
    border-right: 1px solid var(--gg-line);
    border-bottom: 1px solid var(--gg-line);
    margin: 0
}

.gg-case-study .gg-meta dt {
    color: var(--gg-cyan);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px
}

.gg-case-study .gg-meta dd {
    margin: 0;
    color: #fff;
    font-weight: 500
}

/* cards */
.gg-case-study .gg-card {
    background: linear-gradient(160deg, rgba(14, 42, 82, .85), rgba(7, 18, 38, .95));
    border: 1px solid var(--gg-line);
    border-radius: 16px;
    transition: transform .25s, border-color .25s, box-shadow .25s
}

.gg-case-study .gg-card .card-body {
    padding: 28px
}

.gg-case-study .gg-card:hover {
    transform: translateY(-4px);
    border-color: var(--gg-cyan);
    box-shadow: 0 12px 36px rgba(11, 119, 195, .25)
}

.gg-case-study .gg-card-mid .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px
}

.gg-case-study .gg-card-mid:hover {
    transform: none
}

.gg-case-study .gg-card-mid .gg-h3 {
    font-size: 1.4rem
}

.gg-case-study .gg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(11, 119, 195, .25);
    border: 1px solid var(--gg-line);
    color: var(--gg-cyan);
    font-weight: 700
}

.gg-case-study .gg-num-solid {
    background: var(--gg-blue);
    color: #fff
}

.gg-case-study .gg-card-mid .gg-num {
    align-self: flex-start
}

/* tech logos */
.gg-case-study .gg-logo {
    flex: none;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gg-blue), #06427a);
    display: flex;
    align-items: center;
    justify-content: center
}

.gg-case-study .gg-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px
}

/* note + CTA */
.gg-case-study .gg-note {
    margin: 6px 0 0;
    padding: 16px 20px;
    border-left: 3px solid var(--gg-blue);
    background: rgba(11, 119, 195, .1);
    border-radius: 0 12px 12px 0;
    color: var(--gg-muted);
    font-size: .95rem
}

.gg-case-study .gg-cta {
    padding: 64px 28px;
    border-radius: 24px;
    border: 1px solid var(--gg-line);
    background: radial-gradient(600px 260px at 50% 0, rgba(11, 119, 195, .45), transparent 70%), linear-gradient(160deg, #0a2a52, #050d1d)
}

.gg-case-study .gg-cta .gg-text {
    max-width: 640px;
    margin-bottom: 28px
}

/* process connector line (desktop) */
.gg-case-study .gg-steps {
    position: relative
}

@media(min-width:1200px) {
    .gg-case-study .gg-steps::before {
        content: "";
        position: absolute;
        left: 6%;
        right: 6%;
        top: 48px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gg-blue), var(--gg-cyan), var(--gg-blue), transparent);
        opacity: .5
    }

    .gg-case-study .gg-steps .card {
        position: relative
    }
}

/* hero visual: dashboard behind, two phones overlapping on the right */
.gg-case-study .gg-hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10
}

.gg-case-study .gg-hero-visual img {
    position: absolute;
    display: block;
    height: auto;
    max-width: none
}

.gg-case-study .gg-hv-web {
    left: 0;
    top: 8%;
    width: 80%;
    border-radius: 12px;
    border: 1px solid var(--gg-line);
    box-shadow: 0 0 60px rgba(11, 119, 195, .35)
}

.gg-case-study .gg-hv-phone {
    width: 23%;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55))
}

.gg-case-study .gg-hv-phone-1 {
    left: 56%;
    top: 12%;
    z-index: 2
}

.gg-case-study .gg-hv-phone-2 {
    left: 77%;
    top: 3%;
    z-index: 3
}

/* responsive */
@media(min-width:992px) {
    .gg-case-study .gg-meta-item:nth-child(4n) {
        border-right: 0
    }

    .gg-case-study .gg-meta-item {
        border-bottom: 0
    }
}

@media(max-width:991.98px) {
    .gg-case-study .gg-meta-item:nth-child(2n) {
        border-right: 0
    }

    .gg-case-study .gg-meta-item:nth-last-child(-n+2) {
        border-bottom: 0
    }

    .gg-case-study .gg-media-side {
        min-height: 0;
        height: auto
    }
}

@media(max-width:575.98px) {
    .gg-case-study .gg-btn {
        width: 100%
    }

    .gg-case-study .gg-meta-item {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: 0
    }

    .gg-case-study .gg-meta-item:nth-last-child(2) {
        border-bottom: 1px solid var(--gg-line)
    }

    .gg-case-study .gg-cta {
        padding: 44px 20px
    }
}

@media(prefers-reduced-motion:reduce) {
    .gg-case-study * {
        transition: none !important
    }
}