/**
 * W3Schools Clone - Main Stylesheet
 * A beautiful, modern design inspired by W3Schools
 */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    --primary-color: #04AA6D;
    --primary-dark: #028a56;
    --primary-light: #e7f4ef;
    --secondary-color: #282A35;
    --accent-color: #FFC107;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #ffffff;
    --bg-light: #f1f1f1;
    --bg-dark: #282A35;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;

    /* Code colors */
    --code-bg: #282A35;
    --code-text: #f1f1f1;

    /* Language colors */
    --python-color: #3776AB;
    --go-color: #00ADD8;
    --js-color: #F7DF1E;
    --html-color: #E34F26;
    --css-color: #1572B6;
    --sql-color: #4479A1;
    --ai-color: #FF6F00;
}

/* Dark mode */
body.dark-mode {
    --text-color: #e9ecef;
    --text-muted: #adb5bd;
    --bg-color: #1a1a2e;
    --bg-light: #16213e;
    --border-color: #2d3748;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    transition: var(--transition);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

code,
pre {
    font-family: 'Source Code Pro', Consolas, Monaco, 'Andale Mono', monospace;
}

/* ============================================
   Top Navigation
   ============================================ */
.w3-topnav {
    background: var(--secondary-color) !important;
    padding: 0 20px;
    min-height: 60px;
}

.w3-topnav .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.w3-topnav .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.w3-topnav .logo-text {
    font-weight: 700;
}

.w3-topnav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.w3-topnav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    min-width: 600px;
    padding: 20px;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.mega-menu .dropdown-header {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 10px;
}

.mega-menu .dropdown-item {
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-color);
}

.mega-menu .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mega-menu .dropdown-item i {
    width: 20px;
}

