/* A16.1 country services landing page */

.ri-country-page-v2 {
    --ri-gold: #d8ae55;
    --ri-gold-light: #f1d58d;
    --ri-navy: #061521;
    --ri-navy-light: #0b2a3c;
    --ri-text: #fff9ed;
    --ri-muted: rgba(248, 242, 226, 0.76);

    position: relative;
    overflow: hidden;
    color: var(--ri-text);
    background:
        radial-gradient(
            circle at 10% 2%,
            rgba(216, 174, 85, 0.16),
            transparent 32rem
        ),
        radial-gradient(
            circle at 92% 24%,
            rgba(25, 110, 124, 0.18),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            #081c2b 0%,
            #06141f 52%,
            #071721 100%
        );
}

.ri-country-page-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background:
        repeating-radial-gradient(
            circle at 92% 16%,
            transparent 0 44px,
            rgba(255, 255, 255, 0.018) 45px 46px
        );
}

.ri-country-v2-container {
    position: relative;
    z-index: 1;
}

.ri-country-v2-hero {
    position: relative;
    padding: 48px 0 76px;
    border-bottom: 1px solid rgba(216, 174, 85, 0.13);
}

.ri-country-v2-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 43px;
    color: rgba(248, 242, 226, 0.61);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ri-country-v2-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ri-country-v2-breadcrumb strong {
    color: var(--ri-gold-light);
}

.ri-country-v2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: clamp(34px, 7vw, 110px);
    align-items: center;
}

.ri-country-v2-eyebrow {
    margin: 0 0 14px;
    color: var(--ri-gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ri-country-v2-hero-copy h1 {
    max-width: 940px;
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.85rem, 5.5vw, 5.55rem);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -0.048em;
    text-wrap: balance;
}

.ri-country-v2-lead {
    max-width: 840px;
    margin: 28px 0 0;
    color: var(--ri-muted);
    font-size: clamp(1.02rem, 1.45vw, 1.24rem);
    line-height: 1.72;
}

.ri-country-v2-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    color: rgba(255, 250, 240, 0.85);
    font-size: 0.88rem;
    font-weight: 700;
}

.ri-country-v2-fact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.ri-country-v2-fact-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(216, 174, 85, 0.62);
    border-radius: 50%;
    color: var(--ri-gold-light);
    background: rgba(216, 174, 85, 0.08);
    font-size: 0.7rem;
}

.ri-country-v2-fact-divider {
    width: 1px;
    height: 25px;
    background: rgba(216, 174, 85, 0.32);
}

.ri-country-v2-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ri-country-v2-flag-shell {
    display: grid;
    place-items: center;
    width: 142px;
    height: 142px;
    padding: 8px;
    border: 2px solid rgba(216, 174, 85, 0.88);
    border-radius: 50%;
    background: rgba(4, 19, 30, 0.84);
    box-shadow:
        0 0 0 8px rgba(216, 174, 85, 0.04),
        0 22px 50px rgba(0, 0, 0, 0.35);
}

.ri-country-v2-flag-shell img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ri-country-v2-identity strong {
    margin-top: 20px;
    color: var(--ri-gold-light);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

.ri-country-v2-identity > span:last-child {
    width: 76px;
    height: 2px;
    margin-top: 13px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ri-gold),
            transparent
        );
}

.ri-country-v2-body {
    position: relative;
    z-index: 1;
    padding: 52px 0 0;
}

.ri-country-v2-body .cms-body {
    max-width: 930px;
    margin: 0 auto;
    color: var(--ri-muted);
}

.ri-country-v2-services {
    position: relative;
    z-index: 1;
    padding: 74px 0 94px;
}

