/* ==========================================================================
   Eduly Premium Design System - style.css
   ========================================================================== */

/* 1. CSS Variables & Theme Definitions */
:root {
    /* Color Palette - Indigo & Purple/Violet Theme */
    --hue-primary: 250;
    --hue-secondary: 280;
    --hue-success: 145;
    --hue-warning: 38;
    --hue-danger: 350;

    /* Light Theme Variables */
    --primary: hsl(var(--hue-primary), 75%, 58%);
    --primary-light: hsl(var(--hue-primary), 80%, 65%);
    --primary-dark: hsl(var(--hue-primary), 75%, 45%);
    --primary-glow: hsla(var(--hue-primary), 75%, 58%, 0.15);
    
    --secondary: hsl(var(--hue-secondary), 70%, 55%);
    --secondary-light: hsl(var(--hue-secondary), 75%, 63%);
    
    --success: hsl(var(--hue-success), 70%, 42%);
    --success-light: hsl(var(--hue-success), 70%, 95%);
    --warning: hsl(var(--hue-warning), 85%, 48%);
    --warning-light: hsl(var(--hue-warning), 85%, 94%);
    --danger: hsl(var(--hue-danger), 80%, 52%);
    --danger-light: hsl(var(--hue-danger), 80%, 95%);

    --bg-main: hsl(220, 30%, 97%);
    --bg-surface: hsl(0, 0%, 100%);
    --bg-surface-hover: hsl(220, 20%, 95%);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.3);

    --text-main: hsl(220, 40%, 12%);
    --text-medium: hsl(220, 20%, 35%);
    --text-muted: hsl(220, 15%, 55%);
    --text-on-primary: #ffffff;

    --border-color: hsl(220, 20%, 90%);
    --border-focus: hsl(var(--hue-primary), 75%, 70%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hero: radial-gradient(at 0% 0%, hsla(var(--hue-primary), 80%, 60%, 0.1) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, hsla(var(--hue-secondary), 80%, 60%, 0.1) 0px, transparent 50%);
    --gradient-accent: linear-gradient(135deg, hsl(320, 80%, 55%), var(--secondary));

    /* Layout & Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 26, 60, 0.08);
    --shadow-lg: 0 16px 40px rgba(26, 26, 60, 0.12);
    --shadow-primary: 0 8px 20px hsla(var(--hue-primary), 75%, 58%, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --primary: hsl(var(--hue-primary), 80%, 64%);
    --primary-light: hsl(var(--hue-primary), 85%, 72%);
    --primary-dark: hsl(var(--hue-primary), 80%, 50%);
    --primary-glow: hsla(var(--hue-primary), 80%, 64%, 0.25);
    
    --secondary: hsl(var(--hue-secondary), 75%, 62%);
    --secondary-light: hsl(var(--hue-secondary), 80%, 70%);

    --success: hsl(var(--hue-success), 75%, 48%);
    --success-light: hsl(var(--hue-success), 75%, 10%);
    --warning: hsl(var(--hue-warning), 90%, 55%);
    --warning-light: hsl(var(--hue-warning), 90%, 12%);
    --danger: hsl(var(--hue-danger), 85%, 60%);
    --danger-light: hsl(var(--hue-danger), 85%, 12%);

    --bg-main: hsl(220, 25%, 8%);
    --bg-surface: hsl(220, 25%, 13%);
    --bg-surface-hover: hsl(220, 20%, 18%);
    --bg-glass: rgba(18, 18, 30, 0.8);
    --border-glass: rgba(255, 255, 255, 0.05);

    --text-main: hsl(220, 30%, 94%);
    --text-medium: hsl(220, 15%, 75%);
    --text-muted: hsl(220, 10%, 55%);
    
    --border-color: hsl(220, 20%, 20%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 24px hsla(var(--hue-primary), 80%, 64%, 0.3);

    --gradient-hero: radial-gradient(at 0% 0%, hsla(var(--hue-primary), 80%, 40%, 0.15) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, hsla(var(--hue-secondary), 80%, 40%, 0.15) 0px, transparent 50%);
}

/* 2. Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 3. Global Typography & Core Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 4. Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* 5. Buttons & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px hsla(var(--hue-primary), 75%, 58%, 0.35);
    filter: brightness(1.05);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}
.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.btn-circle:hover {
    background: var(--bg-surface-hover);
    transform: scale(1.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    color: var(--text-main);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* 6. Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}
.navbar.scrolled {
    background: var(--bg-glass);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-main);
}
.logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
    border-radius: var(--radius-full);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger mobile menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* 7. Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 16px 0 24px;
    font-size: 0.95rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 8. Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    animation: slideInRight var(--transition-bounce) forwards;
    min-width: 300px;
    max-width: 450px;
}
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }

.toast-icon {
    font-size: 1.25rem;
}
.toast.success .toast-icon { color: var(--success); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.danger .toast-icon { color: var(--danger); }

.toast-content {
    flex-grow: 1;
}
.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.toast-message {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 9. Landing Page Styles */
.hero-section {
    padding: 100px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid hsla(var(--hue-primary), 75%, 58%, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item h4 {
    font-size: 2.2rem;
    font-weight: 800;
}
.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Glassmorphism Mock Image Container */
.hero-image-wrapper {
    position: relative;
}
.hero-image-card {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform var(--transition-normal);
}
.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: float 4s ease-in-out infinite alternate;
}
.floating-card-1 {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}
.floating-card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

.floating-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Feature Cards Section */
.features-section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    transition: all var(--transition-bounce);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
}
.feature-card:nth-child(2) .feature-icon-wrapper {
    background: hsla(var(--hue-secondary), 70%, 55%, 0.1);
    color: var(--secondary);
}
.feature-card:nth-child(3) .feature-icon-wrapper {
    background: hsla(var(--hue-success), 70%, 42%, 0.1);
    color: var(--success);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Course Explorer Section */
.courses-section {
    padding: 80px 0;
    background: var(--bg-surface);
    transition: background-color var(--transition-normal);
}

.courses-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-wrapper {
    position: relative;
    min-width: 320px;
}
.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.search-wrapper input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 10. Reusable Course Card Style */
.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-bounce);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-card-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}
.course-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.course-card:hover .course-card-banner img {
    transform: scale(1.05);
}

