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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e3a8a;
    background-color: #fefefe;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Learning Progress Indicator */
.learning-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.progress-item.active {
    opacity: 1;
}

.progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-item.active .progress-number {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e3a8a;
}

.progress-item span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chapter Navigation */
.chapter-navigation {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-tab:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.nav-tab.active {
    background: #1e3a8a;
    color: white;
}

.nav-tab svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.chapter-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.chapter-content.active {
    display: block;
}

.chapter-header {
    text-align: center;
    margin-bottom: 60px;
}

.chapter-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
}

.chapter-intro {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: 40px;
}

/* Timeline Section */
.timeline-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker svg {
    width: 16px;
    height: 16px;
    color: #f59e0b;
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Key Insights */
.key-insights h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.insight-cards {
    display: grid;
    gap: 20px;
}

.insight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.insight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.insight-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.insight-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.insight-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Barrier Analysis */
.barrier-analysis h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 30px;
    text-align: center;
}

.statistic-highlight {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    border: 1px solid #f59e0b;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.stat-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-top: 8px;
}

.barrier-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.barrier-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.barrier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.barrier-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.barrier-icon.cost {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.barrier-icon.expertise {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.barrier-icon.psychology {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.barrier-icon.organizational {
    background: linear-gradient(135deg, #10b981, #059669);
}

.barrier-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.barrier-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.barrier-card > p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.barrier-details ul {
    list-style: none;
    padding: 0;
}

.barrier-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.barrier-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Hedging Types */
.hedging-types {
    display: grid;
    gap: 40px;
}

.hedging-type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hedging-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.type-header {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.type-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.type-icon svg {
    width: 32px;
    height: 32px;
    color: #f59e0b;
}

.type-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.type-title p {
    opacity: 0.8;
    font-size: 1rem;
}

.type-content {
    padding: 30px;
}

.definition h4,
.characteristics h4,
.example h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.definition p,
.characteristics p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.characteristics ul {
    list-style: none;
    padding: 0;
}

.characteristics li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #6b7280;
}

.characteristics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.example-scenario {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
}

.example-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.label {
    font-weight: 500;
    color: #374151;
}

.value {
    font-weight: 600;
    color: #1e3a8a;
}

.layered-strategy {
    margin-top: 16px;
}

.layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.period {
    font-weight: 500;
    color: #374151;
}

.coverage {
    font-weight: 600;
    color: #1e3a8a;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    gap: 30px;
}

.strategy-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.strategy-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.strategy-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.strategy-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.strategy-title p {
    opacity: 0.9;
    font-size: 1rem;
}

.strategy-content {
    padding: 30px;
}

.strategy-overview {
    margin-bottom: 30px;
}

.strategy-overview p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1.1rem;
}

.implementation-steps h4,
.hedge-ratios h4,
.option-strategies h4,
.natural-approaches h4,
.dynamic-components h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

.ratio-category {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ratio-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    min-width: 80px;
    text-align: center;
}

.ratio-badge.conservative {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ratio-badge.balanced {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ratio-badge.selective {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ratio-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.ratio-details p {
    color: #6b7280;
    font-size: 14px;
}

.option-type,
.approach,
.component {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.option-type h5,
.approach h5,
.component h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.option-type p,
.approach p,
.component p {
    color: #6b7280;
    line-height: 1.6;
}

/* Implementation Phases */
.implementation-phases {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.phase-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.phase-header {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.phase-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.phase-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.phase-content {
    padding: 30px;
}

.module,
.assessment-step,
.policy-element,
.system-element,
.execution-step {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.module h4,
.assessment-step h4,
.policy-element h4,
.system-element h4,
.execution-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.module p,
.assessment-step p,
.policy-element p,
.system-element p,
.execution-step p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.module ul {
    list-style: none;
    padding: 0;
}

.module li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #6b7280;
}

.module li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Getting Started Checklist */
.getting-started {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.getting-started h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 40px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.checklist-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
    text-align: center;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #f8fafc;
    border-color: #f59e0b;
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checklist-item span:not(.checkmark) {
    color: #374151;
    line-height: 1.5;
    font-size: 14px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-message h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-message p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .learning-progress {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chapter-header h2 {
        font-size: 2rem;
    }
    
    .chapter-intro {
        font-size: 1.125rem;
    }
    
    .barrier-categories,
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .type-header,
    .strategy-header,
    .phase-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .example-details {
        grid-template-columns: 1fr;
    }
    
    .ratio-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .step {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .learning-progress {
        gap: 8px;
    }
    
    .progress-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .progress-item span {
        font-size: 10px;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .nav-tab svg {
        width: 16px;
        height: 16px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .chapter-header {
        margin-bottom: 40px;
    }
    
    .chapter-header h2 {
        font-size: 1.75rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
        width: 24px;
        height: 24px;
    }
    
    .timeline-marker svg {
        width: 12px;
        height: 12px;
    }
    
    .type-header,
    .strategy-header,
    .phase-header {
        padding: 20px;
    }
    
    .type-content,
    .strategy-content,
    .phase-content {
        padding: 20px;
    }
    
    .getting-started {
        padding: 30px 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-tab:focus,
.checklist-item:focus,
.progress-item:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .chapter-navigation,
    .footer {
        display: none;
    }
    
    .chapter-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .strategy-card,
    .hedging-type-card,
    .phase-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

