/* CSS reset & variables */
:root {
    --bg-dark: #060913;
    --bg-card: rgba(13, 20, 38, 0.55);
    --bg-card-hover: rgba(18, 28, 54, 0.75);
    --border-blue: rgba(0, 242, 254, 0.12);
    --border-blue-hover: rgba(0, 242, 254, 0.35);
    --border-orange: rgba(255, 106, 0, 0.12);
    --border-orange-hover: rgba(255, 106, 0, 0.35);
    --color-blue: #00f2fe;
    --color-blue-dim: #4facfe;
    --color-orange: #ff6a00;
    --color-orange-light: #ffaa5c;
    --color-text: #cbd5e1;
    --color-text-dim: #64748b;
    --color-text-white: #ffffff;
    --gradient-text: linear-gradient(135deg, #00f2fe 0%, #ff6a00 100%);
    --gradient-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-orange: linear-gradient(135deg, #ff6a00 0%, #ff9300 100%);
    --font-english: 'Outfit', sans-serif;
    --font-thai: 'Noto Sans Thai', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-blue: 0 8px 32px 0 rgba(0, 242, 254, 0.08);
    --shadow-orange: 0 8px 32px 0 rgba(255, 106, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text);
    font-family: var(--font-thai);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.8s ease; /* smooth background transition! */
}

/* Dynamic Body background themes */
body.theme-home {
    background-color: #060913;
}
body.theme-basic {
    background-color: #030a1c; /* Slightly blueish slate */
}
body.theme-hud {
    background-color: #020b05; /* Cyber green dark */
}
body.theme-stardust {
    background-color: #0b0214; /* Cosmic purple dark */
}
body.theme-plexus {
    background-color: #060913; /* Original Plexus dark */
}

/* Background Canvas */
#plexus-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-width-md {
    max-width: 800px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-white);
    font-family: var(--font-english);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Thai fonts mapping overrides for header titles containing Thai script */
.main-title, .section-title, .section-title-center {
    font-family: var(--font-thai), var(--font-english);
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.main-glow {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-blue) 0%, var(--color-orange) 100%);
}

.timeline-glow {
    top: 40%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-blue-dim) 0%, transparent 80%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge-wrapper {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s var(--transition-smooth);
}

.badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--color-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s var(--transition-smooth);
    letter-spacing: -0.01em;
}

.highlight-blue {
    color: var(--color-text-white);
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.highlight-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 4rem;
    animation: fadeInUp 1.2s var(--transition-smooth);
    max-width: 800px;
}

.highlight-orange {
    color: var(--color-orange-light);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 5rem;
    animation: fadeInUp 1.4s var(--transition-smooth);
}

.stat-card {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.05);
}

.stat-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--color-blue);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card:nth-child(even) .stat-icon {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.15) 0%, rgba(255, 147, 0, 0.05) 100%);
    border-color: rgba(255, 106, 0, 0.25);
    color: var(--color-orange);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-white);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-dim);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fadeInUp 1.6s var(--transition-smooth);
}

.scroll-indicator:hover {
    color: var(--color-blue);
}

.floating-arrow {
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

/* Sections General */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.section-title-center {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle-center {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-blue-icon {
    color: var(--color-blue);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.highlight-orange-icon {
    color: var(--color-orange);
    text-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-blue);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-blue-hover);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.12);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Overview Card specific */
.card-overview {
    display: flex;
    flex-direction: column;
}

.description-text {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.description-text strong {
    color: var(--color-text-white);
}

.goal-box {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.02) 100%);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
}

.goal-icon {
    font-size: 1.5rem;
    color: var(--color-blue);
    margin-top: 0.15rem;
}

.goal-content h3 {
    font-size: 1.1rem;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-thai);
}

.goal-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Preparation Card specific */
.card-prep {
    border-color: var(--border-orange);
    box-shadow: var(--shadow-orange);
}

.card-prep::before {
    background: var(--gradient-orange);
}

.card-prep:hover {
    border-color: var(--border-orange-hover);
    box-shadow: 0 12px 40px rgba(255, 106, 0, 0.12);
}

.prep-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prep-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-thai);
}

.description-text-small {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
}

.skill-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 0.25rem;
}

