/**
 * Second Section Block Styles
 *
 * Full-width white background section with a centred title + underline accent,
 * a main product image, and a vertical list of icon + text items.
 *
 * @package ACF Child Theme
 */

:root {
    --color-yellow: #e3cd51;
    --color-light: #e7e9ed;
    --color-text: #595959;
    --color-teal: #2d5765;
    --color-white: #ffffff;
    --font-primary: 'Aptos', sans-serif;
}

/* ── Section Wrapper — full-width white background ───────────────────────── */
.second-section {
    width: 100%;
    background-color: var(--color-white, #ffffff);
    padding: 70px 0;
    margin-bottom: 0 !important;
}

/* ── Content Container — WordPress layout width ──────────────────────────── */
.second-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Header: title + underline ───────────────────────────────────────────── */
.second-section__header {
    text-align: center;
    /* margin-bottom: 48px; */
    max-width: 800px;
}

.second-section__title {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text, #595959);
    line-height: 1.25;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Coloured underline accent — colour driven by inline style from ACF colour picker */
.second-section__underline {
    width: 140px;
    height: 4px;
    background-color: #4c93b5; /* overridden by inline style */
    margin: 0 auto;
    display: none;
}

/* ── Main Image ───────────────────────────────────────────────────────────── */
.second-section__image-wrap {
    width: 100%;
    max-width: 930px;
    overflow: hidden;
    /*margin-bottom: 40px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.second-section__image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.second-section__description {
    width: 100%;
    max-width: 840px;
    margin-bottom: 28px;
}

.second-section__description p {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #595959);
    line-height: 1.7;
    margin: 0 0 12px 0;
    text-align: center;
}

.second-section__description p:last-child {
    margin-bottom: 0;
}

/* ── Items List ───────────────────────────────────────────────────────────── */
.second-section__items {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 930px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.second-section__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.second-section__item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-top: 2px;
}

.second-section__item-text {
    font-family: var(--font-primary, 'Aptos', sans-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text, #595959);
    line-height: 1.6;
}

/* ── Tablet ───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1023px) {
    .second-section {
        padding: 56px 0;
    }

    .second-section__title {
        font-size: 1.875rem;
    }

    .second-section__header {
        margin-bottom: 40px;
    }

    .second-section__image-wrap {
        padding: 16px;
    }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .second-section {
        padding: 40px 0;
    }

    .second-section__title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .second-section__header {
        margin-bottom: 32px;
    }

    .second-section__underline {
        width: 48px;
        height: 3px;
    }

    .second-section__image-wrap {
        padding: 12px;
        margin-bottom: 28px;
    }

    .second-section__items {
        gap: 16px;
    }

    .second-section__item {
        gap: 12px;
    }

    .second-section__item-icon {
        width: 24px;
        height: 24px;
    }

    .second-section__item-text {
        font-size: 0.9375rem;
    }
}
