.aecp-section,
.aecp-section * {
    box-sizing: border-box;
}

.aecp-section {
    --aecp-bg-image: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: var(--aecp-section-padding) 24px;
    border-radius: var(--aecp-section-radius);
    background: var(--aecp-bg);
    color: var(--aecp-heading);
    isolation: isolate;
}

.aecp-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(var(--aecp-overlay), var(--aecp-overlay)), var(--aecp-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aecp-section::before,
.aecp-section::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--aecp-gold) 16%, transparent), transparent 70%);
    pointer-events: none;
}

.aecp-section::before {
    top: -180px;
    right: -120px;
}

.aecp-section::after {
    bottom: -190px;
    left: -100px;
}

.aecp-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--aecp-max-width);
    margin: 0 auto;
}

.aecp-header {
    max-width: 850px;
    margin: 0 auto 44px;
    text-align: center;
}

.aecp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 19px;
    border: 1px solid color-mix(in srgb, var(--aecp-gold) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #fff 80%, transparent);
    color: var(--aecp-gold);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 24, 40, .05);
    backdrop-filter: blur(10px);
}

.aecp-eyebrow span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--aecp-gold) 13%, transparent);
}

.aecp-title {
    margin: 0;
    color: var(--aecp-heading);
    font-size: clamp(34px, 4vw, 62px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.aecp-title mark {
    padding: 0;
    background: transparent;
    color: var(--aecp-gold);
}

.aecp-description {
    max-width: 730px;
    margin: 22px auto 0;
    color: var(--aecp-text);
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 2;
}

.aecp-carousel-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 16px;
}

.aecp-carousel {
    min-width: 0;
    direction: ltr;
    user-select: none;
    touch-action: pan-y;
}

.aecp-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 2px 18px;
}

.aecp-track {
    display: flex;
    align-items: stretch;
    gap: var(--aecp-gap);
    will-change: transform;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.aecp-country-card {
    position: relative;
    flex: 0 0 calc((100% - (var(--aecp-per-view, 5) - 1) * var(--aecp-gap)) / var(--aecp-per-view, 5));
    min-width: 0;
    overflow: hidden;
    border-radius: var(--aecp-card-radius);
    text-decoration: none !important;
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.aecp-country-card:hover {
    transform: translateY(-7px);
}

.aecp-country-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-image: var(--aecp-country-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aecp-country-photo img,
.aecp-country-photo .aecp-country-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover !important;
    transition: transform .7s cubic-bezier(.22,.61,.36,1), filter .35s ease;
}

.aecp-country-card:hover .aecp-country-photo img {
    transform: scale(1.065);
}

.aecp-photo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.aecp-photo-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--aecp-gold) 20%, transparent), transparent 35%),
        linear-gradient(145deg, #1d2734, #0f1722);
}

.aecp-photo-placeholder span {
    position: absolute;
    display: block;
    bottom: 18%;
    width: 22%;
    background: color-mix(in srgb, var(--aecp-gold) 25%, #263344);
    border-radius: 9px 9px 0 0;
}

.aecp-photo-placeholder span:nth-child(1) { left: 12%; height: 34%; }
.aecp-photo-placeholder span:nth-child(2) { left: 39%; height: 50%; }
.aecp-photo-placeholder span:nth-child(3) { right: 12%; height: 28%; }

.aecp-flag-circle {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 3px solid var(--aecp-gold);
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
}

.aecp-flag-circle img,
.aecp-flag-circle .aecp-flag-image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover !important;
}

.aecp-flag-emoji {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #fff;
    font-size: 49px;
    line-height: 1;
}

.aecp-country-name {
    position: absolute;
    z-index: 3;
    color: var(--aecp-card-text);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
}

.aecp-card-accent {
    position: absolute;
    z-index: 3;
    width: 36px;
    height: 3px;
    border-radius: 99px;
    background: var(--aecp-gold);
    box-shadow: 0 0 15px color-mix(in srgb, var(--aecp-gold) 55%, transparent);
}

/* Design 1: immersive image card */
.aecp-design-1 .aecp-country-card {
    aspect-ratio: .82;
    min-height: 315px;
    border: 1px solid color-mix(in srgb, var(--aecp-gold) 30%, rgba(255,255,255,.35));
    background: #111827;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .13);
}

.aecp-design-1 .aecp-country-card:hover {
    box-shadow: 0 24px 55px rgba(17, 24, 39, .2);
    border-color: color-mix(in srgb, var(--aecp-gold) 80%, transparent);
}

.aecp-design-1 .aecp-photo-shade {
    background: linear-gradient(180deg, rgba(6, 10, 18, .08) 10%, rgba(6, 10, 18, .3) 52%, rgba(6, 10, 18, .92) 100%);
}

.aecp-design-1 .aecp-flag-circle {
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
}

.aecp-design-1 .aecp-country-name {
    left: 12px;
    right: 12px;
    bottom: 35px;
}

