/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Common Headings */
.hero-content h1,
.about h2,
.course h3,
.course-item h3,
.testimonials h2,
.course-details h2,
.course-details h3,
.auth-form h2,
.enrollment-form h2 {
    color: #4B0082;
    text-align: center;
}

/* Common Containers */
.auth-form,
.enrollment-form,
.course-details,
.course {
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 90%;
    margin: 40px auto;
    text-align: center;
}

.course {
    max-width: 500px;
    margin: 20px auto;
}

.auth-form,
.enrollment-form {
    max-width: 400px;
    padding: 30px;
    margin: 50px auto;
}

.enrollment-form {
    max-width: 600px;
    margin: 40px auto;
}

/* Buttons */
.btn,
.course a.btn,
.auth-form .btn {
    display: block;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
}

.btn,
.course a.btn {
    background-color: #FFD700;
    color: #4B0082;
    font-weight: bold;
}

.auth-form .btn,
.btn.enroll {
    background-color: #4B0082;
    color: white;
    border: none;
}

.btn:hover,
.course a.btn:hover {
    background-color: #FFA500;
    color: #4B0082;
}

/* Navigation Bar Styles */
nav,
.nav {
    background-color: #4B0082;
    padding: 15px;
    text-align: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

nav a,
.ul li a,
.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    transition: color 0.3s ease-in-out;
}

nav a:hover,
.ul li a:hover,
.nav-links li a:hover {
    color: #FFD700;
}

.ul,
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.ul li,
.nav-links li {
    margin-left: 5px;
    margin: 0 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* Header */
header {
    background-color: #4B0082;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* Hero Section */
.home-background {
    background: url('https://source.unsplash.com/1600x900/?technology') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: aqua;
}

.hero-content p {
    font-size: 20px;
}

/* About Section */
.about {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
}

/* Courses Section */
.courses {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.course-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.course-item img {
    width: 100%;
    border-radius: 10px;
}

.course p {
    font-size: 16px;
    margin-bottom: 15px;
}

.course a {
    display: inline-block;
    margin: 5px;
    padding: 10px 4px;
    text-decoration: none;
    border-radius: 5px;
}

.course a:first-of-type {
    background-color: #4B0082;
    color: white;
}

/* Testimonials */
.testimonials {
    background-color: #4B0082;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Auth Forms (Login & Register) */
.auth-form label,
.enrollment-form label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

.auth-form input,
.enrollment-form input,
.enrollment-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.auth-form p {
    margin-top: 15px;
}

.auth-form a {
    color: #4B0082;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Course Details */
.course-details p {
    line-height: 1.6;
}

.course-details ul {
    padding-left: 20px;
}

.course-details ul li {
    margin: 10px 0;
}
