/* ---------- BLOG PAGE ---------- */

.blog-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px 70px;
}


/* ---------- BLOG HERO ---------- */

.blog-hero {
    text-align: center;
    padding: 25px 20px 35px;
}

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.blog-hero .blog-subtitle {
    font-size: 20px;
    margin: 0 auto 28px;
    max-width: 700px;
}


/* ---------- SEARCH ---------- */

.blog-search-box {
    max-width: 750px;
    margin: 0 auto;
}

.blog-search-box input {
    width: 70%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
}

.blog-search-box button {
    padding: 14px 22px;
    margin-left: 6px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.blog-search-note {
    font-size: 14px;
    margin-top: 10px;
}


/* ---------- SECTION HEADINGS ---------- */

.blog-section {
    margin-top: 45px;
}

.blog-section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}


/* ---------- TOPICS ---------- */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.topic-card {
    display: block;
    padding: 18px 15px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}


/* ---------- FEATURED SERIES ---------- */

.featured-series {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: stretch;
}

.featured-card {
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

.featured-card h3 {
    font-size: 28px;
    margin-top: 0;
}

.featured-card p {
    line-height: 1.6;
}

.featured-card .series-count {
    font-weight: bold;
    margin-top: 20px;
}

.series-button {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #999;
}

.featured-side {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
}

.featured-side h3 {
    margin-top: 0;
}

.featured-side ul {
    padding-left: 20px;
    line-height: 1.8;
}


/* ---------- LATEST POSTS ---------- */

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.post-card {
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 24px;
    background: #fff;
}

.post-card h3 {
    margin-top: 0;
    font-size: 21px;
    line-height: 1.3;
}

.post-card h3 a {
    text-decoration: none;
}

.post-date {
    font-size: 14px;
    margin-bottom: 14px;
}

.post-card p {
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    text-decoration: none;
}


/* ---------- BOTTOM NAVIGATION ---------- */

.blog-bottom-nav {
    text-align: center;
    margin-top: 40px;
}

.blog-bottom-button {
    display: inline-block;
    margin: 6px;
    padding: 13px 24px;
    border: 1px solid #999;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}


/* ---------- MOBILE ---------- */

@media (max-width: 800px) {

    .topic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-series {
        grid-template-columns: 1fr;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 550px) {

    .blog-home {
        padding-left: 15px;
        padding-right: 15px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .blog-search-box input {
        width: 100%;
        margin-bottom: 8px;
    }

    .blog-search-box button {
        width: 100%;
        margin-left: 0;
    }

}
/* BROWSE BY TOPIC - PHOTO CARDS */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.topic-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 125px;
    padding: 18px;
    overflow: hidden;
    box-sizing: border-box;

    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 19px;
    font-weight: bold;

    background-color: #173e64;
    background-size: cover;
    background-position: center;
    border: 1px solid #d4dce4;
    border-radius: 7px;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
    transition: transform 0.2s ease;
}

.topic-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 25, 48, 0.42);
    transition: background 0.2s ease;
}

.topic-card span {
    position: relative;
    z-index: 1;
}

.topic-card:hover {
    transform: translateY(-3px);
    color: #FFFFFF;
}

.topic-card:hover::before {
    background: rgba(0, 25, 48, 0.22);
}

.topic-card:focus-visible {
    outline: 3px solid #c58c32;
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 105px;
    }
}
/* ==========================================
   FEATURED SERIES AND OTHER TEACHING SERIES
   ========================================== */

.featured-series {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}




/* TEACHING SERIES */
.teaching-series {
    padding: 35px 20px;
    background: #f0f5f9;
}

.teaching-series .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.teaching-series .section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.teaching-series .section-heading h2 {
    color: #173e64;
    font-size: 30px;
    margin: 0 0 8px;
}

.teaching-series .section-heading p {
    color: #526477;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 700px;
}

.teaching-series-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.teaching-series-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(23, 62, 100, 0.07);
}

.teaching-series-card img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.teaching-series-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 15px;
}

