/* ==========================================================================
   Section 7 — Business+ วิเคราะห์ 4 เครื่องมือ (.bp-section-7)
   Light theme. Heading + vertical 4-row list. Each row = number + content.
   Item 01 auto-active on entry; desktop hover / mobile tap to switch.
   ========================================================================== */

.bp-section-7 .bp-section-7__inner {
    width: 100%;
    max-width: 1320px;
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* --- Heading ------------------------------------------------------------- */
.bp-section-7__header { color: #171717; }
.bp-section-7__heading {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
}
.bp-section-7__heading-line { display: block; }
.bp-section-7__heading-line--red  { color: #E01C24; }
.bp-section-7__heading-line--dark {
    color: #171717;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
}

/* --- List --------------------------------------------------------------- */
.bp-section-7__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-section-7__item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #C8C8C8;
    transition: padding 0.35s ease;
}
/* cursor: pointer only where something actually happens on click.
   On mouse, the row reacts to hover (no click action), so a hand cursor
   on the row was misleading. On touch, tapping the row toggles active —
   so keep the pointer hint there. */
@media (hover: none) {
    .bp-section-7__item { cursor: pointer; }
}
.bp-section-7__item:first-child { border-top: none; }
.bp-section-7__item.is-active { padding: 26px 0; }

.bp-section-7__num {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    color: #D4D4D4;
    text-align: center;
    transition: font-size 0.35s ease, color 0.3s ease, font-weight 0.3s ease;
}
.bp-section-7__item.is-active .bp-section-7__num {
    font-size: 6rem;
    color: #171717;
    font-weight: 700;
}

/* Content lays out as a grid so title + CTA share a row, and body spans below. */
.bp-section-7__content {
    color: #171717;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title cta"
        "text  text";
    column-gap: 32px;
    row-gap: 10px;
    align-items: center;
}
.bp-section-7__title {
    grid-area: title;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    color: #171717;
}
.bp-section-7__text {
    grid-area: text;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #171717;
}

/* --- CTA "อ่านต่อ" pill ------------------------------------------------- */
.bp-section-7__cta {
    grid-area: cta;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #171717;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.bp-section-7__cta:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    color: #ffffff;
}
.bp-section-7__cta-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* --- Tablet ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .bp-section-7 .bp-section-7__inner { padding: 64px 32px; gap: 36px; }
    .bp-section-7__heading { font-size: 1.9rem; }
    .bp-section-7__heading-line--dark { font-size: 1.25rem; }
    .bp-section-7__item { grid-template-columns: 140px 1fr; gap: 28px; padding: 14px 0; }
    .bp-section-7__item.is-active { padding: 22px 0; }
    .bp-section-7__num { font-size: 3.2rem; }
    .bp-section-7__item.is-active .bp-section-7__num { font-size: 5rem; }
    .bp-section-7__content { column-gap: 20px; }
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 768px) {
    .bp-section-7 .bp-section-7__inner { padding: 56px 20px; gap: 28px; }
    .bp-section-7__heading { font-size: 1.4rem; text-align: center; line-height: 1.35; }
    .bp-section-7__heading-line--dark { font-size: 1rem; margin-top: 8px; }

    .bp-section-7__item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
        text-align: center;
    }
    .bp-section-7__item.is-active { padding: 20px 0; }
    .bp-section-7__num { font-size: 2.6rem; }
    .bp-section-7__item.is-active .bp-section-7__num { font-size: 4.5rem; }

    /* Stack title / body / CTA vertically on mobile — CTA below body */
    .bp-section-7__content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "text"
            "cta";
        row-gap: 12px;
        justify-items: center;
    }
    .bp-section-7__cta { justify-self: center; }

    .bp-section-7__title { font-size: 1.05rem; }
    .bp-section-7__text { font-size: 0.9rem; line-height: 1.7; }
    .bp-section-7__cta { font-size: 0.85rem; padding: 5px 12px; }
}
