﻿/* Recent Posts - compact right sidebar */
.moa-recent-news-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.moa-recent-news-list .moa-recent-news-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.moa-recent-news-list .moa-recent-news-image {
    display: block !important;
    flex: 0 0 85px !important;
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
}

.moa-recent-news-list .moa-recent-news-image img {
    display: block !important;
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
}

.moa-recent-news-list .moa-recent-news-content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.moa-recent-news-list .moa-recent-news-content h4 {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}
/* =========================================================
   NEWS & UPDATES — NEW MINISTRY DESIGN
   ========================================================= */

.moa-news-page,
.moa-news-article-page {
    padding: 70px 0 80px;
    background: #f7f9f7;
}

.moa-news-page .container,
.moa-news-article-page .container {
    max-width: 1200px;
}

/* ---------- Section heading ---------- */

.moa-news-page .moa-section-heading {
    margin-bottom: 45px;
}

.moa-news-page .moa-section-heading-center {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.moa-news-page .moa-section-heading span {
    display: block;
    margin-bottom: 10px;
    color: #1d774d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.moa-news-page .moa-section-heading h2 {
    margin: 0 0 14px;
    color: #123d2a;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.moa-news-page .moa-section-heading p {
    margin: 0;
    color: #66756d;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   NEWS LIST
   ========================================================= */

.moa-news-card {
    display: flex;
    margin-bottom: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(18, 61, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moa-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(18, 61, 42, 0.10);
}

.moa-news-card-image {
    flex: 0 0 285px;
    width: 285px;
    height: 230px;
    display: block;
    overflow: hidden;
    background: #edf2ee;
}

.moa-news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.moa-news-card:hover .moa-news-card-image img {
    transform: scale(1.04);
}

.moa-news-card-content {
    flex: 1;
    padding: 28px 30px;
}

.moa-news-meta,
.moa-news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.moa-news-meta span,
.moa-news-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #718078;
    font-size: 13px;
    line-height: 1.4;
}

.moa-news-meta i,
.moa-news-article-meta i {
    color: #1d774d;
}

.moa-news-card-title {
    margin: 0 0 13px;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.moa-news-card-title a {
    color: #123d2a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.moa-news-card-title a:hover {
    color: #1d774d;
}

.moa-news-card-excerpt {
    margin: 0 0 18px;
    color: #66756d;
    font-size: 15px;
    line-height: 1.75;
}

.moa-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1d774d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.moa-news-read-more:hover {
    color: #123d2a;
    gap: 13px;
}


/* =========================================================
   NEWS SIDEBAR
   ========================================================= */

.moa-news-sidebar {
    position: sticky;
    top: 25px;
}

.moa-news-sidebar-box {
    margin-bottom: 25px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(18, 61, 42, 0.06);
}

.moa-news-sidebar-heading {
    padding-bottom: 17px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5ebe7;
}

.moa-news-sidebar-heading span {
    display: block;
    margin-bottom: 5px;
    color: #d9a514;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.moa-news-sidebar-heading h3 {
    margin: 0;
    color: #123d2a;
    font-size: 23px;
    font-weight: 700;
}


/* ---------- Recent posts ---------- */

.moa-recent-news-list {
    display: flex;
    flex-direction: column;
}

.moa-recent-news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1ee;
}

.moa-recent-news-item:first-child {
    padding-top: 0;
}

.moa-recent-news-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.moa-recent-news-image {
    flex: 0 0 92px;
    width: 92px;
    height: 68px;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #edf2ee;
}

.moa-recent-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.moa-recent-news-item:hover .moa-recent-news-image img {
    transform: scale(1.06);
}

.moa-recent-news-content {
    flex: 1;
    min-width: 0;
}

.moa-recent-news-date {
    display: block;
    margin-bottom: 5px;
    color: #1d774d;
    font-size: 11px;
    font-weight: 600;
}

.moa-recent-news-content h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.moa-recent-news-content h4 a {
    color: #263b31;
    text-decoration: none;
    transition: color 0.2s ease;
}

.moa-recent-news-content h4 a:hover {
    color: #1d774d;
}

.moa-sidebar-empty {
    margin: 0;
    color: #748078;
    font-size: 14px;
}


/* ---------- Sidebar highlight ---------- */

.moa-news-sidebar-highlight {
    position: relative;
    overflow: hidden;
    background: #123d2a;
    border: 0;
    color: #ffffff;
}

.moa-news-sidebar-highlight::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 25px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.moa-news-sidebar-highlight > * {
    position: relative;
    z-index: 1;
}

.moa-news-sidebar-highlight > span {
    display: block;
    margin-bottom: 9px;
    color: #d9a514;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.moa-news-sidebar-highlight h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
}

.moa-news-sidebar-highlight p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.moa-sidebar-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #123d2a;
    background: #ffffff;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.moa-sidebar-button:hover {
    color: #123d2a;
    background: #d9a514;
    text-decoration: none;
}


/* =========================================================
   NEWS PAGINATION
   ========================================================= */

.moa-news-pagination {
    margin-top: 35px;
}

.moa-news-pagination .pagination {
    justify-content: flex-start;
    margin: 0;
}

.moa-news-pagination .page-link {
    color: #1d774d;
    border-color: #dce6df;
    border-radius: 5px;
    margin-right: 5px;
}

.moa-news-pagination .page-item.active .page-link {
    color: #ffffff;
    background: #1d774d;
    border-color: #1d774d;
}


/* =========================================================
   EMPTY NEWS STATE
   ========================================================= */

.moa-news-empty {
    padding: 55px 35px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
}

.moa-news-empty h3 {
    margin: 0 0 10px;
    color: #123d2a;
    font-size: 22px;
}

.moa-news-empty p {
    margin: 0;
    color: #6e7c74;
}


/* =========================================================
   INDIVIDUAL NEWS ARTICLE
   ========================================================= */

.moa-news-article {
    background: #ffffff;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(18, 61, 42, 0.06);
}

.moa-news-article-image {
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #edf2ee;
}

.moa-news-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moa-news-article-content {
    padding: 35px 40px 40px;
}

.moa-news-article-meta {
    margin-bottom: 15px;
}

.moa-news-article-title {
    margin: 0 0 25px;
    color: #123d2a;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

.moa-news-article-story {
    color: #43534b;
    font-size: 16px;
    line-height: 1.85;
}

.moa-news-article-story p {
    margin: 0 0 20px;
}

.moa-news-article-story h2,
.moa-news-article-story h3 {
    margin: 30px 0 14px;
    color: #123d2a;
    line-height: 1.35;
}

.moa-news-article-story h2 {
    font-size: 25px;
}

.moa-news-article-story h3 {
    font-size: 21px;
}

.moa-news-article-story ul,
.moa-news-article-story ol {
    margin: 0 0 22px;
    padding-left: 25px;
}

.moa-news-article-story li {
    margin-bottom: 8px;
}

.moa-news-article-story a {
    color: #1d774d;
    font-weight: 600;
}

.moa-news-article-story blockquote {
    margin: 25px 0;
    padding: 18px 22px;
    background: #f2f6f3;
    border-left: 4px solid #d9a514;
    color: #506057;
    font-style: italic;
}

.moa-news-article-footer {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e7ece8;
}

.moa-news-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: #ffffff;
    background: #1d774d;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.moa-news-back-button:hover {
    color: #ffffff;
    background: #123d2a;
    text-decoration: none;
    transform: translateX(-2px);
}


/* =========================================================
   NEWS RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .moa-news-page,
    .moa-news-article-page {
        padding: 55px 0 65px;
    }

    .moa-news-card-image {
        flex: 0 0 240px;
        width: 240px;
        height: 210px;
    }

    .moa-news-card-content {
        padding: 24px;
    }

    .moa-news-card-title {
        font-size: 21px;
    }

    .moa-news-sidebar {
        position: static;
    }

    .moa-news-article-image {
        height: 340px;
    }

    .moa-news-article-title {
        font-size: 30px;
    }

}


@media (max-width: 767px) {

    .moa-news-page,
    .moa-news-article-page {
        padding: 45px 0 55px;
    }

    .moa-news-page .moa-section-heading {
        margin-bottom: 30px;
    }

    .moa-news-page .moa-section-heading h2 {
        font-size: 30px;
    }

    .moa-news-page .moa-section-heading p {
        font-size: 14px;
    }

    .moa-news-card {
        display: block;
    }

    .moa-news-card-image {
        width: 100%;
        height: 220px;
    }

    .moa-news-card-content {
        padding: 22px;
    }

    .moa-news-card-title {
        font-size: 20px;
    }

    .moa-news-meta {
        gap: 10px 15px;
    }

    .moa-news-sidebar-box {
        padding: 22px;
    }

    .moa-news-article-image {
        height: 250px;
    }

    .moa-news-article-content {
        padding: 25px 22px 30px;
    }

    .moa-news-article-title {
        font-size: 26px;
    }

    .moa-news-article-story {
        font-size: 15px;
        line-height: 1.8;
    }

}


@media (max-width: 480px) {

    .moa-news-card-image {
        height: 190px;
    }

    .moa-news-card-content {
        padding: 20px;
    }

    .moa-news-card-title {
        font-size: 19px;
    }

    .moa-news-article-image {
        height: 210px;
    }

    .moa-news-article-title {
        font-size: 23px;
    }

    .moa-recent-news-image {
        flex-basis: 82px;
        width: 82px;
        height: 62px;
    }
/* =========================================================
   MOA NAVIGATION - FINAL OVERRIDE
   ========================================================= */

nav.moa-navigation ul.moa-menu-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

nav.moa-navigation ul.moa-menu-list > li.moa-menu-item {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

nav.moa-navigation ul.moa-menu-list > li.moa-menu-item::before,
nav.moa-navigation ul.moa-menu-list > li.moa-menu-item::after,
nav.moa-navigation ul.moa-menu-list > li.moa-menu-item::marker {
    display: none !important;
    content: none !important;
}

nav.moa-navigation ul.moa-menu-list > li.moa-menu-item > a.moa-menu-link {
    display: flex !important;
    align-items: center !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
/* =========================================================
   PUBLICATIONS CATEGORY FILTERS
   ========================================================= */

.moa-publications-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 18px;
    background: #f5f8f5;
    border: 1px solid #e1e8e2;
    border-radius: 8px;
}

.moa-publication-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #d7e0d9;
    border-radius: 4px;
    background: #ffffff;
    color: #1f4d2e !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.moa-publication-filter:hover,
.moa-publication-filter.active {
    background: #1f4d2e;
    border-color: #1f4d2e;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .moa-publications-filters {
        gap: 8px;
    }

    .moa-publication-filter {
        width: 100%;
    }

}