/* Courses CSS Styles */

/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #0dcaf0;
    --dark-bg: #1a202c;
    --dark-text: #e2e8f0;
    --light-bg: #f8f9fa;
    --light-text: #333;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-dark: 0 5px 15px rgba(0,0,0,0.3);
}

/* Courses Hero Section */
.courses-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/overlay-11.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.courses-hero .container {
    position: relative;
    z-index: 1;
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-rating i {
    color: #ffc107;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Feature Boxes */
.feature-box {
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    color: #0d6efd;
    font-size: 1.8rem;
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow-light);
    height: 100%;
    position: relative;
}

.quote {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(13, 110, 253, 0.1);
    font-size: 2rem;
}

.testimonial-text {
    margin: 30px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.author-info p {
    margin-bottom: 0;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/overlay-11.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Learning Center Styles */
.learning-header {
    padding: 130px 0 50px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.learning-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/overlay-11.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.learning-header .container {
    position: relative;
    z-index: 1;
}

.learning-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f0f0f0;
}

.learning-sidebar::-webkit-scrollbar {
    width: 6px;
}

.learning-sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.learning-sidebar::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 10px;
}

.topic-nav {
    list-style: none;
    padding-left: 0;
}

.topic-nav li {
    margin-bottom: 12px;
}

.topic-nav li a {
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.topic-nav li a:hover, 
.topic-nav li a.active {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.subtopic-nav {
    list-style: none;
    padding-left: 20px;
    display: none;
    margin-top: 8px;
}

.subtopic-nav.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.subtopic-nav li {
    margin-bottom: 8px;
}

.subtopic-nav li a {
    padding: 8px 15px;
    font-size: 0.95rem;
    background-color: #f0f4f8;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.topic-content {
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.topic-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.topic-content h3 {
    color: #0d6efd;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.topic-content ul {
    padding-left: 20px;
}

.topic-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

/* Dark Mode Styles */
body.dark-mode .navbar {
    background-color: var(--dark-bg);
}

body.dark-mode .course-card,
body.dark-mode .feature-box,
body.dark-mode .testimonial-card {
    background-color: #2d3748;
    color: var(--dark-text);
    box-shadow: var(--shadow-dark);
}

body.dark-mode .course-meta,
body.dark-mode .author-info p {
    color: #a0aec0;
}

body.dark-mode .topic-nav li a {
    background-color: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.dark-mode .topic-nav li a:hover,
body.dark-mode .topic-nav li a.active {
    background-color: #4299e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .subtopic-nav li a {
    background-color: #1a202c;
}

body.dark-mode .topic-content {
    background-color: #1a202c;
    color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode .topic-content h3 {
    color: #63b3ed;
    border-bottom-color: #2d3748;
}

body.dark-mode .learning-sidebar::-webkit-scrollbar-track {
    background: #2d3748;
}

body.dark-mode .learning-sidebar::-webkit-scrollbar-thumb {
    background-color: #4299e1;
}

body.dark-mode .video-container {
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .learning-sidebar {
        position: relative;
        height: auto;
        margin-bottom: 30px;
        top: 0;
    }
    
    .learning-header {
        padding: 100px 0 40px;
    }
    
    .topic-content {
        padding: 20px;
    }
    
    .courses-hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 767.98px) {
    .learning-header, .courses-hero {
        padding: 90px 0 30px;
        text-align: center;
    }
    
    .learning-header .btn, .courses-hero .btn {
        margin-top: 20px;
    }
    
    .topic-content:hover {
        transform: none;
    }
    
    .feature-box, .testimonial-card, .course-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .learning-header h1, .courses-hero h1 {
        font-size: 2rem;
    }
    
    .topic-nav li a,
    .subtopic-nav li a {
        padding: 10px;
    }
    
    .video-container {
        margin-bottom: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}