.country-interests {
    --country-interests-content-margin-top: -240px;
    --country-interests-content-overlap-offset: 0px;
    background: #052330;
    color: #FFF;
    min-height: 100vh;
    padding-bottom: 120px;
}

.country-interests__hero {
    position: relative;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-interests__hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.country-interests__hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 23, 35, 0.18) 0%, rgba(4, 23, 35, 0.48) 100%);
}

.country-interests__hero-shape {
    order: 2;
    position: relative;
    width: calc(100% - 40px);
    margin-top: 55px;
    margin-bottom: -78px;
    min-height: 291px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    background: var(--Dark, #052330);
    max-width: 1920px;
    flex: none;
}

.country-interests__hero-shape::after {
    content: "";
    position: absolute;
    top: 69%;
    left: 0;
    width: 100%;
    height: 90px;
    box-shadow: inset 0 -200px 300px -180px rgba(5, 35, 48, 0.45);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.country-interests__title-wrap {
    order: 1;
    position: relative;
    margin: 22px auto 0;
    width: min(894px, calc(100% - 80px));
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.country-interests__title-country {
    display: block;
    margin: 0;
    text-align: center;
    font-family: Barlow, sans-serif;
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: normal;
}

.country-interests__title-country-name {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.country-interests__title-flag {
    display: inline-block;
    width: 40px;
    height: 30px
    border-radius: 2px;
    object-fit: cover;
    vertical-align: super;
}

.country-interests__content {
    position: relative;
    z-index: 3;
    max-width: 1920px;
    margin: calc(var(--country-interests-content-margin-top) + var(--country-interests-content-overlap-offset)) auto 0;
    padding: 0 60px;
}

.ai-prompt {
    display: block;
    width: 500px;
    margin: -111px auto 30px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    position: relative;
    z-index: 3;
}

.ai-prompt .ask-jizo-search-bar {
    min-height: 56px;
}

.country-interests__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 60px;
}

.country-interests__header-title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: Inter, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.country-interests__header-label {
    color: #FFF;
}

.country-interests__header-count {
    color: #FC6433;
}

.country-interests__grid-wrap {
    width: 100%;
}

@media (min-width: 1200px) {
    .country-interests__title-flag {
        margin-bottom: 10px;
    }
}

@media (max-width: 1280px) {
    .country-interests {
        --country-interests-content-margin-top: -265px;
    }

    .country-interests__title-country {
        font-size: 90px;
    }
}

@media (max-width: 1100px) {
    .country-interests {
        --country-interests-content-margin-top: -275px;
    }
}

@media (max-width: 992px) {
    .country-interests__hero {
        min-height: 268px;
    }

    .country-interests__hero-shape {
        margin-top: 48px;
        min-height: 268px;
    }

    .ai-prompt {
        margin: -111px auto 25px;
    }

    .country-interests__title-wrap {
        width: calc(100% - 30px);
        margin-top: 18px;
    }

    .country-interests__title-country {
        font-size: 62px;
    }

    .country-interests__title-flag {
        width: 40px;
        height: 30px
    }

    .country-interests__content {
        margin-top: -220px;
        padding: 0 32px;
    }

    .country-interests__header-title {
        font-size: 28px;
        gap: 12px;
    }
}

@media (min-width: 481px) and (max-width: 1200px) {
    .country-interests__header {
        margin-bottom: 40px;
    }

    .country-interests__title-wrap {
        width: calc(100% - clamp(190px, calc(190px - (100vw - 768px) * 0.25463), 80px));
        gap: 10px;
    }

    .country-interests__title-country {
        font-size: clamp(60px, calc(60px + (100vw - 768px) * 0.069444), 90px);
    }
}

@media (max-width: 640px) {
    .ai-prompt {
        width: calc(100% - 5px);
        margin-top: 0;
        margin-bottom: 24px;
    }

    .ai-prompt .ask-jizo-search-bar {
        min-height: unset;
    }

    .country-interests {
        padding-bottom: 60px;
    }

    .country-interests__hero {
        min-height: 200px;
    }

    .country-interests__hero-shape {
        margin-top: 40px;
        width: 100%;
        min-height: 199px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .ask-jizo-search-bar {
        padding: 6px !important;
    }

    .country-interests__title-wrap {
        width: calc(100% - 20px);
    }

    .country-interests__title-country {
        font-size: 40px;
    }

    .country-interests__title-flag {
        width: 20px;
        height: 12.692px;
    }

    .country-interests__content {
        margin-top: -140px;
        padding: 0 10px;
    }

    .country-interests__header {
        margin-bottom: 14px;
    }

    .country-interests__header-title {
        font-size: 20px;
        gap: 8px;
    }

}
