/* ===============================
   فونت و تنظیمات کلی
================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #0F172A;
    --text: #1E293B;
    --text-muted: #64748B;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   هدر
================================ */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 0.9rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===============================
   اسلایدر بنر (۱۷۰۰×۵۰۰)
================================ */
.banner-slider {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-slide {
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-content {
    color: white;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
}

@media (max-width: 991px) {
    .banner-slide {
        height: 380px;
    }
    .banner-content h2 {
        font-size: 1.9rem;
    }
    .banner-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .banner-slide {
        height: 280px;
    }
    .banner-content h2 {
        font-size: 1.5rem;
    }
    .banner-content p {
        font-size: 0.95rem;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.08);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

/* ===============================
   هیرو سکشن
================================ */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 50%, #FDF4FF 100%);
    padding: 70px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-card img {
    border-radius: 16px;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.floating-badge.top-right {
    top: 20px;
    right: 20px;
}

.floating-badge.bottom-left {
    bottom: 30px;
    left: -20px;
}

.floating-badge i {
    width: 36px;
    height: 36px;
    background: #ECFDF5;
    color: var(--success);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   بخش دسته‌بندی‌ها
================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
}

.category-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* رنگ‌های آیکون دسته‌ها */
.cat-physics { background: #DBEAFE; color: #2563EB; }
.cat-math { background: #D1FAE5; color: #059669; }
.cat-design { background: #FCE7F3; color: #DB2777; }
.cat-chemistry { background: #FEF3C7; color: #D97706; }
.cat-computer { background: #E0E7FF; color: #4F46E5; }
.cat-language { background: #F3E8FF; color: #9333EA; }

/* ===============================
   کارت دوره
================================ */
.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.course-thumb {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.08);
}

.course-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}

.course-badge.popular {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.course-body {
    padding: 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.course-meta i {
    margin-left: 4px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.course-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.course-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.btn-course {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-course:hover {
    background: var(--primary);
    color: white;
}

/* ===============================
   بخش ویژگی‌ها / چرا ما
================================ */
.features {
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: var(--primary);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===============================
   فراخوان به اقدام (CTA)
================================ */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border-radius: 30px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* ===============================
   فوتر
================================ */
.footer {
    background: var(--dark);
    color: #94A3B8;
    padding: 70px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94A3B8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1E293B;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

/* ===============================
   ریسپانسیو
================================ */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .floating-badge.bottom-left {
        left: 10px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta {
        padding: 40px 25px;
    }
    
    .cta h2 {
        font-size: 1.7rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
}