.teaching-series-card h3 {
    color: #173e64;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.teaching-series-card p {
    color: #526477;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px;
}

.teaching-series-card .series-link {
    display: inline-block;
    margin-top: auto;
    padding: 8px 11px;
    background: #173e64;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.teaching-series-card .series-link:hover {
    background: #1b6095;
}

.teaching-series-footer {
    text-align: center;
    margin-top: 25px;
}

.teaching-series-footer a {
    color: #1b6095;
    font-weight: bold;
    text-decoration: none;
}

.teaching-series-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .teaching-series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .teaching-series {
        padding: 25px 15px;
    }

    .teaching-series-grid {
        grid-template-columns: 1fr;
    }

    .teaching-series-card img {
        height: 120px;
    }
}

/* FIX TEACHING SERIES INTRO TEXT */
.teaching-series .section-heading p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: center !important;
    font-weight: normal !important;
    max-width: 700px;
    margin: 0 auto;
}
#browsebytopic {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
}

#latest-posts {
	display: block;
    position: relative;
    top: -40px;
    visibility: hidden;
}

#teaching-series {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

#searchtopics {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}


/* =====================================================
   ALL POSTS PAGE (scoped to body.all-posts-page)
   Moved from all-posts.html
   ===================================================== */


        
body.all-posts-page,
body.all-posts-page * {
            box-sizing: border-box;
        }


        
body.all-posts-page {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: #26384a;
            background: #ffffff;
            line-height: 1.6;
        }


        
body.all-posts-page a {
            color: inherit;
        }


        
/* HEADER */


        
body.all-posts-page .site-header {
            background: #173e64;
            color: #ffffff;
            padding: 18px 5%;
        }


        
body.all-posts-page .header-inner {
            max-width: 1200px;
            margin: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }


        
body.all-posts-page .site-logo {
            color: #ffffff;
            font-size: 23px;
            font-weight: bold;
            text-decoration: none;
        }


        
body.all-posts-page .site-nav {
            display: flex;
            gap: 22px;
            flex-wrap: wrap;
        }


        
body.all-posts-page .site-nav a {
            color: #ffffff;
            text-decoration: none;
            font-size: 15px;
        }


        
body.all-posts-page .site-nav a:hover {
            text-decoration: underline;
        }


        
/* PAGE INTRODUCTION */


        
body.all-posts-page .page-hero {
            background: linear-gradient(
                120deg,
                #e7f0f7,
                #f5f8fb
            );
            text-align: center;
            padding: 55px 20px 45px;
        }


        
body.all-posts-page .page-hero h1 {
            color: #173e64;
            font-size: 38px;
            line-height: 1.2;
            margin: 0 0 15px;
        }


        
body.all-posts-page .page-hero p {
            max-width: 700px;
            margin: 0 auto 25px;
            color: #526477;
            font-size: 17px;
        }


        
body.all-posts-page .back-link {
            display: inline-block;
            color: #1b6095;
            font-weight: bold;
            text-decoration: none;
            margin-top: 12px;
        }


        
body.all-posts-page .back-link:hover {
            text-decoration: underline;
        }


        
/* SEARCH */


        
body.all-posts-page .post-search {
            display: block;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            padding: 15px 18px;
            border: 1px solid #c7d5e1;
            border-radius: 6px;
            background: #ffffff;
            color: #26384a;
            font-size: 16px;
        }


        
body.all-posts-page .post-search:focus {
            outline: 2px solid #527da4;
            outline-offset: 2px;
        }


        
/* MAIN CONTENT */


        
body.all-posts-page .all-posts-section {
            max-width: 1250px;
            margin: auto;
            padding: 45px 25px 65px;
        }


        
body.all-posts-page .section-title {
            color: #173e64;
            font-size: 29px;
            text-align: center;
            margin: 0 0 10px;
        }


        
body.all-posts-page .section-intro {
            color: #526477;
            text-align: center;
            margin: 0 auto 30px;
        }


        
/* TOPIC FILTERS */


        
body.all-posts-page .topic-filters {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 35px;
        }


        
