/* =========================================
   BLOG STYLES (home.php / archive.php)
   ========================================= */

/* Hero */
.blog-hero {
    position: relative;
    height: 640px;
    color: #fff;
    display: flex;
    align-items: center;
}

.blog-hero .hero-title {
    font-size: 56px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero .hero-subtitle {
}

.blog-hero .container {
    padding-top: 80px;
}

/* Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Main Grid (Masonry-like) */
.blog-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.blog-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.blog-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 30px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.blog-category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: var(--color-dark);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-card-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

.blog-card-title a:hover {
    color: rgba(255,255,255,0.8);
}

.blog-card-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.sidebar-title {
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--color-dark);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-post-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.sidebar-post-card:last-child {
    margin-bottom: 0;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-post-card:hover .sidebar-post-thumb {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex-grow: 1;
}

.sidebar-post-date {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-post-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.sidebar-post-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-post-title a:hover {
    color: var(--color-primary);
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    background: #fff;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-dark);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .sidebar-widget {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .blog-hero .hero-title {
        font-size: 42px;
    }
}

/* =========================================
   SINGLE POST STYLES (single.php)
   ========================================= */

/* Dark header bar on single post */
.single-post .site-header {
    background: var(--color-dark) !important;
    position: relative;
}

.single-post .site-header .nav-menu a,
.single-post .site-header .site-logo,
.single-post .site-header .btn--outline {
    color: #fff;
}

.single-post .site-header .btn--outline {
    border-color: rgba(255,255,255,0.3);
}

.single-post .site-header .btn--outline:hover {
    background: #fff;
    color: var(--color-dark);
}

/* Top spacing after header */
.single-post .single-post-header {
    padding-top: 50px;
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumbs */
.single-breadcrumbs {
    padding: 40px 0 25px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.single-breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-breadcrumbs a:hover {
    color: var(--color-primary);
}

.single-breadcrumbs .breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.4;
}

.single-breadcrumbs .breadcrumb-current {
    color: var(--color-dark);
    font-weight: 500;
}

/* Category badges */
.single-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-category-badge {
    display: inline-block;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-category-badge:hover {
    color: var(--color-accent);
}

/* Title */
.single-post-title {
    font-size: 42px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

/* Excerpt */
.single-post-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Featured Image */
.single-post-figure {
    margin: 0;
    padding: 30px 0 0;
}

.single-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Content Body */
.single-post-body {
    padding: 50px 0 40px;
}

.single-post-body .entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.single-post-body .entry-content p {
    margin-bottom: 24px;
}

.single-post-body .entry-content h2 {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.single-post-body .entry-content h3 {
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.single-post-body .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.single-post-body .entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 20px 30px;
    margin: 30px 0;
    background: #F8F8F8;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.single-post-body .entry-content ul,
.single-post-body .entry-content ol {
    margin-bottom: 24px;
    padding-left: 25px;
}

.single-post-body .entry-content li {
    margin-bottom: 8px;
}

.single-post-body .entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post-body .entry-content a:hover {
    color: var(--color-accent);
}

/* Footer: Tags + Share */
.single-post-footer {
    padding-bottom: 60px;
}

.single-post-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.single-post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.single-tag-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-tag-badge:hover {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

.single-post-share {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-icon:hover {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

/* Related Articles */
.related-articles-title {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.related-card-image {
    display: block;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.related-card-body {
    padding: 20px;
}

.related-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 8px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-card-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-card-title a:hover {
    color: var(--color-primary);
}

.related-card-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.related-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-dark);
}

.related-view-all {
    margin-top: 40px;
}

.related-view-all .btn-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.related-view-all .btn-text:hover {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

/* Single Post Responsive */
@media (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 30px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .single-post-footer-inner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
