/* ============================================
   BLOG PAGES (ARCHIVE & SINGLE POST)
   Minimal, Professional, Brand-Aligned Design
   ============================================ */

/* ============================================
   BLOG ARCHIVE (LISTING)
   ============================================ */

/* Archive Hero */
.blog-archive-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.blog-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(77, 191, 184, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 181, 66, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.archive-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.archive-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.archive-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0;
}

/* Blog Posts Grid */
.blog-archive-content {
    padding: 6rem 0;
    background: #ffffff;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-post-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--teal-turquoise);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.post-date,
.post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.post-meta i {
    color: var(--teal-turquoise);
    font-size: 1rem;
}

.post-category a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-category a:hover {
    color: var(--teal-turquoise);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--teal-turquoise);
}

.post-excerpt {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--teal-turquoise) 0%, var(--teal-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(77, 191, 184, 0.3);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-posts-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(77, 191, 184, 0.1) 0%, rgba(77, 191, 184, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-turquoise);
    font-size: 3rem;
}

.no-posts h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
}

.no-posts p {
    font-size: 1.0625rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--teal-turquoise) 0%, var(--teal-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 191, 184, 0.3);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: var(--teal-turquoise);
    color: var(--teal-turquoise);
    transform: translateY(-2px);
}

.blog-pagination .current {
    background: linear-gradient(135deg, var(--teal-turquoise) 0%, var(--teal-dark) 100%);
    color: #ffffff;
    border-color: var(--teal-turquoise);
}

/* ============================================
   SINGLE POST
   ============================================ */

/* Single Post Hero */
.single-post-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.single-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.post-meta-header {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author-info img {
    border-radius: 50%;
    border: 3px solid var(--teal-turquoise);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #718096;
}

.reading-time i {
    color: var(--teal-turquoise);
}

/* Featured Image */
.single-post-featured-image {
    padding: 3rem 0;
    background: #ffffff;
}

.featured-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.single-post-content {
    padding: 4rem 0 6rem;
    background: #ffffff;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-article {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-article p {
    margin-bottom: 1.5rem;
}

.post-article h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2.5rem 0 1.25rem;
}

.post-article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2rem 0 1rem;
}

.post-article ul,
.post-article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-article li {
    margin-bottom: 0.75rem;
}

.post-article a {
    color: var(--teal-turquoise);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-article a:hover {
    color: var(--teal-dark);
}

.post-article blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(77, 191, 184, 0.05) 0%, rgba(77, 191, 184, 0.02) 100%);
    border-left: 4px solid var(--teal-turquoise);
    border-radius: 8px;
    font-style: italic;
    color: #4a5568;
}

.post-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 3rem;
}

.post-tags i {
    color: var(--teal-turquoise);
    font-size: 1.25rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(77, 191, 184, 0.1);
    color: var(--teal-turquoise);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--teal-turquoise);
    color: #ffffff;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(77, 191, 184, 0.03) 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--teal-turquoise);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.post-navigation a {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--teal-turquoise);
}

/* Related Posts */
.related-posts {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
}

.section-heading-center {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin-bottom: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-post-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal-turquoise);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.related-post-date i {
    color: var(--teal-turquoise);
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.related-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--teal-turquoise);
}

.related-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--teal-turquoise);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-read-more:hover {
    gap: 0.75rem;
    color: var(--teal-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-archive-hero,
    .single-post-hero {
        padding: 120px 0 60px;
    }
    
    .archive-hero-title {
        font-size: 2.5rem;
    }
    
    .single-post-title {
        font-size: 2.25rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-label {
        justify-content: flex-start;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-pagination .nav-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-archive-hero,
    .single-post-hero {
        padding: 100px 0 50px;
    }
    
    .archive-hero-title {
        font-size: 2rem;
    }
    
    .single-post-title {
        font-size: 1.875rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-article {
        font-size: 1rem;
    }
}

