/* Import Persian Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #FF6B6B;
    --text-color: #274f21;
    --text-light: #274f21;
    --bg-light: #f7fafc;
    --bg-gray: #e2e8f0;
    --border-color: #cbd5e0;
    --white: #ffffff;
    --orange: #ff6f3c;
    --orange-hover: #ff5722;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: #7c828a;
    direction: rtl;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem;
    box-shadow: none;
    border: none;
    outline: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2.5rem;
    background: linear-gradient(90deg, rgba(91, 33, 182, 0.95) 0%, rgba(124, 58, 237, 0.95) 50%, rgba(168, 85, 247, 0.95) 100%);
    box-shadow: none;
    border: none;
    outline: none;
    border-radius: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.85;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: none;
    outline: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-secondary:hover {
    background: var(--orange);
    color: var(--white);
}


.top-section {
    background: url('white-chalk.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: local;
}

/* Hero Section */
.hero {
    color: var(--text-color);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #000000;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

/* About Section */
.about {
    background: var(--bg-gray);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 2;
    text-align: center;
    color: #274f21;
}

/* Features Section */
.features {
    background: #7c828a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    color: #274f21;
    line-height: 1.6;
}

/* Courses Section */
.courses {
    background: var(--bg-gray);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-right: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateX(-5px);
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.course-card p {
    color: #274f21;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary-color);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #274f21;
    line-height: 1.8;
}

.testimonial-author {
    color: #274f21;
    font-weight: 600;
}

/* FAQ Section */
.faq {
    background: var(--bg-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.faq-item p {
    color: #274f21;
    line-height: 1.8;
}

/* Contact Section */
.contact-info-centered {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.contact-item a:hover {
    color: var(--primary-hover);
}


/* Footer */
.footer {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .contact-info-centered {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 2rem 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .nav {
        padding: 1rem 15px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course-card,
    .feature-card,
    .faq-item {
        padding: 1.25rem;
    }

    .course-card h3,
    .feature-card h3,
    .faq-item h3 {
        font-size: 1.1rem;
    }

    .course-card p,
    .feature-card p,
    .faq-item p {
        font-size: 0.95rem;
    }

    .contact-item {
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .hero-image img {
        max-width: 250px;
    }

    .nav {
        padding: 0.875rem 15px;
    }

    .logo {
        font-size: 1.125rem;
    }
}

.floating-contact-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s;
}

.floating-contact-button:hover {
  background-color: var(--primary-hover);
}


/* ===== Testimonials Carousel ===== */
.testimonials {
    background: #7c828a;
    padding: 5rem 0;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    cursor: pointer;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0,0,0,0.38);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.04);
}

/* Arrow buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    left: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}
.lightbox-prev { right: 18px; }
.lightbox-next { left: 18px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 900px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 560px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