.skill-checklist li {
    font-size: 0.9rem;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.skill-checklist li i {
    color: var(--color-orange-light);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.prep-separator {
    height: 1px;
    background: rgba(255, 106, 0, 0.15);
    margin: 1.75rem 0;
}

.prep-hardware-software {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.prep-tag {
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.2);
    color: var(--color-text-white);
    font-family: var(--font-thai), var(--font-english);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.prep-tag:hover {
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 106, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.1);
}

.prep-tag i {
    color: var(--color-orange-light);
}

.warning-alert-small {
    background: rgba(255, 166, 0, 0.05);
    border: 1px solid rgba(255, 166, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.825rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.warning-alert-small i {
    color: #ffaa00;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.warning-alert-small span {
    color: var(--color-text-dim);
}

/* Registration Time */
.registration-time {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.03);
    transition: var(--transition-smooth);
}

.registration-time:hover {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 4px 25px rgba(0, 242, 254, 0.08);
    transform: translateY(-1px);
}

.registration-time i {
    color: var(--color-blue);
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.registration-time strong {
    color: var(--color-text-white);
    font-family: var(--font-english);
    font-size: 1.05rem;
}

/* Tabs */
.tab-container {
    display: inline-flex;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.4rem;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-dim);
    font-family: var(--font-thai);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--color-text-white);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #060913;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.tab-btn:nth-child(2).active {
    background: linear-gradient(135deg, #ff6a00 0%, #ff9300 100%);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    margin-top: 4rem;
}

.timeline-tab-content {
    display: none;
}

.timeline-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0, 242, 254, 0) 0%, 
        rgba(0, 242, 254, 0.3) 10%, 
        rgba(0, 242, 254, 0.3) 90%, 
        rgba(0, 242, 254, 0) 100%);
}

#afternoon-timeline .timeline-line {
    background: linear-gradient(to bottom, 
        rgba(255, 106, 0, 0) 0%, 
        rgba(255, 106, 0, 0.3) 10%, 
        rgba(255, 106, 0, 0.3) 90%, 
        rgba(255, 106, 0, 0) 100%);
}

.timeline-node {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.time-badge {
    width: 140px;
    text-align: right;
    padding-right: 2.5rem;
    font-family: var(--font-english);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue);
    padding-top: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

#afternoon-timeline .time-badge {
    color: var(--color-orange-light);
}

/* Node Dot on line */
.time-badge::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 22px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #060913;
    border: 3px solid var(--color-blue);
    box-shadow: 0 0 10px var(--color-blue);
    z-index: 2;
    transition: var(--transition-smooth);
}

#afternoon-timeline .time-badge::after {
    border-color: var(--color-orange);
    box-shadow: 0 0 10px var(--color-orange);
}

.timeline-node:hover .time-badge::after {
    transform: scale(1.3);
    background: var(--color-blue);
}

#afternoon-timeline .timeline-node:hover .time-badge::after {
    background: var(--color-orange);
}

/* Node Content Card */
.node-content {
    flex-grow: 1;
    margin-left: 2.5rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
}

.node-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.node-header h3 {
    font-family: var(--font-english);
    font-size: 1.25rem;
    color: var(--color-text-white);
}

.phase-tag {
    font-family: var(--font-english);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--color-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

#afternoon-timeline .phase-tag {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.25);
    color: var(--color-orange);
}

.intro-tag {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text) !important;
}

.buffer-tag {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
    color: #c084fc !important;
}

.finalize-tag {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
    color: #4ade80 !important;
}

.node-content p {
    font-size: 0.95rem;
    color: var(--color-text);
}