.ri-country-v2-section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.ri-country-v2-section-heading h2 {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.ri-country-v2-section-heading > p:last-child {
    margin: 17px auto 0;
    color: var(--ri-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.ri-country-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ri-country-v2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 490px;
    padding: 32px 29px 28px;
    border: 1px solid rgba(216, 174, 85, 0.35);
    border-radius: 25px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(31, 111, 122, 0.22),
            transparent 44%
        ),
        linear-gradient(
            160deg,
            rgba(14, 49, 67, 0.96),
            rgba(6, 25, 39, 0.98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 22px 55px rgba(0, 0, 0, 0.24);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.ri-country-v2-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 174, 85, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 29px 68px rgba(0, 0, 0, 0.34);
}

.ri-country-v2-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ri-country-v2-card-image-shell {
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    padding: 5px;
    margin-bottom: 20px;
    border: 2px solid rgba(216, 174, 85, 0.84);
    border-radius: 50%;
    background: rgba(5, 23, 35, 0.74);
    box-shadow:
        0 0 0 7px rgba(216, 174, 85, 0.045),
        0 17px 37px rgba(0, 0, 0, 0.31);
}

.ri-country-v2-card-image-shell img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ri-country-v2-card-country {
    margin: 0 0 10px;
    color: var(--ri-gold-light);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.ri-country-v2-card h3 {
    min-height: 2.25em;
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.ri-country-v2-card-description {
    display: -webkit-box;
    max-width: 34rem;
    margin: 18px 0 0;
    overflow: hidden;
    color: rgba(248, 242, 226, 0.73);
    font-size: 0.97rem;
    line-height: 1.65;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.ri-country-v2-card-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    margin-top: 25px;
    padding: 11px 18px;
    border: 1px solid rgba(216, 174, 85, 0.68);
    border-radius: 999px;
    color: var(--ri-gold-light);
    background: rgba(216, 174, 85, 0.035);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.ri-country-v2-card-button:hover {
    color: #071827;
    border-color: var(--ri-gold-light);
    background: var(--ri-gold-light);
}

.ri-country-v2-card-empty {
    grid-column: 1 / -1;
    min-height: 280px;
}

.ri-country-v2-consultation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 36px;
    padding: 27px 30px;
    border: 1px solid rgba(216, 174, 85, 0.48);
    border-radius: 23px;
    background:
        linear-gradient(
            110deg,
            rgba(11, 64, 74, 0.97),
            rgba(8, 39, 57, 0.98)
        );
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.ri-country-v2-consultation-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(216, 174, 85, 0.69);
    border-radius: 50%;
    color: var(--ri-gold-light);
    background: rgba(216, 174, 85, 0.07);
    font-size: 1.25rem;
}

.ri-country-v2-consultation-copy h2 {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.3vw, 2.3rem);
    line-height: 1.15;
}

.ri-country-v2-consultation-copy p {
    max-width: 760px;
    margin: 8px 0 0;
    color: rgba(248, 242, 226, 0.74);
    font-size: 0.94rem;
    line-height: 1.55;
}

.ri-country-v2-consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid var(--ri-gold-light);
    border-radius: 999px;
    color: #071827;
    background: var(--ri-gold-light);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.ri-country-v2-consultation-button:hover {
    color: #fffaf0;
    background: transparent;
}

[dir="rtl"] .ri-country-v2-breadcrumb,
[dir="rtl"] .ri-country-v2-facts {
    direction: rtl;
}

[dir="rtl"] .ri-country-v2-card-button span:last-child,
[dir="rtl"] .ri-country-v2-consultation-button span:last-child {
    transform: rotate(180deg);
}

@media (max-width: 1040px) {
    .ri-country-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ri-country-v2-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: min(100%, calc(50% - 12px));
        justify-self: center;
    }
}

@media (max-width: 820px) {
    .ri-country-v2-hero-grid {
        grid-template-columns: 1fr;
    }

    .ri-country-v2-identity {
        align-items: flex-start;
    }

    .ri-country-v2-identity strong {
        text-align: start;
    }

    .ri-country-v2-consultation {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ri-country-v2-consultation-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .ri-country-v2-hero {
        padding: 38px 0 58px;
    }

    .ri-country-v2-breadcrumb {
        margin-bottom: 30px;
    }

    .ri-country-v2-hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.7rem);
        line-height: 1.03;
    }

    .ri-country-v2-grid {
        grid-template-columns: 1fr;
    }

    .ri-country-v2-card,
    .ri-country-v2-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
        min-height: 0;
    }

    .ri-country-v2-card h3 {
        min-height: 0;
    }

    .ri-country-v2-consultation {
        grid-template-columns: 1fr;
        padding: 25px 22px;
        text-align: center;
    }

    .ri-country-v2-consultation-icon {
        margin: 0 auto;
    }

    .ri-country-v2-fact-divider {
        display: none;
    }

    .ri-country-v2-facts {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* A16.2 Belize hero and balanced service cards START */

.ri-country-v2-hero-grid.ri-country-v2-hero-grid-image {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(30px, 5vw, 78px);
}

.ri-country-v2-hero-media {
    position: relative;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(216, 174, 85, 0.52);
    border-radius: 25px;
    overflow: visible;
    background: #081c2b;
    box-shadow:
        0 28px 68px rgba(0, 0, 0, 0.35),
        0 0 0 7px rgba(216, 174, 85, 0.035);
}

.ri-country-v2-hero-media > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
}

.ri-country-v2-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(5, 22, 34, 0.16), transparent 38%),
        linear-gradient(180deg, transparent 55%, rgba(4, 18, 29, 0.20));
}

