/* Platform home CMS promos (AqaryonHome) — sits inside #services */
.platform-home-promos {
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
}

.platform-home-promos-in-services .platform-home-promos {
    padding: 0;
}

.platform-home-promos__inner {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero carousel */
.platform-home-carousel {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(107, 91, 149, 0.12);
    background: #fff;
    box-shadow: 0 8px 24px rgba(107, 91, 149, 0.08);
    min-height: 220px;
}

@media (min-width: 640px) {
    .platform-home-carousel { min-height: 280px; }
}

@media (min-width: 1024px) {
    .platform-home-carousel { min-height: 340px; }
}

.platform-home-carousel__viewport { overflow: hidden; min-height: inherit; }
.platform-home-carousel__track { position: relative; min-height: inherit; }

.platform-home-carousel__slide {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    min-height: inherit;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.platform-home-carousel__slide {
    cursor: pointer;
}

.platform-home-carousel__slide.is-active {
    position: relative;
    inset: auto;
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Physical corners so RTL dir does not flip placement */
.platform-home-carousel__content {
    position: absolute;
    z-index: 3;
    bottom: 1.5rem;
    max-width: min(32rem, 88%);
    color: #F5F5F5;
}

.platform-home-carousel[dir="ltr"] .platform-home-carousel__content {
    left: 1.25rem;
    right: auto;
    text-align: left;
}

.platform-home-carousel[dir="rtl"] .platform-home-carousel__content {
    right: 1.25rem;
    left: auto;
    text-align: right;
}

@media (min-width: 768px) {
    .platform-home-carousel__content { bottom: 2rem; }
    .platform-home-carousel[dir="ltr"] .platform-home-carousel__content { left: 2.5rem; }
    .platform-home-carousel[dir="rtl"] .platform-home-carousel__content { right: 2.5rem; }
}

.platform-home-carousel__headline {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #F5F5F5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.platform-home-carousel__desc {
    margin: 0;
    font-size: clamp(0.875rem, 1.4vw, 1.05rem);
    line-height: 1.45;
    color: #F5F5F5;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.platform-home-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #6B5B95;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-home-carousel__nav--prev { left: 0.75rem; }
.platform-home-carousel__nav--next { right: 0.75rem; }

.platform-home-carousel[dir="rtl"] .platform-home-carousel__nav--prev { left: auto; right: 0.75rem; }
.platform-home-carousel[dir="rtl"] .platform-home-carousel__nav--next { right: auto; left: 0.75rem; }

.platform-home-carousel__nav svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.platform-home-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 4;
}

.platform-home-carousel__dot {
    width: 0.55rem;
    height: 0.55rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.platform-home-carousel__dot.is-active {
    width: 1.35rem;
    background: #fff;
}

/* Dual promo row */
.platform-home-promo-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    /* Always 2 per row; extra banners wrap to the next row. */
    .platform-home-promo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.platform-home-promo-pair__tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 10rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background-color: #6B5B95;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.platform-home-promo-pair__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.platform-home-promo-pair__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    opacity: 0.92;
    line-height: 1.4;
}

/* BNPL strip (under Success Partners) — full-width images, no card chrome */
.platform-home-bnpl-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.platform-home-bnpl {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.platform-home-bnpl__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 1rem;
}

.platform-home-bnpl--text {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.25rem 0;
}

.platform-home-bnpl__title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.25;
}

.platform-home-bnpl__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #4b647a;
    line-height: 1.5;
}

.platform-home-bnpl__cta {
    align-self: flex-start;
    margin-top: 0.15rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: underline;
}