.course-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.course-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta-top {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.course-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--warning);
    margin-bottom: 20px;
}
.course-rating span {
    color: var(--text-muted);
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.course-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}
.course-author img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
}

/* 11. Dashboard Portal Page Styles */
.dashboard-container {
    padding: 60px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.dashboard-header h1 {
    font-size: 2.2rem;
}
.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.dash-stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.dash-stat-card:nth-child(2) .dash-stat-icon {
    background: hsla(var(--hue-success), 70%, 42%, 0.1);
    color: var(--success);
}
.dash-stat-card:nth-child(3) .dash-stat-icon {
    background: hsla(var(--hue-warning), 85%, 48%, 0.1);
    color: var(--warning);
}
.dash-stat-card:nth-child(4) .dash-stat-icon {
    background: hsla(var(--hue-secondary), 70%, 55%, 0.1);
    color: var(--secondary);
}

.dash-stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
}
.dash-stat-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-sections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.dashboard-main-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-card-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-panel {
    padding: 32px;
}

.enrolled-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enrolled-course-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    transition: transform var(--transition-fast);
}
.enrolled-course-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.enrolled-course-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}
.enrolled-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enrolled-course-info {
    flex-grow: 1;
}
.enrolled-course-info h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.enrolled-course-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.enrolled-course-progress {
    width: 150px;
    flex-shrink: 0;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-main);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 6px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Gamification Badges */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    transition: all var(--transition-bounce);
}
.badge-item:hover {
    transform: scale(1.05);
}
.badge-item.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.badge-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}
.badge-item:not(.locked):hover .badge-icon {
    transform: rotate(360deg);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.badge-item h5 {
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.badge-item p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* 12. Course Detail / Learning Dashboard Viewer */
.course-view-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    min-height: calc(100vh - 80px);
}

.course-view-main {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.course-view-sidebar {
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

/* Collapsible Modules list in sidebar */
.module-accordion-header {
    padding: 18px 24px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
.module-accordion-header span {
    font-size: 0.95rem;
}
.module-accordion-header i {
    transition: transform var(--transition-fast);
}
.module-accordion-header.active i {
    transform: rotate(180deg);
}

.module-lessons-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
}

.lesson-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-medium);
}
.lesson-sidebar-item:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
}
.lesson-sidebar-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}
.lesson-sidebar-item.completed i.fa-circle-check {
    color: var(--success);
}
.lesson-sidebar-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Custom Video Player UI */
.media-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Custom Controls Skin */
.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
.video-overlay-play.playing {
    opacity: 0;
    pointer-events: none;
}
.video-play-btn-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition-fast);
}
.video-overlay-play:hover .video-play-btn-circle {
    transform: scale(1.1);
}

.lesson-content-body {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}
.lesson-content-body h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.lesson-content-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.lesson-text-rich {
    font-size: 1.05rem;
    color: var(--text-medium);
}
.lesson-text-rich p {
    margin-bottom: 16px;
}

/* 13. State-full Interactive Quiz Component */
.quiz-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.quiz-progress-num {
    font-weight: 700;
    color: var(--primary);
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.quiz-question-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    line-height: 1.35;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.quiz-option-item {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-fast);
    background: var(--bg-surface);
}
.quiz-option-item:hover {
    border-color: var(--primary-light);
    background: var(--bg-surface-hover);
}
.quiz-option-item.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
}
.quiz-option-item.correct {
    border-color: var(--success);
    background: var(--success-light);
    color: var(--success);
}
.quiz-option-item.incorrect {
    border-color: var(--danger);
    background: var(--danger-light);
    color: var(--danger);
    animation: shake 0.4s ease;
}

.quiz-option-letter {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.quiz-option-item.selected .quiz-option-letter {
    background: var(--primary);
    color: white;
}
.quiz-option-item.correct .quiz-option-letter {
    background: var(--success);
    color: white;
}
.quiz-option-item.incorrect .quiz-option-letter {
    background: var(--danger);
    color: white;
}

.quiz-explanation {
    padding: 20px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-left: 4px solid var(--primary);
    animation: fadeIn var(--transition-normal);
}

.quiz-footer {
    display: flex;
    justify-content: flex-end;
}

/* Quiz Finished View */
.quiz-results-container {
    text-align: center;
    padding: 20px 0;
}
.quiz-results-score-circle {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-primary);
}
.quiz-results-score-circle h3 {
    font-size: 2.5rem;
    line-height: 1;
    color: white;
}
.quiz-results-score-circle p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 14. Instructor Creator Tool Panel */
.instructor-container {
    padding: 60px 0;
    max-width: 800px;
}

.creator-card {
    padding: 40px;
    margin-bottom: 30px;
}

.creator-module-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-main);
    transition: background-color var(--transition-normal);
}