body.all-posts-page .topic-filter {
            background: #edf3f8;
            color: #173e64;
            border: 1px solid #d3e0ea;
            padding: 9px 15px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }


        
body.all-posts-page .topic-filter:hover,
body.all-posts-page .topic-filter.active {
            background: #173e64;
            color: #ffffff;
            border-color: #173e64;
        }


        
body.all-posts-page .topic-filter:focus-visible {
            outline: 2px solid #527da4;
            outline-offset: 3px;
        }


        
/* POST GRID */


        
body.all-posts-page .posts-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 26px;
        }


        
body.all-posts-page .post-card {
            background: #ffffff;
            border: 1px solid #dce5ed;
            border-radius: 9px;
            overflow: hidden;
            box-shadow: 0 3px 12px rgba(23, 62, 100, 0.08);
            transition: transform 0.2s ease,
                        box-shadow 0.2s ease;
        }


        
body.all-posts-page .post-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 22px rgba(23, 62, 100, 0.14);
        }


        
body.all-posts-page .post-image-link {
            display: block;
            overflow: hidden;
            background: #dce8f2;
        }


        
body.all-posts-page .post-image {
            display: block;
            width: 100%;
            height: 205px !important;
            object-fit: cover;
            transition: transform 0.3s ease;
        }


        
body.all-posts-page .post-card:hover .post-image {
            transform: scale(1.03);
        }


        
body.all-posts-page .post-content {
            padding: 22px;
        }


        
body.all-posts-page .post-topic {
            display: inline-block;
            color: #285d87;
            background: #eaf2f8;
            padding: 4px 9px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 12px;
        }


        
body.all-posts-page .post-date {
            color: #697b8c;
            font-size: 13px;
            margin: 0 0 8px;
        }


        
body.all-posts-page .post-card h3 {
            color: #173e64;
            font-size: 21px;
            line-height: 1.35;
            margin: 0 0 12px;
        }


        
body.all-posts-page .post-card h3 a {
            text-decoration: none;
        }


        
body.all-posts-page .post-card h3 a:hover {
            color: #286a9e;
        }


        
body.all-posts-page .post-description {
            color: #526477;
            font-size: 15px;
            margin: 0 0 18px;
        }


        
body.all-posts-page .read-post {
            color: #1b6095;
            font-weight: bold;
            text-decoration: none;
        }


        
body.all-posts-page .read-post:hover {
            text-decoration: underline;
        }


        
/* SEARCH RESULTS */


        
body.all-posts-page .results-count {
            color: #526477;
            text-align: center;
            margin: 0 0 25px;
        }


        
body.all-posts-page .no-results {
            display: none;
            text-align: center;
            padding: 35px 15px;
            color: #526477;
            background: #f0f5f9;
            border-radius: 8px;
        }


        
/* FOOTER */


        
body.all-posts-page .site-footer {
            background: #173e64;
            color: #ffffff;
            text-align: center;
            padding: 30px 20px;
        }


        
body.all-posts-page .site-footer p {
            margin: 5px 0;
            font-size: 14px;
        }


        
body.all-posts-page .site-footer a {
            color: #ffffff;
        }


        
/* TABLETS */


        
@media (max-width: 900px) {

            
body.all-posts-page .posts-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }


            
body.all-posts-page .page-hero h1 {
                font-size: 33px;
            }

        
}


        
/* PHONES */


        
@media (max-width: 600px) {

            
body.all-posts-page .header-inner {
                justify-content: center;
                text-align: center;
            }


            
body.all-posts-page .site-nav {
                justify-content: center;
                gap: 14px;
            }


            
body.all-posts-page .page-hero {
                padding: 40px 18px;
            }


            
body.all-posts-page .page-hero h1 {
                font-size: 29px;
            }


            
body.all-posts-page .all-posts-section {
                padding: 35px 15px 45px;
            }


            
body.all-posts-page .posts-grid {
                grid-template-columns: 1fr;
                gap: 22px;
            }


            
body.all-posts-page .post-image {
                height: 220px;
            }

        
}


    
