/* ==========================================================================
   BLOG PAGE STYLES - Archive & Single Post
   ========================================================================== */

/* ---- ARCHIVE PAGE HEADER ---- */

.blog .page-header,
.category .page-header,
.tag .page-header {
    background: linear-gradient(135deg, #184187 0%, #235ec3 100%);
    color: #fff;
    padding: 24px !important;
    border-radius: 18px;
    margin: 12px;
}

.blog .page-header .page-title,
.category .page-header .page-title,
.tag .page-header .page-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.blog .page-header .taxonomy-description,
.category .page-header .taxonomy-description,
.tag .page-header .taxonomy-description {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-size: 15px;
}

/* ---- ARCHIVE POST GRID LAYOUT ---- */

.blog #main,
.category #main,
.tag #main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 12px;
}

.blog #main > .storefront-breadcrumb,
.blog #main > .page-header,
.blog #main > nav.navigation,
.category #main > .storefront-breadcrumb,
.category #main > .page-header,
.category #main > nav.navigation,
.tag #main > .storefront-breadcrumb,
.tag #main > .page-header,
.tag #main > nav.navigation {
    grid-column: 1 / -1;
}

/* ---- ARCHIVE POST CARDS ---- */

.blog .hentry,
.category .hentry,
.tag .hentry {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog .hentry:hover,
.category .hentry:hover,
.tag .hentry:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ---- FEATURED IMAGES ---- */

.blog .hentry .post-thumbnail img,
.category .hentry .post-thumbnail img,
.tag .hentry .post-thumbnail img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.single-post .post-thumbnail img {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    object-fit: cover;
}

/* ---- POST TITLES ---- */

.blog .hentry .entry-title,
.category .hentry .entry-title,
.tag .hentry .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog .hentry .entry-title a,
.category .hentry .entry-title a,
.tag .hentry .entry-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog .hentry .entry-title a:hover,
.category .hentry .entry-title a:hover,
.tag .hentry .entry-title a:hover {
    color: #184187;
}

/* ---- POST META ---- */

.blog .hentry .posted-on,
.blog .hentry .byline,
.category .hentry .posted-on,
.category .hentry .byline,
.tag .hentry .posted-on,
.tag .hentry .byline {
    color: #666;
    font-size: 13px;
}

.blog .hentry .posted-on a,
.blog .hentry .byline a,
.category .hentry .posted-on a,
.category .hentry .byline a,
.tag .hentry .posted-on a,
.tag .hentry .byline a {
    color: #666;
    text-decoration: none;
}

.blog .hentry .posted-on a:hover,
.blog .hentry .byline a:hover,
.category .hentry .posted-on a:hover,
.category .hentry .byline a:hover,
.tag .hentry .posted-on a:hover,
.tag .hentry .byline a:hover {
    color: #184187;
}

/* ---- CATEGORY & TAG BADGES ---- */

.blog .hentry .cat-links a,
.blog .hentry .tags-links a,
.category .hentry .cat-links a,
.category .hentry .tags-links a,
.tag .hentry .cat-links a,
.tag .hentry .tags-links a,
.single-post .cat-links a,
.single-post .tags-links a {
    display: inline-block;
    background: #e8f0fe;
    color: #184187;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 2px 4px 2px 0;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.5;
}

.blog .hentry .cat-links a:hover,
.blog .hentry .tags-links a:hover,
.category .hentry .cat-links a:hover,
.category .hentry .tags-links a:hover,
.tag .hentry .cat-links a:hover,
.tag .hentry .tags-links a:hover,
.single-post .cat-links a:hover,
.single-post .tags-links a:hover {
    background: #184187;
    color: #fff;
}

.blog .hentry .entry-taxonomy,
.category .hentry .entry-taxonomy,
.tag .hentry .entry-taxonomy,
.single-post .entry-taxonomy {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 16px;
}

/* ---- "CONTINUE READING" LINK ---- */

.blog .hentry .entry-content a.more-link,
.category .hentry .entry-content a.more-link,
.tag .hentry .entry-content a.more-link {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.blog .hentry .entry-content a.more-link:hover,
.category .hentry .entry-content a.more-link:hover,
.tag .hentry .entry-content a.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    background-color: #184187;
}

/* ---- ARCHIVE PAGINATION ---- */

.blog nav.navigation.pagination .nav-links,
.category nav.navigation.pagination .nav-links,
.tag nav.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.blog nav.navigation.pagination .page-numbers,
.category nav.navigation.pagination .page-numbers,
.tag nav.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #184187;
    background: #e8f0fe;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog nav.navigation.pagination .page-numbers:hover,
.category nav.navigation.pagination .page-numbers:hover,
.tag nav.navigation.pagination .page-numbers:hover {
    background: #184187;
    color: #fff;
    transform: translateY(-1px);
}

.blog nav.navigation.pagination .page-numbers.current,
.category nav.navigation.pagination .page-numbers.current,
.tag nav.navigation.pagination .page-numbers.current {
    background: #184187;
    color: #fff;
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

/* ---- SINGLE POST HEADER ---- */

.single-post .entry-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8f0fe;
}

.single-post .entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    margin-bottom: 12px;
}

