.blog-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
}

.blog-meta i {
    color: var(--primary-blue);
    margin-right: 4px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--black);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-blue);
}

.blog-content p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Filters */
.blog-filters {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h2 {
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-blue);
}

@media (max-width: 600px) {
    .newsletter-form .input-group {
        flex-direction: column;
    }

    .blog-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

/* ===== PREMIUM BLOG POST STYLES ===== */
.post-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    padding-top: 80px;
    /* Offset for header */
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.post-hero h1 {
    font-size: 4rem;
    color: var(--white) !important;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.post-container {
    max-width: 900px;
    margin: -120px auto 5rem;
    background: var(--white);
    padding: 5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.post-body {
    line-height: 1.9;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.post-body h2 {
    font-size: 2.2rem;
    margin: 4rem 0 1.5rem;
    color: var(--black);
}

.post-body p {
    margin-bottom: 2rem;
}

.post-body .lead {
    font-size: 1.4rem;
    color: var(--black);
    font-weight: 500;
    margin-bottom: 3rem;
}

.post-body img {
    width: 100% !important;
    height: auto;
    border-radius: var(--radius-md);
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

/* Callouts */
.tip-box {
    background: var(--light-gray);
    border-left: 5px solid var(--primary-blue);
    padding: 3rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 4rem 0;
}

.tip-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quote-box {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--black);
    border-left: 4px solid var(--primary-blue);
    padding-left: 2.5rem;
    margin: 4rem 0;
    font-weight: 500;
}

/* Back Button */
.back-floating {
    position: absolute;
    top: -60px;
    left: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .post-hero h1 {
        font-size: 2.5rem;
    }

    .post-container {
        margin-top: -60px;
        padding: 3rem 1.5rem;
        border-radius: 0;
    }

    .back-floating {
        top: -40px;
        left: 15px;
    }
}