/* ==========================================================================
   1. Modern Reset & Variables
   ========================================================================== */
:root {
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    --accent: #10b981;
    --accent-light: #d1fae5;
    --dark: #0f172a;
    --gray-text: #475569;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --font-family: 'Vazir', 'Tahoma', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

*, *::before, *::after {
    box-sizing: border-box;
}
@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb.eot'); /* IE9 Compat Modes */
    src: url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/IRANSansWeb.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/IRANSansWeb.woff') format('woff'), /* Modern Browsers */
         url('fonts/IRANSansWeb.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
}

/* آیکون‌های برندها مثل تلگرام و اینستاگرام */
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("webfonts/fa-brands-400.eot");
    src: url("webfonts/fa-brands-400.eot?#iefix") format("embedded-opentype"),
    url("webfonts/fa-brands-400.woff2") format("woff2"),
    url("webfonts/fa-brands-400.woff") format("woff"),
    url("webfonts/fa-brands-400.ttf") format("truetype");
}

/* آیکون‌های توپر و اصلی سایت */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("webfonts/fa-solid-900.eot");
    src: url("webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"),
    url("webfonts/fa-solid-900.woff2") format("woff2"),
    url("webfonts/fa-solid-900.woff") format("woff"),
    url("webfonts/fa-solid-900.ttf") format("truetype");
}

/* آیکون‌های خطی و معمولی */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("webfonts/fa-regular-400.eot");
    src: url("webfonts/fa-regular-400.eot?#iefix") format("embedded-opentype"),
    url("webfonts/fa-regular-400.woff2") format("woff2"),
    url("webfonts/fa-regular-400.woff") format("woff"),
    url("webfonts/fa-regular-400.ttf") format("truetype");
}


* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSans', Tahoma, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: #fafbfc;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

input, button, select, textarea {
    font: inherit;
    outline: none;
}

/* ==========================================================================
   2. Container & Layout Setup
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   3. Floating Header (Glassmorphism)
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    background-color: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--gray-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-cta-small {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.btn-cta-small:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   4. Hero Section (Ultra Modern)
   ========================================================================== */
.hero-section {
    padding: 80px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(240, 244, 255, 0.5) 0%, rgba(255, 255, 255, 1) 90%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-tag {
    background-color: var(--primary-light);
    color: var(--primary);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(79, 70, 229, 0.15);
    z-index: -1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-text);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.btn-hero-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(240, 244, 255, 0.3);
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-avatars {
    display: flex;
    margin-left: 5px;
}

.trust-avatars .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: -10px;
    box-shadow: var(--shadow-sm);
}

