:root {
    --primary-color: #1B4332;
    /* Verde Selva Profundo */
    --primary-hover: #081C15;
    --secondary-color: #2D6A4F;
    --accent-color: #74C69D;
    --whatsapp-color: #25D366;
    --bg-light: #F0F7F4;
    --bg-white: #FFFFFF;
    --text-dark: #081C15;
    --text-muted: #495057;
    --border-color: #D8F3DC;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 10px 30px -12px rgba(27, 67, 50, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

/* Header CEPRALAB */
.lab-header {
    background: var(--bg-white);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.lab-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.lab-logo span {
    color: var(--secondary-color);
}

.search-bar-container {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--text-muted);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-top {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.progress-pill {
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
}

.progress-bar-container {
    width: 100px;
    height: 6px;
    background: #DEE2E6;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Main Layout */
.lab-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.lab-sidebar {
    background: var(--bg-white);
    border-right: 2px solid var(--border-color);
    padding: 30px 20px;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ADB5BD;
    margin-bottom: 20px;
    padding-left: 10px;
}

.lesson-nav {
    list-style: none;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    padding-left: 20px;
}

.nav-link.active {
    background: var(--bg-light);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.nav-link i {
    margin-top: 4px;
    font-size: 18px;
    color: #CED4DA;
}

.nav-link.active i {
    color: var(--secondary-color);
}

.nav-link.completed i {
    color: #10B981;
}

.nav-info .title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-info .meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    font-size: 13px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Area */
.lab-content {
    padding: 60px 0;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Multimedia Blocks */
.content-section {
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-color);
    color: #1B4332;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.intro-text {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.image-container {
    margin: 30px 0;
    text-align: center;
}

.img-desktop-70 img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

@media (min-width: 450px) {
    .img-desktop-70 img {
        max-width: 100% !important;
        display: block;
        margin: 0 auto;
        width: auto !important;
        /* Override width: 75% */
    }
}

.image-caption {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Utilidades de ancho de imagen responsive */
.img-w-100 {
    width: 100%;
    height: auto;
    display: block;
}

.img-w-75 {
    width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .img-w-75 {
        width: 100%;
    }
}

/* Video Player Styles */
.video-container {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button {
    background: rgba(255, 255, 255, 0.95);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 32px;
    color: var(--primary-color);
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.video-caption {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    margin-top: 15px;
}

/* Animations & Transitions */
.audio-card,
.whatsapp-task,
.placeholder-box,
.nav-link,
.highlight-info,
.video-container {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audio-card:hover,
.whatsapp-task:hover,
.highlight-info:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -15px rgba(27, 67, 50, 0.2);
}

/* Placeholder Styling */
.placeholder-box {
    background: #E9ECEF;
    border: 2px dashed #CED4DA;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin: 30px 0;
    color: #6C757D;
    text-align: center;
}

.placeholder-box:hover {
    background: #DEE2E6;
    border-color: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.placeholder-box i {
    font-size: 40px;
    margin-bottom: 15px;
}

.placeholder-box span {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Audio Block */
.audio-card {
    background: #f0fdf4;
    color: var(--text-dark);
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 40px 0;
    transition: var(--transition);
    border: 1px solid #dcfce7;
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(27, 67, 50, 0.1);
}

.audio-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #166534;
}

.audio-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #166534;
}

.audio-info p {
    font-size: 14px;
    color: #374151;
}

.audio-player-container {
    margin-left: auto;
    flex-grow: 1;
    max-width: 400px;
    padding-left: 20px;
}

.audio-element {
    width: 100%;
    height: 40px;
}

/* Whatsapp Task Block */
.whatsapp-task {
    background: #E9FCEF;
    border: 2px dashed var(--whatsapp-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    text-align: center;
}

.whatsapp-icon {
    font-size: 48px;
    color: var(--whatsapp-color);
    margin-bottom: 20px;
}

.whatsapp-task h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #075E54;
}

.whatsapp-task p {
    margin-bottom: 30px;
    color: #128C7E;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* Footer Navigation */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.nav-prev {
    text-decoration: none;
    color: #6B7280;
    font-weight: 600;
}

.nav-next {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

/* Landing Page Layout */
.landing-grid {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 0 20px;
}

/* Hero Landing */
.hero-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-body {
    padding: 40px;
}

.category-tag {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.hero-body h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.stats-bar {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Sidebar Details */
.sidebar-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.price-tag {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.includes-list {
    list-style: none;
    margin: 25px 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
}

.share-links a {
    text-decoration: none;
    color: inherit;
}

.instructor-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    z-index: 10;
}

.instructor-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.instructor-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #DEE2E6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
}

/* Sections */
.landing-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.landing-section h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.objective-item {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.objective-item i {
    color: var(--secondary-color);
    margin-top: 4px;
}

/* Curriculum Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-item.upcoming {
    opacity: 0.7;
}

.accordion-header {
    padding: 20px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
}

.accordion-header.disabled {
    cursor: default;
}

.accordion-header .meta-tag {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 700;
}

.accordion-content {
    background: white;
    padding: 10px 0;
}

.content-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--bg-light);
}

.content-link:hover {
    background: var(--bg-light);
}

/* Footer Global */
.site-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 40px;
}

.newsletter-input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex: 1;
}

/* === L1.2 Styles - Tablas y Timeline === */
.table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.lab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.lab-table thead {
    background-color: var(--primary-color);
    color: white;
}

.lab-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.lab-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.lab-table tbody tr:hover {
    background-color: var(--bg-light);
}

.lab-table td {
    padding: 15px;
    vertical-align: top;
    color: var(--text-dark);
}

.partes-cell strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.afectacion-list {
    margin: 0;
    padding-left: 18px;
}

/* Timeline del Conflicto */
.timeline-container {
    position: relative;
    padding: 40px 0;
    margin: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: 70px;
    width: 6px;
    background: linear-gradient(to bottom, #4a9c60, #8bc34a, #ff9800, #ff5722, #9c27b0);
    border-radius: 3px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    margin-left: 60px;
}

.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    flex-direction: row;
}

.timeline-card {
    width: 100%;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background-color: white;
    position: relative;
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-dot {
    position: absolute;
    left: -30px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    border: 4px solid;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.step-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Colores Timeline */
.timeline-item:nth-child(1) .timeline-card {
    border-top: 5px solid #4a9c60;
    background-color: #f1f8e9;
}

.timeline-item:nth-child(1) .timeline-dot {
    border-color: #4a9c60;
}

.timeline-item:nth-child(1) .step-number {
    background-color: #4a9c60;
}

.timeline-item:nth-child(2) .timeline-card {
    border-top: 5px solid #8bc34a;
    background-color: #f7faf2;
}

.timeline-item:nth-child(2) .timeline-dot {
    border-color: #8bc34a;
}

.timeline-item:nth-child(2) .step-number {
    background-color: #8bc34a;
}

.timeline-item:nth-child(3) .timeline-card {
    border-top: 5px solid #ff9800;
    background-color: #fffaf0;
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: #ff9800;
}

.timeline-item:nth-child(3) .step-number {
    background-color: #ff9800;
}

.timeline-item:nth-child(4) .timeline-card {
    border-top: 5px solid #ff5722;
    background-color: #fff5f2;
}

.timeline-item:nth-child(4) .timeline-dot {
    border-color: #ff5722;
}

.timeline-item:nth-child(4) .step-number {
    background-color: #ff5722;
}

.timeline-item:nth-child(5) .timeline-card {
    border-top: 5px solid #9c27b0;
    background-color: #faf5ff;
}

.timeline-item:nth-child(5) .timeline-dot {
    border-color: #9c27b0;
}

.timeline-item:nth-child(5) .step-number {
    background-color: #9c27b0;
}

/* Action Guide Styles */
.action-guide {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.action-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px;
}

.action-header {
    margin-bottom: 30px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.action-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.action-item:hover {
    background: white !important;
    border-color: currentColor !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.icon-circle {
    width: 45px;
    height: 45px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Colores Etapa 1 */
.etapa-1 .action-bar {
    background: #4a9c60;
}

.etapa-1 .badge {
    background: #e8f5e9;
    color: #4a9c60;
    margin-bottom: 10px;
}

.etapa-1 .action-item {
    background: #edf7f0;
}

.etapa-1 .action-item:hover {
    border-color: #4a9c60 !important;
}

.etapa-1 .icon-circle {
    background: #4a9c60;
}

/* Colores Etapa 2 */
.etapa-2 .action-bar {
    background: #8bc34a;
}

.etapa-2 .badge {
    background: #f1f8e9;
    color: #8bc34a;
    margin-bottom: 10px;
}

.etapa-2 .action-item {
    background: #f7faf2;
}

.etapa-2 .action-item:hover {
    border-color: #8bc34a !important;
}

.etapa-2 .icon-circle {
    background: #8bc34a;
}

.etapa-2 strong {
    color: #2c5530;
}


/* Responsive */
@media (max-width: 992px) {
    .lab-layout {
        grid-template-columns: 1fr;
    }

    .lab-sidebar {
        display: none;
    }

    .lab-header {
        padding: 0 20px;
    }

    h1 {
        font-size: 32px;
    }

    .landing-grid {
        grid-template-columns: 1fr;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lab-content {
        padding: 30px 0;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .audio-card {
        flex-direction: column;
        text-align: center;
    }

    .audio-player-container {
        margin-left: 0;
        padding-left: 0;
        max-width: 100%;
        margin-top: 15px;
        width: 100%;
    }

    /* Table Responsive */
    .table-container {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .lab-table thead {
        display: none;
    }

    .lab-table,
    .lab-table tbody,
    .lab-table tr,
    .lab-table td {
        display: block;
        width: 100%;
    }

    .lab-table tr {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: var(--shadow-md);
        padding: 10px;
    }

    .lab-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

    .lab-table td:last-child {
        border-bottom: none;
    }

    .lab-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: uppercase;
        font-size: 11px;
    }

    .lab-table td .afectacion-list {
        text-align: left;
        padding-left: 0;
        list-style-position: inside;
    }

    /* Timeline Responsive */
    .timeline-item {
        margin-left: 50px;
    }

    .timeline-line {
        left: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* === Landing Page Styles === */
.parallax-hero {
    height: 80vh;
    background-image: linear-gradient(rgba(80, 11, 63, 0.7), rgba(192, 5, 167, 0.5)), url('img/formacion.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-main {
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    margin-top: 20px;
    text-align: center;
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.section-intro {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-intro h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.text-block {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
}

.virdual-section {
    background: var(--bg-white);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.pillar-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pillar-card:hover {
    transform: translateY(-10px);
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pillar-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pillar-card h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stats-section {
    background: var(--secondary-color);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 16px;
    opacity: 0.8;
}

.course-preview {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card-v2 {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card-v2:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-v2-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-v2-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-v2-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-v2-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

@media (max-width: 900px) {
    .course-card-main {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

/* =========================================
   MODERN COURSE COMPONENTS (MODULE 2)
   ========================================= */

/* Typography Consistency */
h1 {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 45px 0 20px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 35px 0 15px;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-weight: 700;
}

.intro-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 30px;
    opacity: 0.9;
}

.text-content p,
.text-content li,
.lab-content p,
.lab-content li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.meta,
.badge {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Components */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.info-card {
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card.blue {
    background: #f0f9ff;
    border-color: #bee3f8;
}

.info-card.green {
    background: #f0fdf4;
    border-color: #c6f6d5;
}

.info-card.red {
    background: #fffcfc;
    border-color: #fed7d7;
}

.info-card.purple {
    background: #fdf4ff;
    border-color: #e9d8fd;
}

.info-card.amber {
    background: #fffbeb;
    border-color: #fef3c7;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(27, 67, 50, 0.15);
}

.case-box {
    border-left: 5px solid var(--secondary-color);
    padding: 20px 25px;
    background: white;
    border-radius: 0 16px 16px 0;
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
}

.case-box.alert {
    border-left-color: #ef4444;
}

.case-box.info {
    border-left-color: #3b82f6;
}

.impact-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.impact-banner i {
    font-size: 24px;
    color: #92400e;
}

.impact-banner p {
    margin: 0;
    color: #92400e;
    font-weight: 600;
}

.check-list-modern {
    list-style: none;
    padding: 0;
}

.check-list-modern li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    font-size: 16px;
    align-items: flex-start;
}

.check-list-modern i {
    color: #10b981;
    margin-top: 5px;
}

.check-list-modern i.fail {
    color: #ef4444;
}

/* Specific for Lesson 2.3 Role section */
.role-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.conclusion-text {
    font-size: 19px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    color: var(--text-dark);
}

.conclusion-highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-top: 20px;
}

/* Quiz Specific Styles (Unified from L3.1) */
.quiz-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 40px 0;
    border: 1px solid var(--border-color);
}

.quiz-question {
    margin-bottom: 30px;
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.question-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.options-list {
    list-style: none;
    padding: 0;
}

.option-item {
    margin-bottom: 12px;
}

.option-btn {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    border-color: var(--accent-color);
    background: white;
    transform: translateX(5px);
}

.option-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quiz-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-progress {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.results-container {
    text-align: center;
    display: none;
    animation: fadeIn 0.8s ease;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: 800;
}

.score-circle span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.result-message {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Project Cards (Unified from L3.2) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
}

.project-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-number {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}