/*═════════════════════════════════════
    1. فونت وزیر
═════════════════════════════════════*/
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/*═════════════════════════════════════
    2. ریست و تنظیمات پایه - تم دارک
═════════════════════════════════════*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    color: #e0e0e0;
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*═════════════════════════════════════
    3. هدر (Header)
═════════════════════════════════════*/
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    width: 100%;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #c10d28;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.logo {
    height: 80px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #c10d28;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    color: #e0e0e0;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #c10d28;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border-top: 2px solid #c10d28;
}

.mobile-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    padding: 10px;
    text-align: right;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #c10d28;
}

/* منوی موبایل */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; order: -1; }
    .logo-title { order: 0; flex-direction: row-reverse; }
    .header-container { flex-wrap: wrap; justify-content: space-between; }
    .mobile-nav.active { display: flex; }
    header h1 { font-size: 1.5em; }
    .logo { height: 60px; }
}

/*═════════════════════════════════════
    4. Main و متن‌ها
═════════════════════════════════════*/
main {
    padding: 30px 15px;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

main h1 { font-size: 2em; color: #e0e0e0e0; }
main h2 { font-size: 1.5em; color: #e0e0e0; margin-bottom: 20px; }
main h3 { font-size: 1.3em; color: #e0e0e0; margin-bottom: 15px; }
main h4 { font-size: 1em; color: #e0e0e0; margin: 0 0 8px; }
main p { font-size: 0.9em; color: #b0b0b0; margin: 5px 0; }

.error { color: #c10d28; text-align: center; }
.no-data { color: #808080; text-align: center; }

/*═════════════════════════════════════
    5. دکمه‌ها
═════════════════════════════════════*/
.button-group { text-align: center; margin-bottom: 30px; }

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #c10d28;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s;
    margin-top: 8px;
    border: 2px solid #c10d28;
}

.btn:hover {
    background-color: #a20b22;
    border-color: #a20b22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 13, 40, 0.4);
}

.btn-login {
    display: block;
    padding: 6px 12px;
    background-color: #c10d28;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    margin: 10px auto 0;
    width: fit-content;
    transition: all 0.3s;
    border: 2px solid #c10d28;
}

.btn-login:hover {
    background-color: #a20b22;
    border-color: #a20b22;
    transform: translateY(-2px);
}

/*═════════════════════════════════════
    6. جدول عمومی
═════════════════════════════════════*/
table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    color: #e0e0e0;
    margin-bottom: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #444;
}

th {
    background: linear-gradient(90deg, #000 0%, #111 100%);
    color: #fff;
    font-weight: bold;
}

td {
    background: #1f1f1f;
    color: #e0e0e0;
}

/*═════════════════════════════════════
    7. کارت‌های چالش‌ها (Challenges)
═════════════════════════════════════*/
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #e0e0e0;
    transition: all 0.3s;
    text-decoration: none;
    box-sizing: border-box;
    flex: 0 0 234px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(193, 13, 40, 0.3);
    border-color: #c10d28;
}

.card .logo-container {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background: none;
}

.card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 8px;
}

.card h4 {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card p {
    font-size: 0.9em;
    color: #b0b0b0;
    margin: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card .btn-login {
    padding: 8px 16px;
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s;
    width: 140px;
    text-align: center;
    margin: auto 0 10px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    border: 2px solid #c10d28;
}

.card .btn-login:hover {
    background: linear-gradient(135deg, #a20b22 0%, #8a0a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 13, 40, 0.4);
}

/*═════════════════════════════════════
    8. اسلایدر اسپانسرها (جدید)
═════════════════════════════════════*/
.sponsors-slider-wrapper {
    width: 100%;
    position: relative;
    padding: 40px 0 80px;
    overflow: visible;
}
.sponsors-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.sponsors-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 20px 60px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.sponsors-slider::-webkit-scrollbar {
    display: none;
}
/* کارت اسپانسر */
.sponsor-card-new {
    position: relative;
    flex: 0 0 300px;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 3px solid #333;
    background: #000;
    transition: all 0.4s ease;
    z-index: 2;
    scroll-snap-align: start;
}
.sponsor-card-new:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(193, 13, 40, 0.4);
    border-color: #c10d28;
    z-index: 10;
}
.sponsor-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.5s ease;
}
.sponsor-card-new:hover img {
    transform: scale(1.08);
}
.instagram-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(193, 13, 40, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}
.instagram-btn:hover {
    background: #c10d28;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(193, 13, 40, 0.6);
}
.glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.4s ease;
    border-radius: 0 0 18px 18px;
}
.glass-overlay h4 {
    color: #fff;
    font-size: 1.15em;
    text-align: center;
    text-shadow: 0 2px 10px #000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
}
.sponsor-card-new:hover .glass-overlay {
    background: linear-gradient(transparent, rgba(193, 13, 40, 0.3));
    backdrop-filter: blur(12px);
}
/* فلش‌ها فقط در دسکتاپ */
.sponsor-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border-radius: 12px;
    opacity: 0;
}
.sponsors-slider-container:hover .sponsor-arrow {
    opacity: 0.8;
}
.sponsor-arrow:hover {
    background: #c10d28;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.sponsor-arrow.prev {
    left: 10px;
}
.sponsor-arrow.next {
    right: 10px;
}
/* ریسپانسیو */
@media (max-width: 992px) {
    .sponsor-arrow {
        display: none;
    }
    .sponsors-slider {
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sponsors-slider::-webkit-scrollbar {
        display: none;
    }
}
@media (max-width: 768px) {
    .sponsor-card-new {
        flex: 0 0 calc((100% - 36px) / 1.5);
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }
    .sponsor-card-new img {
        border-radius: 16px;
    }
    .glass-overlay {
        border-radius: 0 0 16px 16px;
    }
    .instagram-btn {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 480px) {
    .sponsor-card-new {
        flex: 0 0 calc((100% - 36px) / 1.5);
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }
    .sponsor-card-new img {
        border-radius: 14px;
    }
    .glass-overlay {
        border-radius: 0 0 14px 14px;
    }
    .instagram-btn {
        width: 34px;
        height: 34px;
    }
}

/*═════════════════════════════════════
    9. فرم جستجو و فیلتر چالش‌ها
═════════════════════════════════════*/
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: right;
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.section { margin-bottom: 30px; }

.search-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Vazir', sans-serif;
    height: 44px;
    line-height: 44px;
    margin: 0;
    box-sizing: border-box;
    vertical-align: middle;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #c10d28;
    box-shadow: 0 0 0 3px rgba(193, 13, 40, 0.2);
}

.search-form button {
    padding: 0 24px;
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Vazir', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    height: 44px;
    line-height: 44px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 2px solid #c10d28;
}

.search-form button:hover {
    background: linear-gradient(135deg, #a20b22 0%, #8a0a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 13, 40, 0.4);
}

.medal {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 5px;
}

.challenges-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
}

.challenges-filter-form div {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.challenges-filter-form label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.challenges-filter-form select,
.challenges-filter-form input[type="text"] {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #444;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: all 0.3s;
}

.challenges-filter-form select:focus,
.challenges-filter-form input[type="text"]:focus {
    outline: none;
    border-color: #c10d28;
    box-shadow: 0 0 0 3px rgba(193, 13, 40, 0.2);
}

.challenges-filter-form input[type="text"] { min-width: 220px; }

.challenges-filter-form button {
    padding: 12px 24px;
    font-size: 14px;
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
    transition: all 0.3s;
    border: 2px solid #c10d28;
}

.challenges-filter-form button:hover {
    background: linear-gradient(135deg, #a20b22 0%, #8a0a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 13, 40, 0.4);
}

@media (max-width: 600px) {
    .challenges-filter-form div { min-width: 100%; }
    .challenges-filter-form input[type="text"] { min-width: 100%; }
}

/*═════════════════════════════════════
    10. جدول چالش‌ها (ریسپانسیو)
═════════════════════════════════════*/
.challenge-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 2px solid #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
}

.challenge-table thead tr {
    background: linear-gradient(90deg, #000 0%, #111 100%);
    color: #fff;
}

.challenge-table th, .challenge-table td {
    padding: 15px;
    text-align: right;
    border: 1px solid #444;
}

.challenge-table tbody tr {
    background: #1f1f1f;
    transition: all 0.3s ease;
}

.challenge-table tbody tr:hover {
    background: linear-gradient(90deg, #2a2a2a 0%, #333 100%);
    box-shadow: inset 0 0 20px rgba(193, 13, 40, 0.1);
}

.challenge-table td[data-label="عنوان"],
.challenge-table td[data-label="جایزه"] {
    color: #fff;
    font-weight: bold;
    background: linear-gradient(90deg, #c10d28 0%, #a20b22 100%);
}

.challenge-table td[data-label="توضیحات"] {
    color: #b0b0b0;
    font-style: italic;
}

/* حالت موبایل جدول چالش‌ها */
@media (max-width: 768px) {
    .challenge-table { display: block; overflow-x: auto; white-space: nowrap; border-radius: 12px; }
    .challenge-table thead, .challenge-table tbody, .challenge-table tr { display: block; }
    .challenge-table thead tr { display: none; }
    .challenge-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 2px solid #333;
        margin-bottom: 15px;
        background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
        border-radius: 12px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
        padding: 15px;
    }
    .challenge-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border: 1px solid #444;
        font-size: 13px;
        color: #e0e0e0;
        border-radius: 8px;
        margin-bottom: 8px;
        background: #1a1a1a;
    }
    .challenge-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #c10d28;
        width: 40%;
        text-align: right;
    }
    .challenge-table td[data-label="عنوان"],
    .challenge-table td[data-label="جایزه"] {
        background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
        color: #fff;
        border: 1px solid #c10d28;
    }
    .challenge-table td[data-label="توضیحات"] {
        background: #2a2a2a;
        border: 1px solid #555;
    }
}

.back-link { text-align: center; margin-top: 20px; }
.back-link .btn {
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #c10d28;
    transition: all 0.3s;
}

.back-link .btn:hover {
    background: linear-gradient(135deg, #a20b22 0%, #8a0a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 13, 40, 0.4);
}

/*═════════════════════════════════════
    11. فوتر
═════════════════════════════════════*/
footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #000 100%);
    color: #b0b0b0;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin: 0;
    border-top: 3px solid #c10d28;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
}

footer p { margin: 0; font-size: 0.9em; }
footer a { color: #c10d28; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: #e0e0e0; text-decoration: underline; }

/*═════════════════════════════════════
    12. فرم‌های عمومی
═════════════════════════════════════*/
form {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

form label {
    display: block;
    margin: 15px 0 8px;
    color: #e0e0e0;
    font-weight: bold;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #c10d28;
    box-shadow: 0 0 0 3px rgba(193, 13, 40, 0.2);
}

/*═════════════════════════════════════
    13. اسلایدر هیرو
═════════════════════════════════════*/
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 3px solid #333;
}

.slides-container { position: relative; width: 100%; height: 100%; }

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { opacity: 1; }

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(193, 13, 40, 0.6);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 20px;
}

.next-btn { left: 30px; }
.prev-btn { right: 30px; }

.nav-btn:hover {
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(193, 13, 40, 0.6);
}

.dots-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    border-radius: 35px;
    border: 2px solid rgba(193, 13, 40, 0.3);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: #c10d28;
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(193, 13, 40, 0.8);
}

@media (max-width: 768px) {
    .hero-slider { border-radius: 12px; margin-bottom: 20px; }
    .slide { background-size: cover !important; }
    .nav-btn { display: none; }
    .dots-container { bottom: 20px; padding: 10px 20px; gap: 12px; }
    .dot { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
    .hero-slider { border-radius: 10px; margin-bottom: 16px; }
    .dots-container { bottom: 15px; padding: 8px 16px; gap: 10px; }
    .dot { width: 10px; height: 10px; }
}

.slide4-btn {
    position: absolute;
    display: block;
    cursor: pointer;
    left: 50%;
    top: 43%;
    transform: translateX(-50%);
    width: 60%;
    height: calc(22% + 84px);
    background: rgba(255, 0, 0, 0);
    transition: 0.2s;
}

.slide4-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
}

@media (max-width: 768px) {
    .slide4-btn { width: 64%; height: calc(25% + 27px); top: 41%; }
}

/*═════════════════════════════════════
    14. دکمه واتساپ شناور
═════════════════════════════════════*/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
}

.whatsapp-icon {
    width: 130px;
    height: 130px;
    transition: transform 0.3s ease-in-out;
    animation: pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 15px rgba(193, 13, 40, 0.6));
}

.whatsapp-text {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #c10d28;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 18px;
    font-family: 'Vazir', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transform: translateY(-8px);
    border: 2px solid #c10d28;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.whatsapp-float:hover .whatsapp-text { opacity: 1; }
.whatsapp-float:hover .whatsapp-icon { transform: scale(1.2); }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 0;
        justify-content: flex-end;
    }
    .whatsapp-icon {
        width: 110px;
        height: 110px;
        animation: bounce 2s infinite ease-in-out;
    }
    .whatsapp-text { display: none; }
}

/*═════════════════════════════════════
    15. اسکرول‌بار سفارشی صفحه
═════════════════════════════════════*/
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c10d28 0%, #a20b22 100%);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a20b22 0%, #8a0a1c 100%);
}