/* === GrandLiga Homepage Hero Shell + Our Services — approved redesign 2026-08-18 === */
/* File: grandliga-home-redesign.css | build: v2-cachefix */

/*
 * IMPORTANT:
 * - Hero inner ACF content, its images and its existing typography/background rules are not replaced here.
 * - This block adds only the shared 1420px outer shell + jurisdiction rail treatment.
 * - Our Services uses the existing ACF titles/descriptions and existing checkbox functionality.
 */

.gl-home-hero-shell,
.gl-home-services {
    --gl-home-navy: #19374e;
    --gl-home-dark: #12273a;
    --gl-home-teal: #238174;
    --gl-home-teal-dark: #196960;
    --gl-home-muted: #677584;
    --gl-home-line: #d8e0e8;
    --gl-home-soft: #f6f9fb;
    --gl-home-card: #ffffff;
    box-sizing: border-box;
    width: min(1420px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* ---------- FIRST BLOCK: OUTER CONSTRUCTION ONLY ---------- */

.gl-home-hero-shell {
    margin-top: 42px;
    margin-bottom: 54px;
    background: transparent;
    border: 1px solid var(--gl-home-line);
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(20, 43, 63, 0.10);
    overflow: hidden;
}

/* Do not redesign the existing hero interior. */
.gl-home-hero-shell .main_screen {
    margin: 0;
    border: 0;
}

/* Keep the current theme wrapper/content geometry inside the new 1420px shell. */
.gl-home-hero-shell .main_screen > .wrapper {
    margin-left: auto;
    margin-right: auto;
}

/* Existing ACF jurisdiction ticker, visually packed into the bottom rail. */
.gl-home-hero-shell .debt_collection {
    position: relative;
    z-index: 3;
    margin: 0 26px 24px;
    background: var(--gl-home-card);
    border: 1px solid var(--gl-home-line);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(20, 43, 63, 0.08);
    overflow: hidden;
}

.gl-home-hero-shell .debt_collection .slider_debt {
    margin: 0;
}

.gl-home-hero-shell .debt_collection .slick-track {
    display: flex;
    align-items: stretch;
}

.gl-home-hero-shell .debt_collection .slick-slide {
    float: none;
    height: auto;
}

.gl-home-hero-shell .debt_collection .slider_block {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 74px;
    margin: 0;
    padding: 17px 28px;
    column-gap: 12px;
    white-space: nowrap;
    border-right: 1px solid #e3eaef;
}

.gl-home-hero-shell .debt_collection .slider_block img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.gl-home-hero-shell .debt_collection .slider_block span {
    width: auto;
    flex: 0 0 auto;
    color: var(--gl-home-navy);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

/* ---------- OUR SERVICES ---------- */

.gl-home-services {
    position: relative;
    margin-top: 0;
    margin-bottom: 62px;
    padding: 50px 44px 54px;
    background: var(--gl-home-card);
    border: 1px solid var(--gl-home-line);
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(20, 43, 63, 0.10);
    overflow: hidden;
}

/* The old decorative service logo is not part of the approved layout. */
.gl-home-services > .logo {
    display: none;
}

.gl-home-services > .wrapper {
    max-width: 1320px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    z-index: 2;
}

.gl-home-services h2.title {
    margin: 0;
    padding: 0 0 34px;
    color: var(--gl-home-navy);
    font-size: 34px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
}

.gl-home-services h2.title span {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.gl-home-services h2.title::after {
    content: "";
    display: block;
    width: 66px;
    height: 3px;
    margin: 15px auto 0;
    background: linear-gradient(
        to right,
        var(--gl-home-navy) 0,
        var(--gl-home-navy) 58%,
        transparent 58%,
        transparent 64%,
        var(--gl-home-teal) 64%,
        var(--gl-home-teal) 100%
    );
}

.gl-home-services .block {
    margin: 0;
}

.gl-home-services .block_services {
    counter-reset: gl-service;
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    color: var(--gl-home-muted);
}

.gl-home-services .block_services > .gl-service-item {
    counter-increment: gl-service;
    width: 100%;
}

/* Keep the existing checkbox behavior; only the visual state changes. */
.gl-home-services .block_services > .gl-service-item > input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.gl-home-services .block_services label {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 58px;
    padding: 11px 14px 11px 18px;
    padding-right: 14px;
    color: var(--gl-home-navy);
    background: #fbfdfe;
    border: 1px solid var(--gl-home-line);
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.gl-home-services .block_services label::before {
    content: counter(gl-service, decimal-leading-zero);
    display: flex;
    align-items: center;
    align-self: stretch;
    color: var(--gl-home-teal);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    border-right: 1px solid #dfe8ec;
}

.gl-home-services .block_services label::after {
    content: "+";
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 25px;
    height: 25px;
    margin: 0;
    color: var(--gl-home-teal);
    background: #ffffff;
    border: 1.5px solid var(--gl-home-teal);
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    font-weight: 400;
    transform: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.gl-home-services .block_services label span {
    min-width: 0;
    padding: 0 18px;
    color: inherit;
    font-size: 17px;
    line-height: 1.28;
    font-weight: 600;
}

.gl-home-services .block_services label:hover {
    border-color: rgba(35, 129, 116, 0.42);
}

.gl-home-services .block_services input:focus-visible + label {
    outline: 2px solid var(--gl-home-teal);
    outline-offset: 3px;
}

/* Approved active-row soft highlight / ring. */
.gl-home-services .block_services input:checked + label {
    color: var(--gl-home-navy);
    background: #f7fcfb;
    border-color: #bfe0da;
    border-radius: 12px 12px 0 0;
    box-shadow:
        0 0 0 3px rgba(35, 129, 116, 0.07),
        0 6px 16px rgba(20, 43, 63, 0.04);
}

.gl-home-services .block_services input:checked + label::after {
    content: "−";
    color: var(--gl-home-teal-dark);
    background: #ffffff;
    border-color: #a9d6cf;
    transform: none;
}

/* White readable content area + very soft contour + left teal stripe. */
.gl-home-services .block_services .services_desc {
    position: relative;
    max-width: none;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0 26px 0 48px;
    overflow: hidden;
    color: var(--gl-home-muted);
    background: #ffffff;
    border: 0 solid #e6eef1;
    border-radius: 0 0 12px 12px;
    font-size: 15px;
    line-height: 1.55;
    transition:
        max-height 0.28s ease,
        padding-top 0.28s ease,
        padding-bottom 0.28s ease,
        border-width 0.18s ease;
}

.gl-home-services .block_services .services_desc::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: var(--gl-home-teal);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gl-home-services .block_services .services_desc p {
    margin: 0;
    color: inherit;
    white-space: pre-line;
}

.gl-home-services .block_services input:checked ~ .services_desc {
    max-height: 1200px;
    padding-top: 20px;
    padding-bottom: 22px;
    border-width: 0 1px 1px;
}

.gl-home-services .block_services input:checked ~ .services_desc::before {
    opacity: 1;
}

/* Preserve any existing list markup if it is already stored in ACF. */
.gl-home-services .block_services .services_desc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-home-services .block_services .services_desc ul li {
    position: relative;
    padding-left: 0;
    margin-top: 8px;
}

.gl-home-services .block_services .services_desc ul li:first-child {
    margin-top: 0;
}

.gl-home-services .block_services .services_desc ul li::before {
    display: none;
}

/* ---------- SHARED RESPONSIVE WIDTH: MATCH GUIDE HUB ---------- */

@media (max-width: 1180px) {
    .gl-home-hero-shell,
    .gl-home-services {
        width: min(calc(100% - 28px), 1040px);
    }

    .gl-home-services {
        padding: 42px 30px 46px;
    }

    .gl-home-services h2.title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .gl-home-hero-shell,
    .gl-home-services {
        width: calc(100% - 24px);
    }

    /* Mobile hero: only the approved outer contour + current content + ticker.
       No replacement text, no new image, no new inner visual styling. */
    .gl-home-hero-shell {
        margin-top: 24px;
        margin-bottom: 34px;
        border-radius: 22px;
        box-shadow: 0 10px 26px rgba(20, 43, 63, 0.09);
    }

    .gl-home-hero-shell .debt_collection {
        margin: 0 10px 12px;
        border-radius: 16px;
    }

    .gl-home-hero-shell .debt_collection .slider_block {
        min-height: 58px;
        padding: 12px 16px;
        column-gap: 9px;
    }

    .gl-home-hero-shell .debt_collection .slider_block img {
        width: 28px;
        height: 28px;
    }

    .gl-home-hero-shell .debt_collection .slider_block span {
        font-size: 13px;
    }

    .gl-home-services {
        margin-bottom: 42px;
        padding: 30px 12px 28px;
        border-radius: 22px;
        box-shadow: 0 10px 26px rgba(20, 43, 63, 0.09);
    }

    .gl-home-services > .wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .gl-home-services h2.title {
        padding-bottom: 25px;
        font-size: 24px;
        line-height: 1.2;
        font-weight: 600;
    }

    .gl-home-services h2.title::after {
        width: 52px;
        height: 2px;
        margin-top: 11px;
    }

    .gl-home-services .block_services {
        row-gap: 7px;
    }

    .gl-home-services .block_services label {
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        min-height: 52px;
        padding: 9px 10px 9px 12px;
        border-radius: 10px;
    }

    .gl-home-services .block_services label::before {
        font-size: 11px;
    }

    .gl-home-services .block_services label::after {
        width: 21px;
        height: 21px;
        font-size: 16px;
    }

    .gl-home-services .block_services label span {
        padding: 0 10px;
        font-size: 13px;
        line-height: 1.22;
        font-weight: 600;
    }

    .gl-home-services .block_services input:checked + label {
        border-radius: 10px 10px 0 0;
        box-shadow:
            0 0 0 2px rgba(35, 129, 116, 0.07),
            0 4px 12px rgba(20, 43, 63, 0.035);
    }

    .gl-home-services .block_services .services_desc {
        padding-left: 31px;
        padding-right: 12px;
        border-radius: 0 0 10px 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .gl-home-services .block_services .services_desc::before {
        left: 13px;
        top: 14px;
        bottom: 14px;
        width: 3px;
    }

    .gl-home-services .block_services input:checked ~ .services_desc {
        padding-top: 15px;
        padding-bottom: 17px;
    }
}

@media (max-width: 420px) {
    .gl-home-services {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gl-home-services .block_services label {
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        padding-left: 10px;
        padding-right: 9px;
    }

    .gl-home-services .block_services label span {
        padding-left: 9px;
        padding-right: 8px;
        font-size: 12.5px;
    }
}

/* === GrandLiga Homepage refinement v3 — typography, checks, accordion response, mobile spacing === */

/*
 * Refinement based on stage screenshots:
 * 1) Restore the original GrandLiga typography scale for hero/ticker and services.
 * 2) Remove the heavy font weight from accordion titles/body.
 * 3) Restore check-circle bullets in service lists.
 * 4) Move the vertical teal stripe away from text.
 * 5) Make accordion opening immediate and responsive (no slow max-height animation).
 * 6) Replace text +/- symbols with crisp CSS-drawn controls.
 * 7) Fix the mobile gap between Hero and Our Services and raise the section heading.
 */

/* Keep the original site typeface everywhere in these two blocks. */
.gl-home-hero-shell,
.gl-home-services {
    font-family: inherit;
}

/* ---------- FIRST BLOCK: preserve original typography ---------- */

/* Do not change title/list typography inside the hero. */
.gl-home-hero-shell .main_screen,
.gl-home-hero-shell .main_screen h1,
.gl-home-hero-shell .main_screen h1 span,
.gl-home-hero-shell .main_screen .content,
.gl-home-hero-shell .main_screen .content li {
    font-family: inherit;
}

/* Restore the original ticker type scale/weight from the theme. */
.gl-home-hero-shell .debt_collection .slider_block {
    font-size: 1em;
}

.gl-home-hero-shell .debt_collection .slider_block span {
    width: auto;
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.31;
}

/* ---------- OUR SERVICES: typography ---------- */

.gl-home-services h2.title {
    font-size: 1em;
    line-height: 1.3;
    font-weight: bold;
}

.gl-home-services h2.title span {
    font-size: 1.8em;
    line-height: 1.3;
    font-weight: inherit;
}

/* Same title scale as the previous/original accordion, without the new heavy weight. */
.gl-home-services .block_services label {
    font-family: inherit;
    font-size: 1em;
}

.gl-home-services .block_services label span {
    font-family: inherit;
    font-size: 1.1em;
    line-height: 1.28;
    font-weight: 400;
}

/* Numbering: clean, restrained and aligned. */
.gl-home-services .block_services label::before {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

/* Expanded text: restore the previous readable size and normal weight. */
.gl-home-services .block_services .services_desc {
    max-height: 0;
    opacity: 0;
    padding-left: 58px;
    padding-right: 30px;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.5em;
    font-weight: 400;
    transition: opacity 0.12s ease-out;
}

/* Put the stripe comfortably away from the text and checkmarks. */
.gl-home-services .block_services .services_desc::before {
    left: 21px;
    width: 3px;
}

/* Fast open/close: no long max-height interpolation. */
.gl-home-services .block_services input:checked ~ .services_desc {
    max-height: none;
    opacity: 1;
    padding-top: 20px;
    padding-bottom: 22px;
}

/* Restore the original check-circle visual for list items. */
.gl-home-services .block_services .services_desc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-home-services .block_services .services_desc ul li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 30px;
    font-weight: 400;
}

.gl-home-services .block_services .services_desc ul li:last-child {
    margin-bottom: 0;
}

.gl-home-services .block_services .services_desc ul li::before {
    content: "";
    display: block !important;
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 18px;
    height: 18px;
    background: url(img/check-circle.png) no-repeat center / contain;
}

/* Plain paragraphs stay plain — no invented bullets. */
.gl-home-services .block_services .services_desc p {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
}

/* ---------- PREMIUM CRISP +/- CONTROL ---------- */

.gl-home-services .block_services label::after {
    content: "";
    width: 28px;
    height: 28px;
    border: 1px solid rgba(35, 129, 116, 0.88);
    border-radius: 50%;
    background-color: #ffffff;
    background-image:
        linear-gradient(var(--gl-home-teal), var(--gl-home-teal)),
        linear-gradient(var(--gl-home-teal), var(--gl-home-teal));
    background-repeat: no-repeat;
    background-position: center, center;
    background-size: 10px 1.5px, 1.5px 10px;
    box-shadow:
        0 1px 2px rgba(20, 43, 63, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85);
    transform: none;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease,
        background-size 0.12s ease;
}

.gl-home-services .block_services input:checked + label::after {
    content: "";
    background-image:
        linear-gradient(var(--gl-home-teal-dark), var(--gl-home-teal-dark)),
        linear-gradient(var(--gl-home-teal-dark), var(--gl-home-teal-dark));
    background-size: 10px 1.5px, 0 0;
    border-color: rgba(35, 129, 116, 0.55);
    transform: none;
    box-shadow:
        0 1px 3px rgba(20, 43, 63, 0.05),
        0 0 0 3px rgba(35, 129, 116, 0.045);
}

/* Avoid sticky mobile :hover highlighting. */
.gl-home-services .block_services label:hover {
    border-color: var(--gl-home-line);
}

@media (hover: hover) and (pointer: fine) {
    .gl-home-services .block_services label:hover {
        border-color: rgba(35, 129, 116, 0.42);
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
    /* Explicit separation so the two rounded containers never visually overlap. */
    .gl-home-hero-shell {
        margin-bottom: 20px !important;
    }

    .gl-home-services {
        clear: both;
        margin-top: 0 !important;
        padding-top: 16px;
    }

    /* Raise heading closer to the start of the services container. */
    .gl-home-services h2.title {
        padding-top: 0;
        padding-bottom: 20px;
    }

    /* Use the original mobile accordion sizing instead of the smaller redesign sizing. */
    .gl-home-services .block_services label {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        min-height: 58px;
        padding: 10px 12px;
        font-size: 0.82em;
    }

    .gl-home-services .block_services label span {
        padding-left: 12px;
        padding-right: 10px;
        font-size: 1.1em;
        line-height: 1.28;
        font-weight: 400;
    }

    .gl-home-services .block_services label::before {
        font-size: 12px;
        font-weight: 500;
    }

    .gl-home-services .block_services label::after {
        width: 26px;
        height: 26px;
        background-size: 10px 1.5px, 1.5px 10px;
    }

    .gl-home-services .block_services input:checked + label::after {
        background-size: 10px 1.5px, 0 0;
    }

    .gl-home-services .block_services .services_desc {
        padding-left: 48px;
        padding-right: 16px;
        font-size: 0.8em;
        line-height: 1.5em;
    }

    .gl-home-services .block_services .services_desc::before {
        left: 17px;
        top: 16px;
        bottom: 16px;
        width: 3px;
    }

    .gl-home-services .block_services input:checked ~ .services_desc {
        padding-top: 17px;
        padding-bottom: 18px;
    }

    .gl-home-services .block_services .services_desc ul li {
        margin-bottom: 8px;
        padding-left: 26px;
    }

    .gl-home-services .block_services .services_desc ul li::before {
        width: 16px;
        height: 16px;
        top: 0.2em;
    }

    /* Restore the original ticker typography on mobile too. */
    .gl-home-hero-shell .debt_collection .slider_block {
        font-size: 0.8em;
    }

    .gl-home-hero-shell .debt_collection .slider_block span {
        font-size: 0.8em;
        font-weight: 600;
    }
}

@media (max-width: 600px) {
    /* Same section heading scale as the original theme. */
    .gl-home-services h2.title {
        font-size: 0.8em;
    }

    .gl-home-services h2.title span {
        font-size: 1.8em;
    }
}

@media (max-width: 479px) {
    .gl-home-services h2.title {
        font-size: 0.7em;
    }

    .gl-home-services h2.title span {
        font-size: 1.8em;
    }

    .gl-home-services .block_services label {
        grid-template-columns: 40px minmax(0, 1fr) 28px;
        min-height: 56px;
        padding-left: 11px;
        padding-right: 10px;
        font-size: 0.73em;
    }

    .gl-home-services .block_services label span {
        padding-left: 11px;
        padding-right: 8px;
        font-size: 1.1em;
        line-height: 1.28;
        font-weight: 400;
    }

    .gl-home-services .block_services label::after {
        width: 25px;
        height: 25px;
    }

    .gl-home-services .block_services .services_desc {
        padding-left: 46px;
        padding-right: 14px;
        font-size: 0.7em;
        line-height: 1.5em;
    }

    .gl-home-services .block_services .services_desc::before {
        left: 16px;
    }
}

/* === GrandLiga Homepage refinement v4 — original icon/accordion behavior + spacing === */

/*
 * This patch restores the original accordion interaction logic and the original
 * service-control asset, while keeping the approved light visual shell.
 */

/* 1) Numbers: scale them to the restored title size. */
.gl-home-services .block_services label::before {
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* 2) Use the ORIGINAL theme icon shape (img/icon-services-label.png).
 * Mask keeps the exact original silhouette but recolors it cleanly in teal
 * so it works on the new light background.
 */
.gl-home-services .block_services label::after {
    content: "";
    display: block;
    position: static;
    justify-self: end;
    width: 1.8em;
    height: 1.85em;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--gl-home-teal);
    background-image: none;
    -webkit-mask: url(img/icon-services-label.png) no-repeat center / contain;
    mask: url(img/icon-services-label.png) no-repeat center / contain;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

/* Original interaction: plus rotates by 45deg and becomes a clear X. */
.gl-home-services .block_services input:checked + label::after {
    content: "";
    background: var(--gl-home-teal-dark);
    background-image: none;
    border: 0;
    box-shadow: none;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* 3) Restore the old accordion opening mechanism:
 * no slow max-height interpolation / no opacity lag.
 * The previous theme switched max-height directly and animated only the icon.
 */
.gl-home-services .block_services .services_desc {
    max-height: 0;
    opacity: 1;
    overflow: hidden;
    transition: none;
    -webkit-transition: none;
}

.gl-home-services .block_services input:checked ~ .services_desc {
    max-height: -webkit-max-content;
    max-height: -moz-max-content;
    max-height: max-content;
    opacity: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 4) Give the teal vertical line its own visual lane.
 * Text/checkmarks are shifted independently so they can never overlap the line.
 */
.gl-home-services .block_services .services_desc {
    padding-left: 20px;
    padding-right: 28px;
}

.gl-home-services .block_services .services_desc::before {
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 3px;
}

.gl-home-services .block_services .services_desc > p,
.gl-home-services .block_services .services_desc > ul,
.gl-home-services .block_services .services_desc > ol {
    margin-left: 34px;
    margin-right: 0;
}

.gl-home-services .block_services .services_desc ul {
    padding-left: 0;
}

/* Existing check-circle bullets stay aligned inside the text lane. */
.gl-home-services .block_services .services_desc ul li {
    padding-left: 1.5em;
}

.gl-home-services .block_services .services_desc ul li::before {
    left: 0;
}

/* Keep the active row soft and premium; do not turn the control into a filled dot. */
.gl-home-services .block_services input:checked + label {
    box-shadow:
        0 0 0 2px rgba(35, 129, 116, 0.06),
        0 4px 12px rgba(20, 43, 63, 0.035);
}

@media (max-width: 767px) {
    .gl-home-services .block_services label::before {
        font-size: 15px;
    }

    .gl-home-services .block_services label::after {
        width: 1.8em;
        height: 1.85em;
    }

    .gl-home-services .block_services .services_desc {
        padding-left: 16px;
        padding-right: 14px;
    }

    .gl-home-services .block_services .services_desc::before {
        left: 14px;
        top: 15px;
        bottom: 15px;
        width: 3px;
    }

    .gl-home-services .block_services .services_desc > p,
    .gl-home-services .block_services .services_desc > ul,
    .gl-home-services .block_services .services_desc > ol {
        margin-left: 31px;
    }

    .gl-home-services .block_services input:checked ~ .services_desc {
        padding-top: 16px;
        padding-bottom: 17px;
    }
}

@media (max-width: 479px) {
    .gl-home-services .block_services label::before {
        font-size: 14px;
    }

    .gl-home-services .block_services .services_desc > p,
    .gl-home-services .block_services .services_desc > ul,
    .gl-home-services .block_services .services_desc > ol {
        margin-left: 29px;
    }
}

/* === GrandLiga Homepage refinement v5 — underline, numbering, ticker step, mobile heading, vector checks === */

/* 1) OUR SERVICES underline: navy and teal parts touch each other — no gap. */
.gl-home-services h2.title::after {
    background: linear-gradient(
        to right,
        var(--gl-home-navy) 0,
        var(--gl-home-navy) 62%,
        var(--gl-home-teal) 62%,
        var(--gl-home-teal) 100%
    );
}

/* 2) Numbering: stronger, closer to the approved prototype. */
.gl-home-services .block_services label::before {
    font-weight: 700;
}

/* 3) Ticker "step": keep the current horizontal inset,
 * but let the rail overlap / protrude below the hero contour.
 */
.gl-home-hero-shell {
    overflow: visible;
}

.gl-home-hero-shell .main_screen {
    overflow: hidden;
    border-radius: 27px 27px 0 0;
}

.gl-home-hero-shell .debt_collection {
    margin-bottom: 0;
    transform: translateY(18px);
    -webkit-transform: translateY(18px);
}

/* 4) Crisp vector checkmarks in expanded service content.
 * SVG remains sharp on Retina/mobile and does not depend on the old raster PNG.
 */
.gl-home-services .block_services .services_desc ul li::before {
    width: 18px;
    height: 18px;
    top: 0.18em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='7.6' fill='white' stroke='%23238174' stroke-width='1.4'/%3E%3Cpath d='M5.7 9.1 8 11.3l4.5-4.8' stroke='%23238174' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

/* 5) Mobile: same ticker step, and move OUR SERVICES noticeably closer
 * to the top edge of its container.
 */
@media (max-width: 767px) {
    .gl-home-hero-shell {
        margin-bottom: 20px !important;
    }

    .gl-home-hero-shell .debt_collection {
        margin-bottom: 0;
        transform: translateY(12px);
        -webkit-transform: translateY(12px);
    }

    .gl-home-services {
        padding-top: 6px !important;
    }

    .gl-home-services > .wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .gl-home-services > .wrapper > h2.title {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 18px !important;
    }

    .gl-home-services .block_services .services_desc ul li::before {
        width: 17px;
        height: 17px;
        background-size: 17px 17px;
    }
}

@media (max-width: 479px) {
    .gl-home-services {
        padding-top: 4px !important;
    }

    .gl-home-services > .wrapper > h2.title {
        padding-bottom: 16px !important;
    }
}

/* === GrandLiga Homepage refinement v6 — compact hero, robust flags, vector checks & accordion control === */

/*
 * 1. Keep the approved 1420px width.
 * 2. Remove the extra vertical gap introduced by the protruding ticker:
 *    its visual top stays close to the hero content while its bottom still protrudes.
 * 3. Replace raster checklist and accordion controls with crisp vector SVG.
 */

/* ---------- FIRST BLOCK: reduce only vertical empty space ---------- */

.gl-home-hero-shell .main_screen {
    padding-bottom: 6px;
}

.gl-home-hero-shell .main_screen > .wrapper {
    padding-bottom: 0.75em;
}

/* Compensate the downward visual offset so no blank strip appears above the ticker. */
.gl-home-hero-shell .debt_collection {
    margin-top: -18px;
    transform: translateY(18px);
    -webkit-transform: translateY(18px);
}

/* Crisp vector checks in the EXISTING hero list; text/layout are unchanged. */
.gl-home-hero-shell .main_screen .content ul li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.25' fill='white' stroke='%23238174' stroke-width='1.5'/%3E%3Cpath d='M6.4 10.1 8.8 12.4 13.8 7.2' stroke='%23238174' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ---------- OUR SERVICES: crisp vector +/- ---------- */

/*
 * Use one SVG plus and rotate the entire icon 45deg on open.
 * This preserves the previous familiar plus -> X interaction, but without raster blur.
 */
.gl-home-services .block_services label::after {
    content: "";
    display: block;
    position: static;
    justify-self: end;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Ccircle cx='15' cy='15' r='12.8' fill='white' stroke='%23238174' stroke-width='1.45'/%3E%3Cpath d='M15 9.3v11.4M9.3 15h11.4' stroke='%23238174' stroke-width='1.65' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    -webkit-mask: none;
    mask: none;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

.gl-home-services .block_services input:checked + label::after {
    content: "";
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Ccircle cx='15' cy='15' r='12.8' fill='white' stroke='%23238174' stroke-width='1.45'/%3E%3Cpath d='M15 9.3v11.4M9.3 15h11.4' stroke='%23238174' stroke-width='1.65' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    -webkit-mask: none;
    mask: none;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    box-shadow: none;
}

/* Keep service-content checks vector and crisp as well. */
.gl-home-services .block_services .services_desc ul li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.25' fill='white' stroke='%23238174' stroke-width='1.5'/%3E%3Cpath d='M6.4 10.1 8.8 12.4 13.8 7.2' stroke='%23238174' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* A normalized class is added by PHP for flag images. */
.gl-home-hero-shell .debt_collection .gl-debt-flag {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
    .gl-home-hero-shell .main_screen {
        padding-bottom: 4px;
    }

    .gl-home-hero-shell .main_screen > .wrapper {
        padding-bottom: 0.45em;
    }

    /* Same step effect without creating a white gap above the rail. */
    .gl-home-hero-shell .debt_collection {
        margin-top: -12px;
        transform: translateY(12px);
        -webkit-transform: translateY(12px);
    }

    .gl-home-services .block_services label::after,
    .gl-home-services .block_services input:checked + label::after {
        width: 28px;
        height: 28px;
        background-size: 28px 28px;
    }
}

@media (max-width: 479px) {
    .gl-home-services .block_services label::after,
    .gl-home-services .block_services input:checked + label::after {
        width: 27px;
        height: 27px;
        background-size: 27px 27px;
    }
}

/* === GrandLiga Homepage refinement v7 — fallback flags + services heading offsets === */

/* Desktop: bring OUR SERVICES slightly closer to the top of its container. */
@media (min-width: 768px) {
    .gl-home-services {
        padding-top: 42px;
    }
}

/* Emoji fallback is shown only when an ACF flag image is missing/broken. */
.gl-home-hero-shell .debt_collection .gl-debt-flag-fallback {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    font-size: 27px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.gl-home-hero-shell .debt_collection .gl-debt-flag-fallback[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    /* Mobile: move OUR SERVICES a little lower than v6. */
    .gl-home-services {
        padding-top: 18px !important;
    }

    .gl-home-services > .wrapper > h2.title {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .gl-home-hero-shell .debt_collection .gl-debt-flag-fallback {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: 24px;
    }
}

/* === GrandLiga Homepage refinement v8 — fallback flag sizing === */

/*
 * The generic .slider_block span rule is intentionally used for ticker text,
 * but it was also shrinking the emoji fallback flag.
 * This more specific selector restores the fallback to the same visual scale
 * as the regular 32px ACF flag image.
 */
.gl-home-hero-shell .debt_collection .slider_block .gl-debt-flag-fallback {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    white-space: nowrap;
    vertical-align: middle;
}

.gl-home-hero-shell .debt_collection .slider_block .gl-debt-flag-fallback[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .gl-home-hero-shell .debt_collection .slider_block .gl-debt-flag-fallback {
        flex-basis: 28px;
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: 27px !important;
        line-height: 28px !important;
    }
}
