:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --accent-color: #f6c23e;
    --dark-color: #2c3e50;
    --light-color: #f8f9fc;
    --text-color: #5a5c69;
    --text-light: #858796;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --accent-color: #f6c23e;
    --dark-color: #f8f9fc;
    --light-color: #2c3e50;
    --text-color: #f8f9fc;
    --text-light: #b7b9cc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a{
    text-decoration: none;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Header Styles */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-buttons button {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
}

#loginBtn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#loginBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

#signupBtn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

#signupBtn:hover {
    background-color: #3a5dbf;
    border-color: #3a5dbf;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(28, 200, 138, 0.1) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.cta-button {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #3a5dbf;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
}

.courses-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.course-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.course-meta .rating {
    color: var(--accent-color);
}

.enroll-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.enroll-btn:hover {
    background-color: #17a673;
}

/* Dashboard Section */
.dashboard-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05) 0%, rgba(28, 200, 138, 0.05) 100%);
}

.dashboard-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.progress-summary {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.progress-summary h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.progress-circles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.progress-circle {
    text-align: center;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0% 25%, #eee 25% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    position: relative;
}

.circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-color);
}

.circle span {
    position: relative;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-circle p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.recent-courses {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.recent-courses h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.continue-course {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.continue-course:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.continue-course img {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.continue-course-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.continue-course-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.continue-progress {
    width: 100%;
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.continue-progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 30%;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}






/* =======================================================================================
============================================================
============ FOOTER ========================================================
============================================================== */
.footer-section {
    background: linear-gradient(to right, #1a202c, #122c46);
    /* Dark blue-grey to dark red-brown gradient */
    color: #d1d5db;
    /* text-gray-300 */
    padding-top: 3rem;
    /* py-12 */
    padding-bottom: 3rem;
    border-radius: 100px 0 0 0;
}

.footer-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
}


.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: top;
}

@media (min-width: 768px) {

    /* md breakpoint */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        /* lg:grid-cols-4 */
    }
}

/* Column styles */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 270px;
    text-align: left;
    max-width: 400px;
}


@media (min-width: 768px) {

    /* md breakpoint */
    .footer-column {
        align-items: flex-start;
        /* md:items-start */
        text-align: left;
        /* md:text-left */
    }
}

.footer-logo {
    width: 200px;
}


.footer-description {
    font-size: 1rem;
    /* text-sm */
    margin-bottom: 1rem;
    /* mb-4 */
    max-width: 350px;
    /* max-w-xs */
}

footer h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.25rem;
}


/* Links Section */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    /* space-y-2 (approx) */
}

.links-list li {
    margin-bottom: 0.5rem;
    /* Adjust as needed for spacing */
}

.links-list a {
    font-size: 1rem;
    /* text-sm */
    color: #d1d5db;
    /* default text color */
    transition: color 0.2s ease-in-out;
    /* transition duration-200 */
}

.links-list a:hover {
    color: #60a5fa;
    /* hover:text-blue-400 */
}


.android-wrapper {
    display: flex;
    flex-direction: column;

}

.android-wrapper a {
    margin: 5px 0;
    font-size: 20px;
    color: #fff;
    transition: .3s ease-in-out;
}

.android-wrapper a:hover {
    color: #1d4ed8;
}

.android {
    width: 200px;
    height: fit-content;
}

/* Social Media Icons */
.social-icons-container {
    display: flex;
    gap: 1rem;
    /* space-x-4 */
}

.social-icon {
    width: 2.5rem;
    /* w-10 */
    height: 2.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* bg-gray-700 */
    color: #1a202c;
    /* text-white */
    border-radius: 9999px;
    /* rounded-full */
    transition: all 0.3s ease-in-out;
    /* transition duration-300 ease-in-out */
}

.social-icon:hover {
    transform: scale(1.1);
    /* hover:scale-110 */
}

.social-icon.facebook:hover {
    background-color: #2563eb;
    /* hover:bg-blue-600 */
}

.social-icon.whatsapp:hover {
    background-color: #16a34a;
    /* hover:bg-green-600 */
}

.social-icon.twitter:hover {
    background-color: #60a5fa;
    /* hover:bg-blue-400 */
}

.social-icon.pinterest:hover {
    background-color: #dc2626;
    /* hover:bg-red-600 */
}

.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-text p {
    font-size: 15px;
    color: #838e9e;
    text-align: center;
    margin: 5px 0;
}

.quick-links {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.quick-links a {
    font-size: 20px;
    font-weight: 600;
    color: #7e7e80;
    width: 200px;
    transition: .3s ease-in-out;
    border-left: 1px solid #7e7e80;
    border-right: 1px solid #7e7e80;
    text-align: center;
}

.quick-links a:hover {
    color: #1d4ed8;
}


/* Copyright Section */
.copyright-section {
    border-top: 1px solid #4b5563;
    /* border-t border-gray-700 */
    margin-top: 1rem;
    /* mt-12 */
    padding-top: 2rem;
    /* pt-8 */
    text-align: center;
    color: #7e7e80;
    /* text-gray-500 */
    font-size: 1rem;
    /* text-sm */
}











/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow);
}

.course-modal-content {
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.course-content-header {
    margin-bottom: 20px;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
}

.course-content-body {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    overflow: hidden;
}

.course-lessons {
    width: 250px;
    overflow-y: auto;
}

.course-lessons h3 {
    margin-bottom: 15px;
}

.course-lessons ul {
    list-style: none;
}

.course-lessons li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.course-lessons li:hover {
    background-color: rgba(78, 115, 223, 0.1);
}

.course-lessons li.active {
    background-color: var(--primary-color);
    color: white;
}

.course-lessons li.completed::after {
    content: '✓';
    margin-left: 10px;
    color: var(--secondary-color);
}

.course-video {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.video-description {
    margin-bottom: 20px;
}

.video-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.nav-btn,
.complete-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn {
    background-color: #eee;
    color: var(--text-color);
}

.nav-btn:hover {
    background-color: #ddd;
}

.complete-btn {
    background-color: var(--secondary-color);
    color: white;
}

.complete-btn:hover {
    background-color: #17a673;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #3a5dbf;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        text-align: center;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .course-content-body {
        flex-direction: column;
    }

    .course-lessons {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 50px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .progress-circles {
        grid-template-columns: 1fr;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .circle::before {
        width: 60px;
        height: 60px;
    }
}

/* All Courses Section */
.all-courses-section {
    padding: 80px 0;
    background-color: rgba(78, 115, 223, 0.05);
}

.courses-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: rgba(78, 115, 223, 0.1);
}

.all-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Restricted Access Message */
.restricted-message {
    text-align: center;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.restricted-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.restricted-message h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.restricted-message p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
}

.user-name {
    font-weight: 600;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
}

.logout-btn:hover {
    color: var(--primary-color);
}