/* Search Form */
.search-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.search-form .btn-search {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.search-form .btn-search:hover {
    background: var(--primary-dark);
}

/* Theme Toggle */
.btn-theme {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.btn-theme:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Secondary Navigation
   ============================================ */
.w3-secondary-nav {
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill {
    display: inline-block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a2e 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2304AA6D' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Code Preview */
.hero-code-preview {
    position: relative;
    z-index: 1;
}

.code-window {
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: #1e1e24;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red {
    background: #ff5f56;
}

.code-header .dot.yellow {
    background: #ffbd2e;
}

.code-header .dot.green {
    background: #27c93f;
}

.code-header .file-name {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.code-window pre {
    margin: 0;
    padding: 20px;
    background: transparent;
}

.code-window code {
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================
   Course Cards
   ============================================ */
.course-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.course-description {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.course-meta .badge {
    font-weight: 500;
}

.btn-course {
    display: inline-block;
    padding: 12px 24px;
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-course:hover {
    filter: brightness(1.1);
    transform: translateX(5px);
}

/* Compact Course Card */
.course-card-compact {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-card-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon-large {
    font-size: 50px;
    color: #fff;
}

.course-card-body {
    padding: 20px;
    flex: 1;
}

.course-card-body .course-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.course-card-body .course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.course-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 5px;
}

.course-tags .tag-success {
    background: var(--primary-light);
    color: var(--primary-color);
}

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

/* ============================================
   Code Examples Section
   ============================================ */
.example-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.example-header {
    padding: 20px;
    color: #fff;
}

.example-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.example-header .lang-badge {
    font-size: 0.85rem;
    opacity: 0.9;
}

.example-body {
    background: var(--code-bg);
    padding: 0;
}

.example-body pre {
    margin: 0;
    padding: 20px;
}

.example-body code {
    font-size: 13px;
}

.example-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   Try It Section
   ============================================ */
.tryit-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.tryit-demo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-split {
    display: flex;
}

.code-input,
.code-output {
    flex: 1;
    padding: 20px;
}

.code-input {
    background: var(--code-bg);
}

.code-output {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-card {
    display: block;
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    color: #fff;
    transition: var(--transition);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    color: #fff;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sidebar-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: #333;
}

.ai-sidebar-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}

.premium-sidebar-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffe082;
}

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

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-menu li a.active {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
}

/* ============================================
   Lesson Pages
   ============================================ */
.lessons-sidebar {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

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

.lesson-item a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-color);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.lesson-item a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.lesson-item.active a {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(4, 170, 109, 0.3);
}

.lesson-number {
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

/* Course Hero */
.course-hero {
    color: #fff;
    position: relative;
}

.course-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.course-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
}

.course-hero-icon {
    font-size: 150px;
    opacity: 0.3;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-light .breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Content Card */
.content-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.intro-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 30px;
}

.intro-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tryit-promo {
    background: linear-gradient(135deg, var(--primary-light), #d4f0e7);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

/* Lesson Cards */
.lesson-card-link {
    display: block;
    color: inherit;
    margin-bottom: 15px;
}

.lesson-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.lesson-card:hover {
    background: var(--primary-light);
}

.lesson-card-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.lesson-card-content {
    flex: 1;
}

.lesson-card-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.lesson-card-arrow {
    color: var(--text-muted);
}

/* ============================================
   Lesson Page
   ============================================ */
.lesson-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.lesson-sidebar-left {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-right: 1px solid #e9ecef;
    min-height: calc(100vh - 120px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
}

.lesson-sidebar-right {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 1px solid #e9ecef;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.03);
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
    padding: 20px 15px;
}

.sidebar-heading {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #028a56 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(4, 170, 109, 0.2);
}

.sidebar-heading a {
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-heading a i {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.8rem;
}

.lesson-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #04AA6D #f1f1f1;
}

.lesson-nav::-webkit-scrollbar {
    width: 5px;
}

.lesson-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lesson-nav::-webkit-scrollbar-thumb {
    background: #04AA6D;
    border-radius: 10px;
}

.lesson-nav li {
    margin-bottom: 3px;
}

.lesson-nav li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #495057;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.lesson-nav li a:hover {
    background: #e8f5e9;
    color: #04AA6D;
    border-left-color: #04AA6D;
    padding-left: 18px;
}

.lesson-nav li.active a {
    background: linear-gradient(135deg, var(--primary-color) 0%, #028a56 100%);
    color: white !important;
    font-weight: 600;
    border-left-color: transparent;
    box-shadow: 0 3px 10px rgba(4, 170, 109, 0.25);
}

.lesson-nav li.active a:hover {
    padding-left: 14px;
}

.lesson-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.lesson-nav li a:hover .lesson-num {
    background: var(--primary-color);
    color: white;
}

.lesson-nav li.active a .lesson-num {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.lesson-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-main {
    padding: 20px 40px;
    max-width: 100%;
}

.lesson-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.lesson-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.lesson-content h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.lesson-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 25px 0 10px;
}

.lesson-content p {
    margin-bottom: 15px;
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.lesson-content li {
    margin-bottom: 8px;
}

.lesson-content pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
}

/* Code Example Box */
.code-example-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 25px 0;
}

.code-example-box h4,
.code-example-box h5 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.code-block {
    background: var(--code-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 20px;
}

.tryit-button-wrapper {
    margin-top: 15px;
    text-align: right;
}

.btn-tryit {
    font-weight: 600;
}

/* Navigation Buttons */
.lesson-nav-buttons .btn {
    padding: 15px 20px;
    text-align: left;
}

.lesson-nav-buttons .btn small {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ============================================
   Search Results
   ============================================ */
.search-hero {
    padding: 40px 0 20px;
}

.search-form-large .form-control {
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.search-form-large .btn {
    padding: 15px 30px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.search-results {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-result-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.search-result-item:hover {
    background: var(--bg-light);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-title {
    margin-bottom: 5px;
}

.result-title a {
    color: var(--text-color);
    font-weight: 600;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.popular-searches {
    padding: 40px 0;
}

.search-tags .btn {
    margin: 5px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    display: block;
    margin-bottom: 20px;
}

/* ============================================
   Footer
   ============================================ */
.w3-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.w3-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-left: 10px;
    transition: var(--transition);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .mega-menu {
        min-width: auto;
        width: 100%;
    }

    .lesson-main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-stats {
        justify-content: center;
    }

    .course-hero-title {
        font-size: 2rem;
    }

    .w3-secondary-nav {
        display: none;
    }
}

/* ============================================
   Utilities
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   AI Feature Section - Landing Page
   ============================================ */
.ai-feature-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.ai-feature-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.ai-feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.ai-feature-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ai-feature-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.ai-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.ai-feature-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 1rem;
}

.ai-feature-list li i {
    color: #04AA6D;
    margin-right: 12px;
    font-size: 1.1rem;
}

.ai-feature-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-ai-cta {
    background: linear-gradient(135deg, #04AA6D 0%, #028a56 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-ai-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(4, 170, 109, 0.4);
    color: white;
}

.btn-ai-demo {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

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

.ai-demo-preview {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ai-demo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.ai-demo-icon {
    font-size: 1.5rem;
}

.ai-demo-chat {
    padding: 20px;
}

.ai-demo-question {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 12px 0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.ai-demo-answer {
    background: rgba(4, 170, 109, 0.15);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-demo-answer code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    color: #04AA6D;
}

.user-badge,
.ai-badge {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0.7;
}

.ai-demo-languages {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-demo-languages span {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Responsive AI Feature */
@media (max-width: 991px) {
    .ai-feature-card {
        padding: 30px;
    }

    .ai-feature-title {
        font-size: 1.8rem;
    }

    .ai-demo-preview {
        margin-top: 30px;
    }
}

/* Print styles */
@media print {

    .w3-topnav,
    .w3-secondary-nav,
    .w3-footer,
    .lesson-sidebar-left,
    .lesson-sidebar-right,
    .btn-tryit {
        display: none !important;
    }

    .lesson-main {
        margin: 0 !important;
        padding: 20px !important;
    }
}

/* ============================================
   AI HERO SECTION - Landing Page
   ============================================ */
.ai-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Animated Background */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #04AA6D, #00d4aa);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 40%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Hero Content */
.ai-hero-content {
    color: white;
    position: relative;
    z-index: 2;
}

.hero-badge-wrapper {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge {
    /* display: inline-block; removed for flex item */
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-badge.animate-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
    }
}

.hero-badge-sub {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ai-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(135deg, #04AA6D, #00d4aa, #04AA6D);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ai-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 30px;
}

.ai-hero-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.feature-item i {
    width: 35px;
    height: 35px;
    background: rgba(4, 170, 109, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #04AA6D;
}

.ai-hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #04AA6D, #028a56);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(4, 170, 109, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 170, 109, 0.4);
    color: white;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 13px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.ai-hero-trust {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* AI Chat Demo Window */
.ai-hero-demo {
    position: relative;
    z-index: 2;
}

.ai-chat-window {
    background: linear-gradient(145deg, #1e2a4a, #16213e);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.ai-chat-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.ai-chat-header {
    background: linear-gradient(135deg, #04AA6D, #028a56);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar-pulse {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    animation: avatar-pulse 2s infinite;
}

@keyframes avatar-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.ai-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
}

.ai-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.ai-chat-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
}

.msg-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.user-message .msg-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-left: 20%;
    border-bottom-right-radius: 5px;
}

.ai-message .msg-bubble {
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.3), rgba(4, 170, 109, 0.1));
    color: white;
    margin-right: 10%;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(4, 170, 109, 0.3);
}

.code-snippet {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Fira Code', monospace;
}

.code-snippet code {
    color: #04AA6D;
    font-size: 0.85rem;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.ai-chat-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.language-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.lang-tag.active {
    background: linear-gradient(135deg, #04AA6D, #028a56);
    color: white;
}

/* Secondary Hero Section */
.secondary-hero-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.section-title-alt {
    font-size: 2.5rem;
    font-weight: 700;
    color: #282A35;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 25px;
}

.stat-item-compact {
    display: inline-block;
    text-align: center;
    margin-right: 30px;
}

.stat-item-compact .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #04AA6D;
}

.stat-item-compact .stat-label {
    font-size: 0.85rem;
    color: #666;
}

.code-preview-compact .code-window {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Responsive AI Hero */
@media (max-width: 991px) {
    .ai-hero-section {
        padding: 100px 0 60px;
    }

    .ai-hero-title {
        font-size: 2.5rem;
    }

    .ai-chat-window {
        transform: none;
        margin-top: 40px;
    }

    .ai-hero-features {
        gap: 15px;
    }

    .feature-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 576px) {
    .ai-hero-title {
        font-size: 2rem;
    }

    .ai-hero-cta {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .user-message .msg-bubble {
        margin-left: 0;
    }
}

/* ============================================
   Workshop Highlight Section - Landing Page
   ============================================ */
.workshop-highlight-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.workshop-highlight-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 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 30px 30px;
    animation: floatDots 20s linear infinite;
}

@keyframes floatDots {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

.workshop-highlight-wrapper {
    position: relative;
    z-index: 1;
}

.workshop-highlight-content {
    color: white;
}

.workshop-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.workshop-badge-live {
    background: #ff4757;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pulse-live {
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.workshop-badge-free {
    background: #04AA6D;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.workshop-badge-hinglish {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.workshop-highlight-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.workshop-highlight-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.7;
}

.workshop-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.wf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 25px;
}

.wf-item i {
    font-size: 1rem;
}

.workshop-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.btn-workshop-primary {
    background: white;
    color: #764ba2;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-workshop-primary:hover {
    background: #04AA6D;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.workshop-spots-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Workshop Preview Cards */
.workshop-preview-cards {
    position: relative;
    height: 350px;
}

.workshop-mini-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    width: 280px;
}

.workshop-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.wmc-1 {
    top: 0;
    left: 20px;
    animation: floatCard1 6s ease-in-out infinite;
}

.wmc-2 {
    top: 120px;
    left: 60px;
    animation: floatCard2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.wmc-3 {
    top: 240px;
    left: 20px;
    animation: floatCard3 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-8px) rotate(0deg);
    }
}

@keyframes floatCard3 {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.wmc-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wmc-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: #333;
}

.wmc-content p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.wmc-day {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Workshop Navigation Button - Top Menu */
.workshop-nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    position: relative;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    animation: navBtnGlow 2s ease-in-out infinite;
}

@keyframes navBtnGlow {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 3px 20px rgba(102, 126, 234, 0.6);
    }
}

.workshop-nav-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5) !important;
}

.workshop-live-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.workshop-badge-nav {
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 4px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Workshop Section Responsive */
@media (max-width: 991px) {
    .workshop-nav-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .workshop-badge-nav {
        display: none;
    }

    .workshop-highlight-title {
        font-size: 1.8rem;
    }

    .workshop-features-row {
        gap: 10px;
    }

    .wf-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .workshop-highlight-section {
        padding: 40px 0;
    }

    .workshop-highlight-title {
        font-size: 1.5rem;
    }

    .workshop-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-workshop-primary {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Combined Hero Section - AI Tutor + For Parents
   ============================================ */
.combined-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.combined-hero-section .ai-hero-content {
    color: white;
}

.hero-badge-parents {
    /* display: inline-block; removed for flex item */
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-cta-workshop {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-workshop:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    color: white;
}

/* Kids Benefits Row in Combined Hero */
.kids-benefits-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 25px;
    padding: 35px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefits-title .emoji-icon {
    margin-right: 10px;
}

.benefits-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.benefit-card-compact {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.benefit-card-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(4, 170, 109, 0.5);
}

.benefit-card-compact .bc-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.benefit-card-compact h5 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card-compact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.btn-parents-workshop {
    background: linear-gradient(135deg, #04AA6D, #00d4aa);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(4, 170, 109, 0.3);
}

.btn-parents-workshop:hover {
    background: linear-gradient(135deg, #00d4aa, #04AA6D);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(4, 170, 109, 0.4);
    color: white;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-badge i {
    color: #04AA6D;
}

/* Kids Coding Section - Standalone (kept for backwards compatibility) */
.kids-coding-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 50%, #ffe6a0 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.kids-coding-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.kids-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

.kids-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.kids-section-title .highlight-text {
    background: linear-gradient(135deg, #04AA6D, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kids-section-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-kids-primary {
    background: linear-gradient(135deg, #04AA6D, #028a56);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(4, 170, 109, 0.3);
}

.btn-kids-primary:hover {
    background: linear-gradient(135deg, #028a56, #04AA6D);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(4, 170, 109, 0.4);
    color: white;
}

/* Benefits Grid */
.kids-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.kids-benefit-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.kids-benefit-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.kids-benefit-card.benefit-1 {
    border-left-color: #ffc107;
}

.kids-benefit-card.benefit-2 {
    border-left-color: #17a2b8;
}

.kids-benefit-card.benefit-3 {
    border-left-color: #28a745;
}

.kids-benefit-card.benefit-4 {
    border-left-color: #6f42c1;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefit-1 .benefit-icon {
    background: linear-gradient(135deg, #fff3cd, #ffc107);
    color: #856404;
}

.benefit-2 .benefit-icon {
    background: linear-gradient(135deg, #d1ecf1, #17a2b8);
    color: #0c5460;
}

.benefit-3 .benefit-icon {
    background: linear-gradient(135deg, #d4edda, #28a745);
    color: #155724;
}

.benefit-4 .benefit-icon {
    background: linear-gradient(135deg, #e2d9f3, #6f42c1);
    color: #432874;
}

.benefit-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.benefit-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Trust Indicators */
.parents-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

.parents-trust-row .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

.parents-trust-row .trust-item i {
    font-size: 1.3rem;
    color: #04AA6D;
}

/* Kids Section Responsive */
@media (max-width: 991px) {
    .kids-section-title {
        font-size: 2rem;
    }

    .kids-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .kids-coding-section {
        padding: 50px 0;
    }

    .kids-section-title {
        font-size: 1.6rem;
    }

    .kids-benefit-card {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }

    .parents-trust-row {
        gap: 15px;
    }

    .parents-trust-row .trust-item {
        font-size: 0.85rem;
    }
}

/* ============================================
   Online Courses Section
   ============================================ */
.online-courses-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.online-course-badge {
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

.section-title-online {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle-online {
    font-size: 1.1rem;
    color: #666;
}

.batch-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.ongoing {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-dot.upcoming {
    background: #007bff;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.online-course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.online-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.online-course-card.ongoing {
    border-color: rgba(40, 167, 69, 0.2);
}

.online-course-card.upcoming {
    border-color: rgba(0, 123, 255, 0.2);
}

.occ-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.occ-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
}

.occ-status.ongoing {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.occ-status.upcoming {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.occ-level {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.occ-body {
    padding: 20px;
    flex: 1;
}

.occ-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.occ-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.occ-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.occ-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.occ-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.occ-detail i {
    width: 18px;
    color: #6f42c1;
}

.occ-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.occ-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-original {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.price-discounted {
    font-size: 1.3rem;
    font-weight: 800;
    color: #28a745;
}

.occ-seats {
    font-size: 0.85rem;
    color: #ff6b6b;
    font-weight: 600;
}

.occ-seats i {
    margin-right: 5px;
}

.btn-occ-enroll {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-occ-enroll:hover {
    background: linear-gradient(135deg, #8b5cf6, #6f42c1);
    color: white;
}

/* Online Courses Responsive */
@media (max-width: 768px) {
    .section-title-online {
        font-size: 1.6rem;
    }

    .occ-title {
        font-size: 1.1rem;
    }
}