/**
 * Third Section Block
 *
 * Full-width teal section with a single white card: centred title and intro,
 * two columns of bulleted items (navy bullets, grey text), a bottom description
 * and a centred button.
 * Matches child-theme-sections-screenshots/third-section.png
 */

:root {
    --color-navy: #385d8c;
    --color-pale: #eef3f8;
    --color-teal: #93cddc;
    --color-sky:  #d2eaf0;
    --color-text: #787878;
    --color-white: #ffffff;
}

.third-section {
    background-color: var(--color-teal);
    font-family: 'Roboto', sans-serif;
    padding: 60px 0;
}

.third-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.third-section__card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 60px 70px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

.third-section__title {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 26px;
}

.third-section__intro {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    max-width: 940px;
    margin: 0 auto 50px;
}

.third-section__intro p {
    color: inherit;
    margin: 0 0 1em;
}

.third-section__intro p:last-child {
    margin-bottom: 0;
}

/* ---- Columns ---- */
.third-section__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 70px;
    align-items: start;
}

.third-section__col-text {
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.third-section__col-text p {
    color: inherit;
    margin: 0 0 0.8em;
}

.third-section__col-text p:last-child {
    margin-bottom: 0;
}

/* Column sub-headings inside the WYSIWYG render navy/bold */
.third-section__col-text h2,
.third-section__col-text h3,
.third-section__col-text h4,
.third-section__col-text strong,
.third-section__col-text b {
    color: var(--color-navy);
    font-weight: 700;
}

.third-section__col-text h2,
.third-section__col-text h3,
.third-section__col-text h4 {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.third-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.third-section__item {
    position: relative;
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.5;
    padding-left: 28px;
    margin-bottom: 20px;
}

.third-section__item:last-child {
    margin-bottom: 0;
}

.third-section__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 12px;
    background-color: var(--color-navy);
    border-radius: 50%;
}

/* ---- Outro + button ---- */
.third-section__outro {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    max-width: 940px;
    margin: 50px auto 0;
}

.third-section__outro p {
    color: inherit;
    margin: 0 0 1em;
}

.third-section__outro p:last-child {
    margin-bottom: 0;
}

.third-section__button-wrap {
    text-align: center;
    margin-top: 34px;
}

/* ---- Button (teal secondary, per style guide) ---- */
.third-section .btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.third-section .btn-secondary {
    background-color: var(--color-teal);
    color: var(--color-navy);
}

.third-section .btn-secondary:hover,
.third-section .btn-secondary:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .third-section__card {
        padding: 44px 44px;
    }

    .third-section__title {
        font-size: 26px;
    }

    .third-section__columns {
        gap: 34px 44px;
    }
}

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

    .third-section__card {
        padding: 34px 24px;
        border-radius: 16px;
    }

    .third-section__title {
        font-size: 24px;
    }

    .third-section__intro,
    .third-section__outro {
        font-size: 16px;
    }

    .third-section__columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .third-section__col-text h2,
    .third-section__col-text h3,
    .third-section__col-text h4 {
        font-size: 20px;
    }
}
