:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #8b5cf6;
    --accent: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 24px;
    --radius-lg: 32px;
    --shadow: 0 10px 40px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 25px 60px rgba(124, 58, 237, 0.15);
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* RTL Support */
html { 
    direction: rtl;
}

body {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    text-align: right;
}

/* ========== WHITE BORDER FOR ALL CARDS ========== */
.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid #ffffff !important;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ========== SWIPER STYLES ========== */
.mySwiper {
    padding: 20px 0 40px;
}

.swiper-slide {
    width: 300px;
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid #ffffff;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


/* ========== ANIMATED TITLE ========== */
.animated-title {
    position: relative;
    display: inline-block;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(
        90deg,
        #ff0effff 30%,
        #ffffff 50%,
        #e8e8f1ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: whiteLightMove 5s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes whiteLightMove {
    0% {
        background-position: -100% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* ========== COURSES SECTION STYLES ========== */
.courses-header {
    text-align: center;
    margin-bottom: 50px;
}

.courses-main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e8e7f5ff 0%, #eeeef0ff 50%, #fdf9fbff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease-in-out infinite;
    background-size: 200% 200%;
}

.view-all-center {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.45);
    border-color: white;
}

/* ========== DARK SECTION BACKGROUND ========== */
.sec-dark {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sec-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: floatBackground 20s linear infinite;
    z-index: 1;
}

@keyframes floatBackground {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -10px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.sec-dark .sec-title,
.sec-dark .card,
.sec-dark .empty-state,
.sec-dark .view-all {
    position: relative;
    z-index: 2;
}

/* ========== ARTICLES SECTION ========== */
.articles-section {
    position: relative;
    z-index: 2;
}

.articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.articles-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.articles-view-all {
    text-align: center;
    margin-top: 50px;
}

.articles-view-all-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--primary-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.articles-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    border-color: white;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ========== ENHANCED SAMPLE COURSES SECTION ========== */
.sample-courses-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, 
        #4F46E5 0%,
        #7C3AED 25%,
        #A855F7 50%,
        #EC4899 75%,
        #F59E0B 100%);
    position: relative;
    overflow: hidden;
}

.sample-courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: pulseBackground 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseBackground {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.sample-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.sample-courses-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sample-courses-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    border-radius: 2px;
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

@keyframes linePulse {
    0%, 100% {
        width: 100px;
        opacity: 1;
    }
    50% {
        width: 150px;
        opacity: 0.7;
    }
}

/* ========== PORTFOLIO SECTION STYLES ========== */
.portfolio-container {
    position: relative;
    height: 550px;
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.portfolio-item {
    position: absolute;
    width: 380px;
    height: 480px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    overflow: hidden;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 58, 237, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
}

.portfolio-description {
    font-size: 0.95rem;
    color: black;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-item.active {
    width: 420px;
    height: 520px;
    z-index: 10;
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.4);
    transform: scale(1.05);
}

.portfolio-item.left {
    transform: translateX(-380px) scale(0.85);
    opacity: 0.5;
    z-index: 5;
    filter: brightness(0.95);
}

.portfolio-item.right {
    transform: translateX(380px) scale(0.85);
    opacity: 0.5;
    z-index: 5;
    filter: brightness(0.95);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: translateX(400px) scale(0.7);
    z-index: 1;
}

.portfolio-nav {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active {
    background: var(--primary);
    border-color: white;
    transform: scale(1.2);
}

/* ========== PARTNERS SECTION - UPDATED ========== */
.partners-section {
    padding: 80px 0;
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.partners-section .sec-title {
    position: relative;
    z-index: 2;
    color: var(--text);
}

.partners-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    z-index: 2;
}

.partners-marquee {
    position: relative;
    display: flex;
    width: fit-content;
}

.partners-track {
    display: flex;
    animation: scrollPartners 40s linear infinite;
    gap: 60px;
    padding: 0 30px;
}

.partners-track--original {
    animation: scrollPartners 40s linear infinite;
}

.partners-track--clone {
    animation: scrollPartnersClone 40s linear infinite;
    position: absolute;
    top: 0;
    left: 100%;
}

.partner-logo-item {
    flex-shrink: 0;
    background: transparent !important;
    padding: 0;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 140px;
}

.partner-logo-item:hover {
    transform: translateY(-5px) scale(1.1);
}

.partner-logo {
    max-width: 250px;
    max-height: 150px;
    object-fit: contain;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transition: all 0.4s ease;
}

.partner-logo-item:hover .partner-logo {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1);
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollPartnersClone {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========== SUPPORT SECTION ========== */
.support-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 50px auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.support-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30v-3h-1.5v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3zm0-30V0h-1.5v3h-3v1.5h3v3h1.5V4.5h3V3h-3zM6 30v-3H4.5v3h-3v1.5h3v3H6v-3h3v-1.5H6zM6 3V0H4.5v3h-3v1.5h3v3H6V4.5h3V3H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.support-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.support-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.support-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.support-btn {
    background: #fff;
    color: var(--primary-dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    border-color: var(--primary);
}

/* ========== SERVICE BAR ========== */
.service-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
}

.service-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.logo-top:hover {
    transform: scale(1.05);
}

.logo-top img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-features {
    display: flex;
    gap: 30px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: var(--transition);
}

.service-feature:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.btn-contact {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 2px solid transparent;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M40 40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V0h-2v4h-4v2h4v4h2V6h4V4h-4zM8 40v-4H6v4H2v2h4v4H6v-4h4v-2H8zM8 4V0H6v4H2v2h4v4H6V6h4V4H8z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: right;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Search Bar Styles */
.search-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    position: relative;
    border: 2px solid #ffffff;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.04rem;
    outline: none;
    text-align: right;
    background: rgba(231, 26, 187, 0.2);
    color: white;
}

.search-btn {
    background: rgba(196, 82, 219, 0.5);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-btn:hover {
    background: var(--primary-dark);
    border-color: white;
}

/* Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ffffff;
}

.suggestion-header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 15px 15px 5px;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 5px 5px;
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.suggestion-type {
    font-size: 0.8rem;
    color: var(--primary);
}

/* ========== HERO STATS - FIXED ========== */
.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}


.stat-number[data-plus="true"]::before {
    content: "+";
    margin-left: 2px;
}

.stat-label {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.4;
    margin-top: 5px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(236, 181, 181, 0.3);
    transition: var(--transition);
    border: 2px solid white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    border-color: #eb0cf3ff;
    background: #fff;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
    border-color: #eb0cf3ff;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
    animation: float 5s ease-in-out infinite;
    text-align: center;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 40px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 40px;
    left: 60px;
    animation-delay: 1s;
}

.card-4 {
    bottom: 20px;
    left: 300px;
    animation-delay: 1.5s;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========== SECTIONS ========== */
.sec {
    padding: 100px 20px;
    position: relative;
}

.sec-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 60px;
    position: relative;
}

.sec-dark .sec-title {
    color: #fff;
}

.sec-title::after {
    content: '';
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ========== GRID LAYOUTS ========== */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-company {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* ========== CARD COMPONENTS ========== */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--success) 100%, var(--warning) 0%);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    border: 2px solid #ffffff;
}

.card-image {
    height: 350px;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(-45deg, 
    #db08f7ff,
    #b634b6ff,
    #913a94ff,
    #f5d3f0ff
    );
    background-size: 300% 100%;
    animation: simpleAnimation 4s linear infinite;
}

@keyframes simpleAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.sec-dark .card-title {
    color: var(--text);
}

.card-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.sec-dark .card-text {
    color: Purple;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.sec-dark .card-meta {
    color: blue;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.card-price {
    font-weight: 700;
    color: var(--primary);
}

.sec-dark .card-price {
    color: var(--primary);
}

.card-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    
    /* وسط‌چین کردن متن داخل دکمه */
    display: inline-block; /* یا display: flex; */
    text-align: center;
    
    /* اگر می‌خواهید خود دکمه هم وسط کادر باشد */
    display: block;
    margin: 0 auto;
    width: fit-content; /* عرض بر اساس محتوا */
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    border-color: white;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.sec-dark .feature-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #fff;
    border: 2px solid #ffffff;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.sec-dark .feature-title {
    color: var(--text);
}

.feature-desc {
    color: black;
    line-height: 1.6;
}

.sec-dark .feature-desc {
    color: var(--text-light);
}

/* ========== COMPANY LOGOS ========== */
.company-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid #ffffff;
}

.company-box:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    height: 80px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.company-box:hover .company-logo {
    filter: grayscale(0);
    opacity: 1;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ========== FOOTER ========== */
.home-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
}

/* ========== INSTRUCTORS SECTION - ENHANCED DESIGN ========== */
.instructors-section {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.05) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(124, 58, 237, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin: 60px 20px;
    box-shadow: 
        0 20px 60px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    isolation: isolate;
}

/* Animated Background Elements */
.instructors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
    z-index: -1;
}

/* Container adjustment for instructors section */
.instructors-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.instructors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Enhanced Video Container */
.video-square-container {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.95);
    background: #000;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.video-square-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        var(--primary-light) 25%, 
        transparent 50%);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(10px);
}

.video-square-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

.video-overlay-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.95) 0%, 
        rgba(92, 107, 192, 0.95) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-overlay-badge i {
    margin-left: 8px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Video Progress Indicator */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary-light) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Enhanced Text Content */
.instructors-text-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 15px 40px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.instructors-main-text {
    text-align: right;
}

.instructors-main-text h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
    background: linear-gradient(135deg, 
        var(--text) 0%, 
        var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instructors-main-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px;
}

.instructors-main-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(124, 58, 237, 0.03);
    border-radius: 15px;
    border-right: 3px solid var(--primary);
}

