* { box-sizing: border-box; }

        /* Use the same body font, text color, and links as the post pages.
           Those are already defined by style.css. */

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

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

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

        .site-nav {
            display: flex;
            gap: 22px;
            flex-wrap: wrap;
        }

        .site-nav a {
            color: #ffffff;
            text-decoration: none;
        }

        .site-nav a:hover { text-decoration: underline; }

        /* SERIES HERO */

        .series-hero {
            background:
                linear-gradient(
                    90deg,
                    rgba(8, 30, 52, 0.48),
                    rgba(8, 30, 52, 0.86)
                ),
                url('../blog/images/series-bible.jpg');

            background-size: cover;
            background-position: center;
            color: #ffffff;
            padding: 65px 25px;
        }

        .hero-inner {
            max-width: 1050px;
            margin: auto;
        }

        .hero-label {
            font-size: 13px;
            font-weight: bold;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 12px;
            padding-top: 80px;
        }

        .series-hero h1 {
            font-size: 42px;
            line-height: 1.2;
            margin: 0 0 18px;
            color: #ffffff;
        }

        .series-hero p {
            max-width: 760px;
            font-size: 17px;
            line-height: 1.8;
            margin: 0 0 24px;
            color: #ffffff;
        }

        .hero-button {
            display: inline-block;
            background: #ffffff;
            color: #173e64;
            padding: 12px 21px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            margin: 0 10px 8px 0;
        }

        .hero-button:hover { background: #e7f0f7; }

        .hero-button-outline {
            background: transparent;
            color: #ffffff;
            border: 2px solid #ffffff;
        }

        .hero-button-outline:hover {
            background: #ffffff;
            color: #173e64;
        }

        /* INTRODUCTION */

        .intro-section {
            max-width: 1000px;
            margin: auto;
            padding: 45px 25px 30px;
        }

        .intro-section h2 {
            color: #173e64;
            font-size: 29px;
            text-align: center;
            margin: 0 0 18px;
        }

        .intro-section p {
            color: #526477;
            font-size: 16px;
            line-height: 1.8;
            margin: 0 0 16px;
        }

        /* ATTRIBUTE LIST */

        .attributes-section {
            background: #f0f5f9;
            padding: 35px 25px;
        }

        .attributes-inner {
            max-width: 1050px;
            margin: auto;
        }

        .attributes-section h2 {
            text-align: center;
            color: #173e64;
            font-size: 27px;
            margin: 0 0 25px;
        }

        .attributes-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 12px;
        }

        .attribute {
            background: #ffffff;
            border: 1px solid #dce5ed;
            border-radius: 6px;
            text-align: center;
            padding: 15px 8px;
            color: #173e64;
            font-weight: bold;
            font-size: 14px;
        }

        /* POST LIST */

        .posts-section {
            max-width: none;
            margin: 0;
            padding: 80px 0 65px;
        }

        
        .posts-section .series-main > h2 {
    			color: #173e64;
    			font-size: 36px;
    			text-align: center;
    			margin: 0 0 20px;
			}

        .posts-section .posts-intro {
            color: #526477;
            text-align: left;
            margin: 0 0 35px;
            max-width: none;
        }

        .series-posts {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 23px;
        }

        .series-post {
            display: flex;
            flex-direction: column;
            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;
        }

        .series-post:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 18px rgba(23, 62, 100, 0.13);
        }

        .series-post .post-image {
            display: block;
            width: 100%;
            height: 190px !important;
            object-fit: cover;
            background: #dce8f2;
        }

        .series-post .post-content {
            padding: 22px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            flex: 1;
        }

        .series-post .post-date {
            color: #697b8c;
            font-size: 13px;
            margin: 0 0 8px;
        }

        .series-post .post-content h3 {
            color: #173e64;
            font-size: 21px;
            line-height: 1.4;
            margin: 0 0 12px;
        }

        .series-post .post-content p {
            color: #526477;
            margin: 0 0 18px;
        }

        .series-post .read-link {
            color: #1b6095;
            font-weight: bold;
            text-decoration: none;
            margin-top: auto;
        }

        .series-post .read-link:hover { text-decoration: underline; }

        .all-posts-box {
            text-align: center;
            margin-top: 40px;
            padding: 30px;
            background: #f0f5f9;
            border-radius: 9px;
        }

        .all-posts-box h2 {
            color: #173e64;
            font-size: 24px;
            margin: 0 0 10px;
        }

        .all-posts-box p {
            color: #526477;
            margin: 0 0 20px;
        }

        .primary-button {
            display: inline-block;
            background: #173e64;
            color: #ffffff;
            padding: 12px 22px;
            border-radius: 5px;
            font-weight: bold;
            text-decoration: none;
        }

        .primary-button:hover {
    background: #285d87;
    color: #ffffff;
}

        /* FOOTER */

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

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

        .site-footer a { color: #ffffff; }

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

            .attributes-grid .attribute:last-child {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 650px) {
            .header-inner {
                justify-content: center;
                text-align: center;
            }

            .site-nav {
                justify-content: center;
                gap: 14px;
            }

            .series-hero { padding: 45px 20px; }

            .series-hero h1 { font-size: 32px; }

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

            .intro-section,
            .posts-section { padding: 35px 15px 45px; }

            .series-post .post-image { height: 215px; }
        }


/* SERIES PAGE: use the same Bootstrap column layout as individual post pages. */
.series-layout {
    align-items: flex-start;
}

.series-main,
.series-sidebar {
    min-width: 0;
}

/* Keep the post cards in two columns on desktop. */
.series-main .series-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

@media (max-width: 767px) {
    .series-main .series-posts {
        grid-template-columns: 1fr;
    }
}

/* Match the working post page's Bootstrap container and columns. */
.posts-section .series-main,
.posts-section .series-sidebar {
    min-width: 0;
}
.posts-section .series-main .series-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.posts-section .series-post .post-content {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
}
.posts-section .series-sidebar {
    font-family: inherit;
    font-size: inherit;
}
@media (max-width: 767px) {
    .posts-section {
        padding: 40px 0 50px;
    }
    .posts-section .series-main .series-posts {
        grid-template-columns: 1fr;
    }
}

.series-hero .hero-button {
    display: inline-block;
    background: #ffffff;
    color: #173e64;
    padding: 12px 21px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px 8px 0;
}

.series-hero .hero-button:hover {
    background: #e7f0f7;
    color: #173e64;
}
