body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
}

.gradient-text {
    background: linear-gradient(to left, #3ad77e, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Roadmap Line Animation */
.roadmap-line {
    background: linear-gradient(to bottom, #3ad77e 0%, #3ad77e 50%, #e2e8f0 100%);
}

/* Smooth height transition for accordion */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.active {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
}

/* Certificate Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    20% {
        transform: translateX(100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Sticky Nav Active State */
.course-nav-link.active {
    color: #0F172A;
    /* brand-600 */
    border-bottom-width: 2px;
    border-bottom-color: #0F172A;
    background-color: #effdf5;
    /* brand-50 */
}
/* Animated Header Background */
.header-animated-bg {
    background: linear-gradient(-45deg, #020617, #064e3b, #0f172a, #14532d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Voucher capacity progress — fill anchored to the visual right (RTL UI) */
.voucher-capacity-track {
    display: flex;
    justify-content: flex-end;
    direction: ltr;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    overflow: hidden;
}

.voucher-capacity-fill {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background-color: #dc2626;
    background-image: linear-gradient(to left, #dc2626, #f97316);
    min-width: 0;
    transition: width 0.4s ease;
}