/* Enhanced Stats */
.instructors-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.stat-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(124, 58, 237, 0.2);
}

.stat-label-ostad {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
}

/* Button Area */
.video-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid rgba(124, 58, 237, 0.1);
}

.instructor-action-btn {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary-light) 50%, 
        var(--primary-dark) 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 15px 35px rgba(124, 58, 237, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.instructor-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.7s ease;
}

.instructor-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 45px rgba(124, 58, 237, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.8);
    border-color: white;
}

.instructor-action-btn:hover::before {
    left: 100%;
}

/* Quality Badges Enhancement */
.quality-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.quality-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
    border: 2px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.1);
}

.quality-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.quality-badge i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========== ANIMATIONS ========== */
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade.show {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.sec-dark .social-links a {
    color: rgba(255, 255, 255, 0.7);
}

.sec-dark .social-links a:hover {
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    border: 2px solid #ffffff;
}

.sec-dark .empty-state {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.95);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.sec-dark .empty-state h3 {
    color: var(--text);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    color:black;
}

/* ========== IMPROVED COURSES AND ARTICLES SECTIONS ========== */
.courses-section .card {
    height: 100%;
    margin: 0 5px;
}

.courses-section .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.courses-section .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.courses-section .card-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 3.6em;
    overflow: hidden;
}