.node-details {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.node-details li {
    font-size: 0.9rem;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.node-details li i {
    font-size: 0.8rem;
    color: var(--color-blue);
    margin-top: 0.35rem;
}

#afternoon-timeline .node-details li i {
    color: var(--color-orange-light);
}

/* Lunch Break & Coffee Break */
.timeline-break {
    margin: 3.5rem 0;
}

.break-badge {
    padding-top: 0.75rem;
    color: var(--color-text-dim) !important;
}

.break-badge::after {
    border-color: var(--color-text-dim) !important;
    box-shadow: none !important;
}

.break-card {
    flex-grow: 1;
    margin-left: 2.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.break-card h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    font-family: var(--font-english);
}

.break-card p {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* Folder structure section styles */
.card-structure {
    border-color: var(--border-orange);
    box-shadow: var(--shadow-orange);
}

.card-structure::before {
    background: var(--gradient-orange);
}

.card-structure:hover {
    border-color: var(--border-orange-hover);
    box-shadow: 0 12px 40px rgba(255, 106, 0, 0.12);
}

/* Directory Tree Styling */
.directory-tree {
    background: rgba(5, 8, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.tree-root {
    color: var(--color-text-white);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tree-branch {
    padding-left: 1.5rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

.tree-item {
    color: var(--color-text-white);
    display: block;
    margin-bottom: 0.5rem;
}

.tree-item i {
    color: var(--color-orange-light);
    margin-right: 0.25rem;
}

.tree-sub-item {
    padding-left: 1.5rem;
    color: var(--color-text-dim);
    position: relative;
}

.tree-sub-item::before {
    content: '└─';
    color: rgba(255, 255, 255, 0.15);
    margin-right: 0.5rem;
}

.tree-sub-item i {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-right: 0.25rem;
}

.tree-sub-item .highlight-blue-icon {
    color: var(--color-blue);
}

.info-alert {
    background: rgba(255, 106, 0, 0.05);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.875rem;
}

.info-alert i {
    color: var(--color-orange);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.info-alert p {
    color: var(--color-text);
}

.info-alert strong {
    color: var(--color-text-white);
}

/* Post-course Review Steps Card */
.card-review {
    display: flex;
    flex-direction: column;
}

.review-steps {
    display: grid;
    gap: 1.25rem;
}

.step-card {
    background: rgba(5, 8, 16, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.step-card:hover {
    background: rgba(5, 8, 16, 0.6);
    border-color: rgba(0, 242, 254, 0.15);
    transform: translateX(5px);
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: #060913;
    font-family: var(--font-english);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.step-card:nth-child(even) .step-badge {
    background: var(--gradient-orange);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
}

.step-content h4 {
    font-size: 1rem;
    color: var(--color-text-white);
    margin-bottom: 0.25rem;
    font-family: var(--font-thai);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* Checklist Section styling */
.card-checklist {
    padding: 4rem;
}

.checklist-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checklist-icon {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.checklist-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-thai);
}

.checklist-header p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

.todo-list {
    display: grid;
    gap: 1rem;
}

.todo-item {
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: var(--transition-smooth);
}

.todo-item:hover {
    border-color: rgba(0, 242, 254, 0.15);
    background: rgba(5, 8, 16, 0.8);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    width: 100%;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: var(--transition-smooth);
}

.custom-checkbox i {
    font-size: 0.75rem;
    color: #060913;
    opacity: 0;
    transition: var(--transition-smooth);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ label .custom-checkbox {
    background: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ label .custom-checkbox i {
    opacity: 1;
}

.todo-text {
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ label .todo-text {
    color: var(--color-text-dim);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Sidebar and Main Layout Wrapper styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(6, 9, 19, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    transition: var(--transition-smooth);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.sidebar-header i {
    font-size: 1.5rem;
}

.sidebar-title {
    font-family: var(--font-english);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-thai);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dim);
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-white);
    padding-left: 1.5rem;
}

.menu-item.active {
    background: rgba(0, 242, 254, 0.06);
    color: var(--color-text-white);
    border-left-color: var(--color-blue);
    font-weight: 600;
    box-shadow: inset 5px 0 15px rgba(0, 242, 254, 0.03);
}

.menu-icon {
    font-size: 1.15rem;
    width: 24px;
    display: flex;
    justify-content: center;
    color: inherit;
    transition: var(--transition-smooth);
}

.menu-item.active .menu-icon {
    color: var(--color-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Submenu Styling */
.submenu {
    list-style: none;
    display: none; /* Hidden by default, toggled via JS */
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    transition: var(--transition-smooth);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-thai);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-dim);
    transition: var(--transition-smooth);
    border-left: 2px solid transparent;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-white);
    padding-left: 1.25rem;
}

.submenu-item.active {
    background: rgba(255, 106, 0, 0.05);
    color: var(--color-text-white);
    border-left-color: var(--color-orange);
    font-weight: 600;
}

.submenu-item.active .menu-icon {
    color: var(--color-orange-light);
    text-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
}

.menu-item.active-parent {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-white);
    border-left-color: rgba(255, 106, 0, 0.5);
}

/* Main Layout Wrapper */
.main-layout-wrapper {
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
    transition: var(--transition-smooth);
}

/* Course View Container */
.course-view {
    display: block;
    animation: fadeIn 0.8s ease-out;
}

.hidden-view {
    display: none !important;
}

/* Specific Course Themes for Placeholders */
.hero-course {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.basic-theme .glow-orb.basic-glow {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    opacity: 0.12;
}

.hud-theme .glow-orb.hud-glow {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #22c55e 0%, transparent 70%);
    opacity: 0.12;
}

.stardust-theme .glow-orb.stardust-glow {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    opacity: 0.12;
}

.highlight-green-icon {
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.highlight-purple-icon {
    color: #a855f7;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-green {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
    color: #060913;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dim) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-green:hover {
    transform: translateY(-3px);
    color: #060913;
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.35), 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-green:hover::before {
    opacity: 1;
}

.btn-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
    color: var(--color-text-white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-purple:hover {
    transform: translateY(-3px);
    color: #060913;
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.35), 0 0 15px rgba(255, 106, 0, 0.2);
}

.btn-purple:hover::before {
    opacity: 1;
}

/* Homepage Dashboard styles */
.home-theme .glow-orb.home-glow {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-blue) 0%, var(--color-orange) 100%);
    opacity: 0.12;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-blue);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition-smooth);
}

.portal-card h3 {
    font-family: var(--font-thai), var(--font-english);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.portal-card p {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: var(--transition-smooth);
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-thai);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-blue);
    transition: var(--transition-smooth);
}

/* Card Themes */
/* Basic AE */
.basic-card {
    border-color: rgba(0, 242, 254, 0.12);
}
.basic-card .card-icon-wrap {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--color-blue);
}
.basic-card::before {
    background: var(--gradient-blue);
}

/* Futuristic HUD */
.hud-card {
    border-color: rgba(34, 197, 94, 0.12);
    box-shadow: 0 8px 32px 0 rgba(34, 197, 94, 0.05);
}
.hud-card .card-icon-wrap {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.hud-card::before {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}
.hud-card .btn-card {
    color: #22c55e;
}

/* Stardust */
.stardust-card {
    border-color: rgba(168, 85, 247, 0.12);
    box-shadow: 0 8px 32px 0 rgba(168, 85, 247, 0.05);
}
.stardust-card .card-icon-wrap {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #a855f7;
}
.stardust-card::before {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
}
.stardust-card .btn-card {
    color: #a855f7;
}

/* Plexus */
.plexus-card {
    border-color: var(--border-orange);
    box-shadow: var(--shadow-orange);
}
.plexus-card .card-icon-wrap {
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.2);
    color: var(--color-orange);
}
.plexus-card::before {
    background: var(--gradient-orange);
}
.plexus-card .btn-card {
    color: var(--color-orange-light);
}

/* Hover effects */
.portal-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
}

.portal-card:hover::before {
    opacity: 1;
}

.portal-card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 15px currentColor;
}

.portal-card:hover .btn-card {
    padding-left: 0.5rem;
}

/* Responsive Grid for Portal */
@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Navigation / Auth Bar styling */
.auth-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(6, 9, 19, 0.55);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

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

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-english);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
}

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

.auth-widget {
    display: flex;
    align-items: center;
}

/* User Profile Widget */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.6rem 0.4rem 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.user-profile-card:hover {
    border-color: rgba(0, 242, 254, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--color-blue);
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.user-name {
    font-family: var(--font-thai);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-white);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-thai);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: rgba(255, 106, 0, 0.08);
    border-color: rgba(255, 106, 0, 0.4);
    color: var(--color-orange-light);
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.2);
    transform: translateY(-1px);
}

