/**
 * Experience Section Block Styles
 *
 * Full-width section with two columns split by a vertical divider: an icon +
 * bold text on the left and a description on the right. Background colour is set
 * inline (default pale blue).
 *
 * Reference design: child-theme-sections-screenshots/experience-section.png
 *
 * @package ACF Child Theme
 */

:root {
    --color-grey: #f3f3f3;
    --color-navy: #0d1e3b;
    --color-teal: #17abc1;
    --color-text: #252525;
    --color-blue: #004e95;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full width, background set inline (default pale blue)
   ========================================================================== */
.experience-section {
    width: 100%;
    margin: 0;
    padding: 50px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

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

/* Two-column grid with a vertical divider
   ========================================================================== */
.experience-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* First column: icon + bold text
   ========================================================================== */
.experience-section__col--intro {
    display: flex;
    align-items: center;
    gap: 26px;
}

.experience-section__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
}

.experience-section__icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.experience-section__text {
    margin: 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy, #0d1e3b);
}

/* Second column: description, with the vertical divider on its left edge
   ========================================================================== */
.experience-section__col--description {
    padding-left: 50px;
    border-left: 2px solid #c9d3dd;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text, #252525);
}

.experience-section__col--description p {
    margin: 0 0 14px 0;
}

.experience-section__col--description p:last-child {
    margin-bottom: 0;
}

/* Responsive - Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .experience-section__grid {
        gap: 36px;
    }

    .experience-section__col--description {
        padding-left: 36px;
    }

    .experience-section__text {
        font-size: 22px;
    }

    .experience-section__icon {
        width: 76px;
        height: 76px;
    }
}

/* Responsive - Mobile (stack, divider becomes a top border)
   ========================================================================== */
@media (max-width: 768px) {
    .experience-section {
        padding: 40px 0;
    }

    .experience-section__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .experience-section__text {
        font-size: 21px;
    }

    .experience-section__icon {
        width: 70px;
        height: 70px;
    }

    .experience-section__col--description {
        padding-left: 0;
        padding-top: 28px;
        border-left: 0;
        border-top: 1px solid #c9d3dd;
    }
}
