/* --- Global Reset & Dark Theme Variables --- */
:root {
    --brand-orange: #ff781e;
    /* Accent Orange */
    --brand-dark: #0a0a0a;
    /* Deepest Black (Background) */
    --card-bg: #161616;
    /* Slightly lighter for cards */
    --card-border: #262626;
    /* Subtle borders */
    --text-main: #f1f5f9;
    /* White-ish text */
    --text-muted: #94a3b8;
    /* Gray text */
    --lab-bg: #1e293b;
    /* Dark Slate for Lab box */
    --lab-border: #3b82f6;
    /* Bright Blue accent */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    /* Slightly wider for the split layout */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. HERO SECTION (Updated for Left Align) --- */
.hero-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    padding: 80px 0 80px;
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
    /* Prevents overflow if image is large */
}

/* Flex Container for Side-by-Side Layout */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    /* Default left align */
}

.hero-content-left {
    flex: 1;
    /* Takes available space */
    max-width: 600px;
}

.hero-image-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quote Card Styles */
.quote-card-container {
    perspective: 1000px;
    width: 380px;
    max-width: 100%;
}

.quote-card {
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.quote-icon {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--brand-orange);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.quote-author-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
    /* Added margin to separate from text */
}

.quote-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-orange);
}

.quote-author {
    font-size: 0.9rem;
    color: var(--brand-orange);
    text-align: right;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }
}

/* Typography Updates */
.cursive-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #fff;
    margin-bottom: -10px;
    opacity: 0.9;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 10px 0 20px;
    color: var(--brand-orange);
    line-height: 1;
}

.hero-title .highlight {
    color: #fff;
}

.hero-desc {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Schedule / Duration Info */
.hero-schedule {
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.schedule-item {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.schedule-label {
    color: var(--brand-orange);
    font-weight: 700;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    min-width: 110px;
    /* Align values */
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start;
    /* Left align buttons */
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

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

.btn-white {
    background-color: white;
    color: black;
    border: 2px solid white;
}

.btn-transparent {
    background-color: transparent;
    color: white;
    border: 1px solid #555;
}

.btn-transparent:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Countdown Timer */
.countdown-wrapper {
    margin-top: 20px;
}

.countdown-label {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.date-highlight {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    /* Left align timer */
    font-family: monospace;
}

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

.time-box .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.time-box .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.separator {
    font-size: 2rem;
    color: #333;
    margin-top: -15px;
}

/* --- Responsive (Mobile Stack) --- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        /* Put text on top, or remove reverse to put image top */
        text-align: center;
        gap: 30px;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-actions,
    .countdown-timer {
        justify-content: center;
        /* Center align on mobile */
    }

    /* Fix schedule alignment on mobile */
    .hero-schedule {
        display: inline-block;
        text-align: left;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 3.5rem;
        /* Smaller title on mobile */
    }

    .hero-logo {
        width: 250px;
        /* Smaller logo on mobile */
    }
}

/* --- 2. CURRICULUM SECTION --- */
#curriculum {
    padding: 60px 20px;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

.highlight-text {
    color: var(--brand-orange);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- ACCORDION / MODULE CARD STYLES --- */
.module-card-new {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s;
}

.module-card-new:hover {
    border-color: #404040;
}

.card-header {
    background-color: #202020;
    padding: 15px 25px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.card-header:hover {
    background-color: #2a2a2a;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

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

/* Hidden Body */
.card-body {
    display: none;
    padding: 25px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Active State */
.module-card-new.active .card-body {
    display: block;
}

.module-card-new.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--brand-orange);
}

.module-card-new.active .card-header {
    border-bottom: 1px solid var(--card-border);
}

.module-card-new:not(.active) .card-header {
    border-bottom: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Topic List */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 20px;
    list-style: none;
    margin-bottom: 25px;
}

.topic-grid li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.topic-grid li::before {
    content: "•";
    color: var(--brand-orange);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Project Lab Box */
.project-lab-box {
    background-color: var(--lab-bg);
    border-left: 4px solid var(--lab-border);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.lab-icon {
    font-size: 1.5rem;
}

.project-lab-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.lab-content h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.lab-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

/* --- 3. PRICING SECTION --- */
.pricing-section {
    background-color: #050505;
    color: white;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
}

.pricing-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-left .promo-text {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.price-left h2 {
    font-size: 1.8rem;
    margin: 5px 0;
    color: #fff;
}

.price-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-right {
    text-align: right;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 10px;
}

.price-tag .currency {
    font-size: 1.5rem;
}

.price-tag .old-price {
    font-size: 1rem;
    color: #525252;
    text-decoration: line-through;
    margin-left: 10px;
}

.btn-orange {
    background-color: var(--brand-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-orange:hover {
    background-color: #ff781e;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #525252;
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
    background-color: #000;
}

/* --- 4. NEW: SIDE-BY-SIDE LAB LAYOUT --- */

/* Wrapper for Timeline + Sidebar */
.curriculum-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    position: relative;
}

/* Sidebar (Right Column) */
.lab-sidebar {
    height: 100%;
}

.lab-sticky-content {
    position: sticky;
    top: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    /* Ensure some height even if empty */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Placeholder State */
.lab-placeholder-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

/* The Animated Lab Content Wrapper in Sidebar */
.lab-display-content {
    animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

/* Reuse / Enhance Lab Box Styles for Sidebar */
.lab-display-content h4 {
    color: var(--brand-orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    line-height: 1.4;
}

.lab-display-content p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

.lab-feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    text-align: center;
    animation: popIcon 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lab-feature-icon img {
    max-width: 100px;
    /* Reasonable max size for the icon */
    max-height: 100px;
    object-fit: contain;
    display: inline-block;
}

/* Keyframes */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popIcon {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    80% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .curriculum-wrapper {
        grid-template-columns: 1fr;
    }

    .lab-sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    /* Stack topics vertically */
    .topic-grid {
        grid-template-columns: 1fr;
    }

    /* Re-show the internal lab box on mobile only */
    .module-card-new .project-lab-box {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Interactive Mobile State */
        cursor: pointer;
        min-height: 80px;
        justify-content: center;
        transition: all 0.3s ease;
        position: relative;
    }

    /* Collapsed State: Hide children & Show Teaser */
    .module-card-new .project-lab-box:not(.expanded)>* {
        display: none;
    }

    .module-card-new .project-lab-box:not(.expanded)::after {
        content: "View Project Lab ↘";
        color: var(--brand-orange);
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        animation: pulseText 2s infinite;
    }

    /* Expanded State: Animate In */
    .module-card-new .project-lab-box.expanded {
        padding: 30px;
        background-color: #1e293b;
        /* Ensure contrast */
    }

    .module-card-new .project-lab-box.expanded>* {
        animation: fadeIn 0.5s ease-out;
    }

    /* Adjust image size for stacked layout */
    .project-lab-box img {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
}

@keyframes pulseText {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* HIDE the lab box inside the modules list on DESKTOP */
@media (min-width: 901px) {
    .module-card-new .project-lab-box {
        display: none;
    }
}