/* ===================================================
   甫東科技 - 賴家榮講師網站
   2026 Premium Overhaul – Rose-Gold & Slate
   =================================================== */

:root {
    /* ── Curated Rose-Gold Palette ── */
    --primary: #C2506F;
    /* Muted rose – sophisticated, not flashy */
    --primary-light: #E8A0B5;
    /* Soft blush highlight */
    --primary-dark: #8B2547;
    /* Deep burgundy anchor */
    --accent: #D4A574;
    /* Warm gold – complementary accent */
    --accent-light: #F0D9C0;
    /* Champagne glow */

    /* ── Surfaces & Backgrounds ── */
    --bg-main: #FAF7F5;
    /* Warm off-white */
    --bg-dark: #1A1A2E;
    /* Deep navy-charcoal */
    --bg-section-alt: #F5F0ED;
    /* Subtle section alternation */
    --surface: #FFFFFF;
    --surface-soft: #FDF2EE;
    /* Warm blush tint */

    /* ── Text Hierarchy ── */
    --text-main: #2D2B3D;
    /* Rich near-black with warmth */
    --text-muted: #7A7589;
    /* Warm grey */
    --text-on-dark: #F5F0ED;

    /* ── Borders & Glass ── */
    --border: rgba(45, 43, 61, 0.08);
    --glass-border: rgba(255, 255, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 24px -4px rgba(26, 26, 46, 0.06), 0 4px 8px -4px rgba(26, 26, 46, 0.04);
    --shadow-lg: 0 20px 50px -12px rgba(26, 26, 46, 0.12);
    --shadow-glow: 0 8px 30px rgba(194, 80, 111, 0.15);

    /* ── Typography ── */
    --font-heading: 'Playfair Display', 'Noto Serif TC', serif;
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;
    --font-accent: 'Outfit', 'Noto Sans TC', sans-serif;

    /* ── Transitions ── */
    --transition: 0.4s cubic-bezier(0.2, 0, 0, 1);
}

/* ===== Smooth Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Typography Utilities ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ===== Buttons: Premium Interaction ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(190, 24, 93, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.08);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bg-dark);
    color: var(--bg-dark);
}

.btn-outline:hover {
    background: var(--bg-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Navbar: Floating Glassmorphism ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    height: 80px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    top: 10px;
    height: 70px;
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-link.active {
    color: #fff;
}

.nav-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .site-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-dark);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Toggle Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--bg-dark);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: #fff;
}

/* ===== Hero Section: Premium Slider ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Media (Image / Video) */
.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(26, 26, 46, 0.55) 0%,
            rgba(26, 26, 46, 0.25) 40%,
            rgba(26, 26, 46, 0.5) 70%,
            rgba(26, 26, 46, 0.85) 100%);
    z-index: 3;
}

/* Content Layer */
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0 5% 120px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-slide.active .hero-slide-title {
    animation: heroFadeUp 0.9s ease 0.2s both;
}

.hero-slide.active .hero-slide-subtitle {
    animation: heroFadeUp 0.9s ease 0.4s both;
}

.hero-slide.active .hero-slide-btn {
    animation: heroFadeUp 0.9s ease 0.6s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    max-width: 700px;
}

.hero-slide-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin-bottom: 32px;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(194, 80, 111, 0.25);
    transition: var(--transition);
}

.hero-slide-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(194, 80, 111, 0.35);
}

/* ===== Tech Micro-animations Layer ===== */
.hero-tech-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

/* Tech Grid */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    animation: gridBreathe 8s ease-in-out infinite;
}

@keyframes gridBreathe {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Scanline */
.tech-scanline {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(194, 80, 111, 0.05),
            rgba(194, 80, 111, 0.1),
            transparent);
    animation: scanlineMove 12s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(1100%);
    }
}

/* Geometric Elements */
.tech-obj {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 10px rgba(194, 80, 111, 0.3));
    animation: floatRotate 20s linear infinite;
}

.tech-hex-1 {
    top: 15%;
    left: 10%;
    font-size: 4rem;
    animation-duration: 25s;
}

.tech-hex-2 {
    bottom: 20%;
    right: 15%;
    font-size: 6rem;
    animation-duration: 35s;
    opacity: 0.1;
}