.aecp-design-1 .aecp-card-accent {
    left: 50%;
    bottom: 21px;
    transform: translateX(-50%);
}

/* Design 2: luxury glass card */
.aecp-design-2 .aecp-country-card {
    aspect-ratio: .9;
    min-height: 300px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.56);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
    backdrop-filter: blur(18px);
}

.aecp-design-2 .aecp-country-photo img {
    filter: saturate(.9) brightness(.8);
}

.aecp-design-2 .aecp-photo-shade {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(5,12,22,.82));
}

.aecp-design-2 .aecp-flag-circle {
    left: 50%;
    top: 26px;
    transform: translateX(-50%);
}

.aecp-design-2 .aecp-country-name {
    left: 16px;
    right: 16px;
    bottom: 35px;
    font-size: 19px;
}

.aecp-design-2 .aecp-card-accent {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
}

/* Design 3: minimal premium card */
.aecp-design-3 .aecp-country-card {
    aspect-ratio: .9;
    min-height: 300px;
    border: 1px solid color-mix(in srgb, var(--aecp-gold) 35%, #e5e7eb);
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.aecp-design-3 .aecp-country-photo {
    height: 67%;
    bottom: auto;
}

.aecp-design-3 .aecp-photo-shade {
    background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.2));
}

.aecp-design-3 .aecp-flag-circle {
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
}

.aecp-design-3 .aecp-country-name {
    left: 16px;
    right: 16px;
    bottom: 28px;
    color: var(--aecp-heading);
}

.aecp-design-3 .aecp-card-accent {
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
}

.aecp-arrow {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--aecp-gold) 45%, #d8dee9);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--aecp-gold);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
    transition: transform .25s ease, color .25s ease, background .25s ease, opacity .25s ease;
}

.aecp-arrow:hover {
    transform: scale(1.08);
    background: var(--aecp-gold);
    color: #fff;
}

.aecp-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.aecp-arrow svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aecp-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    margin-top: 14px;
}

.aecp-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--aecp-text) 22%, transparent);
    cursor: pointer;
    transition: width .3s ease, background .3s ease, border-radius .3s ease;
}

.aecp-dot.is-active {
    width: 30px;
    border-radius: 99px;
    background: var(--aecp-gold);
}

.aecp-bottom-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    max-width: 1040px;
    margin: 38px auto 0;
    padding: 25px 34px;
    border: 1px solid color-mix(in srgb, var(--aecp-gold) 38%, #e6e8ec);
    border-radius: 22px;
    background: color-mix(in srgb, #fff 78%, transparent);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .05);
    backdrop-filter: blur(12px);
}

.aecp-bottom-icon {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--aecp-gold);
    border-radius: 50%;
    color: var(--aecp-gold);
}

.aecp-bottom-icon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.aecp-bottom-box h3 {
    margin: 0 0 7px;
    color: var(--aecp-heading);
    font-size: 20px;
    font-weight: 900;
}

.aecp-bottom-box p {
    margin: 0;
    color: var(--aecp-text);
    font-size: 14px;
    line-height: 1.9;
}


.aecp-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 860px;
    margin: 34px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
}


.aecp-cta-box p {
    flex: 0 1 auto;
    margin: 0;
    color: var(--aecp-text);
    font-size: 15px;
    line-height: 2.1;
    text-align: center;
}


.aecp-more-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid var(--aecp-gold);
    border-radius: 999px;
    background: var(--aecp-gold);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(200, 155, 60, .2);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.aecp-more-button:hover,
.aecp-more-button:focus-visible {
    transform: translateY(-2px);
    background: transparent;
    color: var(--aecp-gold) !important;
    box-shadow: 0 14px 28px rgba(200, 155, 60, .24);
}

.aecp-more-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aecp-rtl .aecp-more-button svg {
    transform: rotate(180deg);
}

.aecp-empty-admin {
    padding: 24px;
    border: 1px dashed #c89b3c;
    border-radius: 14px;
    background: #fffaf0;
    color: #6b4f13;
    text-align: center;
}

.aecp-ltr .aecp-country-name,
.aecp-ltr .aecp-bottom-box,
.aecp-ltr .aecp-description {
    direction: ltr;
}

