:root {
    --primary-color: #a435f0; /* QuindioEmprende Purple */
    --secondary-color: #1c1d1f;
    --text-color: #2d2f31;
    --light-bg: #f7f9fa;
    --gray-color: #6a6f73;
    --border-color: #d1d7dc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Layout */
.container {
    max-width: 1340px; /* Wider for modern look */
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo img { height: 34px; }

.categories-menu {
    margin-left: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-color);
    flex-shrink: 0;
    transition: color 0.3s;
}
.categories-menu:hover { color: var(--primary-color); }

.search-bar {
    flex: 1;
    margin: 0 20px;
    position: relative;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    align-items: center;
    background: #f7f9fa;
    border: 1px solid #2d2f31;
    border-radius: 999px;
    padding: 0 15px;
    height: 48px;
    transition: all 0.3s;
}

.search-bar form:focus-within {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    padding-left: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.search-bar i { color: var(--gray-color); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 40px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-purple {
    background-color: var(--primary-color);
    color: #fff;
}

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

.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Slider Improved */
.hero-slider {
    height: 550px; /* Taller for more impact */
    position: relative;
    margin-bottom: 40px;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Overlay gradient for better text readability */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.slide-content {
    background: rgba(255, 255, 255, 0.95); /* Glassmorphism-ish */
    backdrop-filter: blur(10px);
    padding: 40px;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-left: 10%;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Animation when slide is active (handled by Swiper class) */
.swiper-slide-active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 { 
    margin-bottom: 15px; 
    font-size: 2.5rem; 
    font-weight: 800; 
    line-height: 1.2;
    color: var(--secondary-color);
}

.slide-content p { 
    margin-bottom: 25px; 
    font-size: 1.2rem; 
    color: var(--gray-color);
}

/* Slider Navigation Buttons */
.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%;
    backdrop-filter: blur(5px);
}

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

/* Course Grid */
.section { padding: 40px 0; }
.section-title { margin-bottom: 10px; font-size: 1.5rem; font-weight: 700; }

.tabs { display: flex; gap: 20px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; }
.tab { cursor: pointer; font-weight: 700; color: var(--gray-color); white-space: nowrap; }
.tab.active { color: var(--text-color); }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px 20px;
}

.course-card {
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-image { 
    width: 100%; 
    aspect-ratio: 16/9; 
    object-fit: cover; 
    border: 1px solid var(--border-color); 
    margin-bottom: 8px;
}

.course-info { padding: 5px 0; flex: 1; display: flex; flex-direction: column; }
.course-title { font-weight: 700; font-size: 1rem; margin-bottom: 5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.course-instructor { font-size: 0.8rem; color: var(--gray-color); margin-bottom: 5px; }
.course-rating { font-size: 0.8rem; font-weight: 700; color: #b4690e; display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.course-price { font-weight: 700; font-size: 1.1rem; margin-top: auto; }

/* Footer */
.footer {
    background: #1c1d1f;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h3 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #fff; font-size: 0.9rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #3e4143;
    padding-top: 20px;
}

/* Auth Pages (Split Screen) */
.auth-container {
    display: flex;
    min-height: calc(100vh - 72px);
}
.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-box { width: 100%; max-width: 400px; }
.form-group { margin-bottom: 15px; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-color);
    font-weight: 700;
}
.form-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; display: block; }

/* Student Dashboard */
.student-layout { display: flex; min-height: calc(100vh - 72px); }
.student-sidebar {
    width: 260px;
    background: #1c1d1f;
    color: #fff;
    padding: 20px;
    flex-shrink: 0;
}
.student-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #d1d7dc;
    border-radius: 4px;
}
.student-menu li a:hover, .student-menu li a.active {
    background: #3e4143;
    color: #fff;
}
.student-content { flex: 1; padding: 32px; background: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stat-icon { font-size: 2rem; color: var(--primary-color); }
.stat-info h3 { font-size: 2rem; margin: 0; font-weight: 700; }
.stat-info p { margin: 0; color: var(--gray-color); font-size: 0.9rem; }

/* Responsive General */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-left { display: none; }
    .student-layout { flex-direction: column; }
    .student-sidebar { width: 100%; }
    
    /* Header Responsive */
    header .container { flex-wrap: wrap; position: relative; }
    
    .mobile-menu-toggle { display: block; order: 4; }
    
    .search-bar { 
        order: 3; 
        width: 100%; 
        margin: 10px 0 0 0; 
        max-width: 100%; 
        display: none; /* Hide search by default on mobile, maybe toggle it? or keep it? User said "adaptar menu" */
    }
    /* Let's keep search visible but compact if possible, or just below */
    .search-bar { display: block; } 

    .categories-menu { display: none; }
    
    .main-nav {
        position: fixed;
        top: 72px; /* Header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: #fff;
        transition: left 0.3s ease-in-out;
        padding: 20px;
        overflow-y: auto;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav li:last-child { border-bottom: none; }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* User Profile in Mobile Menu */
    .user-menu { margin-left: 0 !important; width: 100%; }
    .user-menu .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        display: none; /* Hidden by default, maybe toggle? */
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .user-menu:hover .dropdown { display: block; } /* Simple hover fallback for mobile or click */

    .course-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Slider on Mobile */
    .hero-slider { height: 400px; }
    .slide-content { margin-left: 0; width: 100%; max-width: 100%; margin: 0 20px; padding: 25px; }
    .slide-content h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .course-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-slider { height: 350px; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 1rem; margin-bottom: 15px; }
    .btn { padding: 0 15px; }
}

/* --- New Course Page Styles (QuindioEmprende Style) --- */

.course-hero {
    background-color: #1c1d1f;
    color: white;
    padding: 32px 0;
}

.course-hero-content {
    max-width: 1184px; /* Standard QuindioEmprende width */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    position: relative;
}

.course-hero-text {
    max-width: 700px;
    padding-right: 20px;
}

.course-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.course-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-badge {
    background-color: #eceb98;
    color: #3d3c0a;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.course-meta {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rating-star {
    color: #f3ca8c;
    font-size: 0.8rem;
}

.course-sidebar-container {
    position: absolute;
    top: 0;
    right: 24px;
    width: 340px;
    z-index: 10;
}

.course-sidebar {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 0 4px rgba(0,0,0,0.05);
    border: 1px solid #fff;
    position: sticky;
    top: 20px;
    padding: 4px;
    color: #2d2f31;
}

.sidebar-preview-wrapper {
    position: relative;
    cursor: pointer;
}

.sidebar-preview-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.sidebar-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar-content {
    padding: 24px;
}

.sidebar-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-includes-list {
    list-style: none;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.course-includes-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-includes-list i {
    width: 20px;
    text-align: center;
}

/* Course Content Section */
.course-main-content {
    max-width: 1184px;
    margin: 32px auto;
    padding: 0 24px;
    display: flex;
}

.course-left-column {
    max-width: 700px;
    width: 100%;
    padding-right: 20px;
}

.what-you-learn-box {
    border: 1px solid #d1d7dc;
    padding: 24px;
    margin-bottom: 32px;
}

.what-you-learn-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.check-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.check-list-item {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #2d2f31;
}

.check-list-item i {
    color: #2d2f31; /* Or checkmark color */
    flex-shrink: 0;
    margin-top: 3px;
}

/* Accordion */
.course-curriculum-box {
    margin-bottom: 32px;
}

.accordion-item {
    border: 1px solid #d1d7dc;
    border-bottom: none;
}

.accordion-item:last-child {
    border-bottom: 1px solid #d1d7dc;
}

.accordion-header {
    background-color: #f7f9fa;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    background-color: #fff;
}

.accordion-body.open {
    display: block;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.lesson-item-title {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--primary-color);
}

.lesson-meta {
    color: #6a6f73;
}

/* Responsive */
@media (max-width: 1080px) {
    .course-hero-content {
        flex-direction: column;
    }
    .course-sidebar-container {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    .course-sidebar {
        position: static;
        width: 100%;
        max-width: 500px;
    }
    .course-main-content {
        flex-direction: column;
    }
    .course-left-column {
        max-width: 100%;
        padding-right: 0;
    }
    .check-list-grid {
        grid-template-columns: 1fr;
    }
}
. d r o p d o w n   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   1 0 0 % ;  
         r i g h t :   0 ;  
         z - i n d e x :   1 0 0 0 ;  
         m i n - w i d t h :   2 6 0 p x ;  
         p a d d i n g :   8 p x   0 ;  
         m a r g i n :   0 ;  
         f o n t - s i z e :   1 4 p x ;  
         c o l o r :   # 2 d 2 f 3 1 ;  
         t e x t - a l i g n :   l e f t ;  
         l i s t - s t y l e :   n o n e ;  
         b a c k g r o u n d - c o l o r :   # f f f ;  
         b a c k g r o u n d - c l i p :   p a d d i n g - b o x ;  
         b o r d e r :   1 p x   s o l i d   # d 1 d 7 d c ;  
         b o r d e r - r a d i u s :   4 p x ;  
         b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 , 0 , 0 , . 0 8 ) ,   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , . 0 8 ) ;  
         d i s p l a y :   n o n e ;   / *   H i d d e n   b y   d e f a u l t   * /  
 }  
  
 / *   S h o w   d r o p d o w n   o n   h o v e r   o f   p a r e n t   * /  
 . u s e r - m e n u   {  
         p o s i t i o n :   r e l a t i v e ;  
 }  
 . u s e r - m e n u : h o v e r   . d r o p d o w n   {  
         d i s p l a y :   b l o c k ;  
 }  
  
 . d r o p d o w n - i t e m   {  
         d i s p l a y :   b l o c k ;  
         w i d t h :   1 0 0 % ;  
         p a d d i n g :   8 p x   1 6 p x ;  
         c l e a r :   b o t h ;  
         f o n t - w e i g h t :   4 0 0 ;  
         c o l o r :   # 2 d 2 f 3 1 ;  
         t e x t - a l i g n :   i n h e r i t ;  
         w h i t e - s p a c e :   n o w r a p ;  
         b a c k g r o u n d - c o l o r :   t r a n s p a r e n t ;  
         b o r d e r :   0 ;  
 }  
  
 . d r o p d o w n - i t e m : h o v e r ,   . d r o p d o w n - i t e m : f o c u s   {  
         c o l o r :   # 1 6 1 8 1 b ;  
         t e x t - d e c o r a t i o n :   n o n e ;  
         b a c k g r o u n d - c o l o r :   # f 7 f 9 f a ;  
 }  
  
 . d r o p d o w n - d i v i d e r   {  
         h e i g h t :   0 ;  
         m a r g i n :   8 p x   0 ;  
         o v e r f l o w :   h i d d e n ;  
         b o r d e r - t o p :   1 p x   s o l i d   # e 9 e c e f ;  
 }  
 
/* Student Dashboard Layout */
.student-layout {
    display: flex;
    min-height: calc(100vh - 72px); /* Adjust based on header height */
    background-color: #f7f9fa;
}

.student-sidebar {
    width: 280px;
    background-color: #2d2f31;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.user-profile-sidebar {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #3e4143;
    margin-bottom: 20px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    background-color: #a435f0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.student-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.student-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #d1d7dc;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.student-menu li a:hover, .student-menu li a.active {
    background-color: #3e4143;
    color: #fff;
    border-left: 4px solid #a435f0;
}

.student-menu li a i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.student-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #2d2f31;
}

.stat-info p {
    margin: 0;
    color: #6a6f73;
    font-size: 0.9rem;
}

/* Course List Horizontal */
.course-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-card-horizontal {
    display: flex;
    background: white;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    padding: 16px;
    gap: 20px;
}

.course-card-horizontal img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
}

.course-details {
    flex-grow: 1;
}

.course-details h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.progress-bar-container {
    height: 8px;
    background: #e4e8eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
    max-width: 300px;
}

.progress-bar {
    height: 100%;
    background: #a435f0;
}

.progress-text {
    font-size: 0.8rem;
    color: #6a6f73;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #2d2f31 0%, #1c1d1f 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-banner h1 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.welcome-banner p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .student-layout {
        flex-direction: column;
    }
    .student-sidebar {
        width: 100%;
        padding: 0;
    }
    .user-profile-sidebar {
        display: none; /* Hide large profile on mobile to save space, or style differently */
    }
    .student-menu li a {
        padding: 10px 20px;
    }
    .student-content {
        padding: 20px;
    }
    .course-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    .course-card-horizontal img {
        width: 100%;
        height: auto;
    }
    .progress-bar-container {
        max-width: 100%;
    }
}