.courses-section .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    height: 4.5em;
    overflow: hidden;
}

.courses-section .card-meta {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.courses-section .card-footer {
    margin-top: auto;
    padding-top: 15px;
}

.articles-section .card {
    height: 100%;
    margin-bottom: 20px;
}

.articles-section .card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    object-position: center; /* مهم: وسط عکس را نشان بده */
}

.articles-section .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.articles-section .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 3.2em;
    overflow: hidden;
}

.articles-section .card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    height: 4em;
    overflow: hidden;
}

.articles-section .card-meta {
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.articles-section .card-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.courses-section .swiper-slide {
    width: 320px;
    height: auto;
}

.courses-section .swiper-wrapper {
    padding: 10px 0;
}


/* استایل برای کادر بنفش با حرکت نوری - ارتفاع کمتر */
.instructors-section-wrapper {
    position: relative;
    padding: 30px 20px;
    margin: 10px auto;
    max-width: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1) 0%,
        rgba(124, 58, 237, 0.05) 100%);
    border: 3px solid transparent;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.instructors-section-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #7c3aed, #8b5cf6, #a78bfa, #c4b5fd, 
        #a78bfa, #8b5cf6, #7c3aed);
    background-size: 400% 400%;
    border-radius: 27px;
    z-index: -1;
    animation: lightMove 8s ease-in-out infinite;
    filter: blur(5px);
    opacity: 0.7;
}

/* حذف لایه سفید */
.instructors-section-wrapper::after {
    display: none;
}

