/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.7;
}

/* ===== NAVIGATION ===== */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: relative;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.nav-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-img {
    max-width: 80px;
    height: auto;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-content p {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 24px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    margin-top: 48px;
    margin-bottom: 24px;
}

.article-content strong {
    color: #1a202c;
    font-weight: 600;
}

.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.inline-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    max-width: 900px;
    margin: 60px auto;
}

.video-intro {
    text-align: center;
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 24px;
}

.video-container {
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Transcript Toggle */
.transcript-toggle-container {
    text-align: center;
    margin-top: 16px;
}

.transcript-toggle {
    background: transparent;
    border: none;
    color: #718096;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.transcript-toggle:hover {
    color: #4a5568;
}

.toggle-arrow {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.transcript-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.transcript-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.transcript-content.active {
    max-height: 2000px;
    transition: max-height 0.3s ease-in;
}

.transcript-text {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.transcript-text p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.transcript-text p:last-child {
    margin-bottom: 0;
}

.transcript-text em {
    color: #718096;
}

/* ===== CURRICULUM SECTION ===== */
.curriculum-section {
    margin: 80px 0;
}

.curriculum-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 16px;
}

.curriculum-intro {
    text-align: center;
    color: #718096;
    font-size: 1.125rem;
    margin-bottom: 48px;
}

/* ===== TRACKS GRID (EQUALIZER LAYOUT) ===== */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Individual Track Column */
.track-column {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.track-header {
    background: #667eea;
    color: white;
    padding: 20px;
    text-align: center;
    cursor: default;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.track-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.track-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.track-levels {
    padding: 0;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    flex: 1;
}

/* Level Section */
.level-section {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.level-section:last-child {
    border-bottom: none;
}

.level-header {
    background: #f7fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.level-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.level-duration {
    display: none;
}

.modules-list {
    padding: 0;
    flex: 1;
}

/* Module Item */
.module-item {
    border-bottom: 1px solid #e2e8f0;
}

.module-item:last-child {
    border-bottom: none;
}

.module-button {
    width: 100%;
    text-align: left;
    background: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px; /* Fixed height for perfect alignment */
}

.module-button:hover {
    background: #f7fafc;
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 0.9375rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.4;
}

.module-number {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.expand-arrow {
    color: #a0aec0;
    font-size: 0.875rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.module-button.active .expand-arrow {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.module-content.active {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.module-objectives {
    padding: 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.module-objectives h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-objectives ul {
    margin-left: 20px;
}

.module-objectives li {
    font-size: 0.9375rem;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== CTA BOXES ===== */
.cta-box {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 60px auto;
    max-width: 700px;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.7;
}

.cta-box p:last-child {
    margin-bottom: 0;
}

.cta-note {
    font-size: 1rem;
    color: #718096;
    font-style: italic;
    margin-top: 16px;
}

.cta-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    margin: 24px 0 16px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.cta-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.cta-box-secondary {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 24px;
    margin: 40px auto;
    max-width: 700px;
}

.cta-box-secondary p {
    font-size: 1.125rem;
    color: #2d3748;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

/* ===== ARTICLE FOOTER ===== */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MAIN FOOTER ===== */
.main-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: #f7fafc;
}

.footer-content p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
    color: #a0aec0;
}

/* ===== TABLET RESPONSIVE (3 columns) ===== */
@media (max-width: 1200px) {
    .tracks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBILE RESPONSIVE (1 column) ===== */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-content {
        justify-content: flex-start;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 20px 32px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 1.125rem;
    }

    .nav-link:hover {
        background: #f7fafc;
        text-decoration: none;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1.0625rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 36px;
    }

    .curriculum-section h2 {
        font-size: 1.75rem;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Mobile: Track headers become collapsible */
    .track-header {
        cursor: pointer;
        position: relative;
        min-height: auto;
        padding: 20px 50px 20px 20px;
    }

    .track-header::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        transition: transform 0.2s;
    }

    .track-header.collapsed::after {
        transform: translateY(-50%) rotate(-90deg);
    }

    .track-levels {
        max-height: 5000px;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .track-levels.collapsed {
        max-height: 0;
        transition: max-height 0.3s ease-in;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .cta-box h3 {
        font-size: 1.25rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1.125rem;
        padding: 14px 36px;
    }

    .cta-box-secondary p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 32px 16px;
    }

    .nav-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .cta-box {
        padding: 24px 20px;
    }
}