.tech-plus-1 {
    top: 30%;
    right: 10%;
    font-size: 2rem;
    animation-duration: 15s;
}

.tech-plus-2 {
    bottom: 40%;
    left: 15%;
    font-size: 1.5rem;
    animation-duration: 18s;
}

.tech-square-1 {
    top: 60%;
    right: 25%;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.tech-square-2 {
    bottom: 10%;
    left: 30%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes floatRotate {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, 15px) rotate(90deg);
    }

    50% {
        transform: translate(0, 30px) rotate(180deg);
    }

    75% {
        transform: translate(-15px, 15px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes particleBlink {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* Mobile Overrides for Tech Layer */
@media (max-width: 768px) {
    .tech-grid {
        background-size: 30px 30px;
        opacity: 0.15;
    }

    .tech-hex-2,
    .tech-square-2,
    .tech-plus-2 {
        display: none;
    }
}

/* Decorative Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 2;
    opacity: 0.4;
    transition: var(--transition);
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    bottom: -50px;
    left: -50px;
}

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 24px;
}

.hero-arrow-next {
    right: 24px;
}

/* Dot Navigation */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot.active {
    width: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border-color: var(--primary);
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}


/* Swiper Controls Navigation */
.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-light);
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    transform: scale(0.6);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary);
    transform: scale(0.7);
}

/* Slider Navigation — Removed since we are using fixed banner */
.slider-nav {
    display: none;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 60px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    writing-mode: vertical-lr;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Hero Visual & Floating Cards */
.hero-visual {
    position: relative;
    padding: 0;
}

.visual-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.hero-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.hero-avatar-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #1e293b;
}

.hero-avatar-name {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.hero-avatar-title {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 5;
    text-transform: uppercase;
}

.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(45, 212, 191, 0.2);
    z-index: 10;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-card i {
    font-size: 1.25rem;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.floating-card.c1 {
    top: -20px;
    left: -40px;
    animation: floatAnim1 6s ease-in-out infinite;
}

.floating-card.c2 {
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    animation: floatAnim2 7s ease-in-out infinite;
}

.floating-card.c3 {
    bottom: -20px;
    left: -20px;
    animation: floatAnim3 8s ease-in-out infinite;
}

.floating-card:hover {
    transform: scale(1.1) translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-rgb, 45, 212, 191), 0.4);
    z-index: 20;
}

@keyframes floatAnim1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -15px) rotate(2deg);
    }

    66% {
        transform: translate(-5px, -8px) rotate(-1deg);
    }
}

@keyframes floatAnim2 {

    0%,
    100% {
        transform: translate(0, -50%) rotate(0deg);
    }

    33% {
        transform: translate(-15px, -40%) rotate(-2deg);
    }

    66% {
        transform: translate(8px, -60%) rotate(1deg);
    }
}

@keyframes floatAnim3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-8px, -12px) rotate(2deg);
    }

    66% {
        transform: translate(12px, -18px) rotate(-2deg);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
    font-size: 1rem;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ===== Section Header Common ===== */
.section-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.section-tag {
    display: inline-block;
    padding: 10px 24px;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid rgba(194, 80, 111, 0.12);
    border-radius: var(--radius-full);
    font-family: var(--font-accent), sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(194, 80, 111, 0.06);
}

.section-title {
    font-size: 2.5rem;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--bg-dark);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== About Section: Story Focus ===== */
.about-section {
    padding: 180px 0 120px;
    background: #fff;
    position: relative;
}

/* ── Lecturer Photo ── */
.about-photo-col {
    position: sticky;
    top: 120px;
    align-self: start;
}

.lecturer-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lecturer-photo-frame {
    width: 100%;
    max-width: 360px;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(194, 80, 111, 0.25),
        0 0 0 4px rgba(194, 80, 111, 0.1);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 4px;
}

.lecturer-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: calc(var(--radius-lg) - 4px);
    display: block;
}

.lecturer-name-card {
    text-align: center;
    margin-top: 20px;
}

.lecturer-name-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.lecturer-name-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-content .expertise-card {
    margin-top: 32px;
}

