:root {
    --primary-purple: #6f42c1;
    /* Vibrant Purple */
    --dark-purple: #4c2889;
    /* Darker for hover */
    --light-purple: #f3f0ff;
    /* Very light background */
    --accent-yellow: #ffc107;
    /* For stars/highlights */
    --text-dark: #2d3748;
    --text-gray: #718096;
    --white: #ffffff;
}

body {
    font-family: 'Nunito', sans-serif;
    /* Friendly font for education */
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Utility Classes */
.text-purple {
    color: var(--primary-purple) !important;
}

.bg-light-purple {
    background-color: var(--light-purple) !important;
}

.bg-purple {
    background-color: var(--primary-purple) !important;
    color: white;
}

.section-padding {
    padding: 90px 0;
}

.rating-stars {
    color: var(--accent-yellow);
}

/* Buttons */
.btn-edu {
    background-color: var(--primary-purple);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    border: 2px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.btn-edu:hover {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

.btn-outline-edu {
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-edu:hover {
    background: var(--primary-purple);
    color: white;
}

/* Navbar */
.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-purple) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 8px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-purple) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-purple);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decor shapes */
.shape-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.hero-img {
    border-radius: 20px;
    transform: rotate(2deg);
    transition: 0.5s;
    box-shadow: 20px -20px 0 var(--primary-purple);
}

.hero-img:hover {
    transform: rotate(0deg);
}

/* Category Cards */
.cat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
    cursor: pointer;
}

.cat-card:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.cat-card:hover .cat-icon {
    color: white;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
    height: 100%;
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.course-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.course-card:hover .course-thumb img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-purple);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.course-content {
    padding: 25px;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

/* Instructor Section */
.instructor-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.instructor-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.inst-profile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--light-purple);
}

/* Pricing */
.price-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.price-card.active {
    border: 2px solid var(--primary-purple);
    background: #fdfdff;
}

.price-card.active .btn-outline-edu {
    background-color: var(--primary-purple);
    color: white;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-purple);
}

/* Register Form */
.register-box {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.3);
}

.form-control-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px;
}

.form-control-light::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control-light:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    box-shadow: none;
}

/* Gallery (Student Projects) */
.project-img {
    border-radius: 15px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1a103c;
    /* Very dark purple */
    color: #d1d1d1;
    padding-top: 70px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #d1d1d1;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--primary-purple);
}