/* Courses Hero */
.courses-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/hero-bg.webp') no-repeat;
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}

.courses-hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.courses-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-search {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.hero-search input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.hero-search button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-search button:hover {
    background: #e63e4c;
}

/* Course Categories */
.course-categories {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 60px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s;
    border-radius: 25px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Courses Grid */
.courses-grid {
    padding: 4rem 0;
    background: var(--light-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    background: var(--light-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.course-content {
    padding: 0;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.beginner {
    background: #e3fcef;
    color: #00a651;
}

.intermediate {
    background: #fff4e5;
    color: #ff9800;
}

.advanced {
    background: #ffe3e3;
    color: #ff4654;
}

/* Training Benefits */
.training-benefits {
    padding: 4rem 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-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;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.benefit-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefit-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* Training Schedule */
.training-schedule {
    padding: 4rem 0;
    background: var(--light-bg);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.schedule-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.schedule-header {
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
}

.schedule-header.morning {
    background: linear-gradient(135deg, #FF8C00, #FFA000);
}

.schedule-header.evening {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.schedule-content {
    padding: 1.5rem;
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-bg);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.slots {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Training Stats */
.training-stats {
    padding: 4rem 0;
    background: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: var(--gray);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
}

.faq-item.active .faq-question {
    background: rgba(0, 123, 255, 0.05);
}

@media (max-width: 768px) {
    .faq-list {
        padding: 0 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-category {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }
}

/* Simple FAQ Section */
.faq-section {
    padding: 60px 0;
    background: #fff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-hero h1 {
        font-size: 2rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: calc(50% - 0.5rem);
    }

    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .benefits-grid,
    .schedule-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