.about-content .about-features {
    margin-top: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feat-item {
    background: var(--surface-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-feat-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(194, 80, 111, 0.08);
}

.about-feat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-feat-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-bio p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 24px;
}

.expertise-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(194, 80, 111, 0.1);
    box-shadow: 0 20px 40px -15px rgba(194, 80, 111, 0.08);
}

.expertise-card h3 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.expertise-tag {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.expertise-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(194, 80, 111, 0.1);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-feat-item {
    background: var(--surface-soft);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feat-item:hover {
    background: var(--bg-dark);
    color: #fff;
    transform: translateY(-5px);
}

.about-feat-item i {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary);
    filter: drop-shadow(0 4px 8px rgba(194, 80, 111, 0.2));
}

.about-feat-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* ===== Courses Grid: Premium Cards ===== */
.courses-section {
    padding: 120px 0;
    background: var(--bg-main);
}

.course-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.filter-btn {
    padding: 12px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.course-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.course-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
}

.course-footer .btn-primary {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(194, 80, 111, 0.2);
}

.course-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--surface-soft);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

/* ===== Materials: Modern List ===== */
.materials-section {
    padding: 120px 0;
    background: #fff;
}

.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(190, 24, 93, 0.08);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(190, 24, 93, 0.03);
}

.material-item:hover {
    background: var(--surface-soft);
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.mat-icon {
    font-size: 2rem;
    color: var(--primary);
}

.mat-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.mat-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Schedule: Exquisite Pink Edition ===== */
.schedule-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #fffafa 0%, #fdf2f8 100%);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 207, 232, 0.4) 0%, rgba(251, 207, 232, 0) 70%);
    filter: blur(80px);
    z-index: 0;
}

.schedule-section .section-title {
    color: var(--primary-dark);
}

.schedule-section .section-subtitle {
    color: var(--primary-dark);
    opacity: 0.8;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.schedule-card:nth-child(5n+1) {
    --card-pink: #C2506F;
    --card-pink-light: #FDF2F5;
}

.schedule-card:nth-child(5n+2) {
    --card-pink: #8B2547;
    --card-pink-light: #FDF2F4;
}

.schedule-card:nth-child(5n+3) {
    --card-pink: #D4A574;
    --card-pink-light: #FFF8F0;
}

.schedule-card:nth-child(5n+4) {
    --card-pink: #9B3A5A;
    --card-pink-light: #FDF4F7;
}

.schedule-card:nth-child(5n+5) {
    --card-pink: #B85C6F;
    --card-pink-light: #FDF2F5;
}

.schedule-card {
    --card-pink: var(--primary, #C2506F);
    --card-pink-light: #FDF2F5;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(190, 24, 93, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(190, 24, 93, 0.1);
    position: relative;
    overflow: hidden;
}

.schedule-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--card-pink);
    transition: 0.4s ease;
}

.schedule-card:hover::after {
    height: 100%;
}

.schedule-card:hover {
    background: #ffffff;
    transform: translateY(-12px) scale(1.02);
    border-color: var(--card-pink);
    box-shadow: 0 25px 50px -12px rgba(190, 24, 93, 0.2);
}

.sch-card-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--card-pink-light);
    border-radius: var(--radius-md);
    width: fit-content;
    border: 1px solid rgba(190, 24, 93, 0.05);
}

.sch-day {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--card-pink);
    line-height: 1;
}

.sch-month {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--card-pink);
    opacity: 0.8;
}

.sch-card-content h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 800;
    min-height: 3em;
}

.sch-card-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(190, 24, 93, 0.1);
}

.sch-meta-item i {
    color: var(--card-pink);
    width: 18px;
    font-size: 1rem;
}

.sch-card-action .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--card-pink), #db2777);
    box-shadow: 0 6px 15px rgba(190, 24, 93, 0.2);
}

.schedule-card:hover .btn {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.3);
}

/* ===== Schedule & Calendar: Exquisite Pink Edition ===== */
.calendar-section {
    padding: 120px 0;
    background: #fff;
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--surface-soft);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.calendar-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav h3 {
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-detail {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

#calDetailEmpty {
    text-align: center;
    padding: 40px 0;
}

#calDetailEmpty i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 20px;
}

#calDetailEmpty p {
    color: var(--text-muted);
}

