:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease-in-out;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-gray);
    padding-top: 75px;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 75px;
}

.logo img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
    padding: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-btn {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-btn i {
    color: #916E99;
}

.login-btn, .logout-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: #007bff;
    color: #fff;
}

.login-btn:hover {
    background: #0056b3;
}

.logout-btn {
    background: #dc3545;
    color: #fff;
    text-decoration: none;
}

.logout-btn:hover {
    background: #c82333;
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    background: white;
    width: 100%;
}

.nav-menu.active {
    height: auto;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

/* Banner Slider - Updated for new implementation */
.banner-slider {
    margin-top: 0;
    width: 100%;
    /* Height will be controlled by aspect-ratio in inline styles */
}

.banner {
    position: relative;
    /* Height will be controlled by aspect-ratio in inline styles */
    background-size: contain;
    background-position: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%); */
}

/* Classes Section */
.classes-section {
    padding: 1rem;
    background-color: #fff;
}

.classes-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 0.8rem; /* Reduced gap */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.5rem; /* Reduced padding */
}

.class-box {
    text-align: center;
    padding: 0.8rem; /* Reduced padding */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.class-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.class-box i {
    font-size: 1.5rem;
    color: #916E99;
    margin-bottom: 0.5rem;
}

.class-box h3 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.class-box p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on desktop */
        gap: 1rem;
    }
    
    .class-box {
        padding: 1rem;
    }
    
    .class-box h3 {
        font-size: 1rem;
    }
    
    .class-box p {
        font-size: 0.85rem;
    }
}

/* Courses Section */
.courses-section {
    padding: 4rem 2rem;
    background: var(--light-gray);
}

.courses-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.2rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.course-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    min-height: 2.8rem;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.course-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

