/* Country landing pages */
:root {
    --site-header-height: 5rem;
}

.country-hero {
    position: relative;
    overflow: hidden;
}

.country-viewport-hero {
    min-height: calc(100vh - var(--site-header-height));
    height: calc(100vh - var(--site-header-height));
}

.country-anchor-section {
    scroll-margin-top: 110px;
}

.country-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 380px at 10% 0%, rgba(170, 131, 56, 0.22), transparent 60%),
        radial-gradient(700px 380px at 90% 100%, rgba(10, 43, 84, 0.25), transparent 60%);
}

.country-page-title {
    color: #081b31;
    letter-spacing: -0.02em;
}

.country-page-subtitle {
    color: #374151;
}

.country-service-card {
    background: #0c2038;
    border: 1px solid rgba(170, 131, 56, 0.3);
    color: #ffffff;
}

.country-service-chip {
    background: rgba(170, 131, 56, 0.2);
    border: 1px solid rgba(170, 131, 56, 0.45);
    color: #f0cd85;
}

.country-kpi {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(8, 27, 49, 0.08);
}

.country-kpi h4 {
    color: #081b31;
}

.country-kpi p {
    color: #6b7280;
}

.country-cta-btn {
    background: linear-gradient(130deg, #081b31 0%, #0f335c 60%, #aa8338 100%);
    color: #ffffff;
}

.country-cta-btn:hover {
    filter: brightness(1.05);
}

.country-video-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--site-header-height));
    height: calc(100vh - var(--site-header-height));
}

.country-video-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.country-slider {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #081b31;
    width: 100%;
    min-height: 100%;
    height: 100%;
}

.country-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.country-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.country-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.country-slide-content {
    position: relative;
    z-index: 1;
    max-width: 38rem;
}

.country-slide-title {
    color: #ffffff;
    font-size: clamp(1.7rem, 3.8vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.country-slide-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.country-slide-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.country-slider-controls {
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-slider-dots {
    display: flex;
    gap: 0.45rem;
}

.country-slider-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
}

.country-slider-dot.is-active {
    background: #f0cd85;
    border-color: #f0cd85;
}

.country-slider-next {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.country-slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.country-ecosystem-hero {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 580px at 5% 35%, rgba(126, 200, 255, 0.28), transparent 60%),
        radial-gradient(780px 540px at 84% 12%, rgba(198, 171, 255, 0.26), transparent 60%),
        linear-gradient(130deg, #375f8f 5%, #6287c1 50%, #a4c3dc 100%);
}

.country-ecosystem-hero::before {
    content: '';
    position: absolute;
    inset: -12% -10%;
    background:
        radial-gradient(500px 220px at 20% 80%, rgba(130, 220, 255, 0.35), transparent 70%),
        radial-gradient(540px 260px at 68% 90%, rgba(217, 177, 255, 0.25), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}

.country-ecosystem-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(250px, 33%) minmax(560px, 1fr);
    gap: 2.2rem;
    height: 100%;
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
    padding: clamp(1rem, 2.2vw, 1.8rem) 0;
    align-items: center;
}

.country-ecosystem-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

.country-ecosystem-intro h1 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.06;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.country-ecosystem-intro p {
    max-width: 30rem;
    font-size: 1.18rem;
    line-height: 1.55;
    opacity: 0.92;
}

.country-ecosystem-cta {
    margin-top: 1.8rem;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.65rem 1.25rem;
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(2px);
}

.country-ecosystem-carousel {
    position: relative;
    overflow: hidden;
    height: min(68vh, 600px);
    border-radius: 1.8rem;
}

.country-ecosystem-track {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    height: 100%;
    will-change: transform;
}

.country-ecosystem-card {
    --scoop-size: 3.9rem;
    flex: 0 0 min(62%, 520px);
    border-radius: 2rem;
    border-bottom-left-radius: 2.3rem;
     padding: 3.7rem 1rem 1rem 1rem; /* Further increase space at the top */
    background: rgba(226, 237, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    color: #101018;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
    position: relative;
    overflow: visible;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent calc(var(--scoop-size) - 1px), #000 var(--scoop-size));
    mask: radial-gradient(circle at 0 100%, transparent calc(var(--scoop-size) - 1px), #000 var(--scoop-size));
}

.country-ecosystem-card.is-active {
    background: rgba(231, 241, 255, 0.45);
}

.country-ecosystem-thumb {
    width: 100%;
        height: clamp(260px, 34vh, 320px); /* Further increase image height */
    border-radius: 1.2rem;
    overflow: hidden;
        margin-bottom: 2.2rem; /* More space between image and heading */
}

.country-ecosystem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-ecosystem-card h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.35rem); /* Reduce heading size */
    line-height: 1.1;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.country-ecosystem-card p {
    font-size: 0.92rem; /* Reduce paragraph size */
    line-height: 1.45;
    color: rgba(16, 16, 24, 0.85);
    max-width: 30rem;
}

.country-ecosystem-controls {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.country-ecosystem-count {
    display: inline-flex;
    align-items: center;
}

.country-ecosystem-num {
    display: inline-block;
    color: #081B31 !important;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0.02em;
    min-width: 2.5ch;
    padding: 0;
}

.country-ecosystem-next {
    position: static;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.country-ecosystem-next:hover {
    color: #ffffff;
}

.country-ecosystem-count,
.country-ecosystem-next {
    position: relative;
    z-index: 5;
}

@media (max-width: 1024px) {
    .country-ecosystem-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.1rem;
        width: min(100% - 1.4rem, 80rem);
        padding-top: 1.2rem;
    }

    .country-ecosystem-intro p {
        max-width: 100%;
    }

    .country-ecosystem-carousel {
        height: 56vh;
    }

    .country-ecosystem-card {
        flex-basis: 78%;
    }
}

@media (max-width: 768px) {
    .country-slider {
        min-height: 100%;
        height: 100%;
    }

    .country-slide {
        padding: 1.4rem;
    }

    .country-ecosystem-carousel {
        height: 52vh;
        border-radius: 1.2rem;
    }

    .country-ecosystem-card {
        flex-basis: 88%;
        border-radius: 1.3rem;
    }

    .country-ecosystem-card h3 {
        font-size: 1.7rem;
    }

    .country-ecosystem-card p {
        font-size: 1rem;
    }

    .country-ecosystem-num {
        font-size: 1.2rem;
    }

    .country-ecosystem-next {
        font-size: 1.6rem;
    }
}
