/* =========================================================
   MOF HOMEPAGE - COMMUNITY COLUMNS
   /css/community_home.css
   ========================================================= */

.community-home-card {
    overflow: hidden;
}

.community-home-heading-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 20px !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 0 10px !important;
    padding: 0 !important;
}

.community-home-heading-row > div {
    display: block !important;
    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
}

.community-home-heading-row h2 {
    display: block !important;
    width: auto !important;
    height: auto !important;

    margin: 0 0 5px !important;
    padding: 0 !important;

    color: #071f45 !important;
}

.community-home-subtitle {
    display: block !important;
    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.community-home-viewall {
    display: inline-block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 3px !important;
    padding: 0 !important;

    color: #c8202f !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.community-home-viewall:hover {
    text-decoration: underline !important;
}

.community-home-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.community-home-item {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background: #ffffff !important;

    border: 1px solid #dfe3e8 !important;
    border-radius: 10px !important;

    box-shadow: 0 7px 18px rgba(0,0,0,.06);
}

.community-home-image-link {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

.community-home-image {
    display: block !important;

    width: 100% !important;
    height: 230px !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center !important;
}

.community-home-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 20px !important;

    box-sizing: border-box !important;
}

.community-home-category {
    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #c8202f !important;

    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;

    letter-spacing: 1px !important;
}

.community-home-content h3 {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 0 10px !important;
    padding: 0 !important;

    color: #071f45 !important;

    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.community-home-content h3 a {
    color: #071f45 !important;
    text-decoration: none !important;
}

.community-home-content h3 a:hover {
    color: #c8202f !important;
}

.community-home-excerpt {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 0 18px !important;
    padding: 0 !important;

    color: #4b5056 !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
}

.community-home-author {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    width: 100% !important;
    height: auto !important;

    margin: auto 0 15px !important;
    padding: 0 !important;
}

.community-home-author > img {
    display: block !important;

    width: 44px !important;
    height: 44px !important;

    margin: 0 !important;

    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;
}

.community-home-author > div {
    display: flex !important;
    flex-direction: column !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

.community-home-author-name,
.community-home-date {
    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

.community-home-author-name {
    color: #071f45 !important;

    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.community-home-date {
    margin-top: 2px !important;

    color: #777 !important;

    font-size: 12px !important;
    line-height: 1.25 !important;
}

.community-home-read {
    display: inline-block !important;

    align-self: flex-start !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #c8202f !important;

    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.community-home-read:hover {
    text-decoration: underline !important;
}

.community-home-empty {
    width: 100%;

    padding: 25px;

    box-sizing: border-box;

    background: #f7f8fa;

    border: 1px solid #dfe3e8;
    border-radius: 9px;

    color: #666;

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .community-home-heading-row {
        display: block !important;
    }

    .community-home-viewall {
        margin-top: 10px !important;
        white-space: normal !important;
    }

    .community-home-grid {
        grid-template-columns: 1fr !important;
    }

    .community-home-image {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   COMMUNITY COLUMNS - TYPOGRAPHY POLISH
   ========================================================= */

/* Give the subtitle some breathing room below the heading */
.community-home-heading-row h2 {
    margin-bottom: 10px !important;
}

.community-home-subtitle {
    margin-top: 0 !important;
    line-height: 1.5 !important;
}


/* TEAM COLUMN label - larger, cleaner, less heavy */
.community-home-category {
    margin-bottom: 11px !important;

    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    letter-spacing: 1.2px !important;

    color: #c8202f !important;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* READ COLUMN - larger and less chunky */
.community-home-read {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;

    letter-spacing: 0 !important;

    color: #c8202f !important;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.community-home-read:hover {
    color: #9f1722 !important;
    text-decoration: none !important;
}

/* =========================================================
   COMMUNITY COLUMN HEADER ACTIONS
   ========================================================= */

.community-home-heading-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 3px !important;
    padding: 0 !important;
}


/* VIEW ALL LINK */
.community-home-heading-actions .community-home-viewall {
    margin: 0 !important;
}


/* SUBMIT COLUMN BUTTON */
.community-home-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 10px 16px !important;

    background: #f4c430 !important;
    border: 1px solid #d7a914 !important;
    border-radius: 5px !important;

    color: #071f45 !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    box-shadow: 0 2px 5px rgba(0,0,0,.12);

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.community-home-submit:hover {
    background: #ffd447 !important;
    color: #071f45 !important;

    text-decoration: none !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(0,0,0,.16);
}


/* MOBILE */
@media (max-width: 760px) {

    .community-home-heading-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;

        margin-top: 14px !important;
    }

    .community-home-submit {
        padding: 10px 14px !important;
    }

}
