/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fb;
    color: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6a11cb, #2575fc), url('/assets/images/hero.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.hero h1 { font-size: 48px; margin-bottom: 15px; }
.hero p { font-size: 20px; margin-bottom: 25px; }
.hero .btn-hero {
    background-color: #ff6b6b;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.hero .btn-hero:hover { background-color: #ff4757; }

/* Generic Buttons */
.btn {
    background-color: #ffcc00;
    color: #1c3faa;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}
.btn:hover { background-color: #e6b800; }

/* Sections */
section { padding: 50px 20px; }
section h2 { text-align: center; margin-bottom: 40px; font-size: 32px; color: #1c3faa; }

.section-subtitle {
    text-align: center;
    margin: -20px 0 30px;
    color: #6b7280;
    font-size: 16px;
}

.tests-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    margin-top: 20px;
    display: none;
}

.course-reviews {
    max-width: 900px;
    margin: 0 auto;
}

.reviews-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.reviews-summary div {
    background: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.review-card strong {
    color: #1c3faa;
}

.review-form {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #374151;
}

.review-form textarea,
.review-form select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    margin: 60px 0;
}
.features .feature i {
    color: #2575fc;
    margin-bottom: 15px;
    font-size: 2rem;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.categories button {
    padding: 10px 20px;
    border: 1px solid #1c3faa;
    background: white;
    color: #1c3faa;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.categories button:hover,
.categories button.active { background-color: #1c3faa; color: white; }

/* Courses Grid */
.courses-grid, .user-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

/* Course Cards */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.card img { width: 100%; border-radius: 12px 12px 0 0; height: 180px; object-fit: cover; }
.card-content { padding: 15px; }
.card-content h3 { margin-bottom: 10px; color: #333; }
.card-content p { margin-bottom: 15px; color: #555; }
.card-content a, .popular-courses .btn-card {
    display: inline-block;
    background: #2575fc;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    transition: 0.3s;
}
.card-content a:hover, .popular-courses .btn-card:hover {
    background: #6a11cb;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #1c3faa;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    transition: transform 0.3s;
}
.profile-header img:hover { transform: scale(1.05); }
.profile-header .user-details h2 { margin-bottom: 5px; font-size: 28px; }
.profile-header .user-details p { font-size: 16px; opacity: 0.8; }

.profile-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.profile-actions button {
    background-color: #ffcc00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.profile-actions button:hover { background-color: #e6b800; }

/* Edit Form */
.edit-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-bottom: 30px;
    display: none;
}
.edit-form h3 { margin-bottom: 15px; color: #1c3faa; }
.edit-form input { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 5px; border: 1px solid #ccc; }
.edit-form button { width: 100%; }

/* Responsive */
@media(max-width:768px){
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    nav a { margin-right: 10px; }
    .courses-grid, .user-courses { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-actions { margin-left: 0; justify-content: center; }
}
