/* استایل کلی برای هدر */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10; /* برای اطمینان از اینکه در بالای دیگر عناصر قرار گیرد */
}

/* استایل منو */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

/* استایل لینک‌ها */
nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 5px;
}

/* افکت هاور روی لینک‌ها */
nav ul li a:hover {
    background-color: #ff9800;
    color: #222;
}
/* استایل دکمه */
.bg-secondary {
    background-color: white; /* پس‌زمینه سفید */
    color: black; /* رنگ متن مشکی */
    border: 2px solid black; /* حاشیه مشکی */
    border-radius: 9999px; /* گرد کردن گوشه‌ها */
    padding: 8px 16px; /* فاصله داخلی دکمه */
    text-align: center; /* تراز کردن متن */
    text-decoration: none; /* حذف خط زیر متن */
    transition: background-color 0.3s, color 0.3s; /* افزودن افکت هاور */
}

/* افکت هاور روی دکمه */
.bg-secondary:hover {
    background-color: yellow; /* تغییر رنگ پس‌زمینه به زرد */
    color: black; /* رنگ متن مشکی باقی بماند */
    border-color: black; /* حاشیه مشکی باقی بماند */
}
/* استایل ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
.faq-container {
    max-width: 600px;
    margin: auto;
    direction: rtl; /* راست‌چین کردن کل باکس */
}
.faq-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}.faq-question {
    background: #f8f8f8;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right; /* متن راست‌چین */
}
.faq-answer {
    display: none;
    padding: 10px;
    text-align: right; /* متن پاسخ راست‌چین */
}
.faq-question::after {
    content: "▼";
    transition: 0.3s;
    margin-left: 10px; /* فاصله از سمت چپ برای راست‌چین شدن */
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-question::after {
    content: "▲";
}
/* استایل مربوط به Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        --background: 0 0% 100%;
        --foreground: 224 71.4% 4.1%;
        --card: 0 0% 100%;
        --card-foreground: 224 71.4% 4.1%;
        --popover: 0 0% 100%;
        --popover-foreground: 224 71.4% 4.1%;
        --primary: 220.9 39.3% 11%;
        --primary-foreground: 210 20% 98%;
        --secondary: 220 14.3% 95.9%;
        --secondary-foreground: 220.9 39.3% 11%;
        --muted: 220 14.3% 95.9%;
        --muted-foreground: 220 8.9% 46.1%;
        --accent: 220 14.3% 95.9%;
        --accent-foreground: 220.9 39.3% 11%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 210 20% 98%;
        --border: 220 13% 91%;
        --input: 220 13% 91%;
        --ring: 224 71.4% 4.1%;
        --radius: 0.35rem;
    }
    .dark {
        --background: 224 71.4% 4.1%;
        --foreground: 210 20% 98%;
        --card: 224 71.4% 4.1%;
        --card-foreground: 210 20% 98%;
        --popover: 224 71.4% 4.1%;
        --popover-foreground: 210 20% 98%;
        --primary: 210 20% 98%;
        --primary-foreground: 220.9 39.3% 11%;
        --secondary: 215 27.9% 16.9%;
        --secondary-foreground: 210 20% 98%;
        --muted: 215 27.9% 16.9%;
        --muted-foreground: 217.9 10.6% 64.9%;
        --accent: 215 27.9% 16.9%;
        --accent-foreground: 210 20% 98%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 210 20% 98%;
        --border: 215 27.9% 16.9%;
        --input: 215 27.9% 16.9%;
        --ring: 216 12.2% 83.9%;
    }
}
