/* 
 * Kruton Online E-Learning Platform
 * Custom Styles
 */

/* ===== Global Styles ===== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

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

.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-5px);
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

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

/* ===== Modern Navbar ===== */
.nav-modern {
    padding: 0.75rem 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.nav-modern.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 12, 41, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.nav-brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-modern .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.nav-modern .nav-link:hover,
.nav-modern .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.08);
}

.nav-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-modern .nav-link:hover::after,
.nav-modern .nav-link.active::after {
    width: 60%;
}

/* Login Button */
.nav-login-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

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

.nav-login-btn::after {
    display: none !important;
}

/* User Avatar Button */
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.nav-user-btn::after {
    display: none !important;
}

/* Modern Dropdown */
.nav-dropdown-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease;
}

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

.nav-dropdown-modern .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-dropdown-modern .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.nav-dropdown-modern .dropdown-header {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Toggler */
.nav-modern .navbar-toggler {
    color: white;
    padding: 0.4rem 0.6rem;
}

.nav-modern .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Legacy navbar classes kept for other pages */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

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

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

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

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    color: white;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

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

.hero-slide .hero-badge,
.hero-slide .hero-title,
.hero-slide .hero-subtitle,
.hero-slide .d-flex {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active .hero-badge { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hero-slide.active .hero-title { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hero-slide.active .hero-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.hero-slide.active .d-flex { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.hero-slide.active .hero-visual { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

.hero-slide .hero-visual {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.hero-slider-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.hero-slider-dots {
    display: flex;
    gap: 0.75rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: white;
}

/* Slider Progress Bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}

.hero-slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== Modern Hero Section ===== */
.hero-modern {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.min-vh-hero {
    min-height: calc(100vh - 72px);
}

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

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #667eea;
    top: -100px;
    right: -100px;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    bottom: -50px;
    left: -50px;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #f093fb;
    top: 40%;
    left: 30%;
    animation: float-shape 12s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: #4facfe;
    bottom: 20%;
    right: 20%;
    animation: float-shape 9s ease-in-out infinite reverse;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #c4b5fd;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    background: linear-gradient(135deg, #667eea, #f093fb, #ffc107);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 4s ease infinite;
}

@keyframes gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-illustration i {
    font-size: 5rem;
    color: rgba(255,255,255,0.6);
}

.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-float-card i {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hero-float-card.card-1 {
    top: 15%;
    right: 10%;
    animation: float-card 6s ease-in-out infinite;
}

.hero-float-card.card-1 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hero-float-card.card-2 {
    bottom: 25%;
    left: 5%;
    animation: float-card 7s ease-in-out infinite 1s;
}

.hero-float-card.card-2 i {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.hero-float-card.card-3 {
    bottom: 10%;
    right: 15%;
    animation: float-card 5s ease-in-out infinite 0.5s;
}

.hero-float-card.card-3 i {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Modern Stats ===== */
.stats-modern {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-icon.purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card-icon.teal { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-card-icon.orange { background: linear-gradient(135deg, #f093fb, #f5576c); }

.stat-card-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #302b63, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== Section Headers ===== */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

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

.section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    color: #667eea;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Modern Category Cards ===== */
.category-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef0f5;
    height: 100%;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}

.category-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-card-icon {
    background: var(--cat-color);
    color: white;
    transform: scale(1.1);
}

.category-card-title {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.category-card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-card-link {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-card-link {
    color: #764ba2;
}

.category-card-link i {
    transition: transform 0.3s ease;
}

.category-card-modern:hover .category-card-link i {
    transform: translateX(5px);
}

/* ===== Modern Course Cards ===== */
.course-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef0f5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}

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

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

.course-card-modern:hover .course-card-img img {
    transform: scale(1.08);
}

.course-badge-free {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: color-mix(in srgb, var(--tag-color) 12%, transparent);
    color: var(--tag-color);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.course-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-card-title a:hover {
    color: #667eea;
}

.course-card-desc {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
}

.course-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eef0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-card-instructor {
    font-size: 0.85rem;
    color: #6c757d;
}

.course-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #302b63, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-card-price.free {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Feature Cards ===== */
.feature-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef0f5;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.feature-icon-wrap.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon-wrap.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.feature-icon-wrap.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }

.feature-card-modern h5 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.feature-card-modern p {
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* ===== Modern CTA ===== */
.cta-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes .cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    background: #f093fb;
    top: -100px;
    right: 10%;
}

.cta-shape-2 {
    width: 250px;
    height: 250px;
    background: #4facfe;
    bottom: -80px;
    left: 10%;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.cta-modern .btn-light {
    border-radius: 12px;
    font-weight: 600;
    color: #667eea;
    border: none;
    transition: all 0.3s ease;
}

.cta-modern .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-modern .btn-outline-light {
    border-radius: 12px;
    font-weight: 600;
    border-width: 2px;
}

.cta-modern .btn-outline-light:hover {
    transform: translateY(-3px);
}

/* ===== Scroll Reveal Animation ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy hero-section kept for other pages */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

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

/* ===== Course Card ===== */
.course-card {
    height: 100%;
    transition: var(--transition);
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
}

.course-card .card-footer {
    margin-top: auto;
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.1);
}

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

.course-price.free {
    color: var(--success-color);
}

/* ===== Star Rating ===== */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating i {
    font-size: 0.875rem;
}

/* ===== Progress Bar ===== */
.progress {
    height: 8px;
    border-radius: 1rem;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 1rem;
    background: var(--gradient-success);
}

/* ===== Badge ===== */
.badge {
    padding: 0.35em 0.75em;
    font-weight: 500;
    border-radius: 0.5rem;
}

/* ===== Form Controls ===== */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== Auth Pages ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 2rem 0;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem;
    text-align: center;
}

.auth-body {
    padding: 2rem;
}

/* ===== Dashboard ===== */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== Video Player ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
}

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

/* ===== Sidebar ===== */
.sidebar {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.lesson-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.lesson-item:hover {
    background: #f8f9fa;
}

.lesson-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.lesson-item.completed {
    border-left: 4px solid var(--success-color);
}

/* ===== Table ===== */
.table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* ===== Utilities ===== */
.text-muted {
    color: #6c757d !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

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

    .hero-visual {
        min-height: 300px;
    }

    .hero-card-stack {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-modern {
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 80px 0 100px;
    }

    .hero-slides {
        min-height: auto;
    }

    .hero-slide {
        padding: 80px 0 100px;
    }

    .hero-slider-controls {
        bottom: 20px;
    }

    .min-vh-hero {
        min-height: auto;
    }

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

    .hero-section {
        padding: 60px 0;
    }

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

    .cta-title {
        font-size: 1.75rem;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .btn-floating {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Mini Calendar ===== */
.mini-calendar .cal-table {
    font-size: 0.85rem;
}

.mini-calendar .cal-table th {
    padding: 0.4rem;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.75rem;
}

.mini-calendar .cal-table td {
    padding: 0.35rem;
}

.mini-calendar .cal-day {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: default;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.mini-calendar .cal-day.today {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.mini-calendar .cal-day.other-month {
    color: #ccc;
}

.mini-calendar .cal-day.has-course {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-weight: 600;
}

.mini-calendar .cal-day.today.has-course {
    background: var(--gradient-primary);
    color: white;
}

/* ===== PDPA Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
    animation: slideUpBanner 0.5s ease;
    backdrop-filter: blur(20px);
}

@keyframes slideUpBanner {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-consent-icon {
    font-size: 2rem;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-consent-text h6 {
    color: white;
}

.cookie-consent-text p {
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.cookie-link {
    color: #667eea;
    text-decoration: underline;
}

.cookie-link:hover {
    color: #f093fb;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
}

.cookie-btn-reject {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-content {
        flex-direction: column;
        align-items: center;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