.btn-logout i {
    font-size: 0.8rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive auth bar styles */
@media (max-width: 768px) {
    .auth-bar {
        height: 70px;
    }
    .auth-logo .logo-text {
        display: none;
    }
    .user-name {
        display: none;
    }
    .user-profile-card {
        padding: 0.3rem;
        gap: 0.5rem;
    }
}

/* Footer styling */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    background: rgba(4, 6, 12, 0.9);
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-logo {
    font-family: var(--font-english);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-meta {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider {
    opacity: 0.2;
}

/* Download Buttons styling */
.download-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    animation: fadeInUp 1s var(--transition-smooth);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #060913;
    font-family: var(--font-thai);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.95rem 2.25rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Blue Button (Course Outline) */
.btn-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dim) 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-blue:hover {
    transform: translateY(-3px);
    color: #060913;
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.35), 0 0 15px rgba(255, 106, 0, 0.2);
}

.btn-blue:hover::before {
    opacity: 1;
}

/* Orange Button (Review Guide) */
.btn-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
    border: 1px solid rgba(255, 106, 0, 0.2);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.25);
}

.btn-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dim) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-orange:hover {
    transform: translateY(-3px);
    color: #060913;
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.35), 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-orange:hover::before {
    opacity: 1;
}

.btn-download i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.btn-download:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Video grid and card styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

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

