/* Base Styles */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a49d8;
    --secondary: #fd79a8;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333;
    --text-light: #6c757d;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.text-center {
    text-align: center;
}

.section {
    padding: 2rem 0;
}

.section-title {
    margin-bottom: 3rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
}

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

.nav-links .login-btn {
    color: rgb(40, 40, 40);
    border: 1px solid;
    padding: 15px 20px;
    font-size: 16px;
    background: rgb(255, 255, 255);
    transition: 0.8s;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
    text-transform: capitalize;
}

.nav-links .register-btn {
    color: rgb(255, 255, 255);
    border: 1px solid transparent;
    padding: 15px 20px;
    font-size: 16px;
    background: rgb(88, 60, 234);
    transition: 0.8s;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
    text-transform: capitalize;
}

.nav-links li a.register-btn:hover {
    color: white;
    text-decoration: none;
}

/* Navigation active state */
.nav-links li a.active {
  color: #0066cc;
  font-weight: 600;
}

/* For login and register buttons with active state */
.nav-links li a.login-btn.active,
.nav-links li a.register-btn.active {
  background-color: #0055aa;
  color: white;
}

/* Remove default list styles */
ul.nav-links li ul.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Right-side arrow icon */
.dropdown-arrow {
    margin-left: 3px;
    font-size: 12px;
}

/* Dropdown menu styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 6px;
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    min-width: 210px;
    z-index: 999;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Individual dropdown item */
.dropdown-menu li a {
    display: block;
    padding: 0px 10px 0px 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
    margin-top: 10px;
}

@media(max-width: 768px) {
    .dropdown-menu li a {
    margin-bottom: 0px;
    margin-top: 0px;
    }
    
}

/* Active link */
.dropdown-menu li a.active {
    font-weight: bold;
    color: #007BFF;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    background-color: white;
    padding: 5rem 0;
}

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

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: right;
}

/* Auth Form */
.auth-section {
    background-color: var(--light);
    padding: 3rem 0;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-form button {
    width: 100%;
}

/* Roadmap Section */
.roadmap-section {
    padding: 5rem 0;
}

.roadmap {
    position: relative;
    margin: 3rem 0;
}

.roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary);
    transform: translateX(-50%);
}

.roadmap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.roadmap-content {
    width: 45%;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.roadmap-item:nth-child(odd) .roadmap-content {
    margin-left: auto;
}

.roadmap-item:nth-child(odd) .roadmap-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
}

.roadmap-item:nth-child(even) .roadmap-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 5px -5px 15px rgba(0, 0, 0, 0.05);
}

.roadmap-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Instructors Section */
.instructors-section {
    background-color: var(--light);
    padding: 5rem 0;
}

.instructors-grid {
    display: flex;
    max-width: 300px;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.instructor-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.instructor-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.instructor-info {
    padding: 1rem;
    text-align: center;
}

.instructor-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

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

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

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

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

.cta-section .btn:hover {
    background-color: var(--light);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--light);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 500px;
}

/* Footer */
footer {
    background-color: #090614;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    margin-left: 20px;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: white;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #ddd;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .roadmap-item {
        flex-direction: column;
    }

    .roadmap-content {
        width: 80%;
        margin: 0 auto 2rem;
    }

    .roadmap-line {
        left: 10%;
    }

    .roadmap-dot {
        left: 10%;
    }

    .roadmap-item:nth-child(odd) .roadmap-content,
    .roadmap-item:nth-child(even) .roadmap-content {
        margin-left: 15%;
    }

    .roadmap-item:nth-child(odd) .roadmap-content::before,
    .roadmap-item:nth-child(even) .roadmap-content::before {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        padding: 0.5rem 2rem;
    }

    .nav-links li .login-btn {
        display: inline-block;
        margin-bottom: 10px;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .roadmap-content {
        width: 85%;
        margin-left: 15% !important;
    }
}

/* Course Detail Page Styles */
.course-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

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

.course-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.course-content {
    padding: 1.5rem;
}

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

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.course-meta-item i {
    color: var(--primary);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.tab-container {
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 600;
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

   /* Pagination Styles */
    .pagination-wrapper {
        display: flex;
        margin-top: 30px;
    }
    
    .pagination-container {
        display: flex;
        justify-content: center;
    }
    
    .pagination-container nav {
        display: inline-block;
    }
    
    .pagination-container ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        border-radius: 4px;
    }
    
    .pagination-container li {
        display: inline-block;
    }
    
    .pagination-container li + li {
        margin-left: -1px;
    }
    
    .pagination-container li:first-child a,
    .pagination-container li:first-child span {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }
    
    .pagination-container li:last-child a,
    .pagination-container li:last-child span {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    
    .pagination-container a,
    .pagination-container span {
        position: relative;
        display: block;
        padding: 8px 12px;
        margin-left: -1px;
        line-height: 1.25;
        color: #0d6efd;
        background-color: #fff;
        border: 1px solid #dee2e6;
        text-decoration: none;
    }
    
    .pagination-container a:hover {
        z-index: 2;
        color: #0a58ca;
        text-decoration: none;
        background-color: #e9ecef;
        border-color: #dee2e6;
    }
    
    .pagination-container .active span {
        z-index: 3;
        color: #fff;
        background-color: #0d6efd;
        border-color: #0d6efd;
    }
    
    .pagination-container .disabled span {
        color: #6c757d;
        pointer-events: none;
        background-color: #fff;
        border-color: #dee2e6;
    }
    
    /* For Laravel's default pagination */
    .pagination-container svg {
        width: 20px;
        height: 20px;
        vertical-align: middle;
    }
    
    /* For Laravel's pagination text */
    .pagination-container p {
        margin: 0;
        padding: 8px 0;
        text-align: center;
        color: #6c757d;
    }
    
    /* For Laravel's "Showing X to Y of Z results" text */
    .pagination-container div:first-child {
        margin-bottom: 10px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 576px) {
        .pagination-container a,
        .pagination-container span {
                padding: 6px 10px;
                font-size: 14px;
        }
            
        .pagination-container svg {
                width: 16px;
                height: 16px;
        }
    }

    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }