/* Blog Styles */
.blog-header {
    position: relative;
    padding: 6rem 0 3rem;
    background: var(--bg-light);
    text-align: center;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.blog-header .container {
    position: relative;
    z-index: 1;
}

.blog-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.blog-section {
    position: relative;
    padding: 4rem 0;
    background: transparent;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.blog-section .container {
    position: relative;
    z-index: 1;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.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.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-date {
    font-weight: 500;
}

.blog-author {
    color: var(--primary);
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.blog-views {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-info {
    color: var(--text-light);
    font-weight: 500;
}

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Blog Detail Page */
.blog-detail {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-white);
    overflow: hidden;
}

.blog-detail::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.blog-detail .container {
    position: relative;
    z-index: 1;
}

.blog-back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.blog-detail-header {
    margin-bottom: 3rem;
}

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-detail-excerpt {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
}

.blog-detail-image {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-content {
    max-width: 800px;
    margin: 3rem auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-detail-content h2 {
    font-size: 2rem;
}

.blog-detail-content h3 {
    font-size: 1.5rem;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.blog-detail-content a:hover {
    color: var(--primary-dark);
}

.blog-detail-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

/* Related Posts */
.related-posts {
    position: relative;
    padding: 4rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.related-posts .container {
    position: relative;
    z-index: 1;
}

.related-posts .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Active nav link */
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        padding: 4rem 0 2rem;
    }

    .blog-detail {
        padding: 4rem 0;
    }

    .blog-detail-content {
        font-size: 1rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-card-content {
        padding: 1.5rem;
    }

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

    .blog-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

