:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.login-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover,
.login-btn.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    transition: var(--transition);
    z-index: 200;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-menu i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.experience-tagline {
    font-size: 1rem;
    color: var(--primary-color);
    max-width: 800px;
    margin: 1rem auto 0;
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.7s forwards;
}

/* Page Title Section */
.page-title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Cards Section */
.cards-section {
    margin-bottom: 3rem;
}

.small-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Slider Section */
.slider-container {
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-card {
    min-width: 300px;
    margin-right: 1.5rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.slider-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Big Card Section */
.big-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.big-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.sub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sub-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.sub-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Course Page Styles */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.course-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Blog Page Styles */
.featured-blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.featured-blog-image {
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.featured-blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.featured-blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-blog-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    align-self: flex-start;
}

.blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.blog-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-category-tag:hover,
.blog-category-tag.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* About Page Styles */
.about-section {
    margin-bottom: 3rem;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.about-content {
    padding: 2rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.expertise-section {
    margin-bottom: 3rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expertise-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.expertise-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.journey-section {
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.testimonials-section {
    margin-bottom: 3rem;
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 1rem;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.testimonial-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.testimonial-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Login/Register Page Styles */
.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1.5rem;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.auth-form {
    padding: 2.5rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: center;
}

.auth-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-divider span {
    background-color: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.facebook-btn:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.auth-switch {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-agreement input {
    margin-top: 0.2rem;
}

.terms-agreement label {
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-agreement a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .featured-blog {
        grid-template-columns: 1fr;
    }
    
    .featured-blog-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-description {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .small-cards {
        grid-template-columns: 1fr;
    }
    
    .slider-card {
        min-width: 250px;
    }
    
    .sub-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        justify-content: space-around;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .sub-cards {
        grid-template-columns: 1fr;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
}

/* Chat Page Styles */
.chat-main {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 200px);
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-sidebar {
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.new-chat-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.new-chat-btn:hover {
    transform: scale(1.1);
}

.search-box {
    padding: 1rem;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-list {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.chat-item:hover {
    background-color: var(--bg-light);
}

.chat-item.active {
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-right: 1rem;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.chat-info {
    flex-grow: 1;
}

.chat-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.chat-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.unread-badge {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

.chat-window {
    display: flex;
    flex-direction: column;
}

.chat-window-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-user-info {
    display: flex;
    align-items: center;
}

.user-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-status {
    font-size: 0.85rem;
    color: #10b981;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.chat-action-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-date {
    text-align: center;
    margin: 1rem 0;
}

.message-date span {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.message-content {
    background-color: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.message-content p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.code-snippet {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.code-snippet pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-input-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input-btn:hover {
    color: var(--primary-color);
}

.chat-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.emoji-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.emoji-btn:hover {
    color: var(--primary-color);
}

.send-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    transform: scale(1.1);
}

/* Quiz Page Styles */
.quiz-main {
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-categories-section {
    margin-bottom: 3rem;
}

.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quiz-category-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.quiz-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quiz-category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.quiz-category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.quiz-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.quiz-interface {
    display: none;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quiz-interface.active {
    display: block;
}

.quiz-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-categories {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-categories:hover {
    color: var(--primary-color);
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quiz-timer i {
    color: var(--primary-color);
}

.quiz-progress {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quiz-content {
    padding: 2rem;
}

.question-container {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.answer-option:hover {
    background-color: #e5e7eb;
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.answer-text {
    font-size: 1rem;
    color: var(--text-dark);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
}

.skip-btn {
    background: none;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.skip-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.next-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-results {
    display: none;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quiz-results.active {
    display: block;
}

.results-container {
    padding: 3rem 2rem;
    text-align: center;
}

.results-icon {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.score-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-total {
    color: var(--text-light);
}

.results-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 1.5rem;
}

.correct-icon {
    color: #10b981;
}

.incorrect-icon {
    color: #ef4444;
}

.skip-icon {
    color: #f59e0b;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.retake-btn, .new-quiz-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.retake-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.retake-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.new-quiz-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
}

.new-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Styles for Chat and Quiz */
@media (max-width: 992px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 150px);
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .chat-sidebar.mobile-active {
        display: flex;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        z-index: 10;
    }
    
    .chat-window {
        display: none;
    }
    
    .chat-window.mobile-active {
        display: flex;
    }
    
    .quiz-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quiz-categories {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .retake-btn, .new-quiz-btn {
        width: 100%;
    }
    
    .quiz-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skip-btn, .next-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .quiz-main {
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .results-container {
        padding: 2rem 1rem;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
}

/* Additional Chat Styles */
.welcome-message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
            border-radius: 50%;
    background-color: var(--text-light);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile chat improvements */
@media (max-width: 768px) {
    .chat-messages {
        padding: 1rem;
    }
    
    .message.sent, .message.received {
        max-width: 85%;
    }
    
    .welcome-message {
        max-width: 85%;
    }
}

/* Enhanced Chat Styles */
.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    display: block;
}

.message.received .message-time {
    color: var(--text-light);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.message.sent .message-avatar {
    margin-right: 0;
    margin-left: 0.5rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    max-width: 70%;
    background-color: var(--bg-light);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-light);
    animation: typing 1.4s infinite ease-in-out;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Mobile chat improvements */
@media (max-width: 768px) {
    .chat-messages {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
}

/* Enhanced Image Styles */
.card-image,
.course-image,
.blog-image,
.featured-blog-image {
    width: 100%;
    height: 200px; /* Consistent height */
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* Course card specific image styles */
.course-image {
    height: 180px;
    border-radius: 12px 12px 0 0;
}

/* Blog card specific image styles */
.blog-image {
    height: 200px;
    border-radius: 12px 12px 0 0;
}

/* Featured blog image */
.featured-blog-image {
    height: 100%;
    min-height: 300px;
    border-radius: 12px 0 0 12px;
}

/* About page image */
.about-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
}

/* Avatar images */
.chat-avatar,
.author-avatar,
.message-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

/* Responsive Image Adjustments */
@media (max-width: 992px) {
    .card-image,
    .course-image,
    .blog-image {
        height: 160px;
    }
    
    .featured-blog-image {
        min-height: 250px;
    }
    
    .about-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .card-image,
    .course-image,
    .blog-image {
        height: 140px;
    }
    
    .featured-blog-image {
        min-height: 200px;
        border-radius: 12px 12px 0 0;
    }
    
    .about-image {
        min-height: 250px;
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 576px) {
    .card-image,
    .course-image,
    .blog-image {
        height: 120px;
    }
    
    .featured-blog-image {
        min-height: 180px;
    }
    
    .about-image {
        min-height: 200px;
    }
}

/* Image container fixes */
.card,
.course-card,
.blog-card {
    overflow: hidden;
}

.card-image,
.course-image,
.blog-image {
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-image,
.course-card:hover .course-image,
.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Slider image fixes */
.slider-card {
    min-width: 300px;
}

.slider-card .card-image {
    height: 160px;
}

@media (max-width: 768px) {
    .slider-card {
        min-width: 250px;
    }
    
    .slider-card .card-image {
        height: 140px;
    }
}

/* Sub-card image fixes */
.sub-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Category card image fixes */
.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Expertise card image fixes */
.expertise-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Timeline image fixes */
.timeline-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Python Learning Path Styles */
.python-learning-path {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Learning Progress Section */
.learning-progress-section {
    margin-bottom: 3rem;
}

.progress-container {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.progress-info p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex-grow: 1;
    height: 12px;
    background-color: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Path Toggle Section */
.path-toggle-section {
    margin-bottom: 3rem;
}

.toggle-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.path-toggle {
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.path-toggle.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.path-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Learning Path Section */
.learning-path-section {
    margin-bottom: 3rem;
}

.path-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.path-node {
    background-color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.path-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.path-node.completed {
    border-left: 4px solid #10b981;
}

.path-node.active {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.path-node.locked {
    opacity: 0.7;
}

.node-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.path-node.completed .node-icon {
    background-color: #10b981;
    color: var(--white);
}

.path-node.active .node-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.path-node.locked .node-icon {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.node-content {
    flex-grow: 1;
}

.node-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.node-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.node-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-progress {
    width: 100px;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
}

.node-progress span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.node-connector {
    width: 2px;
    height: 30px;
    background-color: #e5e7eb;
    margin-left: 1.5rem;
}

/* Concept Detail View */
.concept-detail-view {
    display: none;
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.back-to-path {
    background: none;
    border: 1px solid var(--text-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-path:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.concept-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.concept-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.concept-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.concept-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.concept-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.concept-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.concept-content {
    padding: 1.5rem;
}

.concept-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.concept-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.concept-tab.active {
    color: var(--primary-color);
}

.concept-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.concept-tab-content {
    display: none;
}

.concept-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.concept-tab-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.concept-tab-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.code-example {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.code-example pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.start-exercise-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.start-exercise-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(-20px);
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .concept-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .path-container {
        gap: 1rem;
    }
    
    .path-node {
        padding: 1.25rem;
    }
    
    .node-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .python-learning-path {
        padding: 1rem;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .path-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .concept-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .concept-card {
        margin-bottom: 1rem;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .concept-tabs {
        overflow-x: auto;
    }
    
    .concept-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .progress-container {
        padding: 1.5rem;
    }
    
    .path-node {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .node-connector {
        width: 100%;
        height: 2px;
        margin: 1rem 0 0;
    }
    
    .concept-content {
        padding: 1rem;
    }
    
    .concept-tabs {
        margin-bottom: 1rem;
    }
    
    .concept-tab {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pricing Modal Styles */
.pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-plan {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-plan.active {
    border: 2px solid var(--primary-color);
}

.pricing-plan h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-plan .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-plan .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-plan p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.select-plan {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.select-plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-info {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.payment-method {
    background-color: var(--bg-light);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.payment-method i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cancel-btn, .confirm-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
}

.cancel-btn:hover {
    background-color: #f1f5f5;
    color: var(--text-dark);
}

.confirm-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.success-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.ok-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Premium Card Styles */
.premium-card {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.concept-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.premium-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design for Pricing Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-plan {
        padding: 1rem;
    }
    
    .pricing-plan h3 {
        font-size: 1.1rem;
    }
    
    .pricing-plan .price {
        font-size: 1.3rem;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .payment-method {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}