.blog-article {
    transition: all 0.3s ease-in-out;
}

.hidden {
    display: none !important;
}

/* Ensure articles are visible by default, JavaScript will handle hiding */
.blog-article {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Prevent layout shift during image loading */
.blog-article img {
    background-color: #f3f4f6;
    min-height: 224px; /* h-56 = 224px */
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4b5563;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Extracted from Tailwind arbitrary values */
.bg-pattern {
    /* Fixed missing image error by using CSS pattern */
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* --- NEW ANIMATIONS --- */

/* Smooth Card Lift on Hover */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Entrance Animation for Articles */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.entry-animate {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Article Content Reveal */
.article-fade-in {
    animation: slideUpFade 1s ease-out forwards;
}

/* --- CTA SECTION ANIMATIONS --- */

/* Fade in from bottom with slight scale */
@keyframes ctaFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cta-heading {
    animation: ctaFadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.cta-text {
    animation: ctaFadeIn 1s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.cta-button {
    animation: ctaFadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

/* Glowing pulse effect for button */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.5), 0 0 30px rgba(255, 204, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 204, 0, 0.8), 0 0 40px rgba(255, 204, 0, 0.5);
    }
}

.cta-button:hover {
    animation: glow 2s ease-in-out infinite;
    transform: scale(1.05);
}

/* Shimmer effect on button */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}