@media (max-width: 1100px) {
    .aecp-section {
        padding-inline: 18px;
    }

    .aecp-carousel-wrap {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 10px;
    }

    .aecp-arrow {
        width: 44px;
        height: 44px;
    }

    .aecp-flag-circle {
        width: 78px;
        height: 78px;
    }

    .aecp-flag-emoji {
        font-size: 42px;
    }

    .aecp-country-name {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .aecp-section {
        padding: max(42px, calc(var(--aecp-section-padding) * .62)) 12px;
        border-radius: min(var(--aecp-section-radius), 22px);
    }

    .aecp-header {
        margin-bottom: 26px;
    }

    .aecp-eyebrow {
        margin-bottom: 14px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .aecp-title {
        font-size: clamp(22px, 7vw, 32px);
        line-height: 1.4;
    }

    .aecp-description {
        margin-top: 13px;
        font-size: 13px;
        line-height: 1.9;
    }

    .aecp-carousel-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 5px;
    }

    .aecp-arrow {
        width: 34px;
        height: 34px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    }

    .aecp-arrow svg {
        width: 18px;
        height: 18px;
    }

    .aecp-viewport {
        padding-block: 6px 14px;
    }

    .aecp-country-card,
    .aecp-design-1 .aecp-country-card,
    .aecp-design-2 .aecp-country-card,
    .aecp-design-3 .aecp-country-card {
        min-height: 205px;
        border-radius: min(var(--aecp-card-radius), 17px);
    }

    .aecp-flag-circle,
    .aecp-design-3 .aecp-flag-circle {
        width: 56px;
        height: 56px;
        border-width: 2px;
        box-shadow: none;
    }

    .aecp-flag-emoji {
        font-size: 30px;
    }

    .aecp-country-name,
    .aecp-design-2 .aecp-country-name {
        bottom: 24px;
        font-size: 13px;
    }

    .aecp-design-3 .aecp-country-name {
        bottom: 20px;
        color: var(--aecp-heading);
    }

    .aecp-card-accent {
        width: 25px;
        height: 2px;
    }

    .aecp-design-1 .aecp-card-accent,
    .aecp-design-2 .aecp-card-accent {
        bottom: 13px;
    }

    .aecp-design-3 .aecp-card-accent {
        bottom: 10px;
    }

    .aecp-dots {
        margin-top: 5px;
        gap: 5px;
    }

    .aecp-dot {
        width: 5px;
        height: 5px;
    }

    .aecp-dot.is-active {
        width: 20px;
    }

    .aecp-bottom-box {
        gap: 15px;
        margin-top: 25px;
        padding: 18px;
        border-radius: 17px;
        text-align: start;
    }

    .aecp-bottom-icon {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .aecp-bottom-icon svg {
        width: 38px;
        height: 38px;
    }

    .aecp-bottom-box h3 {
        font-size: 15px;
    }

    .aecp-bottom-box p {
        font-size: 11px;
        line-height: 1.8;
    }
}

@media (max-width: 430px) {
    .aecp-section {
        padding-inline: 8px;
    }

    .aecp-carousel-wrap {
        grid-template-columns: 29px minmax(0, 1fr) 29px;
        gap: 3px;
    }

    .aecp-arrow {
        width: 29px;
        height: 29px;
    }

    .aecp-arrow svg {
        width: 15px;
        height: 15px;
    }

    .aecp-country-card,
    .aecp-design-1 .aecp-country-card,
    .aecp-design-2 .aecp-country-card,
    .aecp-design-3 .aecp-country-card {
        min-height: 182px;
    }

    .aecp-flag-circle,
    .aecp-design-3 .aecp-flag-circle {
        width: 50px;
        height: 50px;
    }

    .aecp-flag-emoji {
        font-size: 27px;
    }

    .aecp-country-name,
    .aecp-design-2 .aecp-country-name {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aecp-track,
    .aecp-country-card,
    .aecp-country-photo img,
    .aecp-arrow,
    .aecp-dot {
        transition: none !important;
    }
}


@media (max-width: 767px) {
    .aecp-cta-box {
        gap: 12px;
        margin-top: 24px;
        padding: 0;
    }

    .aecp-cta-box p {
        font-size: 12px;
        line-height: 2;
    }

    .aecp-more-button {
        width: auto;
        min-height: 44px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 1.2.0: completely flat cards and isolated carousel controls */
.aecp-section .aecp-country-card,
.aecp-section .aecp-country-card:hover,
.aecp-section.aecp-design-1 .aecp-country-card,
.aecp-section.aecp-design-1 .aecp-country-card:hover,
.aecp-section.aecp-design-2 .aecp-country-card,
.aecp-section.aecp-design-2 .aecp-country-card:hover,
.aecp-section.aecp-design-3 .aecp-country-card,
.aecp-section.aecp-design-3 .aecp-country-card:hover {
    box-shadow: none !important;
    filter: none !important;
}

.aecp-section .aecp-viewport {
    padding-bottom: 6px;
}

.aecp-section .aecp-track {
    filter: none !important;
}

.aecp-section .aecp-arrow,
.aecp-section .aecp-arrow:visited,
.aecp-section .aecp-arrow:focus {
    border-color: color-mix(in srgb, var(--aecp-gold) 50%, #d8dee9) !important;
    background: rgba(255,255,255,.96) !important;
    color: var(--aecp-gold) !important;
    box-shadow: none !important;
    outline: none !important;
}

.aecp-section .aecp-arrow:hover,
.aecp-section .aecp-arrow:active,
.aecp-section .aecp-arrow:focus-visible {
    border-color: var(--aecp-gold) !important;
    background: var(--aecp-gold) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.aecp-section .aecp-clone {
    pointer-events: auto;
}
