/* Academy Arad - Main Stylesheet */
/* استایل‌های اصلی سایت آموزشگاه آراد */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Morabba', 'Vazir', 'Calibri', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Header */
.header {
    padding-top: 80px;
}

.navbar {
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display:none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    display:none;
    
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Banner Section */
.banner-section {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

.banner-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.banner-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.course-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-price {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
}

.course-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Instructor Cards */
.instructor-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.instructor-image {
    margin-bottom: 1.5rem;
}

.instructor-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.instructor-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.instructor-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    padding: 10px 20px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Gallery */
.gallery-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .banner-card {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.transition {
    transition: var(--transition);
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h6 {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

.gallery-caption p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Banner Styles */
.top-banner-section {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 8px 0;
    border-bottom: 2px solid #ffc107;
    position: relative;
    z-index: 1000;
}

.top-banner-carousel {
    text-align: center;
    overflow: hidden;
}

.top-banner-item {
    display: inline-block;
    animation: slideBanner 15s infinite linear;
}

.top-banner-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 0;
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.top-banner-text {
    font-weight: bold;
    font-size: 14px;
}

.top-banner-desc {
    font-size: 12px;
    opacity: 0.8;
}

.top-banner-copy-text {
    display: block;
    font-size: 12px;
    color: #ffd700;
    margin-top: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-banner-copy-text:hover {
    color: #ffed4e;
    transform: scale(1.05);
}

.top-banner-content {
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-banner-content:hover {
    transform: translateY(-2px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideBanner {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Carousel Styles */
.hero-carousel {
    height: 70vh;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px;
}

.hero-slide {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content .btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    color: #333;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #ffd700;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 215, 0, 1);
}

.carousel-control-prev {
    right: 30px;
}

.carousel-control-next {
    left: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Banner Styles */
@media (max-width: 768px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .hero-slide {
        height: 50vh;
        min-height: 350px;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .hero-content .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        right: 15px;
    }
    
    .carousel-control-next {
        left: 15px;
    }
    
    .top-banner-text {
        font-size: 12px;
    }
    
    .top-banner-desc {
        font-size: 10px;
    }
}

/* AI-Themed Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: aiGlow 3s ease-in-out infinite alternate;
}

/* Hero enhancements: promo card and AI motion visuals */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-split { min-height: 60vh; }

.promo-card {
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    color: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.promo-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg, rgba(255,215,0,0.5), rgba(102,126,234,0.5), rgba(118,75,162,0.5), rgba(255,215,0,0.5));
    filter: blur(8px);
    z-index: 0;
    opacity: 0.35;
    animation: rotateHue 12s linear infinite;
}
.promo-card > * { position: relative; z-index: 1; }

.promo-header { display:flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.promo-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #222;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255,215,0,0.35);
}
.promo-title { font-weight: 700; opacity: 0.95; }

.promo-countdown { display:flex; align-items:center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; }
.promo-countdown .time-sep { font-weight: 800; opacity: 0.75; }
.time-box {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 8px 10px;
    min-width: 64px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.time-box .time { display:block; font-size: 1.25rem; font-weight: 800; letter-spacing: 1px; }
.time-box .label { display:block; font-size: .75rem; opacity: .85; margin-top: 2px; }

.promo-btn { border-color: rgba(255,255,255,0.6) !important; color: #fff !important; }
.promo-btn:hover { background: rgba(255,255,255,0.12) !important; }

.hero-visual { position: relative; }
.hero-visual {
    border-radius: 20px;
    border: 3px solid #ffffff;
    background: radial-gradient(120% 120% at 10% 10%, #ffffff 0%, #f7f9ff 40%, #eef3ff 100%);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-width: 560px;
    margin-inline: auto;
    pointer-events: none;
}
.hero-blob { opacity: .8; z-index: 0; pointer-events: none; }
.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-copy { position: relative; z-index: 5; }
.hero-copy .btn { pointer-events: auto; }

@keyframes rotateHue { to { transform: rotate(360deg); } }

@media (max-width: 992px) {
    .promo-countdown { gap: 6px; }
    .time-box { min-width: 56px; padding: 6px 8px; }
    .time-box .time { font-size: 1.05rem; }
    .hero-visual { aspect-ratio: 16 / 10; }
}

@media (max-width: 576px) {
    .promo-countdown { gap: 4px; }
    .time-box { min-width: 48px; padding: 6px 6px; }
    .time-box .time { font-size: .95rem; }
    .hero-visual { aspect-ratio: 1 / 1; max-width: 420px; }
}

/* Auto slider rows (instructors, gallery) */
.auto-slider { overflow: hidden; position: relative; }
.auto-slider .auto-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    will-change: transform;
    animation: rowScroll 28s linear infinite;
    width: max-content;
    padding: 0;
    margin: 0;
}
.auto-slider:hover .auto-track { animation-play-state: paused; }
.auto-slider .slider-item { flex: 0 0 auto; width: 280px; margin: 0; }
@media (max-width: 992px) { .auto-slider .slider-item { width: 240px; } }
@media (max-width: 576px) { .auto-slider .slider-item { width: 200px; } }
@keyframes rowScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Prevent AOS from affecting slider layout to keep seamless loop */
.auto-slider [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    animation: aiBorder 3s ease-in-out infinite alternate;
}

.section-title::after {
    content: '🤖';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.5rem;
    animation: aiFloat 2s ease-in-out infinite;
}

@keyframes aiGlow {
    0% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
    }
}

@keyframes aiBorder {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

@keyframes aiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Responsive AI Animation */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::after {
        font-size: 1.2rem;
        right: -25px;
    }
} 