/* =========================================================
   Content Feature Section - Shared Structure
   ========================================================= */

.content-feature-section {
    margin: 14px 0;
}


/* ---------------------------------------------------------
   Shared Section Title
   --------------------------------------------------------- */

.content-feature-section-title {
    margin-bottom: 1.8rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #164f73;
    padding: 10px;
    border-bottom: 2px solid #d8d8d8;
}

.content-feature-section-title-icon {
    font-size: 1.1em;
}


/* ---------------------------------------------------------
   Shared Section Intro
   --------------------------------------------------------- */

.content-feature-section-intro {
    margin-bottom: 2.5rem;
}


/* ---------------------------------------------------------
   Shared Feature Items
   --------------------------------------------------------- */

.content-feature-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.content-feature-item-image {
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.content-feature-item-content {
    flex: 1;
    min-width: 0;
}

.content-feature-item-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.content-feature-item-icon {
    flex: 0 0 auto;
    font-size: 1.5em;
    vertical-align: middle;
}

.content-feature-item-title {
    margin: 0;
}

h3.content-feature-item-title {
    font-size: 1.2em;
    font-weight: 600;
}

.content-feature-item-body p:first-child {
    margin-top: 0;
}

.content-feature-item-body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Content Feature Variation - Intro Image
   Used when one larger image appears beside the intro text.
   The feature items underneath can use Font Awesome icons.
   ========================================================= */

.content-feature--intro-image .content-feature-section-intro {
    display: flow-root;
}

.content-feature--intro-image .content-feature-section-intro-image {
    float: left;
    width: 350px;
    max-width: 45%;
    height: auto;
    margin: 0 22px 15px 0;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.content-feature--intro-image .content-feature-section-intro-text p:first-child {
    margin-top: 0;
}

.content-feature--intro-image .content-feature-section-intro-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Content Feature Section - Mobile
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       Shared Feature Items
       ----------------------------------------------------- */

    .content-feature-item {
        flex-direction: column;
        gap: 2rem;
    }

    .content-feature-item + .content-feature-item {
        border-top: 1px solid #d8d8d8;
        padding-top: 3rem;
    }

    .content-feature-item-image {
        width: min(100%, 240px);
        height: auto;
        aspect-ratio: 1 / 1;
        flex: none;
        object-fit: cover;
        align-self: flex-start;
    }


    /* -----------------------------------------------------
       Intro Image Variation
       ----------------------------------------------------- */

    .content-feature--intro-image .content-feature-section-intro-image {
        float: none;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0 0 20px;
    }

}