/* ===== Contact: Minimal Forms ===== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(190, 24, 93, 0.08);
    border: 1px solid rgba(190, 24, 93, 0.1);
}

.contact-form {
    background: #fff;
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.1);
}

.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7589' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    background-color: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.1);
}

/* ===== Booking Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1c1c36;
    border: 1px solid rgba(194, 80, 111, 0.2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #e57d90;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.modal-header p,
#bookingModalInfo {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.modal .form-group label {
    color: #fff;
    font-weight: 700;
}

/* Modal form overrides */
.modal .contact-form {
    padding: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

@media (max-width: 600px) {
    .modal {
        padding: 28px 20px;
        max-height: 85vh;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* RWD General */
@media (max-width: 1400px) {

    .courses-grid,
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {

    .courses-grid,
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .courses-grid,
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {

    .courses-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px;
    }
}

/* ===== Footer ===== */
.site-footer {
    padding: 60px 0 24px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-links-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links-group a,
.footer-links-group p {
    display: block;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: var(--transition);
}

.footer-links-group a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
}

.footer-links-group p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group p i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 36px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-header h3 i {
    color: var(--primary-light);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
}

.chat-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 30px rgba(190, 24, 93, 0.5);
}

.chat-toggle-icon {
    font-size: 1.5rem;
}

.chat-toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: chatPulse 2s ease-out infinite;
}

@keyframes chatPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-toggle-label {
    position: absolute;
    right: 70px;
    background: var(--surface-2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: labelShow 0.3s ease;
}

.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transition: var(--transition);
    overflow: hidden;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    box-shadow: 0 4px 10px rgba(131, 24, 67, 0.2);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chat-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.chat-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-header span {
    font-size: 0.72rem;
    opacity: 0.85;
}

.chat-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: msgAppear 0.3s ease;
}

@keyframes msgAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.chat-message.assistant .chat-msg-avatar {
    background: rgba(13, 148, 136, 0.15);
    color: var(--primary-light);
}

.chat-message.user .chat-msg-avatar {
    background: rgba(249, 115, 22, 0.15);
    color: var(--secondary);
}

.chat-msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    line-height: 1.6;
}

.chat-message.assistant .chat-msg-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg-bubble small {
    display: block;
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.75rem;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===== Loading spinner for chat ===== */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: var(--surface-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.4s ease;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast i.toast-icon {
    font-size: 1.1rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo-col {
        position: static;
        display: flex;
        justify-content: center;
    }

    .lecturer-photo-frame {
        max-width: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .schedule-date-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 12px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .schedule-day {
        margin: 0;
    }

    .schedule-action {
        width: 100%;
    }

    .schedule-action .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 68px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== Calendar Section ===== */
.calendar-section {
    padding: 100px 0;
    position: relative;
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.calendar-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav-btn {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.calendar-month-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* Weekday headers */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-weekday:first-child {
    color: #f43f5e;
}

.calendar-weekday:last-child {
    color: var(--secondary);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 300px;
    /* 確保至少有高度 */
}

/* Day Cell - every cell clickable */
.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c !important;
    /* 強制深色 */
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* 微弱邊框輔助觀察 */
    padding: 10px 2px;
    min-height: 60px;
    gap: 5px;
    background: #ffffff;
    z-index: 5;
}

.calendar-day:hover {
    background: rgba(45, 212, 191, 0.06);
    border-color: rgba(45, 212, 191, 0.15);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.25;
    pointer-events: none;
}

.calendar-day.past-day {
    opacity: 0.5;
}

.calendar-day.past-day:hover {
    opacity: 0.75;
}

.calendar-day.today {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary-light);
    font-weight: 700;
    border-color: rgba(13, 148, 136, 0.35);
}

.calendar-day.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    transform: scale(1.05);
    z-index: 2;
}

.calendar-day.active .day-number {
    color: white;
}

.day-number {
    line-height: 1;
    font-size: 0.88rem;
}

/* AM/PM Slot Bars */
.day-slots {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.day-slot-bar {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    transition: var(--transition);
}

.day-slot-bar.slot-free {
    background: var(--primary-light);
    box-shadow: 0 0 6px rgba(13, 148, 136, 0.2);
}

.day-slot-bar.slot-busy {
    background: var(--secondary);
}

.day-slot-bar.slot-past {
    background: var(--text-muted);
    opacity: 0.4;
}

.calendar-day.active .day-slot-bar.slot-free {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.calendar-day.active .day-slot-bar.slot-busy {
    background: rgba(255, 255, 255, 0.5);
}

.calendar-day.active .day-slot-bar.slot-past {
    background: rgba(255, 255, 255, 0.35);
}

/* Legend */
.calendar-legend {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.legend-bar {
    width: 18px;
    height: 5px;
    border-radius: 3px;
}

.legend-bar-free {
    background: var(--primary);
    box-shadow: 0 0 4px rgba(13, 148, 136, 0.4);
}

.legend-bar-busy {
    background: var(--secondary);
}

.legend-bar-past {
    background: var(--text-muted);
    opacity: 0.4;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot-today {
    background: transparent;
    border: 2px solid var(--primary);
}

/* Calendar Detail Panel */
.calendar-detail {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.calendar-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}

.cal-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    border: 2px solid rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.cal-empty-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.5;
    animation: calPulse 2.5s ease-in-out infinite;
}

@keyframes calPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

.calendar-detail-empty h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.calendar-detail-empty p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.cal-empty-hint {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cal-empty-hint span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.cal-empty-hint i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* Detail Header */
.cal-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cal-detail-date-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.cal-detail-date-badge .cal-d-month {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1;
}

.cal-detail-date-badge .cal-d-day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.cal-detail-date-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.cal-detail-date-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Time Slot Card */
.cal-slot-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.cal-slot-card:hover {
    border-color: rgba(45, 212, 191, 0.2);
}

.cal-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(13, 148, 136, 0.04);
    border-bottom: 1px solid var(--border-light);
}

.cal-slot-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.cal-slot-label i {
    font-size: 0.8rem;
    color: var(--accent);
}

.cal-slot-status {
    font-size: 0.72rem;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cal-slot-status.slot-status-free {
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary-light);
}

.cal-slot-status.slot-status-busy {
    background: rgba(249, 115, 22, 0.12);
    color: var(--secondary);
}

.cal-slot-status.slot-status-past {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.cal-slot-body {
    padding: 14px 16px;
}

/* Slot - Available Body */
.cal-slot-free-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cal-slot-free-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.cal-slot-free-text i {
    font-size: 1.1rem;
}

.cal-slot-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.cal-slot-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    color: white;
}

/* Slot - Occupied Course Info */
.cal-slot-course {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.cal-slot-course::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--item-color, var(--secondary));
    border-radius: 3px 0 0 3px;
}

.cal-slot-course-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-slot-course-title i {
    font-size: 0.78rem;
}

.cal-slot-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.73rem;
    color: var(--text-secondary);
}

.cal-slot-course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cal-slot-course-meta i {
    font-size: 0.65rem;
    color: var(--primary-light);
}

.cal-slot-course-price {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

/* Slot - Past */
.cal-slot-past-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    opacity: 0.7;
}

.cal-slot-past-text i {
    font-size: 0.9rem;
}

/* ===================================================================
   FULL-SITE RESPONSIVE (RWD) BREAKPOINTS
   =================================================================== */

/* ===== Tablet & Below (max 1024px) ===== */
@media (max-width: 1024px) {

    /* -- Navbar -- */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        z-index: 1000;
        padding: 60px 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 14px 28px;
        color: #fff;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-cta {
        display: none;
    }

    /* -- Hero -- */
    .hero-slide-content {
        padding-bottom: 100px;
    }

    .hero-slide-title {
        font-size: 2.2rem;
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .hero-arrow {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .hero-arrow-prev {
        left: 20px;
    }

    .hero-arrow-next {
        right: 20px;
    }

    .hero-slide-subtitle {
        font-size: 1.05rem;
    }

    /* -- About -- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* -- Courses -- */
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* -- Schedule -- */
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    /* -- Contact -- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* -- Footer -- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* -- Gallery -- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ===== Mobile (max 768px) ===== */
@media (max-width: 768px) {

    /* -- Section padding -- */
    .about-section,
    .courses-section,
    .materials-section,
    .schedule-section,
    .contact-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* -- Hero mobile -- */
    .hero {
        min-height: auto;
        height: 100svh;
        height: 100vh;
        max-height: 100svh;
    }

    .hero-slide,
    .hero-slider {
        height: 100%;
    }

    .hero-slide-img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }

    .hero-container {
        padding: 100px 16px 80px;
        gap: 32px;
    }

    .hero-title {
        font-size: 2.2rem;
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .visual-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-avatar-name {
        font-size: 0.8rem;
        bottom: 25px;
        padding: 4px 12px;
    }

    .hero-avatar-title {
        font-size: 0.6rem;
        bottom: 8px;
    }

    .floating-card {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-slide-content {
        padding: 0 24px 110px;
        text-align: center;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .hero {
        height: 100vh;
        height: 100svh;
        min-height: auto;
    }

    .hero-slide-content {
        padding: 0 24px 110px;
        text-align: center;
    }

    .hero-slide-title {
        font-size: 2rem;
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .hero-arrow-prev {
        left: 12px;
    }

    .hero-arrow-next {
        right: 12px;
    }

    .hero-dots {
        bottom: 32px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-dot.active {
        width: 28px;
    }

    .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.40) 40%, rgba(15, 23, 42, 0.25) 70%, rgba(15, 23, 42, 0.50) 100%);
    }

    .hero-scroll-indicator {
        bottom: 16px;
    }

    /* -- About mobile -- */
    .about-grid {
        gap: 24px;
    }

    .about-photo-col {
        position: static;
        display: flex;
        justify-content: center;
    }

    .lecturer-photo-frame {
        max-width: 240px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 20px;
    }

    /* -- Calendar mobile -- */
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    /* -- Booking modal form grid -- */
    .modal [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* -- Courses mobile -- */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card {
        padding: 20px;
    }

    .course-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* -- Materials mobile -- */
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* -- Contact mobile -- */
    .contact-info-card {
        padding: 24px;
    }

    /* -- Forms mobile -- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-group-custom input,
    .form-group-custom select,
    .form-group-custom textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* -- Footer mobile -- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* -- Booking Modal -- */
    .booking-overlay .booking-content,
    .modal-content {
        width: 95%;
        max-width: 480px;
        padding: 20px;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* -- Chat Widget -- */
    .chat-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 70vh;
    }

    /* -- Schedule card -- */
    .schedule-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .schedule-date-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 16px;
        width: 100%;
        text-align: left;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        justify-content: flex-start;
    }
}

/* ===== Small Mobile (max 480px) ===== */
@media (max-width: 480px) {

    .hero {
        height: 100vh;
        height: 100svh;
        min-height: auto;
    }

    .hero-slide-content {
        padding: 0 20px 80px;
        text-align: center;
    }

    .hero-slide-title {
        font-size: 1.8rem;
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        line-height: 1.2;
    }

    .hero-slide-subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 24px;
    }

    /* -- Sections -- */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    /* -- About -- */
    .expertise-tags {
        gap: 6px;
    }

    .expertise-tag {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* -- Course card -- */
    .course-card {
        padding: 16px;
    }

    .course-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .course-title {
        font-size: 1.05rem;
    }

    /* -- Contact -- */
    .contact-info-card {
        padding: 16px;
    }

    .contact-social {
        gap: 8px;
    }

    /* -- Buttons -- */
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* -- Footer -- */
    .site-footer {
        padding: 40px 0 16px;
    }

    .footer-brand p {
        font-size: 0.8rem;
    }
}

/* ===== Calendar RWD ===== */
@media (max-width: 1024px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .calendar-detail {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .calendar-section {
        padding: 60px 0;
    }

    .calendar-wrapper {
        padding: 24px;
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .calendar-card,
    .calendar-detail {
        padding: 20px;
    }

    .hero-slide-content {
        padding: 0 24px 110px;
        text-align: center;
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .calendar-wrapper {
        padding: 16px;
        gap: 16px;
    }

    .hero-slide-title {
        font-size: 1.8rem;
    }
}

/* ===== Toast Notification System ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    min-width: 320px;
    max-width: 480px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    animation: toastSlideIn 0.4s ease;
}

.toast.success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.toast.error {
    background: linear-gradient(135deg, #dc2626, #f43f5e);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .toast {
        min-width: auto;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}