:root {
  --brand-orange: #A97C22; /* Map to gold */
  --brand-dark: #F8F6F0; /* Soft warm light background */
  --card-bg: #FFFFFF; /* Pure white for popping cards */
  --card-border: rgba(0, 0, 0, 0.08); /* Dark subtle line */
  --text-main: #171A1C; /* Dark, legible font */
  --text-muted: rgba(23, 26, 28, 0.65); /* Readable subtle text */
  --lab-bg: #FBF9F5; /* Light for Lab box */
  --lab-border: rgba(200, 158, 58, 0.3); /* Teal -> Gold border */
  
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --gold: #A97C22;
  --gold-light: #C89E3A;
}

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

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

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(200,158,58,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- 1. HERO SECTION (Updated for Left Align) --- */
.hero-section {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.hero-content-left {
    flex: 1;
    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: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
    animation: floatCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.quote-icon {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--brand-orange);
    opacity: 0.2;
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    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;
}

.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: 600;
    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 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 24px;
}
.cursive-subtitle::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brand-orange);
    display: block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
    margin: 10px 0 24px;
    color: var(--text-main);
    line-height: 1.1;
}

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

.hero-desc {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Schedule / Duration Info */
.hero-schedule {
    margin-bottom: 30px;
}

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

.schedule-label {
    color: var(--brand-orange);
    font-weight: 600;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    min-width: 140px;
}

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

.btn {
    padding: 12px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, background-color 0.2s;
    letter-spacing: 0.01em;
}

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

.btn-white {
    background-color: var(--text-main);
    color: #fff;
    border: 2px solid var(--text-main);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-transparent {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    font-weight: 500;
}

.btn-transparent:hover {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-main);
}

/* --- CURRICULUM SECTION --- */
#curriculum {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.section-heading {
    text-align: left;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 50px;
    color: var(--text-main);
}

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

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

/* --- ACCORDION / MODULE CARD STYLES --- */
.module-card-new {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.02);
}

.card-header {
    background-color: transparent;
    padding: 24px 28px;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.card-header:hover {
    background-color: var(--lab-bg);
}

.card-header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.toggle-icon {
    font-size: 12px;
    color: var(--brand-orange);
    transition: transform 0.3s ease;
}

/* Hidden Body */
.card-body {
    display: none;
    padding: 28px;
    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);
}

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

@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(280px, 1fr));
    gap: 15px 20px;
    list-style: none;
    margin-bottom: 25px;
}

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

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

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

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

.lab-content h4 {
    color: var(--brand-orange);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.lab-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* --- SIDE-BY-SIDE LAB LAYOUT --- */
.curriculum-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    position: relative;
}

.lab-sidebar {
    height: 100%;
}

.lab-sticky-content {
    position: sticky;
    top: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-sticky-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
    opacity: 0.5;
}

.lab-placeholder-text {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.lab-display-content {
    animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.lab-display-content h4 {
    color: var(--brand-orange);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.lab-display-content p {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.75;
}

.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;
    max-height: 100px;
    object-fit: contain;
    display: inline-block;
}

@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); }
}

/* --- PRICING SECTION --- */
.pricing-section {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 96px 0;
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.pricing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.price-left .promo-text {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.price-left .promo-text::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brand-orange);
    display: block;
}

.price-left h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    margin: 5px 0 16px;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.price-left p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
}

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

.btn-orange {
    background: var(--gold);
    color: #FFFFFF;
    border: none;
    padding: 12px 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.01em;
}

.btn-orange:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--card-border);
    background-color: var(--brand-dark);
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .curriculum-wrapper {
        grid-template-columns: 1fr;
    }
    .lab-sidebar {
        display: none;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .module-card-new .project-lab-box {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        cursor: pointer;
        min-height: 80px;
        justify-content: center;
        transition: all 0.3s ease;
        position: relative;
    }
    .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: 600;
        font-size: 13px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        animation: pulseText 2s infinite;
    }
    .module-card-new .project-lab-box.expanded {
        padding: 30px;
        background-color: var(--card-bg);
    }
    .module-card-new .project-lab-box.expanded>* {
        animation: fadeIn 0.5s ease-out;
    }
    .project-lab-box img {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    .hero-content-left {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-schedule {
        display: inline-block;
        text-align: left;
    }
    .hero-title {
        font-size: 38px;
    }
    .pricing-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
        padding: 64px 0;
    }
    .price-left .promo-text::before { display: none; }
    .price-right { text-align: center; }
}

@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); }
}

@media (min-width: 901px) {
    .module-card-new .project-lab-box {
        display: none;
    }
}