/* ── Shared layout ── */
.mkt-section {
    width: 100%;
}

/* ══════════════════════════════
   HERO BLOCK
══════════════════════════════ */

/* --- Variant: no image (centered) --- */
.mkt-hero--centered {
    padding: 80px 5%;
    text-align: center;
    box-sizing: border-box;
}

.mkt-hero--centered .mkt-hero__content {
    max-width: 760px;
    margin: 0 auto;
}

/* --- Variant: image left (side-by-side) --- */
.mkt-hero--split {
    padding: 60px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
    max-width: 1500px;
    margin: 0 auto;
}

.mkt-hero--split .mkt-hero__image-wrap {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.mkt-hero--split .mkt-hero__image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.mkt-hero--split .mkt-hero__content {
    flex: 1;
    text-align: left;
}

/* --- Variant: background image --- */
.mkt-hero--bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 5%;
    box-sizing: border-box;
}

.mkt-hero--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mkt-hero--bg .mkt-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: left;
}

.mkt-hero--bg .mkt-hero__title,
.mkt-hero--bg .mkt-hero__description {
    color: #fff;
}

/* --- Shared content styles --- */
.mkt-hero__title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #000;
}

.mkt-hero__description {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #444;
    margin: 0 0 28px;
}

.mkt-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mkt-hero--centered .mkt-hero__buttons {
    justify-content: center;
}

.mkt-hero__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: filter 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.mkt-hero__btn:hover {
    filter: brightness(0.88);
    transform: scale(1.02);
    color: #fff;
}

/* App store badges (used when app_page = true) */
.mkt-hero__app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mkt-hero--centered .mkt-hero__app-buttons {
    justify-content: center;
}

.mkt-app-badge {
    display: block;
    line-height: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mkt-app-badge:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.mkt-app-badge--apple img {
    height: 44px;
    width: auto;
}

.mkt-app-badge--google img {
    height: 64px;
    width: auto;
    margin: -10px 0;
}

.mkt-hero__qr img {
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    margin-top: 25px;
}

/* Center QR when there is no image (centered hero variant) */
.mkt-hero--centered .mkt-hero__qr img {
    margin-left: auto;
    margin-right: auto;
}

.mkt-hero--centered .mkt-hero__qr,
.mkt-hero--split .mkt-hero__qr {
    border-color: #ddd;
}

/* ── Hero mobile ── */
@media (max-width: 865px) {
    .mkt-hero__title {
        font-size: 2rem;
    }

    /* Split → stack, center everything */
    .mkt-hero--split {
        flex-direction: column;
        gap: 28px;
        padding: 40px 5%;
        text-align: center;
    }

    .mkt-hero--split .mkt-hero__image-wrap {
        flex: none;
        max-width: 100%;
        margin: 0 auto;
    }

    .mkt-hero--split .mkt-hero__content {
        text-align: center;
    }

    .mkt-hero--split .mkt-hero__buttons {
        justify-content: center;
    }

    /* Background → center text */
    .mkt-hero--bg {
        padding: 70px 5%;
    }

    .mkt-hero--bg .mkt-hero__content {
        text-align: center;
        max-width: 100%;
    }

    .mkt-hero--bg .mkt-hero__buttons {
        justify-content: center;
    }

    /* Center app badges + QR on all hero variants */
    .mkt-hero__app-buttons {
        justify-content: center;
    }

    .mkt-hero__qr {
        justify-content: center;
    }

    .mkt-hero__qr img {
        margin-left: auto;
        margin-right: auto;
    }

    /* No-image centered hero */
    .mkt-hero--centered {
        padding: 50px 5%;
    }
}

/* ══════════════════════════════
   CONTENT BLOCK
══════════════════════════════ */

.mkt-content-block {
    padding: 40px 5%;
    box-sizing: border-box;
    max-width: 1500px;
    margin: 0 auto;
}

/* --- Centered (no image, or image_location = Center) --- */
.mkt-content-block--center {
    text-align: center;
}

.mkt-content-block--center .mkt-cb__image-wrap {
    max-width: 600px;
    margin: 0 auto 30px;
}

.mkt-content-block--center .mkt-cb__content {
    max-width: 760px;
    margin: 0 auto;
}

.mkt-content-block--center .mkt-cb__buttons {
    justify-content: center;
}

/* --- Side-by-side (left or right) --- */
.mkt-content-block--left,
.mkt-content-block--right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mkt-content-block--left .mkt-cb__image-wrap {
    order: 1;
    flex: 0 0 40%;
    max-width: 40%;
}

.mkt-content-block--left .mkt-cb__content {
    order: 2;
    flex: 1;
    text-align: left;
}

.mkt-content-block--right .mkt-cb__image-wrap {
    order: 2;
    flex: 0 0 40%;
    max-width: 40%;
}

.mkt-content-block--right .mkt-cb__content {
    order: 1;
    flex: 1;
    text-align: left;
}

.mkt-cb__image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.mkt-cb__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #000;
}

.mkt-cb__content-body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #444;
    margin: 0 0 24px;
}

.mkt-cb__content-body p:first-child { margin-top: 0; }
.mkt-cb__content-body p:last-child  { margin-bottom: 0; }

.mkt-cb__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mkt-cb__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: filter 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.mkt-cb__btn:hover {
    filter: brightness(0.88);
    transform: scale(1.02);
    color: #fff;
}

/* ── Content block mobile ── */
@media (max-width: 865px) {
    .mkt-content-block--left,
    .mkt-content-block--right {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .mkt-content-block--left .mkt-cb__image-wrap,
    .mkt-content-block--right .mkt-cb__image-wrap {
        order: 1;
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .mkt-content-block--left .mkt-cb__content,
    .mkt-content-block--right .mkt-cb__content {
        order: 2;
        text-align: center;
    }

    .mkt-content-block--left .mkt-cb__buttons,
    .mkt-content-block--right .mkt-cb__buttons {
        justify-content: center;
    }

    .mkt-cb__title {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════
   ACCORDION BLOCK
══════════════════════════════ */

.mkt-accordion-block {
    padding: 60px 5%;
    box-sizing: border-box;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.mkt-accordion-block__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 36px;
    color: #000;
}

.mkt-accordion {
    width: 100%;
    border-top: 1px solid #ddd;
}

.mkt-accordion__item {
    border-bottom: 1px solid #ddd;
}

.mkt-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.mkt-accordion__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
    flex: 1;
}

.mkt-accordion__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.mkt-accordion__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.mkt-accordion__item.is-open .mkt-accordion__icon {
    transform: rotate(180deg);
}

.mkt-accordion__body {
    display: none;
    text-align: left;
    padding: 0 0 20px;
    font-size: 1rem;
    line-height: 1.65;
    color: #444;
}

.mkt-accordion__item.is-open .mkt-accordion__body {
    display: block;
}

@media (max-width: 865px) {
    .mkt-accordion-block {
        padding: 40px 5%;
    }
}

/* ══════════════════════════════
   SPONSOR BLOCK
══════════════════════════════ */

.mkt-sponsor-block {
    padding: 50px 5%;
    box-sizing: border-box;
    text-align: center;
}

.mkt-sponsor-block__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.mkt-sponsor-block__link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mkt-sponsor-block__link:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.mkt-sponsor-block__img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 865px) {
    .mkt-sponsor-block {
        padding: 36px 5%;
    }
}
