/* General scroll reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation delays for sections */
.reveal-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

/* Blog Hero Background */
.blog-hero-bg {
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(167, 139, 250, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(244, 114, 182, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 10px);
    background-size: cover, cover, cover, 10px 10px, 10px 10px;
    background-position: center center, center center, center center, 0 0, 0 0;
    animation: hero-background-pan 60s linear infinite;
}

@keyframes hero-background-pan {
    0% {
        background-position: center center, center center, center center, 0 0, 0 0;
    }

    100% {
        background-position: center center, center center, center center, 100px 100px, 100px 100px;
    }
}

/* Blog Card Styling */
.blog-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    /* Fixed height for thumbnails */
    object-fit: cover;
    border-bottom: 1px solid hsl(var(--border));
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    /* Allows content to push button to bottom */
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.5rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-size: 0.95rem;
    /* text-sm */
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    flex-grow: 1;
    /* Allows description to take space */
    margin-bottom: 1rem;
}

.blog-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: background-color 0.3s ease;
    width: fit-content;
    /* Adjust button width to content */
    margin-top: auto;
    /* Pushes button to the bottom */
}

.blog-card .read-more-btn:hover {
    background-color: hsl(var(--primary)/0.9);
}

/* Categories/Filters Styling */
.category-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    background-color: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.category-button:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.category-button.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    font-weight: 600;
}

/* Newsletter Signup */
.newsletter-signup-container {
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.newsletter-signup-container input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-signup-container input[type="email"]:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.newsletter-signup-container button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px hsl(var(--primary)/0.1), 0 2px 4px -1px hsl(var(--primary)/0.06);
    cursor: pointer;
}

.newsletter-signup-container button:hover {
    background-color: hsl(var(--primary)/0.9);
    box-shadow: 0 6px 12px -2px hsl(var(--primary)/0.2), 0 4px 6px -2px hsl(var(--primary)/0.1);
}