/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

/* Subpage Hero */
.subpage-hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero-bg-accent {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-secondary-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.subpage-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* Blog Grid */
.blog-section {
    background: linear-gradient(135deg, var(--pastel-mint) 0%, #f0fdfa 100%);
    padding: 40px 0px 80px;
}

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

.blog-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--theme-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    --theme-color: var(--color-primary);
    --theme-light: var(--color-primary-lighter);
}

.blog-card.theme-lavender {
    --theme-color: var(--pastel-lavender-deep);
    --theme-light: var(--pastel-lavender);
}

.blog-card.theme-rose {
    --theme-color: var(--pastel-rose-deep);
    --theme-light: var(--pastel-rose);
}

.blog-card.theme-sky {
    --theme-color: var(--pastel-sky-deep);
    --theme-light: var(--pastel-sky);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(107, 91, 149, 0.1);
    border-color: var(--theme-color);
}

.post-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.category-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: white;
    color: var(--theme-color);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.post-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-meta i {
    color: var(--theme-color);
    margin-right: 0.5rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--theme-color);
    line-height: 1.4;
}

.blog-card p {
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1.2rem;
    color: var(--theme-color);
}

/* Animations */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

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

.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.4s; }

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

@media (max-width: 768px) {
    .subpage-hero h1 { font-size: 2.5rem; }
    
    /* Revert to stacked grid, but smaller */
    .blog-grid { 
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        max-width: 100%;
        height: auto;
    }
    
    .post-img-wrapper { 
        height: 180px; /* Smaller image height */
    }

    .post-content { 
        padding: 1.5rem; /* Reduced padding */
        height: auto; 
    }

    .blog-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }

    .blog-card p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .post-meta {
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
    }
}