.trust-text {
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* Hero Visual Box */
.hero-visual {
    display: flex;
    justify-content: center;
}

.card-visual {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    width: 100%;
    max-width: 420px;
    height: 480px;
    border-radius: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-decor {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 180px;
    height: 180px;
    bottom: -30px;
    left: -30px;
}

.visual-badge {
    position: absolute;
    background-color: var(--white);
    padding: 10px 18px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.top-right {
    top: 40px;
    right: -20px;
    color: var(--accent);
    border-right: 4px solid var(--accent);
}

.bottom-left {
    bottom: 50px;
    left: -20px;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.inner-image {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-emoji {
    font-size: 8rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.teacher-info-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.teacher-info-card h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.teacher-info-card p {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* ==========================================================================
   5. Stats Section
   ========================================================================== */
.stats-section {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* ==========================================================================
   6. Section Header Standard
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-header .title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
}

/* ==========================================================================
   7. Benefits Section (چرا این کلاس؟)
   ========================================================================== */
.benefits-section {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.icon-wrap {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* ==========================================================================
   8. Roadmap Section (مسیر یادگیری)
   ========================================================================== */
.method-section {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 20px;
}

.roadmap-step {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}

.step-badge {
    background-color: var(--primary);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.roadmap-step h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 12px;
}

.roadmap-step p {
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* ==========================================================================
   9. Showcase Section (ویدیوها)
   ========================================================================== */
.showcase-section {
    padding: 100px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.showcase-card {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-preview {
    height: 250px;
    background-color: var(--dark);
    position: relative;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn {
    background-color: var(--white);
    color: var(--primary);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-right: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    z-index: 5;
}

.showcase-card:hover .play-btn {
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--white);
}

.video-overlay-title {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 5;
}

.showcase-body {
    padding: 30px;
}

.showcase-body h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.showcase-body p {
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* ==========================================================================
   10. FAQ Accordion (بدون جاوااسکریپت با تگ details)
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark);
    padding: 15px;
    cursor: pointer;
    list-style: none; /* مخفی کردن آیکون پیش فرض در سافاری و کروم */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none; /* مخفی کردن آیکون پیش فرض در کروم */
}

.faq-question::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 15px 15px 15px;
    color: var(--gray-text);
    font-size: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
    padding-top: 15px;
}

/* ==========================================================================
   11. Registration Form & Contact (بخش رزرواسیون)
   ========================================================================== */
.booking-section {
    padding: 100px 0;
    background-color: var(--white);
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking-info-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.booking-info-box p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item .icon {
    width: 54px;
    height: 54px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0;
}

/* کارت فرم رزرواسیون */
.booking-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

.booking-form-wrapper h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--gray-text);
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   12. Creative Footer
   ========================================================================== */
.creative-footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 40px 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.designer-tag {
    color: var(--primary-light);
    font-weight: 500;
}

/* ==========================================================================
   13. Adaptive Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-action {
        display: none; /* پنهان کردن دکمه منو در نسخه های موبایل برای خلوت شدن هدر */
    }

    .roadmap {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-header .title {
        font-size: 1.7rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   14. Exams & Booklets Custom Sections (طرح شیک امتحانات و جزوات)
   ========================================================================== */
.exams-section {
    padding: 100px 0;
    background-color: var(--white);
}

.booklets-section {
    padding: 100px 0;
    background-color: #f8fafc; /* پس‌زمینه ملایم برای تفکیک دو بخش */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.resource-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* آیکون دایره‌ای بزرگ بالای هر کارت */
.resource-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

/* رنگ‌آمیزی متمایز آیکون‌ها */
.exam-color {
    background-color: #fef3c7; /* طلایی ملایم برای امتحانات */
    color: #d97706;
}

.booklet-color {
    background-color: #d1fae5; /* سبز ملایم برای جزوات */
    color: #059669;
}

.resource-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* تگ پایه تحصیلی روی کارت */
.resource-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.tag-exam {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.tag-booklet {
    background-color: rgba(5, 96, 105, 0.1);
    color: #059669;
}

.resource-body h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.resource-body p {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1; /* افزایش اندازه متن برای هم‌تراز شدن دکمه‌ها در ردیف */
}

/* دکمه‌های زیبای دانلود */
.btn-download {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 0.95rem;
    background-color: transparent;
    color: #d97706;
    border: 2px solid #fef3c7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download:hover {
    background-color: #d97706;
    color: var(--white);
    border-color: #d97706;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
}

.btn-booklet {
    color: #059669;
    border-color: #d1fae5;
}

.btn-booklet:hover {
    background-color: #059669;
    color: var(--white);
    border-color: #059669;
    box-shadow: 0 8px 20px rgba(5, 96, 105, 0.2);
}

/* انیمیشن لود ملایم برای دکمه‌ها */
.btn-download:active {
    transform: scale(0.98);
}


/* تنظیمات تگ ویدیو و پوستر */
.video-preview {
    position: relative;
    height: 250px;
    background-color: var(--dark);
    overflow: hidden;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.real-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

/* وقتی کلاس active به کارت اضافه شد، کاور و دکمه‌ها محو می‌شوند */
.showcase-card.active .video-poster,
.showcase-card.active .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.showcase-card.active .real-video {
    z-index: 4; /* بالا آمدن ویدیو برای دسترسی کاربر به کنترل‌های پخش دسکتاپ/موبایل */
}
.rtl-sweetalert {
    direction: rtl !important;
    font-family: inherit !important; /* از همان فونت زیبای قالب خودت استفاده می‌کند */
}
/* ==========================================================================
   15. Fixed Aparat & Video Player Styles
   ========================================================================== */
.video-preview {
    position: relative;
    height: 250px;
    background-color: var(--dark);
    overflow: hidden;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.real-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* استایل اختصاصی برای پوشش سراسری آی‌فریم آپارات */
.aparat-embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.aparat-embed-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

/* رفتار کارت فعال: پنهان شدن کاور سفارشی و آمدن ویدیو به بالاترین سطح */
.showcase-card.active .video-poster,
.showcase-card.active .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.showcase-card.active .real-video,
.showcase-card.active .aparat-embed-wrapper {
    z-index: 4;
}

.rtl-sweetalert {
    direction: rtl !important;
    font-family: inherit !important;
}

/* استایل کلی ظرف آیکون‌ها */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px; /* فاصله بین آیکون‌ها */
    justify-content: flex-start; /* چیدمان از چپ در حالت RTL */
    direction: ltr; /* برای اینکه ترتیب آیکون‌ها از چپ به راست مرتب شود */
}

/* استایل مشترک آیکون‌ها */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.05); /* پس‌زمینه ملایم */
    color: var(--dark, #333); /* رنگ آیکون */
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* افکت هاور (زمانی که موس روی آن‌ها می‌رود) به همراه رنگ سازمانی هر کدام */
.social-icon:hover {
    transform: translateY(-3px); /* حرکت جزیی به سمت بالا */
    color: #fff;
}

.social-icon.youtube:hover {
    background-color: #ff0000; /* قرمز یوتیوب */
}

.social-icon.aparat:hover {
    background-color: #df0757; /* صورتی آپارات */
}

.social-icon.telegram:hover {
    background-color: #0088cc; /* آبی تلگرام */
}

.social-icon.rubika:hover {
    background-color: #8a3ab9; /* بنفش فرضی برای روبیکا */
}