.creator-lesson-row {
    display: grid;
    grid-template-columns: 1fr 150px auto;
    gap: 12px;
    margin-top: 12px;
}

/* 15. Keyframes & Animations Definitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* 16. Responsiveness Layouts Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-badge, .hero-cta, .hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-card {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-image-card:hover {
        transform: scale(1.02);
    }
    .floating-card-1 {
        left: 0;
    }
    .floating-card-2 {
        right: 0;
    }

    .features-grid, .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sections-grid {
        grid-template-columns: 1fr;
    }

    .course-view-layout {
        grid-template-columns: 1fr;
    }
    .course-view-sidebar {
        max-height: 400px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-surface);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        align-items: flex-start;
        box-shadow: var(--shadow-md);
        transition: left var(--transition-normal);
        z-index: 999;
    }
    .nav-menu.open {
        left: 0;
    }
    .nav-actions {
        margin-left: auto;
        margin-right: 16px;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    
    .features-grid, .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .course-view-main {
        padding: 20px;
    }
    .lesson-content-body {
        padding: 20px;
    }
}

/* Auth Modal Overlay & Box Styling */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.auth-modal {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.auth-close-btn:hover {
    color: var(--danger);
    background: var(--danger-light);
    transform: scale(1.1);
}

.auth-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 28px;
    padding-bottom: 10px;
}

.auth-tab {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    transition: color var(--transition-fast);
}
.auth-tab:hover, .auth-tab.active {
    color: var(--primary);
}
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}
.auth-tab.active::after {
    width: 100%;
}

.auth-form-container {
    display: none;
    animation: fadeIn var(--transition-normal);
}
.auth-form-container.active {
    display: block;
}

.auth-modal.shake {
    animation: shake 0.4s ease;
}

/* Social Login Divider & Google Button */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 14px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.auth-divider span {
    padding: 0 12px;
    font-weight: 500;
}

