.class-details-hero {
    position: relative;
    padding: 120px 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;
}

.class-details-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/classes/hero-classes-1.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.class-details-hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.class-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.class-hero-breadcrumb a {
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
}

.class-hero-breadcrumb a:hover {
    color: var(--primary-color);
}

.class-hero-breadcrumb span {
    color: var(--primary-color);
}

.class-details-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.class-details-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.class-hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.class-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-hero-meta-item i {
    color: var(--primary-color);
}

.class-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.class-details-main {
    padding: 5rem 0;
    background: var(--background-light);

}

.class-details-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-inline: 1rem;
}



.class-content-section {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    width: 100vw;
    box-sizing: border-box;
    margin-block: 1rem;
}

.class-content-section h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.class-content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.class-description-text {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    text-align: justify;
}

.class-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.class-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.class-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.class-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-feature-icon i {
    color: var(--white-color);
    font-size: 1.2rem;
}

.class-feature-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.class-feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.class-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.class-schedule-table th,
.class-schedule-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.class-schedule-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-dark);
}

.class-schedule-table tr:hover {
    background: var(--background-light);
}

.schedule-time {
    color: var(--primary-color);
    font-weight: 600;
}

.schedule-available {
    color: #10b981;
    font-weight: 600;
}

.schedule-full {
    color: #ef4444;
    font-weight: 600;
}

.trainer-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;

}

.trainer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

}

.trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.trainer-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trainer-experience {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trainer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.certification-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.trainer-social {
    display: flex;
    gap: 0.5rem;
}

.trainer-social a {
    width: 35px;
    height: 35px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.trainer-social a:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.class-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.equipment-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.equipment-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.equipment-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.equipment-icon i {
    color: var(--white-color);
    font-size: 1.5rem;
}

.equipment-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.equipment-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.class-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.booking-card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-large);
    margin-bottom: 2rem;
}

.booking-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.booking-features {
    margin-bottom: 2rem;
}

.booking-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.booking-feature:last-child {
    border-bottom: none;
}

.booking-feature i {
    color: var(--primary-color);
    width: 20px;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-book-now {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-book-now:hover {
    background: #e03e4d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.class-stats-card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.class-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.class-stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: var(--text-dark);
    font-weight: 600;
}

.reviews-section {
    margin-top: 3rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-stars {
    color: #fbbf24;
}

.rating-count {
    color: var(--text-muted);
}

.review-item {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-rating {
    color: #fbbf24;
}

.review-text {
    line-height: 1.7;
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .class-details-container {
        grid-template-columns: 1fr;
    }

    .class-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .class-details-title {
        font-size: 2rem;
    }

    .class-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .trainer-profile {
        flex-direction: column;
        text-align: center;
    }

    .class-features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width:500px) {
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    .trainer-avatar {
        margin: 0 auto;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-content-section {
    animation: fadeInUp 0.6s ease-out;
}


.table-responsive {
    overflow-x: auto;
    /* جدول روی موبایل اسکرول شود */
    -webkit-overflow-scrolling: touch;
}

.class-schedule-table {
    width: 100%;
    min-width: 600px;
    /* حداقل عرض جدول برای دسکتاپ */
    border-collapse: collapse;
}