@layer utilities {
    .paper-texture {
        background-color: #faf9f6;
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H20V0z' fill='%23f0efe9' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    }

    .underline-wavy {
        text-decoration: underline;
        text-decoration-style: wavy;
        text-decoration-color: #f56565;
        text-underline-offset: 8px;
    }
}

/* Base Animation Classes */
[data-animate] {
    opacity: 0;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-property: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.95);
}

/* Triggered Classes */
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-content {
    max-height: 500px; /* enough for content */
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Marquee Animation */
.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 10;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #FFF8D6, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #FFF8D6, transparent);
}

.marquee-content {
    display: flex;
    animation: marquee 40s linear infinite;
}

.marquee-content.reverse {
    animation: marquee-reverse 35s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
/* Fixed width for shadow-md elements */
.shadow-md {
    width: 175px;
}