.btn-google-auth {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.btn-google-auth:hover {
    border-color: #4285F4;
    background: hsla(217, 89%, 61%, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}
.btn-google-auth:active {
    transform: translateY(0);
}
.btn-google-auth .google-icon {
    flex-shrink: 0;
}

/* Google Account Chooser Popup */
.google-chooser-modal {
    max-width: 460px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease;
}
.google-chooser-header {
    text-align: center;
    margin-bottom: 24px;
}
.google-chooser-accounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.google-account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.google-account-item:hover {
    border-color: #4285F4;
    background: hsla(217, 89%, 61%, 0.08);
    transform: translateX(4px);
}
.google-account-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.google-account-info {
    flex-grow: 1;
}
.google-account-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.google-account-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.google-custom-input-toggle {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
}
.google-custom-input-toggle a {
    color: #4285F4;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.google-custom-input-toggle a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   17. E-Learning & Coaching Extensions (Multimedia & Certificates)
   ========================================================================== */

/* Rotating Vinyl Record Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.audio-vinyl-disk {
    animation-fill-mode: forwards;
}

/* Slides & Document Viewer */
.slides-inner-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

.slides-inner-card h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Interactive Scenario Choice Cards */
.scenario-choice-card {
    transition: all var(--transition-fast);
}
.scenario-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Discussion Forum Bubble */
.comment-bubble-item {
    transition: all var(--transition-fast);
}
.comment-bubble-item:hover {
    border-color: var(--primary-light) !important;
    box-shadow: var(--shadow-sm);
}

/* Certificate Cards */
.unlocked-cert-card {
    border-color: var(--primary) !important;
    box-shadow: 0 8px 30px var(--primary-glow) !important;
    transition: all var(--transition-bounce);
}
.unlocked-cert-card:hover {
    transform: translateY(-6px);
}

.locked-cert-card {
    transition: all var(--transition-fast);
}
.locked-cert-card:hover {
    transform: scale(0.99);
}

/* Certificate Layout & Premium Canvas */
.certificate-canvas {
    width: 100%;
    background: linear-gradient(135deg, #fbfbfd 0%, #f6f6f9 50%, #eeeef2 100%);
    padding: 30px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    font-family: 'Inter', 'Outfit', 'Sarabun', sans-serif;
    color: #222;
}

/* Dark mode overrides for certificate viewer within modal to keep it looking like parchment paper */
[data-theme="dark"] .certificate-canvas {
    background: linear-gradient(135deg, #fdfbf7 0%, #f7f2e8 50%, #efe7d6 100%) !important;
    color: #1a1a1a !important;
}

.certificate-inner-border {
    border: 4px double #d4af37;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: transparent;
    position: relative;
}

.cert-badge-crest {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
    border: 2px solid #d4af37;
}

.cert-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    font-family: 'Sarabun', sans-serif;
}

.cert-student-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 8px;
    font-family: 'Sarabun', sans-serif;
}

[data-theme="dark"] .cert-student-name {
    color: #111 !important;
}

.cert-student-id {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
}
[data-theme="dark"] .cert-student-id {
    color: #444 !important;
}

.cert-body-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 15px auto;
    max-width: 600px;
    font-family: 'Sarabun', sans-serif;
}
[data-theme="dark"] .cert-body-text {
    color: #444 !important;
}

.cert-course-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4af37;
    margin: 20px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-family: 'Sarabun', sans-serif;
}

.cert-date-text {
    font-size: 1.05rem;
    color: #666;
    margin-top: 30px;
    font-family: 'Sarabun', sans-serif;
}
[data-theme="dark"] .cert-date-text {
    color: #555 !important;
}

.cert-signature-section {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.cert-sig-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-sig-line {
    width: 80%;
    border-bottom: 1px solid #aaa;
    margin-bottom: 10px;
    padding-bottom: 5px;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cert-sig-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}
[data-theme="dark"] .cert-sig-name {
    color: #0f172a !important;
}

.cert-sig-title {
    font-size: 0.88rem;
    color: #475569;
    margin-top: 3px;
    text-align: center;
    line-height: 1.35;
    max-width: none !important;
    width: 100%;
    white-space: nowrap;
}
[data-theme="dark"] .cert-sig-title {
    color: #475569 !important;
}

/* Gold certified stamp */
.cert-gold-stamp {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stamp-circle-outer {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, #ffe066 0%, #f5c21a 50%, #d4af37 100%);
    border: 2px dashed #b2932b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: rotateStamp 20s linear infinite;
}

.stamp-circle-inner {
    width: 74px;
    height: 74px;
    border-radius: var(--radius-full);
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7a6015;
    font-size: 0.55rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.stamp-circle-inner i {
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #7a6015;
}

@keyframes rotateStamp {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Comprehensive Print Layout Rules (Standard & Landscape Certificate)
   ========================================================================== */

/* 1. General Print Rules (For User Guide & Standard Web Pages) */
@media print {
    *, *::before, *::after {
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide non-printable UI elements */
    #navbar-placeholder,
    #footer-placeholder,
    .navbar,
    .footer,
    #toast-container,
    .chatbot-root,
    .chatbot-toggle-btn,
    .no-print,
    .btn,
    #btn-print-user-guide,
    #btn-guide-trigger-chatbot,
    #btn-open-reader-mode,
    .guide-quick-nav-bar {
        display: none !important;
    }

    body:not(.has-cert-modal) {
        background: #ffffff !important;
        color: #111827 !important;
        font-family: 'Inter', 'Outfit', sans-serif !important;
        margin: 0 !important;
        padding: 12mm 10mm !important;
        overflow: visible !important;
        font-size: 10.5pt !important;
    }

    body:not(.has-cert-modal) #app,
    body:not(.has-cert-modal) #app-content {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .user-guide-container {
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .guide-hero-banner {
        background: #f8fafc !important;
        border: 1.5px solid #cbd5e1 !important;
        box-shadow: none !important;
        padding: 20px !important;
        margin-bottom: 24px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .guide-section {
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: none !important;
        padding: 22px !important;
        margin-bottom: 24px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .glass-panel {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
        color: #0f172a !important;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* 2. Certificate Modal Print Rules (Strict Single-Sheet A4 Landscape 297mm x 210mm) */
@media print {
    body.has-cert-modal,
    html:has(body.has-cert-modal) {
        width: 297mm !important;
        height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.has-cert-modal #app,
    body.has-cert-modal .navbar,
    body.has-cert-modal .footer,
    body.has-cert-modal #toast-container,
    body.has-cert-modal .chatbot-root {
        display: none !important;
        visibility: hidden !important;
    }

    body.has-cert-modal #cert-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 297mm !important;
        height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999999 !important;
    }

    body.has-cert-modal .cert-actions-header {
        display: none !important;
    }

    body.has-cert-modal .cert-modal-box {
        max-width: 297mm !important;
        width: 297mm !important;
        height: 210mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    body.has-cert-modal #printable-certificate-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 297mm !important;
        height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        background: #ffffff !important;
    }

    body.has-cert-modal .certificate-canvas {
        width: 297mm !important;
        height: 210mm !important;
        max-width: 297mm !important;
        max-height: 210mm !important;
        aspect-ratio: 297 / 210 !important;
        border: 8px solid #1e293b !important;
        outline: 2px solid #d4af37 !important;
        outline-offset: -4px !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 8mm 12mm !important;
        background: linear-gradient(135deg, #fffdfa 0%, #fefcf6 50%, #faf5ea 100%) !important;
        color: #1e293b !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        break-inside: avoid !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.has-cert-modal .certificate-inner-border {
        border: 1.5px solid #d4af37 !important;
        padding: 8px 16px !important;
        height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: radial-gradient(circle at center, rgba(255,255,255,0.98) 0%, rgba(253,251,247,0.85) 100%) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}


/* Extra styles for Rubrics, Lesson Images and Inline Comments */
.rubric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}
.rubric-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 8px;
}
.rubric-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 8px;
}
.rubric-table th, .rubric-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}
.rubric-table th {
    background: var(--bg-main);
    font-weight: 700;
    color: var(--text-main);
}
.rubric-table td {
    color: var(--text-medium);
}

.lesson-image-card {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.lesson-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.lesson-image-card img:hover {
    transform: scale(1.02);
}

.lesson-comments-box {
    margin-top: 40px;
    border-top: 2px dashed var(--border-color);
    padding-top: 30px;
}


/* ==========================================================================
   User Guide & Illustrated Manual Styles
   ========================================================================== */
.guide-hero-banner {
    position: relative;
}

.guide-toc-bar {
    position: sticky;
    top: 75px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.guide-toc-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    color: var(--text-medium);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.guide-toc-link:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.guide-module-card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   AI Smart Assistant / Chatbot Widget Styles
   ========================================================================== */
.chatbot-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    font-family: inherit;
}

.chatbot-launcher-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    color: white;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-normal);
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
    }
    50% {
        transform: translateY(-5px) scale(1.04);
        box-shadow: 0 16px 32px rgba(79, 70, 229, 0.6);
    }
}

.chatbot-launcher-btn:hover {
    transform: scale(1.08);
}

.chatbot-launcher-btn.active {
    background: var(--danger);
    transform: rotate(90deg);
}

.chatbot-launcher-avatar {
    font-size: 1.65rem;
}

.chatbot-launcher-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #22c55e;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1.5px solid white;
    letter-spacing: 0.05em;
}

.chatbot-launcher-tooltip {
    position: absolute;
    right: 74px;
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.chatbot-launcher-btn:hover .chatbot-launcher-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: 92vw;
    height: 550px;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99995;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #4338ca 100%);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.chatbot-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    border: 1.5px solid white;
}

.chatbot-header-title {
    font-size: 0.95rem;
    font-weight: 800;
}

.chatbot-header-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}

.chatbot-header-actions {
    display: flex;
    gap: 4px;
}

.chatbot-icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background var(--transition-fast);
}

.chatbot-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages Feed */
.chatbot-messages-feed {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-main);
}

.chatbot-msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-out;
}

.chatbot-msg-row.user-row {
    justify-content: flex-end;
}

.chatbot-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chatbot-msg-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 82%;
}