.ri-country-v2-hero-flag {
    position: absolute;
    right: 22px;
    bottom: -31px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding: 5px;
    border: 2px solid rgba(216, 174, 85, 0.95);
    border-radius: 50%;
    background: #071827;
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.40),
        0 0 0 6px rgba(216, 174, 85, 0.08);
}

.ri-country-v2-hero-flag img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ri-country-v2-card-description {
    display: block;
    min-height: 7.1em;
    overflow: visible;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.ri-country-v2-card-image-shell img[src$=".svg"] {
    width: 72%;
    height: 72%;
    padding: 4px;
    object-fit: contain;
    filter:
        brightness(0)
        saturate(100%)
        invert(79%)
        sepia(53%)
        saturate(664%)
        hue-rotate(357deg)
        brightness(94%)
        contrast(89%);
}

@media (max-width: 1040px) {
    .ri-country-v2-hero-grid.ri-country-v2-hero-grid-image {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    }
}

@media (max-width: 820px) {
    .ri-country-v2-hero-grid.ri-country-v2-hero-grid-image {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ri-country-v2-hero-flag {
        right: 18px;
        bottom: -25px;
        width: 68px;
        height: 68px;
    }

    .ri-country-v2-card-description {
        min-height: 0;
    }
}

@media (max-width: 650px) {
    .ri-country-v2-hero {
        padding-bottom: 52px;
    }

    .ri-country-v2-hero-media {
        border-radius: 19px;
    }

    .ri-country-v2-hero-media > img,
    .ri-country-v2-hero-media::after {
        border-radius: 18px;
    }

    .ri-country-v2-hero-flag {
        right: 14px;
        bottom: -22px;
        width: 60px;
        height: 60px;
        padding: 4px;
    }

    .ri-country-v2-services {
        padding-top: 58px;
    }

    .ri-country-v2-card {
        padding: 28px 23px 24px;
    }

    .ri-country-v2-card-description {
        font-size: 0.96rem;
        line-height: 1.62;
    }
}

/* A16.2 Belize hero and balanced service cards END */

/* A16.4 final hero and JPG icon START */

.ri-country-v2-hero-media {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
}

.ri-country-v2-hero-media > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

.ri-country-v2-card-image-shell img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    filter: none;
}

@media (max-width: 820px) {
    .ri-country-v2-hero-grid.ri-country-v2-hero-grid-image {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .ri-country-v2-hero-media {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 650px) {
    .ri-country-v2-hero-grid.ri-country-v2-hero-grid-image {
        gap: 26px;
    }

    .ri-country-v2-hero-media > img {
        min-height: 0;
    }
}

/* A16.4 final hero and JPG icon END */
