/* General Section */

.all-courses {
    padding: 1.5rem 1rem;
    background-color: #f7f7f7;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}


/* Category Box */

.course-category-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}


/* Header Toggle */

.category-header {
    background: #3498db;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}


/* Subcourses and Class Sections */

.course-list {
    padding: 20px;
    background: #f9f9f9;
}

.class-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.subcategory-header {
    background: #e8f4fc;
    color: #2c3e50;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid #e1e8ed;
}

.subcategory-header:hover {
    background: #d4ebf8;
}

.subcategory-list {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    background: #fff;
}

.course-card {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #e1e8ed;
}

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

.course-card h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.course-card p {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95rem;
}


/* Hidden class */

.hidden {
    display: none;
}


/* Icon Rotation when open */

.rotate {
    transform: rotate(45deg);
}

.register-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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