.chatbot-msg-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.chatbot-msg-bubble.user-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.chatbot-msg-bubble.bot-bubble {
    background: var(--bg-surface);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Typing indicator */
.typing-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Action Buttons inside Chatbot */
.chatbot-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chatbot-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--primary-glow);
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.chatbot-action-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateX(2px);
}

/* Quick Chips */
.chatbot-quick-chips {
    padding: 8px 14px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.chatbot-chip {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.chatbot-chip:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}

/* Input Form */
.chatbot-input-form {
    padding: 10px 14px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-text-input {
    flex-grow: 1;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 9px 14px;
    font-size: 0.88rem;
    background: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-text-input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.chatbot-btn-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.chatbot-btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* User Guide Navigation Pills */
.guide-nav-pill {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    text-decoration: none;
}

.guide-nav-pill:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

.guide-nav-pill.active-nav-pill {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}



/* ==========================================================================
   Interactive Illustrated Avatar Picker Styles
   ========================================================================== */
.avatar-current-preview-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-surface);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    margin-bottom: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.avatar-preview-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    background: white;
    flex-shrink: 0;
}

.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview-details {
    flex: 1;
    min-width: 200px;
}

.avatar-preview-quick-tools {
    display: flex;
    gap: 8px;
}

.avatar-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
}

.avatar-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.avatar-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.avatar-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.avatar-picker-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.avatar-picker-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

.avatar-picker-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 0 2px var(--primary), 0 8px 20px rgba(99, 102, 241, 0.25);
}

.avatar-card-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar-card-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-check-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.avatar-picker-card.selected .avatar-check-badge {
    display: flex;
}

.avatar-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.avatar-card-tag {
    font-size: 0.68rem;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}


/* ==========================================================================
   Avatar Direct Upload Zone Styles
   ========================================================================== */
.avatar-upload-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.03) 100%);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.avatar-upload-zone:hover,
.avatar-upload-zone.dragover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}

.avatar-upload-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.avatar-upload-text {
    flex: 1;
}

.avatar-upload-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ==========================================================================
   Modern & Vibrant Homepage Redesign Styles (2026 Colorful Edition)
   ========================================================================== */

/* 1. Hero Section Aurora & Colorful Mesh */
.modern-hero-section {
    padding: 85px 0 90px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(236, 72, 153, 0.04) 50%, var(--bg-main) 100%);
}

[data-theme="dark"] .modern-hero-section {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.14) 0%, rgba(219, 39, 119, 0.08) 55%, var(--bg-main) 100%);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.16) 1.25px, transparent 1.25px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.hero-aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.48;
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-aurora-orb {
    opacity: 0.32;
}

.hero-aurora-orb.orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #6366f1 0%, #8b5cf6 70%);
    top: -100px;
    left: -80px;
}

.hero-aurora-orb.orb-2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #ec4899 0%, #f43f5e 70%);
    top: 15%;
    right: -70px;
    animation-delay: 2s;
}

.hero-aurora-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4 0%, #3b82f6 70%);
    bottom: -60px;
    left: 28%;
    animation-delay: 4s;
}

.hero-aurora-orb.orb-4 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #f59e0b 0%, #fbbf24 70%);
    top: 8%;
    left: 45%;
    opacity: 0.3;
    animation-delay: 1.5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(24px, -24px) scale(1.08); }
}

/* Vibrant Top Pill Badge */
.hero-badge-vibrant {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.12));
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.live-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseEmerald 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Rainbow Multi-Tone Text Gradient */
.hero-rainbow-text {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 35%, #ec4899 70%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="dark"] .hero-rainbow-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 35%, #f472b6 70%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Colorful Topic Highlight Chips */
.hero-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-chip:hover {
    transform: translateY(-3px) scale(1.03);
}

.topic-chip.chip-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.3);
}
[data-theme="dark"] .topic-chip.chip-pink { color: #f472b6; }

.topic-chip.chip-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
[data-theme="dark"] .topic-chip.chip-cyan { color: #22d3ee; }

.topic-chip.chip-amber {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.32);
}
[data-theme="dark"] .topic-chip.chip-amber { color: #fbbf24; }

.topic-chip.chip-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .topic-chip.chip-emerald { color: #34d399; }

/* Vibrant CTA Buttons */
.btn-vibrant-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-vibrant-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.45);
    filter: brightness(1.06);
}

.btn-vibrant-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(124, 58, 237, 0.25);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.btn-vibrant-secondary:hover {
    border-color: #ec4899;
    color: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
}

/* Colorful Hero Mini Stat Cards */
.hero-colorful-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 540px;
}

