/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* Blog Intro Section */
.blog-intro {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.blog-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.intro-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h1 {
    font-size: 60px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-content p {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 20px;
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-controls {
    text-align: center;
    margin-bottom: 40px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: #f0f0f0;
    color: #2d2d2d;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* No Posts Message */
.no-posts-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.no-posts {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    line-height: 1.4;
    margin: 0;
}

/* Blog Card */
.blog-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card.featured img {
    height: 400px;
}

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

.blog-card-content {
    padding: 25px;
}

.blog-card-content .category {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card-content h3 {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-content .date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.blog-card-content .excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary {
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.6);
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn.primary:hover::after {
    width: 200px;
    height: 200px;
}

.btn.secondary {
    background: #2d2d2d;
    color: #d4af37;
    border: 2px solid transparent;
}

.btn.secondary:hover {
    background: transparent;
    border-color: #d4af37;
    color: #2d2d2d;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* CTA Section */
.cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
}

.cta h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Animations */
.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-reveal[data-delay] {
    transition-delay: var(--delay);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .blog-card.featured {
        grid-column: span 1;
    }
    .blog-card.featured img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .blog-intro {
        padding: 60px 20px;
    }
    .intro-content h1 {
        font-size: 48px;
    }
    .intro-content p {
        font-size: 18px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
   generally, blog-card img {
        height: 240px;
    }
    .category-filters {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    .no-posts-container {
        padding: 30px;
    }
    .no-posts {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .intro-content h1 {
        font-size: 36px;
    }
    .intro-content p {
        font-size: 16px;
    }
    .blog-posts {
        padding: 60px 15px;
    }
    .blog-card-content h3 {
        font-size: 24px;
    }
    .cta h2 {
        font-size: 32px;
    }
    .cta p {
        font-size: 16px;
    }
    .no-posts-container {
        padding: 20px;
    }
    .no-posts {
        font-size: 18px;
    }
}