.video-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-dim);
    text-align: center;
    padding: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.video-card:not(.locked) .video-locked-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-locked-overlay i {
    font-size: 2.25rem;
    color: var(--color-orange-light);
    text-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
    animation: bounce 3s infinite;
}

.video-locked-overlay p {
    font-family: var(--font-thai);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 200px;
    color: var(--color-text-white);
}

.video-card-info {
    padding: 1.25rem;
}

.video-card-info h4 {
    font-family: var(--font-thai), var(--font-english);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.video-card-info p {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Responsive styling */
@media (max-width: 1024px) {
    /* Responsive Layout for Portal */
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0;
        backdrop-filter: blur(25px);
        background: rgba(6, 9, 19, 0.95);
        z-index: 200;
    }
    
    .submenu {
        display: none !important;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-menu {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0;
        gap: 0;
    }
    
    .menu-item {
        flex: 1;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        border-radius: 0;
        border-left: none;
        border-top: 3px solid transparent;
        font-size: 0.75rem;
        text-align: center;
    }
    
    .menu-item:hover {
        background: transparent;
        padding-left: 0.25rem;
    }
    
    .menu-item.active {
        background: rgba(0, 242, 254, 0.03);
        border-left-color: transparent;
        border-top-color: var(--color-blue);
        box-shadow: none;
    }
    
    .menu-icon {
        font-size: 1.1rem;
        width: auto;
    }
    
    .menu-text {
        display: block;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
    
    .main-layout-wrapper {
        margin-left: 0;
        padding-bottom: 65px;
    }
    
    .auth-bar {
        padding-left: 0;
    }

    .main-title {
        font-size: 3.25rem;
    }
    
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-line {
        left: 28px;
    }
    
    .time-badge {
        width: auto;
        text-align: left;
        padding-right: 0;
        padding-left: 3.5rem;
        padding-top: 0;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .time-badge::after {
        left: 23px;
        top: 2px;
    }
    
    .timeline-node {
        flex-direction: column;
        margin-bottom: 3rem;
    }
    
    .node-content {
        margin-left: 3.5rem;
        padding: 1.25rem 1.5rem;
    }
    
    .break-card {
        margin-left: 3.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.15rem;
        margin-bottom: 3rem;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .prep-list {
        grid-template-columns: 1fr;
    }
    
    .card-checklist {
        padding: 2rem 1.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    .btn-download {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Custom Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.75);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-container {
    width: 90%;
    max-width: 480px;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid var(--border-blue);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.15);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transform: scale(1) translateY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden-modal .modal-container {
    transform: scale(0.9) translateY(20px);
}

@keyframes modalAppear {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.modal-title-icon {
    font-size: 1.8rem;
    color: var(--color-orange);
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

/* Theme adaptation for modal icon */
.theme-basic .modal-title-icon { color: var(--color-blue); text-shadow: 0 0 10px rgba(0, 242, 254, 0.4); }
.theme-hud .modal-title-icon { color: #22c55e; text-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.theme-stardust .modal-title-icon { color: #a855f7; text-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.theme-plexus .modal-title-icon { color: var(--color-orange); text-shadow: 0 0 10px rgba(255, 106, 0, 0.4); }

.theme-basic .modal-container { border-color: rgba(0, 242, 254, 0.3); box-shadow: 0 20px 50px rgba(0, 242, 254, 0.1); }
.theme-hud .modal-container { border-color: rgba(34, 197, 94, 0.3); box-shadow: 0 20px 50px rgba(34, 197, 94, 0.1); }
.theme-stardust .modal-container { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 20px 50px rgba(168, 85, 247, 0.1); }
.theme-plexus .modal-container { border-color: rgba(255, 106, 0, 0.3); box-shadow: 0 20px 50px rgba(255, 106, 0, 0.1); }

.modal-title {
    font-family: var(--font-thai), var(--font-english);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.modal-close-btn {
    position: absolute;
    right: -0.5rem;
    top: -0.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-text-white);
    transform: scale(1.1);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    font-family: var(--font-thai);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-dim);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-modal-primary {
    background: var(--gradient-blue);
    border: none;
    color: #04060c;
    font-family: var(--font-thai);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

/* Modal theme override for buttons */
.theme-hud .btn-modal-primary {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
    color: #fff;
}
.theme-hud .btn-modal-primary:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
.theme-stardust .btn-modal-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
    color: #fff;
}
.theme-stardust .btn-modal-primary:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}
.theme-plexus .btn-modal-primary {
    background: var(--gradient-orange);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.2);
    color: #fff;
}
.theme-plexus .btn-modal-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}


/* Glassmorphic Loading Overlay CSS */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-overlay.hidden-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 106, 0, 0.1);
    border-top: 3px solid var(--color-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}
.loader-text {
    font-family: var(--font-thai);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-white);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   New Video Playable Card & Theater Modal Styles
   ========================================================================== */

.playable-card {
    cursor: pointer;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    z-index: 2;
    transition: opacity 0.35s ease, background-color 0.35s ease;
}

.play-icon {
    font-size: 2.25rem;
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Offset to center the play triangle visually */
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover effects on cards */
.playable-card:hover .video-thumbnail {
    transform: scale(1.06);
}

.playable-card:hover .video-play-overlay {
    opacity: 1 !important;
    background-color: rgba(4, 6, 12, 0.3) !important;
}

.playable-card:hover .play-icon {
    transform: scale(1.15);
    background: var(--gradient-blue);
    border-color: rgba(0, 242, 254, 0.4);
    color: #060913;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* Match play icon hover color to course theme */
.theme-hud .playable-card:hover .play-icon {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #fff;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
}

.theme-stardust .playable-card:hover .play-icon {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.theme-plexus .playable-card:hover .play-icon {
    background: var(--gradient-orange);
    border-color: rgba(255, 106, 0, 0.4);
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.5);
}

/* Video Modal Overlay (Theater mode) */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay.hidden-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-modal-container {
    width: 95%;
    max-width: 1080px;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid var(--border-blue);
    box-shadow: 0 25px 60px rgba(0, 242, 254, 0.15);
    border-radius: 24px;
    padding: 2.25rem;
    position: relative;
    transform: scale(1) translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

.video-modal-overlay.hidden-modal .video-modal-container {
    transform: scale(0.92) translateY(20px);
}

.video-modal-close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.25rem;
    line-height: 1;
    z-index: 100;
}

.video-modal-close-btn:hover {
    color: var(--color-text-white);
    transform: scale(1.1) rotate(90deg);
}

.video-modal-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.video-modal-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-info {
    margin-top: 1.75rem;
    text-align: left;
}

.video-modal-info h3 {
    font-family: var(--font-thai), var(--font-english);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.video-modal-info p {
    font-family: var(--font-thai);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin-bottom: 1.75rem;
    max-height: 120px;
    overflow-y: auto;
}

.video-modal-actions {
    display: flex;
    justify-content: flex-start;
}

/* YouTube Action Button */
.btn-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: 1px solid rgba(255, 0, 0, 0.25);
    color: #ffffff;
    font-family: var(--font-thai), var(--font-english);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.btn-yt-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 0, 0, 0.45);
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
}

.btn-yt-link i {
    font-size: 1.15rem;
}

/* Theme Adaptation for Video Modal */
.theme-basic .video-modal-container { border-color: rgba(0, 242, 254, 0.35); box-shadow: 0 25px 60px rgba(0, 242, 254, 0.15); }
.theme-hud .video-modal-container { border-color: rgba(34, 197, 94, 0.35); box-shadow: 0 25px 60px rgba(34, 197, 94, 0.15); }
.theme-stardust .video-modal-container { border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 25px 60px rgba(168, 85, 247, 0.15); }
.theme-plexus .video-modal-container { border-color: rgba(255, 106, 0, 0.35); box-shadow: 0 25px 60px rgba(255, 106, 0, 0.15); }

@media (max-width: 768px) {
    .video-modal-container {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .video-modal-close-btn {
        right: 1rem;
        top: 0.5rem;
        font-size: 2rem;
    }
    
    .video-modal-info h3 {
        font-size: 1.15rem;
    }
    
    .video-modal-info p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-yt-link {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }
}



