/* Courses section styles */

.category-header,
.subcategory-header {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.category-header:hover,
.subcategory-header:hover {
    background: #e9ecef;
}

.category-header h3,
.subcategory-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #3498db;
    font-weight: bold;
}

.course-list,
.subcategory-list {
    padding: 20px;
}

.class-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.subcategory-header {
    background: #edf2f7;
}

.subcategory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
}

.hidden {
    display: none;
}

.course-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-card h4 {
    color: #2d3748;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.course-card p {
    color: #4a5568;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.register-button {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.register-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.courses-section {
    padding: 10px 20px;
    background: #f5f5f5;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666;
    font-size: 1rem;
    text-align: justify;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    position: relative;
}

.course-box {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem 2rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.course-content h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

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

.course-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
}

.view-all-container {
    text-align: center;
    margin: 2rem 0;
}

.view-all-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.view-all-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}