/* ===== Featured Courses Section ===== */
.courses {
    background: #ffffff;
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

/* Section title */
.section-title h2 {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.section-title h2 span {
    color: #04a65b;
}

.section-title p {
    color: #555;
    margin-top: 10px;
}

/* View all button */
.btn-outline-primary {
    border: 2px solid #04a65b;
    color: #04a65b;
    border-radius: 0;
    font-weight: 600;
    padding: 10px 22px;
}

.btn-outline-primary:hover {
    background: #04a65b;
    color: #fff;
}

/* ===== Course Card ===== */
.single-course {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.single-course:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Course image */
.course-head {
    position: relative;
    overflow: hidden;
}

.course-head img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

/* Price badge */
.course-head .price {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
}

.course-head .price.bg-success {
    background: #04a65b !important;
}





/* Course content */
.course-content {
    padding: 25px;
}

/* Category */
.course-content .category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #04a65b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Title */
.course-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-content h4 a {
    color: #000;
    text-decoration: none;
}

.course-content h4 a:hover {
    color: #04a65b;
}

/* Rating */
.course-rating i {
    color: #04a65b;
    font-size: 14px;
}

.course-rating span {
    color: #555;
    font-size: 14px;
    margin-left: 6px;
}

/* Description */
.course-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Meta info */
.course-meta {
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.course-meta i {
    color: #04a65b;
    margin-right: 5px;
}

/* Buttons */
.course-action .btn {
    border-radius: 0;
    font-weight: 600;
    padding: 12px;
    text-transform: uppercase;
}

/* Primary button */
.btn-primary {
    background: #04a65b;
    border: none;
}

.btn-primary:hover {
    background: #038f4e;
}

/* Success button */
.btn-success {
    background: #000;
    border: none;
}

.btn-success:hover {
    background: #04a65b;
}

/* Fixed-height course description */
.course-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* change to 2 if you want tighter cards */
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: calc(1.6em * 3); /* keeps equal height even for 1-line text */
}
















     /* ===== Page Header ===== */
        .page-header {
            background: #28a745;
            padding: 60px 0;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('images/pattern.png') repeat;
            opacity: 0.1;
        }

        .page-header h1 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 10px;
            position: relative;
        }

        .page-header p {
            font-size: 16px;
            opacity: 0.9;
            position: relative;
            color:white;
        }

        /* ===== Filter Section ===== */
        .filter-section {
            background: #f8f9fa;
            padding: 25px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .filter-form {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }

        .filter-form .form-group {
            margin-bottom: 0;
            flex: 1;
            min-width: 200px;
        }

        .filter-form select,
        .filter-form input {
            border-radius: 0;
            border: 1px solid #ddd;
            height: 45px;
            font-size: 14px;
        }

        .filter-form .btn {
            height: 45px;
            border-radius: 0;
            padding: 0 25px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .filter-form .btn-primary {
            background: #04a65b;
            border: none;
        }

        .filter-form .btn-primary:hover {
            background: #038f4e;
        }

        .filter-form .btn-outline {
            background: transparent;
            border: 2px solid #04a65b;
            color: #04a65b;
        }

        .filter-form .btn-outline:hover {
            background: #04a65b;
            color: #fff;
        }

        /* Active filters */
        .active-filters {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e9ecef;
        }

        .filter-tag {
            display: inline-block;
            background: #04a65b;
            color: #fff;
            padding: 5px 15px;
            margin-right: 10px;
            margin-bottom: 5px;
            font-size: 13px;
            text-decoration: none;
        }

        .filter-tag:hover {
            background: #145a30;
            color: #fff;
            text-decoration: none;
        }

        .filter-tag i {
            margin-left: 8px;
        }

        /* ===== Courses Grid ===== */
        .courses-section {
            padding: 60px 0;
            background: #ffffff;
        }

        .courses-header {
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .courses-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #000;
        }

        .courses-header h2 span {
            color: #04a65b;
        }

        .results-count {
            color: #666;
            font-size: 14px;
        }

        /* Course Card - Reusing index styles with enhancements */
        .single-course {
            background: #fff;
            border: 1px solid #eaeaea;
            border-radius: 0;
            transition: all 0.3s ease;
            height: 100%;
            margin-bottom: 30px;
        }

        .single-course:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .course-head {
            position: relative;
            overflow: hidden;
        }

        .course-head img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 0;
        }

        .course-head .price {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #000;
            color: #fff;
            padding: 6px 14px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 0;
        }

        .course-head .price.bg-success {
            background: #04a65b !important;
        }

        .course-head .badge-level {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 4px 12px;
            font-size: 12px;
            text-transform: uppercase;
        }

        .course-content {
            padding: 25px;
        }

        .course-content .category {
            display: inline-block;
            font-size: 12px;
            font-weight: 600;
            color: #04a65b;
            text-transform: uppercase;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .course-content h4 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .course-content h4 a {
            color: #000;
            text-decoration: none;
        }

        .course-content h4 a:hover {
            color: #04a65b;
        }

        .course-rating i {
            color: #04a65b;
            font-size: 13px;
        }

        .course-rating span {
            color: #777;
            font-size: 13px;
            margin-left: 6px;
        }

        .course-content p {
            font-size: 14px;
            color: #555;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: calc(1.6em * 2);
            margin-bottom: 15px;
        }

        .course-meta {
            font-size: 13px;
            color: #777;
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-bottom: 15px;
        }

        .course-meta i {
            color: #04a65b;
            margin-right: 5px;
        }

        .course-meta span {
            margin-right: 15px;
        }

        .course-action .btn {
            border-radius: 0;
            font-weight: 600;
            padding: 12px;
            text-transform: uppercase;
            font-size: 13px;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: #04a65b;
            border: none;
        }

        .btn-primary:hover {
            background: #038f4e;
        }

        .btn-success {
            background: #000;
            border: none;
        }

        .btn-success:hover {
            background: #04a65b;
        }

        /* ===== Pagination ===== */
        .pagination-wrapper {
            margin-top: 50px;
            text-align: center;
        }

        .pagination {
            display: inline-flex;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pagination li {
            margin: 0 3px;
        }

        .pagination li a,
        .pagination li span {
            display: block;
            padding: 10px 18px;
            border: 1px solid #ddd;
            color: #333;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }

        .pagination li.active span,
        .pagination li a:hover {
            background: #04a65b;
            border-color: #04a65b;
            color: #fff;
        }

        .pagination li.disabled span {
            color: #aaa;
            cursor: not-allowed;
        }

        /* ===== Empty State ===== */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
        }

        .empty-state i {
            font-size: 64px;
            color: #ddd;
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 24px;
            color: #333;
            margin-bottom: 10px;
        }

        .empty-state p {
            color: #777;
            max-width: 500px;
            margin: 0 auto 25px;
        }

        /* ===== Sidebar Categories ===== */
        .sidebar-widget {
            background: #f8f9fa;
            padding: 25px;
            margin-bottom: 30px;
        }

        .sidebar-widget h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #04a65b;
            text-transform: uppercase;
        }

        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .category-list li {
            border-bottom: 1px solid #e9ecef;
        }

        .category-list li:last-child {
            border-bottom: none;
        }

        .category-list li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            color: #555;
            text-decoration: none;
            transition: all 0.3s;
        }

        .category-list li a:hover,
        .category-list li.active a {
            color: #04a65b;
            padding-left: 10px;
        }

        .category-list li.active a {
            font-weight: 600;
        }

        .category-list .count {
            background: #e9ecef;
            color: #666;
            padding: 2px 10px;
            font-size: 12px;
            border-radius: 20px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .filter-form .form-group {
                min-width: 100%;
            }
            
            .courses-header {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .page-header h1 {
                font-size: 28px;
            }
        }

        .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.classic-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
}

.classic-checkbox input[type="checkbox"] {
    margin: 0;
}



























        /* ===== Course Header ===== */
        .course-header {
            background: linear-gradient(135deg, #1c6b3c 0%, #04a65b 100%);
            padding: 60px 0;
            color: #fff;
            position: relative;
        }

        .course-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('images/pattern.png') repeat;
            opacity: 0.1;
        }

        .course-header .container {
            position: relative;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 20px;
        }

        .breadcrumb a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: #fff;
        }

        .course-badges {
            margin-bottom: 15px;
        }

        .course-badges span {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            padding: 5px 15px;
            margin-right: 10px;
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
        }

        .course-title {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .course-meta-header {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-top: 20px;
            font-size: 14px;
        }

        .course-meta-header i {
            margin-right: 5px;
            color: #ffd700;
        }

        .instructor-info {
            display: flex;
            align-items: center;
            margin-top: 25px;
        }

        .instructor-info img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
            border: 2px solid #fff;
        }

        /* ===== Enrollment Card ===== */
        .enroll-card {
            background: #fff;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            margin-top: -100px;
            position: relative;
            z-index: 10;
        }

        .enroll-card .price {
            font-size: 32px;
            font-weight: 700;
            color: #04a65b;
            margin-bottom: 20px;
        }

        .enroll-card .price .original {
            font-size: 18px;
            color: #999;
            text-decoration: line-through;
            margin-left: 10px;
            font-weight: 400;
        }

        .enroll-card .btn-enroll {
            display: block;
            width: 100%;
            padding: 15px;
            background: #04a65b;
            color: #fff;
            text-align: center;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            margin-bottom: 15px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .enroll-card .btn-enroll:hover {
            background: #145a30;
        }

        .enroll-card .btn-enroll.continue {
            background: #000;
        }

        .enroll-card .btn-enroll.continue:hover {
            background: #04a65b;
        }

        .enroll-features {
            list-style: none;
            padding: 0;
            margin: 20px 0 0;
            font-size: 14px;
            color: #555;
        }

        .enroll-features li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }

        .enroll-features li:last-child {
            border-bottom: none;
        }

        .enroll-features i {
            color: #04a65b;
            margin-right: 10px;
            width: 20px;
        }

        /* ===== Course Content ===== */
        .course-content-section {
            padding: 60px 0;
        }

        .content-box {
            background: #fff;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid #eaeaea;
        }

        .content-box h2 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
            color: #000;
        }

        .content-box h2 span {
            color: #04a65b;
        }

        /* Learning Objectives Grid */
        .objectives-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
        }

        .objective-item {
            display: flex;
            align-items: flex-start;
        }

        .objective-item i {
            color: #04a65b;
            margin-right: 10px;
            margin-top: 3px;
        }

        /* Curriculum Accordion */
        .curriculum-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #04a65b;
        }

        .curriculum-stats {
            font-size: 14px;
            color: #666;
        }

        .module {
            border: 1px solid #eaeaea;
            margin-bottom: 10px;
        }

        .module-header {
            background: #f8f9fa;
            padding: 15px 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .module-header:hover {
            background: #e9ecef;
        }

        .module-header h4 {
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

        .module-header .meta {
            font-size: 13px;
            color: #666;
        }

        .module-content {
            display: none;
        }

        .module-content.active {
            display: block;
        }

        .lesson {
            padding: 12px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .lesson:last-child {
            border-bottom: none;
        }

        .lesson-info {
            display: flex;
            align-items: center;
        }

        .lesson-info i {
            color: #999;
            margin-right: 10px;
            width: 20px;
        }

        .lesson-info .preview-badge {
            background: #04a65b;
            color: #fff;
            padding: 2px 8px;
            font-size: 11px;
            margin-left: 10px;
            text-transform: uppercase;
        }

        .lesson-duration {
            font-size: 13px;
            color: #666;
        }

        /* Sidebar */
        .course-sidebar .widget {
            background: #fff;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid #eaeaea;
        }

        .course-sidebar .widget h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #04a65b;
        }

        .related-course {
            display: flex;
            margin-bottom: 15px;
            text-decoration: none;
            color: inherit;
        }

        .related-course:last-child {
            margin-bottom: 0;
        }

        .related-course img {
            width: 80px;
            height: 60px;
            object-fit: cover;
            margin-right: 15px;
        }

        .related-course h4 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #000;
        }

        .related-course:hover h4 {
            color: #04a65b;
        }

        .related-course .price {
            font-size: 13px;
            color: #04a65b;
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 991px) {
            .enroll-card {
                margin-top: 30px;
            }
            
            .course-title {
                font-size: 28px;
            }
        }























        .auth-tabs { display: flex; margin: 0 0 25px; border-bottom: 2px solid #eee; }
        .auth-tabs button { flex: 1; padding: 14px; background: none; border: none; font-weight: 600; font-size: 1.1em; cursor: pointer; transition: all 0.2s; }
        .auth-tabs button.active { border-bottom: 3px solid #04a65b; color: #04a65b; }
        .auth-panel { display: none; }
        .auth-panel.active { display: block; }
        .divider { text-align: center; margin: 30px 0; color: #777; position: relative; }
        .divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #ddd; z-index: 0; }
        .divider span { background: white; padding: 0 24px; position: relative; z-index: 1; font-size: 0.95em; }
        .switch-tab { color: #04a65b; font-weight: 600; cursor: pointer; }











        .forgot-box {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px 35px;
            max-width: 460px;
            margin: 80px auto;
        }
        .forgot-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .alert-success, .alert-danger {
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 8px;
        }
        .btn-submit {
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
        }












                .login-box {
            background: white;
            border-radius: 0px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px 35px;
            max-width: 460px;
            margin: 0px auto;
        }
        .login-header {
            text-align: center;
            margin-bottom: 35px;
        }
        .login-header h1 {
            font-size: 2.1rem;
            margin-bottom: 8px;
            color: #333;
        }
        .login-header p {
            color: #666;
            font-size: 1.05rem;
        }
        .form-group {
            margin-bottom: 24px;
        }
        .btn-submit {
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
            font-weight: 600;
        }
        .form-check-label {
            color: #555;
        }
        .forgot-link {
            color: #04a65b;
            font-weight: 500;
        }
        .forgot-link:hover {
            text-decoration: underline;
        }
        .divider {
            text-align: center;
            margin: 30px 0;
            color: #777;
            position: relative;
        }
        .divider::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #ddd;
        }
        .divider span {
            background: white;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }
         .password-toggle {
            position: absolute;
            right: 12px;
            top: 38px;
            cursor: pointer;
            color: #666;
            z-index: 1;
        }















                .register-box {
            background: white;
            border-radius: 0px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px 35px;
            max-width: 520px;
            margin: 0px auto;
        }
        .register-header {
            text-align: center;
            margin-bottom: 35px;
        }
        .register-header h1 {
            font-size: 2.1rem;
            margin-bottom: 8px;
            color: #333;
        }
        .register-header p {
            color: #666;
            font-size: 1.05rem;
        }
        .form-group {
            margin-bottom: 22px;
            position: relative;
        }
        .error-message {
            color: #d32f2f;
            font-size: 0.9em;
            margin-top: 5px;
            display: none;
        }
        .error-message.show {
            display: block;
        }
        .btn-submit {
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
            font-weight: 600;
        }
        .form-check-label {
            color: #555;
            font-size: 0.98rem;
        }
        .login-link {
            color: #04a65b;
            font-weight: 600;
        }
        .password-hint {
            font-size: 0.85rem;
            color: #666;
            margin-top: 6px;
        }
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 38px;
            cursor: pointer;
            color: #666;
            z-index: 1;
        }
        .strength-meter {
            height: 4px;
            margin-top: 6px;
            background: #ddd;
            border-radius: 4px;
            overflow: hidden;
        }
        .strength-bar {
            height: 100%;
            width: 0%;
            transition: width 0.3s ease, background 0.3s ease;
        }
        .strength-text {
            font-size: 0.85rem;
            margin-top: 4px;
            color: #666;
        }
        .strength-weak { background: #f44336; width: 25%; }
        .strength-fair { background: #ff9800; width: 50%; }
        .strength-good { background: #2196f3; width: 75%; }
        .strength-strong { background: #4caf50; width: 100%; }













        .reset-box {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            padding: 40px 35px;
            max-width: 460px;
            margin: 80px auto;
        }
        .alert-success, .alert-danger {
            margin-bottom: 25px;
            padding: 15px;
            border-radius: 8px;
        }
        .btn-submit {
            width: 100%;
            padding: 14px;
            font-size: 1.1rem;
        }
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 38px;
            cursor: pointer;
            color: #666;
        }












