/**
 * Third Case Study Detail Section Block Styles
 *
 * Two-column section, each with an icon, a title, a short 4px accent line and a
 * description.
 *
 * Reference design: child-theme-sections-screenshots/case-studies/thrid-case-study-detail-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 white background
   ========================================================================== */
.third-csd-section {
    width: 100%;
    margin: 0;
    padding: 60px 0;
    background-color: var(--color-white, #ffffff);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

.third-csd-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
   ========================================================================== */
.third-csd-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Column: icon on the left, content on the right
   ========================================================================== */
.third-csd-section__col {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.third-csd-section__body {
    flex: 1 1 auto;
    min-width: 0;
}

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

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

.third-csd-section__title {
    margin: 0 0 14px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
}

.third-csd-section__line {
    display: block;
    width: 60px;
    height: 4px;
    margin: 0 0 20px 0;
    background-color: var(--color-teal, #17abc1);
}

.third-csd-section__description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text, #252525);
}

.third-csd-section__description p {
    margin: 0 0 16px 0;
}

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

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

    .third-csd-section__title {
        font-size: 22px;
    }
}

/* Responsive - Mobile (stack)
   ========================================================================== */
@media (max-width: 768px) {
    .third-csd-section {
        padding: 45px 0;
    }

    .third-csd-section__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .third-csd-section__title {
        font-size: 22px;
    }
}