@keyframes lightMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* برگرداندن سایز بخش اساتید به حالت اولیه */
.instructors-section-wrapper .instructors-section {
    width: 100%;
    height: auto;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.instructors-section-wrapper .instructors-container {
    padding: 0 !important;
}

.instructors-section-wrapper .instructors-content {
    gap: 60px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.instructors-section-wrapper .video-square-container {
    width: 420px !important;
    height: 420px !important;
}

.instructors-section-wrapper .instructors-text-content {
    padding: 20px 25px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(10px);
}

.instructors-section-wrapper .instructors-main-text h2 {
    font-size: 2.8rem !important;
    margin-bottom: 25px !important;
}

.instructors-section-wrapper .instructors-main-text p {
    font-size: 1.25rem !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

.instructors-section-wrapper .instructors-stats {
    gap: 25px !important;
    margin-top: 25px !important;
}

.instructors-section-wrapper .stat-item {
    padding: 25px 20px !important;
}

.instructors-section-wrapper .stat-number {
    font-size: 2.5rem !important;
}

.instructors-section-wrapper .stat-label {
    font-size: 1.1rem !important;
}

/* علامت مثبت سمت چپ در بخش اساتید */
.instructors-stats .stat-number::before {
    content: "+";
    margin-right: 4px;
    display: inline-block;
}

/* حالت RTL برای علامت مثبت */
html[dir="rtl"] .instructors-stats .stat-number::before {
    margin-right: 0;
    margin-left: 4px;
}

/* ========== تنظیمات ریسپانسیو برای بخش اساتید ========== */
@media (max-width: 1200px) {
    .portfolio-item {
        width: 340px;
        height: 440px;
    }
    
    .portfolio-item.active {
        width: 380px;
        height: 480px;
    }
    
    .portfolio-item.left {
        transform: translateX(-180px) scale(0.85);
    }
    
    .portfolio-item.right {
        transform: translateX(180px) scale(0.85);
    }
    
    .instructors-section-wrapper {
        max-width: 1000px;
    }
    
    .instructors-section-wrapper .instructors-content {
        gap: 50px !important;
    }
    
    .instructors-section-wrapper .video-square-container {
        width: 380px !important;
        height: 380px !important;
    }
    
    .instructors-section-wrapper .instructors-main-text h2 {
        font-size: 2.4rem !important;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-rows: auto;
        gap: 40px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .portfolio-container {
        height: 500px;
    }
    
    .portfolio-item {
        width: 300px;
        height: 400px;
    }
    
    .portfolio-item.active {
        width: 340px;
        height: 440px;
    }
    
    .portfolio-item.left {
        transform: translateX(-140px) scale(0.85);
    }
    
    .portfolio-item.right {
        transform: translateX(140px) scale(0.85);
    }
    
    /* تنظیمات ریسپانسیو برای بخش اساتید */
    .instructors-section-wrapper {
        padding: 25px 15px;
        margin: 25px auto;
        min-height: auto;
    }
    
    .instructors-section-wrapper .instructors-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    /* متن "با اساتید برتر گاما آشنا شوید" اول نمایش داده شود */
    .instructors-section-wrapper .instructors-text-content {
        order: 1 !important;
        width: 100%;
    }
    
    /* ویدیو دوم نمایش داده شود */
    .instructors-section-wrapper .video-content {
        order: 2 !important;
        width: 100%;
    }
    
    .instructors-section-wrapper .video-square-container {
        width: 380px !important;
        height: 380px !important;
        margin: 0 auto;
    }
    
    .instructors-section-wrapper .instructors-main-text h2 {
        font-size: 2.4rem !important;
        text-align: center;
    }
    
    .instructors-section-wrapper .instructors-main-text p {
        text-align: center;
    }
    
    .instructors-section-wrapper .instructors-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .instructors-section {
        padding: 2rem 1rem;
    }
    
    .swiper-slide {
        width: 280px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .courses-main-title,
    .articles-main-title,
    .sample-courses-title {
        font-size: 2.2rem;
    }

    .support-title {
        font-size: 2.2rem;
    }

    .animated-title {
        font-size: 2.5rem;
    }
    
    .portfolio-container {
        height: 450px;
    }
    
    .portfolio-item {
        width: 280px;
        height: 380px;
    }
    
    .portfolio-item.active {
        width: 320px;
        height: 420px;
    }
    
    .portfolio-item.left,
    .portfolio-item.right {
        display: none;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
    }
    
    /* تنظیمات ریسپانسیو برای بخش اساتید - تبلت */
    .instructors-section-wrapper {
        padding: 20px 10px;
        margin: 20px auto;
    }
    
    .instructors-section-wrapper .instructors-content {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .instructors-section-wrapper .instructors-text-content {
        order: 1 !important;
        width: 100%;
    }
    
    .instructors-section-wrapper .video-content {
        order: 2 !important;
        width: 100%;
    }
    
    .instructors-section-wrapper .video-square-container {
        width: 350px !important;
        height: 350px !important;
        margin: 0 auto;
    }
    
    .instructors-section-wrapper .instructors-main-text h2 {
        font-size: 2rem !important;
    }
    
    .instructors-section-wrapper .instructors-main-text p {
        font-size: 1.1rem !important;
        padding: 10px !important;
    }
    
    .instructors-section-wrapper .instructors-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        max-width: 100% !important;
        margin: 20px auto !important;
    }
    
    .instructors-section-wrapper .stat-item {
        padding: 15px 10px !important;
    }
    
    .instructors-section-wrapper .stat-number {
        font-size: 1.8rem !important;
    }
    
    .instructors-section-wrapper .stat-label {
        font-size: 0.9rem !important;
    }
    
    .instructors-section-wrapper .video-action-area {
        margin-top: 20px;
        text-align: center;
    }
    
    .instructors-section-wrapper .instructor-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin: 0 auto;
    }
    
    .instructors-section-wrapper .quality-badges {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 15px 60px;
    }
    
    .animated-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .search-container {
        flex-direction: column;
        padding: 15px;
        border-radius: 25px;
    }
    
    .search-input {
        margin-bottom: 10px;
        text-align: center;
        padding: 1rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .hero-stats {
        margin: 20px 0;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .sec {
        padding: 60px 15px;
    }
    
    .sec-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .sec-title::after {
        width: 80px;
        bottom: -15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .card-img {
        height: 180px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .service-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .service-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-feature {
        justify-content: center;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .support-section {
        padding: 60px 15px;
        margin: 30px auto;
        border-radius: 20px;
    }
    
    .support-title {
        font-size: 1.8rem;
    }
    
    .support-desc {
        font-size: 1rem;
    }
    
    .support-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .view-all-btn, .articles-view-all-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .partners-section {
        padding: 60px 0;
    }
    
    .partner-logo-item {
        padding: 15px 20px;
        min-width: 120px;
        height: 70px;
    }
    
    .partner-logo {
        max-width: 100px;
        max-height: 40px;
    }
    
    .home-footer {
        padding: 30px 15px;
        font-size: 0.8rem;
    }
    
    .portfolio-container {
        height: 400px;
    }
    
    .portfolio-item {
        width: 260px;
        height: 360px;
    }
    
    .portfolio-item.active {
        width: 280px;
        height: 380px;
    }
    
    .portfolio-item img {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 15px;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.85rem;
    }
    
    /* تنظیمات ریسپانسیو برای بخش اساتید - موبایل */
    .instructors-section-wrapper {
        padding: 15px 10px;
        margin: 15px auto;
        min-height: auto;
        border-radius: 20px;
    }
    
    .instructors-section-wrapper .video-square-container {
        width: 320px !important;
        height: 320px !important;
    }
    
    .instructors-section-wrapper .instructors-main-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .instructors-section-wrapper .instructors-main-text p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        padding: 10px 0 !important;
        border-right: none !important;
        text-align: justify;
    }
    
    .instructors-section-wrapper .instructors-stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .instructors-section-wrapper .stat-item {
        padding: 12px 10px !important;
    }
    
    .instructors-section-wrapper .stat-number {
        font-size: 1.6rem !important;
    }
    
    .instructors-section-wrapper .stat-label {
        font-size: 0.85rem !important;
    }
    
    .instructors-section-wrapper .quality-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .instructors-section-wrapper .quality-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: 80px 10px 40px;
    }
    
    .animated-title {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .sec-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* تنظیمات ریسپانسیو برای بخش اساتید - موبایل کوچک */
    .instructors-section-wrapper .video-square-container {
        width: 280px !important;
        height: 280px !important;
    }
    
    .instructors-section-wrapper .instructors-main-text h2 {
        font-size: 1.6rem !important;
    }
    
    .instructors-section-wrapper .instructor-action-btn {
        font-size: 1rem !important;
        padding: 12px 20px !important;
    }
}

/* ========== HERO SECTION BACKGROUND ========== */
.hero {
    position: relative;
    text-align: center;
    padding: 180px 20px 120px;
    background: var(--gamanav-bg) center/cover no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #920884ff;
    direction: ltr;
    unicode-bidi: plaintext;
    line-height: 1;
    -webkit-text-stroke: 4px #e4e3e6ff;
    /* text-stroke: 2px #e9e5e8ff; */
    paint-order: stroke fill;
}

/* Custom Video Controls Removal */
.custom-video {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-video::-webkit-media-controls {
    display: none !important;
}

.custom-video::-webkit-media-controls-panel {
    display: none !important;
}

.custom-video::-webkit-media-controls-play-button {
    display: none !important;
}

.custom-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.custom-video::-webkit-media-controls-timeline {
    display: none !important;
}

.custom-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.custom-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.custom-video::-webkit-media-controls-timeline-container {
    display: none !important;
}

.custom-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.custom-video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

.custom-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

/* Video switching styles */
.video-switch-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-switch-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-switch-container video.active {
    opacity: 1;
}