/*
 * Colmagis authored customizations.
 *
 * Keep WPBakery-generated `_wpb_shortcodes_custom_css` out of this file.
 * Ownership and verification notes live in the repo README.md.
 */

/* --- Shared list pages --------------------------------------------------- */

.colmagis-page-capacitaciones .date::first-letter,
.colmagis-page-comunicados .date::first-letter,
.colmagis-page-prensa .date::first-letter {
    text-transform: capitalize !important;
}

.colmagis-page-capacitaciones .meta-category,
.colmagis-page-comunicados .meta-category,
.colmagis-page-prensa .meta-category {
    display: none;
    visibility: hidden;
}

/* --- Main navigation ---------------------------------------------------- */

#menu-item-498 .menu-title-text {
    white-space: nowrap;
}

/* --- Featured-image-left post lists ------------------------------------ */

.post-area.featured_img_left.span_12 .article-content-wrap .post-content-wrap {
    padding: 20px;
}

.post-area.featured_img_left .article-content-wrap .post-content-wrap {
    padding: 20px 0 20px 20px;
}

.post-area.featured_img_left.span_12 article {
    margin-bottom: 16px;
}

.post-area.featured_img_left .post-content-wrap .grav-wrap {
    margin-top: 4px;
}

.post-area.featured_img_left .article-content-wrap .post-featured-img-wrap {
    min-height: 165px;
}

.post-area.featured_img_left .post-content-wrap {
    display: flex;
    flex-direction: column;
}

.post-area.featured_img_left .post-content-wrap .post-header {
    order: 1;
    margin-bottom: 0;
}

.post-area.featured_img_left .post-content-wrap .grav-wrap {
    order: 2;
    margin-top: 0;
    margin-bottom: 14px;
}

.post-area.featured_img_left .post-content-wrap .excerpt {
    order: 3;
}

.post-area.featured_img_left .grav-wrap .text span {
    display: inline-block;
}

.post-area.featured_img_left .grav-wrap .text span::first-letter {
    text-transform: capitalize;
}

.post-area.featured_img_left h3.title {
    margin-bottom: 0;
}

@media (min-width: 1000px) {
    .post-area.featured_img_left .article-content-wrap .post-featured-img-wrap {
        width: 160px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .post-area.featured_img_left .article-content-wrap .post-content-wrap {
        width: calc(100% - 160px);
        left: 160px;
    }

    .post-area.featured_img_left .article-content-wrap {
        min-height: 160px;
    }
}

@media (max-width: 999px) {
    .post-area.featured_img_left .article-content-wrap {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 15px;
        align-items: start;
    }

    .post-area.featured_img_left .article-content-wrap .post-featured-img-wrap {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 70px !important;
        height: 100% !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: none !important;
        aspect-ratio: auto;
        align-self: stretch !important;
        border-radius: 5px;
    }

    .post-area.featured_img_left .post-featured-img-wrap > a,
    .post-area.featured_img_left .post-featured-img-wrap .post-featured-img,
    .post-area.featured_img_left .post-featured-img-wrap img {
        width: 100%;
        height: 100%;
    }

    .post-area.featured_img_left .post-featured-img-wrap img {
        object-fit: cover;
    }

    .post-area.featured_img_left .article-content-wrap .post-content-wrap {
        display: contents;
    }

    .post-area.featured_img_left .post-content-wrap .post-header {
        grid-column: 2;
        grid-row: 1;
    }

    .post-area.featured_img_left .post-content-wrap .grav-wrap {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }

    .post-area.featured_img_left .post-content-wrap .excerpt {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 10px;
    }

    .post-area.featured_img_left .article-content-wrap:not(:has(.post-featured-img-wrap)) .post-header,
    .post-area.featured_img_left .article-content-wrap:not(:has(.post-featured-img-wrap)) .grav-wrap,
    .post-area.featured_img_left .article-content-wrap:not(:has(.post-featured-img-wrap)) .excerpt {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .post-area.featured_img_left .article-content-wrap {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .post-area.featured_img_left .article-content-wrap .post-featured-img-wrap {
        width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
    }

    .post-area.featured_img_left .post-content-wrap h3.title {
        font-size: 16px;
        line-height: 21px;
    }

    .post-area.featured_img_left .grav-wrap .text span {
        font-size: 12px;
        line-height: 16px;
    }

    .post-area.featured_img_left .post-content-wrap .excerpt {
        font-size: 13px;
        line-height: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --- Beneficios --------------------------------------------------------- */

.colmagis-page-beneficios .nectar-icon-list[data-direction="horizontal"] .nectar-icon-list-item {
    width: calc(53.3% - 5%);
    margin: 0 5% 13px 0 !important;
}

.colmagis-page-beneficios .nectar-icon-list[data-direction="horizontal"] {
    border-bottom: 2px solid #e6e6e6;
    width: 100%;
}

.colmagis-page-beneficios .row .nectar-icon-list .nectar-icon-list-item h4 {
    line-height: 54px;
    margin-bottom: 4px;
    font-size: 1.7em;
    font-weight: light;
    color: #333;
}