.single-post .posted-on,
.single-post .byline {
    color: #666;
    font-size: 14px;
}

.single-post .posted-on a,
.single-post .byline a {
    color: #666;
    text-decoration: none;
}

.single-post .posted-on a:hover,
.single-post .byline a:hover {
    color: #184187;
}

/* ---- SINGLE POST CONTENT TYPOGRAPHY ---- */

.single-post .entry-content {
    line-height: 1.75;
    color: #333;
}

.single-post .entry-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.single-post .entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.single-post .entry-content p {
    margin-bottom: 16px;
}

.single-post .entry-content blockquote {
    border-left: 4px solid #184187;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f5f8fc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

.single-post .entry-content img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.single-post .entry-content li {
    margin-bottom: 6px;
}

.single-post .entry-content a {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.single-post .entry-content a:hover {
    text-decoration-color: #0066cc;
}

/* ---- POST NAVIGATION ---- */

.single-post .post-navigation {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e8f0fe;
}

.single-post .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.single-post .post-navigation .nav-previous a,
.single-post .post-navigation .nav-next a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}

.single-post .post-navigation .nav-previous a {
    border-left-color: #184187;
}

.single-post .post-navigation .nav-next a {
    border-right-color: #184187;
    text-align: right;
}

.single-post .post-navigation .nav-previous a:hover,
.single-post .post-navigation .nav-next a:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* 2-column grid for medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog #main,
    .category #main,
    .tag #main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Single column on mobile */
    .blog #main,
    .category #main,
    .tag #main {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 8px;
    }

    /* Archive header */
    .blog .page-header,
    .category .page-header,
    .tag .page-header {
        margin: 0;
        padding: 16px !important;
        border-radius: 12px;
    }

    .blog .page-header .page-title,
    .category .page-header .page-title,
    .tag .page-header .page-title {
        font-size: 22px;
    }

    /* Archive cards */
    .blog .hentry,
    .category .hentry,
    .tag .hentry {
        padding: 16px;
        border-radius: 10px;
    }

    .blog .hentry .entry-title,
    .category .hentry .entry-title,
    .tag .hentry .entry-title {
        font-size: 20px;
    }

    .blog .hentry .entry-content a.more-link,
    .category .hentry .entry-content a.more-link,
    .tag .hentry .entry-content a.more-link {
        display: block;
        text-align: center;
    }

    /* Single post */
    .single-post .entry-title {
        font-size: 26px;
    }

    .single-post .entry-content h2 {
        font-size: 22px;
    }

    .single-post .entry-content h3 {
        font-size: 18px;
    }

    /* Post navigation */
    .single-post .post-navigation .nav-links {
        flex-direction: column;
    }

    .single-post .post-navigation .nav-previous,
    .single-post .post-navigation .nav-next {
        max-width: 100%;
    }

    .single-post .post-navigation .nav-next a {
        text-align: left;
        border-right-color: transparent;
        border-left-color: #184187;
    }

    /* Pagination */
    .blog nav.navigation.pagination .page-numbers,
    .category nav.navigation.pagination .page-numbers,
    .tag nav.navigation.pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
