/* ==========================================================================
   INSTITUTE GLOBAL THEME (Bootstrap 5 Optimized)
   ========================================================================== */

    @font-face {
        font-family: 'Vazirmatn FA'; /* یک نام دلخواه انتخاب کنید */
        src: url('../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2'); /* توجه به ../ برای خروج از پوشه css */
        font-weight: normal;
        font-style: normal;
        font-display: swap; /* باعث می‌شود متن سریعتر نمایش داده شود */
    }

    @font-face {
        font-family: 'Vazirmatn FA';
        src: url('../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
        font-weight: bold;
        font-style: normal;
        font-display: swap;
    }



:root {
    /* 1. Global Bootstrap Overrides */
    --bs-primary: #63b467; /* Mapped to your brand green for buttons */
    --bs-primary-rgb: 99, 180, 103;
    --bs-body-bg: #f8fafc;
    --bs-body-color: #334155;
    --bs-font-sans-serif: 'Vazirmatn FA', 'Inter', system-ui, -apple-system, sans-serif;

    /* 2. Custom Brand Variables */
    --brand-dark: #3f6843;
    --brand-faded: #eef5e9;
    --brand-primary: #63b467;

}

/* --- BUTTON OVERRIDES --- */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #529f56;
    border-color: #529f56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 180, 103, 0.3);
}

/* --- CARD HOVER EFFECTS --- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1) !important;
}

/* --- UTILITIES --- */
/* Custom soft badge based on your screenshot */
.bg-soft-warning {
    background-color: #fdf5e6;
    color: #d97706;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.bg-fade{
    background-color: var(--brand-faded);
}

/* --- NAVBAR STYLING --- */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-brand-A {
    color: var(--brand-primary) !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.nav-animate {
    color: #444444 !important;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-animate:hover {
    color: var(--brand-primary) !important;
}

.dropdown-toggle-custom::after {
    display: none;
}

