/* GrandLiga Guides — v21.
   Shared heading system + desktop 1420px adaptation.
   Mobile block width remains unchanged. */

/* The Guides heading follows the exact OUR SERVICES visual language. */
.gl-home-guides .gl-hg-title {
    margin: 0 !important;
    padding: 6px 0 34px !important;
    color: #19374e !important;
    font-family: inherit !important;
    font-size: 34px !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
    text-transform: uppercase !important;
}
.gl-home-guides .gl-hg-title span {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
}
.gl-home-guides .gl-hg-title::after {
    content: "";
    display: block;
    width: 66px;
    height: 3px;
    margin: 15px auto 0;
    background: linear-gradient(to right,#19374e 0,#19374e 62%,#238174 62%,#238174 100%);
}

@media (min-width: 1024px) {
    .gl-home-guides {
        margin-top: -35px !important;
        padding-top: 12px !important;
    }

    .gl-home-guides .gl-home-guides-wrapper {
        width: min(1420px, calc(100% - 40px)) !important;
        max-width: 1420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .gl-home-guides .gl-hg-shell {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    /* Keep a small balanced top gap around the section heading. */
    .gl-home-guides .gl-hg-header {
        margin-bottom: 0 !important;
        padding-top: 4px !important;
    }
    .gl-home-guides .gl-hg-title {
        padding-top: 8px !important;
        padding-bottom: 30px !important;
    }

    .gl-home-guides .gl-hg-main {
        grid-template-columns: minmax(0, 1.16fr) minmax(470px, .94fr) !important;
        gap: 22px !important;
    }

    /* Restore the approved curved white transition from the original Guides design.
       The artwork remains wide (16:9) in the expanded desktop card; no square padding. */
    .gl-home-guides .gl-hg-visual {
        position: relative !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden !important;
        background: #f5f9fc !important;
    }
    .gl-home-guides .gl-hg-visual-img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
    .gl-home-guides .gl-hg-visual::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        z-index: 3 !important;
        left: -6% !important;
        bottom: -74px !important;
        width: 112% !important;
        height: 96px !important;
        pointer-events: none !important;
        background: #ffffff !important;
        border-radius: 50% 50% 0 0 / 18px 18px 0 0 !important;
        transform: rotate(6deg) !important;
        transform-origin: 50% 100% !important;
    }
    .gl-home-guides .gl-hg-featured-body {
        position: relative !important;
        z-index: 4 !important;
        margin-top: -22px !important;
        padding-top: 22px !important;
        padding-bottom: 16px !important;
    }

    .gl-home-guides .gl-hg-featured-bottom {
        margin-top: 16px !important;
        align-items: center !important;
    }

    /* Fixed circular globe — it must never stretch with the rail. */
    .gl-home-guides .gl-hg-rail-head {
        align-items: flex-start !important;
    }
    .gl-home-guides .gl-hg-rail-icon {
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        align-self: flex-start !important;
    }
    .gl-home-guides .gl-hg-rail-icon svg {
        flex: 0 0 auto !important;
        width: 29px !important;
        height: 29px !important;
        max-width: 29px !important;
        max-height: 29px !important;
    }

    /* Typography is intentionally larger than the old 1280px version. */
    .gl-home-guides .gl-hg-featured-country {
        font-size: 28px !important;
        line-height: 1.1 !important;
    }
    .gl-home-guides .gl-hg-featured-title {
        font-size: 19px !important;
        line-height: 1.4 !important;
    }
    .gl-home-guides .gl-hg-tags {
        font-size: 16px !important;
        line-height: 1.35 !important;
        gap: 16px !important;
    }
    .gl-home-guides .gl-hg-views {
        font-size: 15px !important;
    }
    .gl-home-guides .gl-hg-btn {
        font-size: 16px !important;
    }
    .gl-home-guides .gl-hg-rail-head h3 {
        font-size: 23px !important;
        line-height: 1.22 !important;
    }
    .gl-home-guides .gl-hg-rail-head p {
        font-size: 17px !important;
        line-height: 1.45 !important;
    }

    /* Eight requested jurisdictions now fit the larger right panel. */
    .gl-home-guides .gl-hg-rail-list {
        gap: 8px !important;
    }
    .gl-home-guides .gl-hg-rail-row {
        min-height: 48px !important;
        padding: 9px 13px !important;
        grid-template-columns: minmax(165px,1fr) auto 24px !important;
    }
    .gl-home-guides .gl-hg-rail-country strong {
        font-size: 19px !important;
        line-height: 1.2 !important;
    }
    .gl-home-guides .gl-hg-rail-label {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
    .gl-home-guides .gl-hg-rail-arrow {
        font-size: 20px !important;
    }

    .gl-home-guides .gl-hg-stat-text strong {
        font-size: 32px !important;
        line-height: 1.05 !important;
    }
    .gl-home-guides .gl-hg-stat-text span {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
    .gl-home-guides .gl-hg-footer {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Extra desktop jurisdictions are rendered but revealed only when the right rail has room.
   Mobile/tablet always keep exactly seven rows. */
.gl-home-guides .gl-hg-rail-row.gl-hg-rail-row--adaptive {
    display: none;
}

@media (min-width: 981px) {
    .gl-home-guides .gl-hg-rail {
        overflow: hidden;
    }
    .gl-home-guides .gl-hg-rail-row.gl-hg-rail-row--adaptive.is-visible {
        display: grid !important;
    }
    /* Disable the old wrapped-title truncation; v21 JS measures the real available height. */
    .gl-home-guides .gl-hg-rail.gl-hg-rail--wrapped-title .gl-hg-rail-list .gl-hg-rail-row:nth-child(n+7) {
        display: grid;
    }
}

@media (max-width: 980px) {
    .gl-home-guides .gl-hg-rail-row:nth-child(n+8) {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Same heading hierarchy as OUR SERVICES on mobile. */
    .gl-home-guides .gl-hg-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        padding-top: 4px !important;
        padding-bottom: 20px !important;
        letter-spacing: .01em !important;
    }
    .gl-home-guides .gl-hg-title::after {
        width: 52px;
        height: 2px;
        margin-top: 11px;
    }

    .gl-home-guides {
        margin-top: 10px !important;
        padding-top: 0 !important;
        padding-bottom: 24px !important;
        margin-bottom: 8px !important;
    }
    .gl-home-guides .gl-home-guides-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 479px) {
    .gl-home-guides .gl-hg-title {
        font-size: 25px !important;
    }
}
