/* Custom CSS for learningskillbd - Black Theme */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #374151;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
}

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

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%236366f1" stop-opacity="0.1"/><stop offset="100%" stop-color="%236366f1" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
}

.hero-banner img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
        margin-top: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Categories Section */
.categories-section {
    background: var(--bg-secondary);
}

.category-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Course Cards */
.course-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.course-card:hover .play-button {
    transform: scale(1);
}

.course-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-rating {
    margin-bottom: 0.75rem;
}

.course-rating .stars {
    display: flex;
    gap: 2px;
}

.course-rating .stars i {
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Features Section */
.features-section {
    background: var(--bg-primary);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-brand h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.newsletter-form .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px 0 0 8px;
}

.newsletter-form .form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    

    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.bg-dark {
    background-color: var(--bg-secondary) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Form Controls */
.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

.form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Video Player Page Styles */
.video-player-body {
    padding-top: 70px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.video-nav {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.video-player-container {
    position: relative;
    min-height: calc(100vh - 70px);
}

.loading-overlay,
.error-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-section {
    padding: 0;
}

.video-info-wrapper {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.video-duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-info-text {
    margin-top: auto;
    text-align: center;
}

.video-navigation-controls {
    padding: 20px;
    text-align: center;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.video-navigation-controls .btn {
    margin: 0 10px;
    min-width: 120px;
}

.video-info-section {
    background: var(--bg-primary);
    padding: 30px 0;
}

.video-details h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.video-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-meta i {
    width: 16px;
    text-align: center;
    margin-right: 5px;
}

.video-progress-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.video-progress-section h6 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Course Sidebar */
.course-sidebar {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 70px);
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.course-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h5 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.sidebar-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.course-progress {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.course-section {
    margin-bottom: 15px;
}

.section-header .btn-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
}

.section-header .btn-link:hover {
    color: var(--primary-color);
}

.videos-list {
    margin-top: 10px;
}

.video-item {
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.video-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-color);
}

.video-item.viewed {
    opacity: 0.7;
}

.video-item-content {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
}

.video-item-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

.video-item-details {
    flex: 1;
}

.video-item-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.video-item-meta {
    font-size: 0.8rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Keyboard Shortcuts */
.keyboard-shortcuts {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    z-index: 2000;
    min-width: 300px;
}

.shortcuts-content h6 {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.shortcut-list {
    display: grid;
    gap: 8px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item kbd {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.shortcut-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid var(--success-color);
}

.toast-notification i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.toast-notification span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-player-body {
        padding-top: 60px;
    }
    
    .video-nav {
        padding: 8px 0;
    }
    
    .course-info {
        display: none !important;
    }
    
    .video-info-wrapper {
        margin: 10px;
    }
    
    .video-thumbnail-container {
        height: 250px;
    }
    
    .video-info-section {
        padding: 20px 0;
    }
    
    .course-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .video-navigation-controls .btn {
        margin: 5px;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .keyboard-shortcuts {
        width: 90%;
        max-width: 300px;
    }
    
    .toast-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .video-thumbnail-container {
        height: 200px;
    }
    
    .video-info-overlay {
        padding: 15px;
    }
    
    .video-duration-badge {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
    }
    
    .video-navigation-controls {
        padding: 15px;
    }
    
    .video-navigation-controls .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Contact Sidebar */
.contact-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.contact-sidebar.active,
.contact-sidebar.show {
    right: 0;
}

.contact-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-body {
    padding: 1rem;
}

.contact-info h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.contact-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-option i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-option.whatsapp:hover {
    background: #25D366;
}

.contact-option.facebook:hover {
    background: #1877F2;
}

.contact-option.email:hover {
    background: #EA4335;
}

.contact-note {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.contact-note small {
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .contact-sidebar {
        width: 100vw;
        right: -100vw;
    }
}



/* Course Details Styles */
.course-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.course-header .course-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-header .course-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.course-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.course-meta .meta-item i {
    color: #007bff;
    width: 16px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-tag {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-preview-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #404040;
}

.course-preview-card .preview-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-preview-card .preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-preview-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-preview-card .play-overlay:hover {
    background: rgba(0, 123, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.course-preview-card .play-overlay i {
    color: white;
    font-size: 28px;
    margin-left: 3px;
}

@media (max-width: 768px) {
    .course-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .course-header .course-title {
        font-size: 1.5rem;
    }
    
    .course-header .course-description {
        font-size: 1rem;
    }
    
    .course-meta {
        gap: 0.75rem;
    }
    
    .course-preview-card {
        padding: 1rem;
    }
    
    .course-preview-card .preview-thumbnail {
        height: 160px;
    }
}

/* Course Content Styles */
.course-content {
    background: #1a1a1a;
    padding: 2rem 0;
}

.course-nav-tabs {
    border-bottom: 2px solid #333;
    margin-bottom: 2rem;
}

.course-nav-tabs .nav-link {
    color: #aaa;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-nav-tabs .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.course-nav-tabs .nav-link.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-bottom-color: #007bff;
}

.tab-content {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #404040;
}

.curriculum-section {
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.curriculum-section-header {
    background: #333;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.curriculum-section-header:hover {
    background: #404040;
}

.curriculum-section-title {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.curriculum-section-meta {
    color: #aaa;
    font-size: 0.9rem;
}

.video-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.video-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.video-item:hover {
    background: #2d2d2d;
}

.video-item:last-child {
    border-bottom: none;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.video-title {
    color: #fff;
    font-weight: 500;
    margin: 0;
}

.video-duration {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
}

.video-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.video-btn.btn-primary {
    background: #007bff;
    color: white;
}

.video-btn.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.video-btn.btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.video-btn.btn-outline:hover {
    background: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .course-content {
        padding: 1rem 0;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .curriculum-section-header {
        padding: 0.75rem 1rem;
    }
    
    .video-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-info {
        width: 100%;
    }
    
    .video-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Horizontal Video List Styles */
.course-videos {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.horizontal-video-container {
    position: relative;
    overflow: hidden;
}

.horizontal-video-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #007bff #2d2d2d;
}

.horizontal-video-list::-webkit-scrollbar {
    height: 8px;
}

.horizontal-video-list::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.horizontal-video-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.horizontal-video-list::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.horizontal-video-item {
    flex: 0 0 300px;
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.horizontal-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.horizontal-video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.horizontal-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.horizontal-video-play-overlay:hover {
    background: rgba(0, 123, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.horizontal-video-play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

.horizontal-video-info {
    padding: 1rem;
}

.horizontal-video-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.horizontal-video-duration {
    color: #007bff;
    font-size: 0.875rem;
    font-weight: 500;
}

.horizontal-video-section {
    color: #888;
    font-size: 0.75rem;
    background: #404040;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.horizontal-video-actions {
    display: flex;
    gap: 0.5rem;
}

.horizontal-video-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.horizontal-video-btn.btn-primary {
    background: #007bff;
    color: white;
}

.horizontal-video-btn.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.horizontal-video-btn.btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.horizontal-video-btn.btn-outline:hover {
    background: #007bff;
    color: white;
}

.video-stats .badge {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .horizontal-video-item {
        flex: 0 0 250px;
    }
    
    .horizontal-video-thumbnail {
        height: 140px;
    }
    
    .horizontal-video-title {
        font-size: 0.9rem;
    }
    
    .video-stats {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .video-stats .badge {
        margin-left: 0;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Course Details Specific Styles */
.course-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 0;
}

.course-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.course-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.course-meta-info {
    margin-bottom: 2rem;
}

.rating-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
}

.rating-text, .review-count, .student-count {
    color: #fff;
    font-size: 0.95rem;
}

.course-details-meta {
    color: #ccc;
    font-size: 0.9rem;
}

.instructor-info, .last-updated, .language-info {
    margin-right: 1rem;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Course Preview Card */
.course-pricing {
    border-bottom: 1px solid #eee;
}

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

.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc3545;
}

.original-price {
    font-size: 1.2rem;
    color: #6c757d;
}

.course-includes h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.includes-list {
    list-style: none;
    padding: 0;
}

.includes-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.includes-list li:last-child {
    border-bottom: none;
}

.includes-list i {
    width: 20px;
    margin-right: 0.5rem;
    color: #28a745;
}

.course-tags-sidebar {
    border-top: 1px solid #eee;
}

.tags-list .tag {
    margin: 0.2rem;
}

/* Course Content Section */
.course-content-header {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.content-summary {
    font-size: 0.9rem;
    color: #6c757d;
}

.course-sections {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.section-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background: #e9ecef;
}

.section-title {
    font-weight: 600;
    margin: 0;
}

.section-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.section-content {
    display: none;
    padding: 0;
}

.section-content.show {
    display: block;
}

.video-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-item:last-child {
    border-bottom: none;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-icon {
    color: #6c757d;
    width: 20px;
}

.video-title {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

.video-duration {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Category Buttons Styles */
.category-buttons-container {
    padding: 20px 0;
}

.btn-category {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
    min-width: 100px;
    white-space: nowrap;
}

.btn-category:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-category.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-category.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Courses Display Section */
.courses-display-section {
    min-height: 400px;
}

.courses-display-section .row {
    justify-content: center;
}

/* Responsive category buttons */
@media (max-width: 768px) {
    .category-buttons-container {
        padding: 15px 0;
    }
    
    .btn-category {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 80px;
        margin-bottom: 10px;
    }
}

/* Enhanced Course Card Styles */
.course-card {
    border: none;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail {
    transform: scale(1.05);
}



.course-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-category {
    margin-bottom: 8px;
}

.course-category .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.course-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.course-stats {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.video-info, .duration-info {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-count {
    color: var(--primary-color);
}

.duration-text {
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-wrapper {
        height: 180px;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .course-description {
        font-size: 0.85rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* Add any additional custom styles here */