/* CSS Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8F0177;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(143, 1, 119, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    background-color: var(--text-white);
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-signup {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.btn-signup:hover {
    background-color: #6d0159;
}

/* Hero Section */
.hero {
    background-color: #fafafa;
    padding: 3rem 0 4rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-family: "Inter", sans-serif;
}

.hero-title .highlight {
    font-size: 3.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.hero-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-enroll,
.btn-explore {
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-enroll {
    background-color: var(--primary-color);
    color: white;
}

.btn-enroll:hover {
    background-color: #6d0159;
}

.btn-explore {
    background-color: white;
    color: #1a1a1a;
    border: 1px solid #ddd;
}

.btn-explore:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.stat-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Brands Section */
.brands {
    background-color: var(--primary-color);
    padding: 1.8rem 0;
    margin-top: 3rem;
}

.brand-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-list span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

/* Benefits Section */
.benefits {
    background-color: #fff;
    padding: 3.5rem 0;
}

.benefits-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
}

.benefits-title .highlight {
    color: var(--primary-color);
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-purple {
    background-color: var(--primary-color);
}

.icon-pink {
    background-color: #FF6B9D;
}

.benefit-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-title .highlight {
        font-size: 2.8rem;
    }
    
    .stat-card {
        max-width: 400px;
    }
    
    .benefits-wrapper {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-login,
    .btn-signup {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .highlight {
        font-size: 2.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-enroll,
    .btn-explore {
        width: 100%;
        text-align: center;
    }
    
    .brands {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .brand-list {
        gap: 1rem;
    }
    
    .brand-list span {
        font-size: 0.95rem;
    }
    
    .benefits {
        padding: 2.5rem 0;
    }
    
    .benefits-title {
        font-size: 1.8rem;
    }
    
    .benefit-item {
        gap: 1rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit-content h3 {
        font-size: 1.1rem;
    }
    
    .benefit-content p {
        font-size: 0.9rem;
    }
}

/* Courses Section */
.courses-section {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    padding: 4rem 0 5rem;
}

.courses-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.courses-sub {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    color: #222;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.course-media {
    position: relative;
}

.course-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.course-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-body {
    padding: 1.3rem 1.3rem 1.5rem;
}

.course-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.course-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.course-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.stat-item {
    font-size: 0.9rem;
    color: #666;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.course-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-avatar {
    font-size: 1.5rem;
}

.instructor-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 968px) {
    .courses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .courses-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .courses-section {
        padding: 3rem 0 4rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-media img {
        height: 220px;
    }
    
    .courses-title {
        font-size: 1.8rem;
    }
    
    .courses-sub {
        font-size: 0.95rem;
    }
}

/* Popular Courses Section */
.popular-courses {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #9333ea 100%);
    padding: 4rem 0 5rem;
}

.popular-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.popular-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    max-width: 780px;
    margin: 0 auto 3rem;
    font-size: 1rem;
    line-height: 1.7;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.popular-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popular-image {
    position: relative;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.popular-rating {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.popular-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.9rem;
}

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
}

.popular-course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.1rem 0;
    line-height: 1.4;
}

.popular-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.meta-item {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.popular-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.popular-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.popular-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-text {
    font-size: 0.9rem;
    color: #7c3aed;
    font-weight: 500;
}

/* Responsive for Popular Courses */
@media (max-width: 968px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .popular-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .popular-courses {
        padding: 3rem 0 4rem;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .popular-title {
        font-size: 1.8rem;
    }
    
    .popular-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .popular-image img {
        height: 240px;
    }
}

/* Testimonials Section */
.testimonials {
    /* background: linear-gradient(180deg, #c084fc 0%, #e879f9 100%); */
    background-color: #fff;
    padding: 4rem 0 5rem;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    color:black;
    text-align: center;
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    text-align: center;
    /* color: rgba(255, 255, 255, 0.95); */
    color: #333;
    max-width: 780px;
    margin: 0 auto 3rem;
    font-size: 1rem;
    line-height: 1.7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.testimonial-card {
    background: rgb(243, 236, 236);
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a855f7;
    margin: 0 0 0.2rem 0;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.4rem 0;
}

.testimonial-stars {
    font-size: 0.9rem;
    color: #fbbf24;
}

.testimonial-text {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.nav-arrow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.nav-counter {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive for Testimonials */
@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 0 4rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonials-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .newsletter-box {
        padding: 2.5rem 1.5rem;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 3.5rem 0 1.5rem;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: #a855f7;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: 1;
    }
}

/* Courses Page Styles */
.courses-hero {
    /* background: linear-gradient(135deg, var(--primary-color), #a855f7 60%); */
    background-color: var(--primary-color);
    padding: 3.5rem 0;
    color: white;
    text-align: center;
}

.courses-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.courses-hero-desc {
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto;
}

.courses-filter-section {
    background: white;
    padding: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.filter-item select {
    padding: 0.5rem 0.8rem;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
}

.search-item {
    margin-left: auto;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.search-item input {
    padding: 0.55rem 0.8rem;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.btn-search {
    padding: 0.55rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.courses-list {
    background: #fbfbfd;
    padding: 2.5rem 0 4rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.course {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.course-media {
    position: relative;
}

.course-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.course-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

.course-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.course-badge {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.course-description {
    color: #666;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    color: #777;
    font-size: 0.9rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.15rem;
}

.btn-enroll-small {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.courses-pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.courses-pagination .page {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
    .courses-hero-title { font-size: 2rem; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .filters-row { flex-direction: column; align-items: stretch; }
    .search-item { margin-left: 0; }
    .courses-grid { grid-template-columns: 1fr; }
    .course-media img { height: 230px; }
}
