/* Life Ministries Category Tabs */

/* =============================================
   TAB HEADERS
   ============================================= */

.lm-category-tabs {
    width: 100%;
}

.lm-tabs-header {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}

.lm-tabs-header::-webkit-scrollbar {
    display: none;
}

.lm-tab-btn {
    flex: 1 0 auto;
    min-width: 0;
    padding: 10px 16px;
    background: rgba(41, 81, 53, 0.11);
    border: none;
    cursor: pointer;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #295135;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease;
    outline: none;
}

.lm-tab-btn:hover {
    background: rgba(41, 81, 53, 0.16);
}

.lm-tab-btn.active {
    background: rgba(41, 81, 53, 0.21);
}

.lm-tab-btn:focus-visible {
    outline: 2px solid #EABD00;
    outline-offset: -2px;
}

/* =============================================
   TAB PANELS
   ============================================= */

.lm-tab-panel {
    display: none;
    padding: 45px 0 10px;
    background: #fff;
}

.lm-tab-panel.active {
    display: block;
}

/* Two column grid */
.lm-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* =============================================
   SHARED POST STYLES (used by both featured and list)
   ============================================= */

.lm-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lm-post-thumb {
    flex-shrink: 0;
    line-height: 0;
    display: block;
}

.lm-list-content {
    flex: 1;
    min-width: 0;
}

.lm-post-title {
    margin: 0 0 8px;
    line-height: 1.3;
}

.lm-post-title a {
    color: #295135;
    text-decoration: none;
    font-weight: 600;
}

.lm-post-title a:hover {
    opacity: 0.8;
}

/* Category meta */
.lm-post-meta {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.4;
}

.lm-post-meta a {
    color: #EABD00;
    text-decoration: none;
}

.lm-post-meta a:hover {
    opacity: 0.7;
}

/* Excerpts */
.lm-post-excerpt {
    font-weight: 300;
    line-height: 1.5;
    color: #000;
}

.lm-post-excerpt p {
    margin: 0 0 1em;
}

/* Compact excerpt hidden on desktop for featured post */
.lm-compact-excerpt {
    display: none;
    font-size: 15px;
}

/* Read more link */
.lm-read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 300;
    color: #000;
    text-decoration: underline;
    letter-spacing: 1px;
    text-transform: capitalize;
    transition: font-weight 0.3s ease;
}

.lm-read-more:hover {
    font-weight: 400;
}

/* =============================================
   FEATURED POST (Left Column) — Desktop
   ============================================= */

.lm-tab-featured .lm-list-item {
    flex-direction: column;
    gap: 0;
}

.lm-tab-featured .lm-post-thumb {
    width: 100%;
    margin-bottom: 20px;
}

.lm-tab-featured .lm-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.lm-tab-featured .lm-post-title {
    font-size: 32px;
}

/* =============================================
   LIST POSTS (Right Column) — Desktop
   ============================================= */

.lm-tab-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lm-tab-list .lm-post-thumb img {
    width: 181px;
    height: 181px;
    object-fit: cover;
    display: block;
}

.lm-tab-list .lm-post-title {
    font-size: 24px;
}

.lm-tab-list .lm-post-excerpt {
    font-size: 15px;
}

/* Hide read more on list items */
.lm-tab-list .lm-read-more {
    display: none;
}

/* =============================================
   TABLET (<980px)
   ============================================= */

@media (max-width: 980px) {
    .lm-tab-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lm-tab-featured .lm-post-title {
        font-size: 28px;
    }

    .lm-tab-list .lm-post-thumb img {
        width: 140px;
        height: 140px;
    }

    .lm-tab-list .lm-post-title {
        font-size: 20px;
    }
}

/* =============================================
   MOBILE (<767px)
   ============================================= */

@media (max-width: 767px) {
    .lm-tab-btn {
        font-size: 14px;
        padding: 10px 12px;
    }

    .lm-tab-panel {
        padding: 20px 0 10px;
    }

    /* Featured post becomes identical to list items */
    .lm-tab-featured .lm-list-item {
        flex-direction: row;
        gap: 16px;
    }

    .lm-tab-featured .lm-post-thumb {
        width: auto;
        margin-bottom: 0;
    }

    .lm-tab-featured .lm-post-thumb img {
        width: 120px;
        height: 120px;
        object-fit: cover;
    }

    .lm-tab-featured .lm-post-title {
        font-size: 18px;
    }

    .lm-tab-featured .lm-featured-excerpt,
    .lm-tab-featured .lm-read-more {
        display: none;
    }

    .lm-tab-featured .lm-compact-excerpt {
        display: block;
    }

    /* List items on mobile */
    .lm-tab-list .lm-post-thumb img {
        width: 120px;
        height: 120px;
    }

    .lm-tab-list .lm-post-title {
        font-size: 18px;
    }

    .lm-post-meta {
        font-size: 12px;
        letter-spacing: 2px;
    }
}
