/* =============================================
   Blog Listing
   ============================================= */

.blog-header {
    background-color: #1a3a52;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.blog-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.blog-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.is-visible {
    animation: blogCardReveal 0.6s ease forwards;
}

@keyframes blogCardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-card.is-visible:hover {
    transform: translateY(-8px);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e8ecef;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ecef;
    color: #b0bec5;
}

.blog-card-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Card Body */
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.8125rem;
    color: #6b6b6b;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.blog-card-readmore {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a3a52;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-readmore {
    color: #2a5a7a;
}

/* Pagination */
.blog-listing .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.blog-listing .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-listing .page-numbers:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.blog-listing .page-numbers.current {
    background-color: #1a3a52;
    color: #fff;
}

.blog-listing .page-numbers.prev,
.blog-listing .page-numbers.next {
    font-weight: 600;
    color: #1a3a52;
}

.blog-no-posts {
    text-align: center;
    color: #6b6b6b;
    font-size: 1.125rem;
    padding: 4rem 0;
}


/* =============================================
   Single Post
   ============================================= */

.single-hero {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.single-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.single-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.single-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.single-back-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a3a52;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-back-link:hover {
    color: #2a5a7a;
}

.single-header {
    margin-bottom: 2.5rem;
}

.single-date {
    display: block;
    font-size: 0.875rem;
    color: #6b6b6b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.single-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a3a52;
    line-height: 1.3;
    margin: 0;
}

/* Article body content */
.single-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.single-body p {
    margin-bottom: 1.5rem;
}

.single-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 2.5rem 0 1rem;
}

.single-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 2rem 0 0.75rem;
}

.single-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.single-body blockquote {
    border-left: 3px solid #1a3a52;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.single-body ul,
.single-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.single-body li {
    margin-bottom: 0.5rem;
}

.single-body a {
    color: #1a3a52;
    text-decoration: underline;
}

.single-body a:hover {
    color: #2a5a7a;
}

/* Prev / Next navigation */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.post-nav-prev,
.post-nav-next {
    min-height: 1px;
}

.post-nav-next {
    text-align: right;
}

.single-post-nav a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.single-post-nav a:hover {
    text-decoration: none;
}

.post-nav-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.single-post-nav a:hover .post-nav-label {
    color: #2a5a7a;
}

.post-nav-title {
    display: block;
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.4;
}


/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 1rem 2rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-listing {
        padding: 2rem 1rem 3rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-image {
        height: 200px;
    }

    /* Single Post */
    .single-hero-image {
        height: 280px;
    }

    .single-content-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    .single-title {
        font-size: 1.75rem;
    }

    .single-body {
        font-size: 1rem;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-nav-next {
        text-align: left;
        padding-top: 1.5rem;
        border-top: 1px solid #e5e5e5;
    }
}
