
/* =============================================================
   RESOURCES Section — Sub-nav, Download Rows, Sermon Grid,
   Book Grid, Channel Cards, Topic Tags
   Neutral (navy #192f59) accent — serves BTC & LWSOM equally
   ============================================================= */

/* --- Resources Sub-nav ------------------------------------- */
.res-subnav {
    background: #f5f5f5;
    border-bottom: 1px solid #e2e2e2;
}

.res-subnav .kingster-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.res-subnav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    min-width: max-content;
}

.res-subnav-link {
    display: inline-block;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.res-subnav-link:hover {
    color: #1a2e5a;
    border-bottom-color: #1a2e5a;
}

.res-subnav-link.active {
    color: #1a2e5a;
    border-bottom-color: #1a2e5a;
    font-weight: 700;
}

/* --- Topic tags (shared: sermon + book cards) -------------- */
.res-topic-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(26,46,90,0.08);
    border: 1px solid rgba(26,46,90,0.18);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #192f59;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* --- Download rows (forms-downloads.php) ------------------- */
.res-download-list {
    border: 1px solid #e2e4ea;
    border-radius: 3px;
    overflow: hidden;
}

.res-download-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e4ea;
    background: #fff;
    transition: background-color 0.15s;
}

.res-download-row:last-child {
    border-bottom: none;
}

.res-download-row:hover {
    background-color: #f9fafb;
}

.res-download-icon {
    width: 38px;
    height: 38px;
    background: #192f59;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.res-download-icon .fa {
    color: #e2c76a;
    font-size: 18px;
}

.res-download-info {
    flex: 1;
    min-width: 0;
}

.res-download-title {
    font-size: 14px;
    font-weight: 700;
    color: #192f59;
    margin: 0 0 3px;
    line-height: 1.3;
}

.res-download-desc {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.res-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #192f59;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.res-download-btn:hover {
    background-color: #0f1d3a;
    color: #fff;
}

/* --- Featured sermon card (sermons-teachings.php) ---------- */
.res-sermon-featured {
    position: relative;
    display: flex;
    gap: 0;
    border: 1px solid #e2e4ea;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.res-sermon-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #192f59;
    color: #e2c76a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    z-index: 1;
}

.res-sermon-featured-img {
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: #0f1d3a;
}

.res-sermon-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    display: block;
}

.res-sermon-featured-content {
    padding: 28px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.res-sermon-featured-title {
    font-size: 22px;
    font-weight: 700;
    color: #192f59;
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-serif, 'Playfair Display', serif);
}

.res-sermon-featured-speaker {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    margin: 0;
}

.res-sermon-featured-speaker .fa {
    color: #192f59;
    margin-right: 4px;
}

.res-sermon-featured-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.75;
    margin: 4px 0 8px;
    flex: 1;
}

.res-sermon-cta {
    align-self: flex-start;
    background-color: #192f59;
    color: #fff;
    padding: 12px 22px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.res-sermon-cta:hover {
    background-color: #0f1d3a;
    color: #fff;
}

/* --- Sermon series 2-column grid --------------------------- */
.res-sermon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.res-sermon-card {
    border: 1px solid #e2e4ea;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.res-sermon-card-img {
    height: 150px;
    overflow: hidden;
    background: #0f1d3a;
}

.res-sermon-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    display: block;
}

.res-sermon-card-body {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.res-sermon-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #192f59;
    margin: 0;
    line-height: 1.35;
}

.res-sermon-card-meta {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.res-sermon-card-meta .fa {
    margin-right: 3px;
    color: #192f59;
}

.res-sermon-card-desc {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
    margin: 4px 0 auto;
}

.res-series-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #192f59;
    text-decoration: none;
    border-bottom: 2px solid #192f59;
    padding-bottom: 1px;
    align-self: flex-start;
    transition: color 0.15s, border-color 0.15s;
}

.res-series-btn:hover {
    color: #e2c76a;
    border-bottom-color: #e2c76a;
}

/* --- External channel cards (3-col row) -------------------- */
.res-channel-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.res-channel-card {
    border: 1px solid #e2e4ea;
    border-radius: 3px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.res-channel-icon {
    width: 52px;
    height: 52px;
    background: #192f59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-channel-icon .fa {
    font-size: 24px;
    color: #e2c76a;
}

.res-channel-title {
    font-size: 14px;
    font-weight: 700;
    color: #192f59;
    margin: 0;
    line-height: 1.35;
}

.res-channel-desc {
    font-size: 13px;
    color: #718096;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.res-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #192f59;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.res-channel-btn:hover {
    background-color: #0f1d3a;
    color: #fff;
}

/* --- Book grid (recommended-reading.php) — 3-col ----------- */

.res-book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.res-book-card {
    border: 1px solid #e2e4ea;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.res-book-cover {
    height: 180px;
    overflow: hidden;
    background: #0f1d3a;
}

.res-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.res-book-body {
    padding: 16px 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.res-book-title {
    font-size: 15px;
    font-weight: 700;
    color: #192f59;
    margin: 0;
    line-height: 1.35;
}

.res-book-author {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    font-style: italic;
    margin: 0;
}

.res-book-desc {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
    margin: 4px 0 auto;
    flex: 1;
}

.res-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #192f59;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.15s;
}

.res-book-btn:hover {
    background-color: #0f1d3a;
    color: #fff;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 991px) {
    .res-book-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-channel-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-sermon-featured {
        flex-direction: column;
    }

    .res-sermon-featured-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767px) {
    .res-subnav .kingster-container {
        padding-left: 0;
        padding-right: 0;
    }

    .res-subnav-list {
        padding: 0 16px;
    }

    .res-sermon-grid {
        grid-template-columns: 1fr;
    }

    .res-book-grid {
        grid-template-columns: 1fr;
    }

    .res-channel-row {
        grid-template-columns: 1fr;
    }

    .res-download-row {
        flex-wrap: wrap;
    }

    .res-download-btn {
        width: 100%;
        justify-content: center;
    }
}