.btn-explore, 
.btn-enroll {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-explore {
    background: #f3f4f6;
    color: #1f2937;
}

.btn-explore:hover {
    background: #e5e7eb;
}

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

.btn-enroll:hover {
    background: #3578c7;
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .course-card {
        max-width: 100%;
    }
}

/* View All Courses Button */
.view-all-courses {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.view-all-courses .btn-explore {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* Modal Styles */
.login-modal, .register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-login, .btn-register {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-login:hover, .btn-register:hover {
    background: #0056b3;
}

.register-link, .login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.register-link a, .login-link a {
    color: #007bff;
    text-decoration: none;
}

.register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Message Popup */
.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    z-index: 2100;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.message-success {
    background: #28a745;
}

.message-error {
    background: #dc3545;
}

/* Minimize Spacing */
section {
    padding: 30px 0;
    margin-bottom: 20px;
}

.banner-slider {
    margin-top: 0;
}

h2 {
    margin-bottom: 20px;
}

.course-card {
    margin-bottom: 20px;
}

/* Courses Page Filters */
.courses-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.filters-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filters-sidebar h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-filter {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-filter:hover {
    background: #0056b3;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo img {
        height: 70px;
    }

    .login-btn, .profile-btn, .logout-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .course-buttons {
        flex-direction: column;
    }

    .btn-explore, .btn-buy {
        width: 100%;
    }

    .banner-slider {
        /* Height will be controlled by aspect-ratio in inline styles */
        /* margin-top: -50px; */
    }

    .banner-content {
        margin-top: 50px;
        margin-left: 20px;
        padding: 1rem;
    }

    .banner-content h2 {
        font-size: 0.5px;
    }

    .banner-content p {
        font-size: 0.5px;
    }

    .classes-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .modal-content {
        width: 95%;
        margin: 10vh auto;
        padding: 1.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .course-card img {
        height: 180px;
        padding: 0.8rem;
    }

    .user-name {
        max-width: 120px;
        font-size: 0.9rem;
    }
    
    .profile-btn {
        padding: 6px 12px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0 8px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
}

.nav-item {
    text-align: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
}

.nav-item.active {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-icon i {
    font-size: 1.35rem;
    transition: transform 0.3s ease;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover .nav-icon i {
    transform: translateY(-2px);
}

@media (max-width: 360px) {
    .nav-text {
        display: none;
    }
    
    .nav-item.active {
        transform: translateY(-3px);
    }
    
    .bottom-nav {
        padding: 8px 0;
    }
}

/* Search Page Styles */
.search-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 30px;
    padding: 20px 0;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-container {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-container input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

.search-input-container button {
    padding: 0 25px;
    background: #007bff;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-input-container button:hover {
    background: #0056b3;
}

.search-results h2 {
    margin-bottom: 20px;
    color: #333;
}

.search-prompt, .no-results {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.search-prompt i, .no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #007bff;
}

/* Courses Page Styles */
.courses-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.courses-container {
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clear-filters {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin-bottom: 10px;
    color: #333;
}

.filters-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.apply-filters {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-filters:hover {
    background: #0056b3;
}

.courses-content {
    flex: 1;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-count {
    color: #666;
}

.no-courses {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.no-courses i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-container {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .search-input-container input {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .search-input-container button {
        padding: 0 20px;
    }
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-header {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.profile-header p {
    color: #666;
    margin: 0.5rem 0;
}

.enrolled-courses {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enrolled-courses h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

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

.course-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.course-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.course-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.dropped {
    background: #ffebee;
    color: #c62828;
}

.enrollment-date {
    font-size: 0.875rem;
    color: #666;
}

.no-courses {
    text-align: center;
    padding: 3rem 0;
}

.no-courses p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: #1565c0;
}

/* Courses Page Styles */
.courses-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.courses-header {
    margin-bottom: 2rem;
}

.courses-header h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.filter-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.search-group {
    flex: 2;
    min-width: 300px;
    display: flex;
    gap: 0.5rem;
}

.search-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    padding: 0.5rem 1rem;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background: #1565c0;
}

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

.course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.2rem;
}

.course-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
}

.qualification {
    font-size: 0.875rem;
    color: #888;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.duration {
    color: #666;
    font-size: 0.875rem;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: #1565c0;
}

.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-courses p {
    color: #666;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group,
    .search-group {
        width: 100%;
    }
}

/* Courses Page Styles */
.courses-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.courses-header {
    margin-bottom: 2rem;
}

.courses-header h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.filter-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
    color: #333;
}

.search-group {
    flex: 2;
    min-width: 300px;
    display: flex;
    gap: 0.5rem;
}

.search-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #1565c0;
}

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

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.course-image,
.course-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image {
    object-fit: cover;
}

.course-image-placeholder i {
    font-size: 3rem;
    color: #1976d2;
}

.course-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.course-description {
    color: #666;
    /* margin-bottom: 1.5rem; */
    line-height: 1;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    overflow: visible;
    flex: 1;
}

.teacher-info {
    margin-bottom: 1.5rem;
    color: #666;
}

.teacher-info i {
    margin-right: 0.5rem;
    color: #1976d2;
}

.teacher {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.teacher-name {
    font-weight: 500;
    color: #333;
}

.qualification {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-left: 0.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration {
    color: #666;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.course-actions .btn-primary {
    flex: 1;
}

.btn-enroll,
.btn-reenroll,
.btn-enrolled {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-enroll {
    background: #4caf50;
    color: white;
}

.btn-enroll:hover {
    background: #43a047;
}

.btn-reenroll {
    background: #ff9800;
    color: white;
}

.btn-reenroll:hover {
    background: #f57c00;
}

.btn-enrolled {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: default;
}

.btn-enrolled i {
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-weight: 500;
    margin-top: auto;
}

.btn-primary:hover {
    background: #1565c0;
}

.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-courses p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .courses-container {
        padding: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses-header h1 {
        font-size: 1.75rem;
    }

    .filter-form {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group,
    .search-group {
        width: 100%;
        min-width: 100%;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .courses-container {
        padding: 0.5rem;
    }

    .courses-header h1 {
        font-size: 1.5rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        margin: 0 0.5rem;
    }

    .course-info {
        padding: 1rem;
    }

    .course-info h3 {
        font-size: 1.1rem;
    }

    .category-badge,
    .duration {
        font-size: 0.8rem;
    }

    .course-actions {
        flex-direction: column;
    }
    
    .btn-enroll,
    .btn-reenroll,
    .btn-enrolled {
        width: 100%;
    }
}

.class-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.class-badge i {
    font-size: 1rem;
}

.course-meta {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .class-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .class-badge i {
        font-size: 0.9rem;
    }
}

.class-badge,
.price-badge,
.duration-badge,
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.class-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.price-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.duration-badge {
    background: #fff3e0;
    color: #e65100;
}

.difficulty-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.course-meta {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .class-badge,
    .price-badge,
    .duration-badge,
    .difficulty-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .class-badge i,
    .price-badge i,
    .duration-badge i,
    .difficulty-badge i {
        font-size: 0.9rem;
    }
}

/* Hero Section Styles */
.hero-section {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: #f8f9fa;
}

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

.hero-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-get-started {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-get-started:hover {
    background-color: #0056b3;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 100%;
    }
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #916E99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(145, 110, 153, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-call-btn i {
    font-size: 24px;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background-color: #7a5c81;
}

/* Animation for attention */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(145, 110, 153, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(145, 110, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(145, 110, 153, 0);
    }
}

.floating-call-btn {
    animation: pulse 2s infinite;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .floating-call-btn {
        right: 15px;
        bottom: 100px;
    }

    .floating-call-btn i {
        font-size: 20px;
    }
}

/* Features Section */
.features-section {
    padding: 2rem 1rem;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feature-box {
        padding: 2rem;
    }
    
    .feature-icon img {
        width: 50px;
        height: 50px;
    }
    
    .feature-box h3 {
        font-size: 1.4rem;
    }
    
    .feature-box p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .nav-text {
        display: none;
    }
}