.stat-colorful-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-colorful-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.stat-colorful-card .stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.stat-colorful-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-colorful-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

.stat-colorful-card.stat-indigo { border-left: 4px solid #6366f1; }
.stat-colorful-card.stat-indigo .stat-icon-box { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stat-colorful-card.stat-indigo h4 { color: #4f46e5; }
[data-theme="dark"] .stat-colorful-card.stat-indigo h4 { color: #818cf8; }

.stat-colorful-card.stat-pink { border-left: 4px solid #ec4899; }
.stat-colorful-card.stat-pink .stat-icon-box { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.stat-colorful-card.stat-pink h4 { color: #db2777; }
[data-theme="dark"] .stat-colorful-card.stat-pink h4 { color: #f472b6; }

.stat-colorful-card.stat-amber { border-left: 4px solid #f59e0b; }
.stat-colorful-card.stat-amber .stat-icon-box { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.stat-colorful-card.stat-amber h4 { color: #d97706; }
[data-theme="dark"] .stat-colorful-card.stat-amber h4 { color: #fbbf24; }

.stat-colorful-card.stat-emerald { border-left: 4px solid #10b981; }
.stat-colorful-card.stat-emerald .stat-icon-box { background: linear-gradient(135deg, #10b981, #059669); }
.stat-colorful-card.stat-emerald h4 { color: #059669; }
[data-theme="dark"] .stat-colorful-card.stat-emerald h4 { color: #34d399; }

/* Hero Portrait Card & Glowing Frame */
.hero-portrait-glow {
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4, #f59e0b);
    border-radius: 30px;
    filter: blur(22px);
    opacity: 0.35;
    z-index: 1;
}

.modern-portrait-card {
    padding: 10px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(30, 27, 75, 0.18);
}

[data-theme="dark"] .modern-portrait-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border-color: rgba(255, 255, 255, 0.15);
}

.colorful-float-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
}

[data-theme="dark"] .colorful-float-card {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.floating-card-3 {
    top: -16px;
    right: -18px;
    animation-delay: 0.8s;
}

/* Section Pill Badges */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-pill.pill-purple {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] .section-pill.pill-purple { color: #c084fc; }

.section-pill.pill-pink {
    background: rgba(236, 72, 153, 0.14);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.3);
}
[data-theme="dark"] .section-pill.pill-pink { color: #f472b6; }

.section-pill.pill-cyan {
    background: rgba(6, 182, 212, 0.14);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
[data-theme="dark"] .section-pill.pill-cyan { color: #22d3ee; }

.section-pill.pill-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .section-pill.pill-amber { color: #fbbf24; }

/* 2. Learning Journey 4-Step Strip */
.learning-journey-strip {
    padding: 64px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.journey-strip-header {
    text-align: center;
    margin-bottom: 40px;
}

.journey-strip-header h2 {
    font-size: 2.1rem;
}

.journey-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.journey-step-card {
    position: relative;
    padding: 28px 22px 24px;
    border-radius: 20px;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.journey-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-num-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    opacity: 0.14;
    line-height: 1;
}

.step-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 18px;
}

.journey-step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.journey-step-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.journey-step-card.step-blue { border-top: 4px solid #3b82f6; }
.journey-step-card.step-blue .step-icon-circle { background: linear-gradient(135deg, #3b82f6, #06b6d4); box-shadow: 0 8px 18px rgba(59, 130, 246, 0.3); }
.journey-step-card.step-blue .step-num-badge { color: #3b82f6; opacity: 0.22; }

.journey-step-card.step-pink { border-top: 4px solid #ec4899; }
.journey-step-card.step-pink .step-icon-circle { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 8px 18px rgba(236, 72, 153, 0.3); }
.journey-step-card.step-pink .step-num-badge { color: #ec4899; opacity: 0.22; }

.journey-step-card.step-amber { border-top: 4px solid #f59e0b; }
.journey-step-card.step-amber .step-icon-circle { background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3); }
.journey-step-card.step-amber .step-num-badge { color: #f59e0b; opacity: 0.22; }

.journey-step-card.step-emerald { border-top: 4px solid #10b981; }
.journey-step-card.step-emerald .step-icon-circle { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3); }
.journey-step-card.step-emerald .step-num-badge { color: #10b981; opacity: 0.22; }

/* 3. Modern Course Filter Bar & Colorful Cards */
.modern-filter-bar {
    background: var(--bg-main);
    padding: 16px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg-surface);
}

.filter-pill.active {
    background: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.3);
}

.modern-colorful-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-colorful-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-accent, var(--primary));
    box-shadow: 0 20px 40px rgba(30, 27, 75, 0.14);
}

/* 4. Colorful Features 4-Card Section */
.colorful-features-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.colorful-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.colorful-feature-card {
    position: relative;
    padding: 32px 24px 28px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.colorful-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-top-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.colorful-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 18px;
}

.feature-mini-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.colorful-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.colorful-feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Theme variants for feature cards */
.card-theme-indigo .feature-top-glow,
.card-theme-indigo .colorful-feature-icon {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}
.card-theme-indigo .feature-mini-tag {
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}
[data-theme="dark"] .card-theme-indigo .feature-mini-tag { color: #818cf8; }

.card-theme-pink .feature-top-glow,
.card-theme-pink .colorful-feature-icon {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.28);
}
.card-theme-pink .feature-mini-tag {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}
[data-theme="dark"] .card-theme-pink .feature-mini-tag { color: #f472b6; }

.card-theme-amber .feature-top-glow,
.card-theme-amber .colorful-feature-icon {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}
.card-theme-amber .feature-mini-tag {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}
[data-theme="dark"] .card-theme-amber .feature-mini-tag { color: #fbbf24; }

.card-theme-emerald .feature-top-glow,
.card-theme-emerald .colorful-feature-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}
.card-theme-emerald .feature-mini-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
[data-theme="dark"] .card-theme-emerald .feature-mini-tag { color: #34d399; }

/* 5. Educator Testimonials Section */
.testimonials-colorful-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.testimonial-colorful-card {
    position: relative;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-colorful-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-colorful-card.t-card-cyan { border-top: 4px solid #06b6d4; }
.testimonial-colorful-card.t-card-pink { border-top: 4px solid #ec4899; }
.testimonial-colorful-card.t-card-emerald { border-top: 4px solid #10b981; }

.quote-badge {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0.7;
}

.testimonial-course-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.testimonial-course-tag.tag-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
[data-theme="dark"] .testimonial-course-tag.tag-cyan { color: #22d3ee; }

.testimonial-course-tag.tag-pink { background: rgba(236, 72, 153, 0.12); color: #db2777; }
[data-theme="dark"] .testimonial-course-tag.tag-pink { color: #f472b6; }

.testimonial-course-tag.tag-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
[data-theme="dark"] .testimonial-course-tag.tag-emerald { color: #34d399; }

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

/* 6. Bottom Vibrant CTA Banner */
.bottom-cta-section {
    padding: 30px 0 80px;
    background: var(--bg-surface);
}

.vibrant-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 56px 32px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 35%, #db2777 75%, #ea580c 100%);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
}

.cta-banner-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.cta-orb-left {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -80px;
}

.cta-orb-right {
    width: 300px;
    height: 300px;
    bottom: -110px;
    right: -70px;
}

/* 7. Responsive Adjustments for Colorful Homepage */
@media (max-width: 1024px) {
    .journey-steps-grid,
    .colorful-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-hero-section {
        padding: 50px 0 60px;
    }
    .hero-colorful-stats {
        grid-template-columns: 1fr;
    }
    .journey-steps-grid,
    .colorful-features-grid {
        grid-template-columns: 1fr;
    }
    .floating-card-3 {
        display: none;
    }
    .vibrant-cta-banner {
        padding: 40px 20px;
    }
    .vibrant-cta-banner h2 {
        font-size: 1.7rem !important;
    }
}


/* ==========================================================================
   Frog-Genius Inspired Hybrid Banner, Multi-Device Stage & Split Course Cards
   ========================================================================== */

/* 1. Outer Wrapper with Soft Sky-Cyan-Mint Pastel Backdrop (From Reference Image) */
.fg-eduly-hero-wrapper {
    position: relative;
    padding: 36px 0 44px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #ecfeff 45%, #f0fdf4 75%, #f5f3ff 100%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .fg-eduly-hero-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #082f49 50%, #1e1b4b 100%);
    border-bottom-color: rgba(56, 189, 248, 0.15);
}

/* 2. Wide Rounded Hero Banner Box (Exact Frog Genius Signature Style + Eduly Colors) */
.fg-wide-hero-banner {
    position: relative;
    border-radius: 28px;
    padding: 44px 48px;
    background: linear-gradient(125deg, #0b3c7c 0%, #0277bd 38%, #00acc1 72%, #26a69a 100%);
    color: #ffffff;
    box-shadow: 0 24px 55px rgba(2, 119, 189, 0.28);
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* Sweeping White & Teal Geometric Curves on Right Side of Banner */
.fg-banner-curve-white {
    position: absolute;
    right: -6%;
    bottom: -28%;
    width: 54%;
    height: 145%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 55% 45% 0 50%;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 1;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .fg-banner-curve-white {
    background: rgba(15, 23, 42, 0.88);
}

.fg-banner-curve-teal {
    position: absolute;
    right: -4%;
    top: -22%;
    width: 38%;
    height: 120%;
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.85), rgba(0, 172, 193, 0.65));
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.fg-banner-halftone {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.fg-hero-banner-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

/* Left Column inside Wide Banner */
.fg-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.fg-brand-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.fg-giant-logo-circle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    color: #0277bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.fg-logo-satellite-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #38bdf8;
    border: 2.5px solid #ffffff;
}

.fg-brand-suptitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffffff;
    line-height: 1.1;
}

.fg-brand-english-sub {
    font-size: 0.92rem;
    color: #e0f2fe;
    font-weight: 500;
    margin-top: 2px;
}

.fg-hero-main-title {
    color: #ffffff;
    font-size: 2.15rem;
    line-height: 1.28;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.fg-highlight-gold {
    color: #fde047;
    text-decoration: underline;
    text-decoration-color: rgba(253, 224, 71, 0.45);
    text-underline-offset: 6px;
}

.fg-hero-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 580px;
}

.fg-banner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.fg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    transition: all 0.22s ease;
}

.fg-chip:hover {
    background: #ffffff;
    color: #0277bd;
    transform: translateY(-2px);
}

.fg-chip.fg-chip-gold {
    background: rgba(250, 204, 21, 0.25);
    border-color: rgba(253, 224, 71, 0.6);
    color: #fef08a;
}
.fg-chip.fg-chip-gold:hover {
    background: #facc15;
    color: #0f172a;
}

.fg-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fg-btn-white {
    background: #ffffff;
    color: #0b3c7c !important;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.96rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
.fg-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
    background: #f8fafc;
}

.fg-btn-cyan {
    background: linear-gradient(135deg, #00e5ff 0%, #1de9b6 100%);
    color: #06283d !important;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.96rem;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
}
.fg-btn-cyan:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.fg-btn-glass {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.96rem;
    backdrop-filter: blur(8px);
}
.fg-btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* 3. Right Column: Multi-Device Mockup Stage (Laptop + Phone + Instructor) */
.fg-device-instructor-stage {
    position: relative;
    padding: 10px 0 16px 24px;
}

.fg-laptop-mockup {
    position: relative;
    background: #0f172a;
    border-radius: 18px 18px 6px 6px;
    padding: 10px 10px 8px;
    border: 3px solid #334155;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.38);
    z-index: 2;
}

.fg-laptop-screen {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fg-mock-topbar {
    height: 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fg-mock-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fg-mock-dots {
    display: flex;
    gap: 5px;
}
.fg-mock-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}
.fg-mock-dots span:nth-child(1) { background: #f87171; }
.fg-mock-dots span:nth-child(2) { background: #fbbf24; }
.fg-mock-dots span:nth-child(3) { background: #34d399; }

.fg-laptop-inner-hero {
    position: relative;
    height: 295px;
    overflow: hidden;
    background: linear-gradient(135deg, #0284c7, #0d9488);
}

.fg-instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
}

.fg-instructor-overlay-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}

.fg-laptop-base {
    height: 12px;
    background: linear-gradient(90deg, #94a3b8 0%, #e2e8f0 50%, #94a3b8 100%);
    margin: 8px -22px -14px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Smartphone Mockup Overlapping Bottom-Left (From Reference Image) */
.fg-phone-mockup {
    position: absolute;
    bottom: -8px;
    left: -18px;
    width: 162px;
    background: #0f172a;
    border-radius: 24px;
    padding: 7px;
    border: 3px solid #475569;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.42);
    z-index: 4;
    animation: float 5s ease-in-out infinite alternate;
}

.fg-phone-notch {
    width: 46px;
    height: 5px;
    background: #334155;
    border-radius: 99px;
    margin: 2px auto 6px;
}

.fg-phone-screen {
    background: #f8fafc;
    border-radius: 17px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fg-phone-mini-banner {
    background: linear-gradient(135deg, #0277bd, #00acc1);
    color: #ffffff;
    padding: 8px;
    border-radius: 10px;
    font-size: 0.66rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fg-phone-mini-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.fg-phone-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.fg-phone-cert-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 99px;
    padding: 4px 8px;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
}

.fg-floating-pill-top {
    position: absolute;
    top: -12px;
    right: -10px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
    border: 1.5px solid #e0f2fe;
}

.fg-float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* 4. 4-Column Stats Strip Below Wide Hero Banner */
.fg-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 26px;
}

/* 5. Frog-Genius Style Split-Banner Course Cards */
.fg-courses-section {
    padding: 56px 0 76px;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg-surface) 100%);
}

[data-theme="dark"] .fg-courses-section {
    background: var(--bg-surface);
}

.fg-courses-header-row {
    margin-bottom: 24px;
}

.fg-section-title {
    font-size: 2.15rem;
    margin-bottom: 6px;
}

.fg-section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 780px;
}

.fg-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.fg-split-banner {
    position: relative;
    height: 195px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .fg-split-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* Dark Translucent Duration Badge Top-Left (Exact Reference Image Match) */
.fg-duration-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 41, 59, 0.82);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fg-banner-photo-side {
    position: relative;
    height: 100%;
    overflow: hidden;
    clip-path: ellipse(98% 92% at 2% 52%);
}

.fg-banner-photo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.fg-hybrid-card:hover .fg-banner-photo-side img {
    transform: scale(1.07);
}

.fg-banner-info-side {
    position: relative;
    padding: 18px 16px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.fg-banner-dots {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 65px;
    height: 65px;
    background-image: radial-gradient(rgba(2, 132, 199, 0.22) 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    pointer-events: none;
}

.fg-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fg-mini-logo-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
}

.fg-banner-topic-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

[data-theme="dark"] .fg-banner-topic-text {
    color: #38bdf8 !important;
}

.fg-banner-cat-chip {
    display: inline-block;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* 6. Responsive Media Queries for Frog-Genius Hybrid Design */
@media (max-width: 1024px) {
    .fg-hero-banner-grid {
        grid-template-columns: 1fr;
    }
    .fg-banner-curve-white {
        width: 100%;
        height: 45%;
        right: 0;
        bottom: 0;
        border-radius: 36px 36px 0 0;
        transform: none;
    }
    .fg-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .fg-courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fg-wide-hero-banner {
        padding: 28px 20px;
        border-radius: 20px;
    }
    .fg-hero-main-title {
        font-size: 1.6rem;
    }
    .fg-phone-mockup {
        display: none;
    }
    .fg-device-instructor-stage {
        padding-left: 0;
    }
    .fg-stats-strip {
        grid-template-columns: 1fr;
    }
    .fg-split-banner {
        grid-template-columns: 1fr;
        height: 220px;
    }
    .fg-banner-photo-side {
        clip-path: none;
    }
    .fg-banner-info-side {
        display: none;
    }
}
