/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --primary-dark: #564fd8;
    --secondary-color: #ff6584;
    --accent-color: #42b883;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --gray-color: #718096;
    --light-gray: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
}

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

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Header Styles */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1rem;
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
}

/* Features Section */
.features {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.feature-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: var(--transition);
}

.feature-card:hover .feature-wave {
    height: 100%;
    opacity: 0.1;
}

/* Course Hero Specific Styles */
.courses-hero {
    position: relative;
    padding: 180px 0 100px;
    /* background: linear-gradient(135deg, #6c63ff 0%, #564fd8 100%); */
    background: linear-gradient(135deg, #c5c2f7 0%, #564fd8 100%);
    color: white;
    overflow: hidden;
    z-index: 1;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/patterns/dots-pattern.png') repeat;
    opacity: 0.1;
    z-index: -1;
}

.courses-hero .container {
    position: relative;
    z-index: 2;
}

.courses-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.courses-hero .hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.search-bar {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.search-bar input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.search-bar button {
    padding: 0 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #e04f6d;
}

.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.filter-tags .tag {
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.filter-tags .tag:hover {
    background: rgba(255,255,255,0.25);
}

.filter-tags .tag.active {
    background: white;
    color: var(--primary-color);
}

/* Course Categories Section */
.course-categories {
    padding: 5rem 0;
    background: #f9faff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.3);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.category-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-count {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* Courses Main Section */
.courses-main {
    padding: 5rem 0;
}

.courses-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-dropdown {
    position: relative;
    min-width: 200px;
}

.filter-dropdown select {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background: white;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-color);
}

.filter-dropdown select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.view-all {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.view-all i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

.view-all:hover i {
    transform: translateX(3px);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Enhanced Course Card */
.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.course-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.course-instructor, .course-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}

.course-rating {
    display: flex;
    align-items: center;
    color: #ffb800;
    font-size: 0.875rem;
}

.course-rating i {
    margin-right: 0.25rem;
}

.course-price {
    font-weight: 700;
    color: var(--dark-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.page-item:hover:not(.disabled) {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
}

.page-item.active {
    background: var(--primary-color);
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about-text {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links ul,
.footer-courses ul {
    list-style: none;
}

.footer-links li,
.footer-courses li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-courses a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-courses a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--light-gray);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--light-gray);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* Dashboard Specific Styles */
.dashboard-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.dashboard-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.dashboard-search input {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    outline: none;
    transition: var(--transition);
}

.dashboard-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.dashboard-search button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-notifications {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-color);
    transition: var(--transition);
}

.menu-item a:hover,
.menu-item.active a {
    color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.1);
}

.menu-item i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.menu-item.logout a {
    color: var(--danger-color);
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    background-color: #f8fafc;
}

.dashboard-welcome h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome h1 span {
    color: var(--primary-color);
}

.dashboard-welcome p {
    color: var(--gray-color);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-image {
        position: relative;
        width: 100%;
        margin-top: 3rem;
        transform: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .menu-item {
        margin-bottom: 0;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .menu-item a {
        padding: 0.5rem 1rem;
        border-radius: 50px;
    }
    
    .menu-item i {
        margin-right: 0;
    }
    
    .menu-item span {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .courses-hero {
        padding: 150px 0 80px;
    }
    
    .courses-hero .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .courses-hero {
        padding: 130px 0 60px;
    }
    
    .courses-hero .hero-title {
        font-size: 2rem;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-bar input {
        padding: 1rem;
    }
    
    .search-bar button {
        padding: 0.75rem;
        border-radius: 0 0 12px 12px;
    }
    
    .courses-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-dropdown {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .courses-hero {
        padding: 120px 0 50px;
    }
    
    .courses-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .courses-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}