
/* ============================= CLASSES PAGE STYLES =============================== */

/* Hero Section */
.classes-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    color: var(--white-color);
    margin-top: 0px;
}

.classes-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/classes/hero-classes.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.classes-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.classes-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.classes-hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.classes-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Filter Section */
.classes-filter-section {
    background: var(--white-color);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-container {
    display: flex;
    gap: 2rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--white-color);
    font-family: inherit;
    min-width: 150px;
}

.filter-reset-btn {
    padding: 0.75rem 1.5rem;
    background: var(--text-muted);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-reset-btn:hover {
    background: var(--text-dark);
}

/* Classes Grid */
.classes-main-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: repeat(3, 1fr); 

}

.class-card {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
    border: 1px solid var(--gray-light-color-1);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.class-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-card:hover .class-image img {
    transform: scale(1.05);
}

.class-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white-color);
}

.badge-popular {
    background: var(--primary-color);
}

.badge-new {
    background: #10b981;
}

.badge-intensity {
    background: #ef4444;
}

.badge-fun {
    background: #8b5cf6;
}

.badge-difficulty {
    background: var(--text-dark);
}

.class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.class-card:hover .class-overlay {
    opacity: 1;
}

.class-quick-view {
    background: var(--white-color);
    color: var(--text-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.class-quick-view:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.class-content {
    padding: 1.5rem;
}

.class-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.class-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.class-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.class-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.class-meta .meta-item i {
    color: var(--primary-color);
}

.class-schedule {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.schedule-days {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.schedule-time {
    color: var(--primary-color);
    font-weight: 600;
}

.class-actions {
    display: flex;
    gap: 1rem;
}

.class-actions .btn {
    flex: 1;
    text-align: center;
}

/* No Classes Message */
.no-classes-message {
    text-align: center;
    padding: 4rem 2rem;
}

.no-classes-message i {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-classes-message h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-classes-message p {
    color: var(--text-muted);
}

.text-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* CTA Section */
.classes-cta-section {
    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;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 15rem;
}

/* Responsive */
@media (max-width: 768px) {
    .classes-hero-title {
        font-size: 2rem;
    }

    .classes-hero-description {
        font-size: 1.1rem;
    }

    .classes-hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .class-actions {
        flex-direction: column;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.filter-select:focus,
.filter-reset-btn:focus,
.class-quick-view:focus,
.class-book-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
#category-filter, #difficulty-filter , #duration-filter {
    padding: 8px 30px 8px 12px; 
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    direction: rtl;
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
}

#category-filter ,  #difficulty-filter , #duration-filter {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
}


/* ===================================== footer section ========================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-col form {
    display: flex;
    margin-top: 20px;
}

.footer-col input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-col button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 15px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.footer-col button:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}