/* Variables */
:root {
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    /* Emerald Green */
    --accent-red: #ef4444;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.text-yellow {
    color: #f59e0b;
}

.text-blue {
    color: #3b82f6;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

/* Typography Highlights */
.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.btn-massive {
    padding: 20px 40px;
    font-size: 1.3rem;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-left: 15px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.course-badge {
    display: inline-block;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.hero-stats i {
    color: var(--secondary-color);
}

.countdown-text {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.countdown-text span {
    color: var(--accent-red);
    font-family: monospace;
    font-size: 1.1rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Hero Media */
.hero-image {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    border: 6px solid var(--bg-white);
}

.video-wrapper img {
    width: 100%;
    transform: scale(1.02);
    transition: var(--transition);
}

.video-wrapper:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.video-wrapper:hover .play-btn {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    z-index: 2;
}

.top-right {
    top: -20px;
    right: -20px;
}

.bottom-left {
    bottom: -20px;
    left: -20px;
}

/* Pain Points */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pain-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.icon-box.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.icon-box.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.pain-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.pain-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Curriculum Accordion */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 30px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Arbitrary large max-height */
    padding: 0 30px 25px;
}

.accordion-content ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.accordion-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.accordion-content i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.badge-free {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: auto;
}

.lock-text {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.lock-text i {
    color: var(--primary-color);
}

/* Instructor Section */
.instructor-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.instructor-img img {
    border-radius: 16px;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
}

.instructor-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.instructor-info .bio {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievements li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.achievements i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}

.review-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.student-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.student-info h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.student-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pricing / Checkout */
.pricing-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.pricing-content {
    padding: 60px;
    background: white;
}

.pricing-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.pricing-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.includes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.includes i {
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.pricing-action {
    background: var(--bg-light);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--border-color);
}

.price-box {
    text-align: center;
    margin-bottom: 30px;
}

.original-price {
    display: block;
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.current-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    color: var(--text-dark);
}

.current-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.current-price .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.limit-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Animations */
.float-anim {
    animation: float 4s ease-in-out infinite;
}

.float-anim-reverse {
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero p.hero-desc {
        margin: 0 auto 30px;
    }

    .floating-card {
        display: none;
        /* Hide floating cards on smaller screens */
    }

    .instructor-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .instructor-img {
        max-width: 400px;
        margin: 0 auto;
    }

    .instructor-info {
        text-align: center;
    }

    .achievements {
        align-items: center;
    }

    .pricing-card {
        grid-template-columns: 1fr;
    }

    .pricing-action {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-container>.btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .pain-points-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-content {
        padding: 0 20px;
    }

    .pricing-content {
        padding: 40px 30px;
    }

    .pricing-action {
        padding: 40px 30px;
    }
}