@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazir/Vazir.woff2') format('woff2'),
    url('/fonts/vazir/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

*  {
    font-family: 'Vazir', sans-serif !important;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 520px;

    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 40%,
        #312e81 100%
    );
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    color: white;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 400px;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-btn {
    background: rgba(255,255,255,0.3);
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* Certificate Slider */
.cert-slider {
    padding: 60px 0;
    background: #f8f9fa;
}

.cert-slide-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.cert-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.cert-slide {
    min-width: 100%;
    padding: 20px;
}

.cert-slide img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 1.414;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

/* Marquee Sections */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    background: white;
}

.marquee-section.alt {
    background: #f8f9fa;
}

.swiper {
    overflow: hidden;
}

.swiper-slide {
    width: auto;
}


@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-item {
    flex: 0 0 200px;
    margin: 0 20px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.marquee-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateX(-5px);
}

.service-icon {
    font-size: 3rem;
    color: #667eea;
    min-width: 80px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background: white;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    color: #333;
}

.contact-form .form-control {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
}

.footer-column h5 {
    margin-bottom: 20px;
    color: #667eea;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 400px;
    }

    .hero-slide {
        height: auto;
        min-height: 400px;
    }

    .hero-content {
        flex-direction: column;
        padding: 30px 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 250px;
        margin-top: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}
