.services-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: var(--white-color);
    margin-top: 0px;
    text-align: center;
    overflow: hidden;
}

.services-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/hero-services.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.services-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.services-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.services-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* بخش خدمات اصلی */
.services-main {
    padding: 5rem 0;
    background: var(--background-light);
}

.services-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-category {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light-color-1);
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-category:hover::before {
    transform: translateX(0);
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary-color);
}

.category-icon i {
    color: var(--white-color);
    font-size: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-features {
    list-style: none;
    text-align: right;
    margin-bottom: 2rem;
}

.category-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-right: 1.5rem;
}

.category-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* پکیج‌های خدمات */
.packages-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.packages-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.package-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 2rem;
    cursor: pointer;
    transition:  background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.package-tab.active,
.package-tab:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    max-width: 350px;
    border: 1px solid var(--gray-light-color-1);

}

.package-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.package-card.featured::before {
    content: 'پیشنهاد ویژه';
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.package-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 2rem;
    text-align: center;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.package-period {
    opacity: 0.9;
}

.package-body {
    padding: 2rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-text {
    color: var(--text-dark);
}

.package-actions {
    text-align: center;
}

/* مربیان تخصصی */
.trainers-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trainer-card {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-light-color-1);
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.trainer-image {
    height: 250px;
    overflow: hidden;
    /* background-size: contain !important; */

}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 1.5rem;
}

.trainer-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.trainer-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.trainer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background: var(--background-light);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.trainer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* فرآیند ثبت نام */
.process-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    left: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.process-step.active .step-number {
    background: var(--primary-color);
    color: var(--white-color);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/*faq-section */
.faq-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: 2rem;
    border: 1px solid var(--gray-light-color-1);
}

.faq-item {
    background: var(--white-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.services-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .package-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .packages-tabs {
        flex-direction: column;
        align-items: center;
    }

    .package-tab {
        width: 100%;
        max-width: 300px;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-categories {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .trainers-grid {
        grid-template-columns: 1fr;
    }
}




.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal.active {
    display: flex !important;
}

.service-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.service-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.service-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.service-modal-header i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.service-modal-body {
    text-align: center;
    margin-bottom: 20px;
}

.service-modal-actions {
    text-align: center;
}