/* Learning Pathway Section - New Design */
/* ======================================================= */
.learning-pathway {
    background: var(--bg-primary);
    padding: clamp(3rem, 8vw, 5rem) 5%;
    position: relative;
}

.learning-pathway .section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pathway-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Learning Options */
.learning-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.option-btn i {
    font-size: 1.1rem;
}

.option-label {
    color: var(--primary);
}

.option-office {
    color: #1976d2;
    border-color: #1976d2;
}

.option-office:hover,
.option-office.active {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.option-children {
    color: #f57c00;
    border-color: #f57c00;
}

.option-children:hover,
.option-children.active {
    background: #f57c00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

/* Learning Phases */
.learning-phase {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--light-gray);
}

.phase-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.phase-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Course Details Sections */
.course-details-section {
    display: none;
}

.course-details-section.active {
    display: block;
}

#office {
    display: block;
}

#children {
    display: none;
}

.course-detail {
    background: var(--white);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--light-gray);
    overflow: hidden;
}

/* Course Header */
.course-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
}

.course-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
    min-width: 0;
}

.course-info h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--white);
    color: var(--primary);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--light-gray);
}

.course-badge i {
    color: var(--accent);
}

/* Expand Button - CRITICAL FOR LEARNING PATHWAY */
.expand-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expand-btn:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.expand-btn.expanded {
    color: var(--accent);
}

/* Rotate Animation for Learning Pathway */
.expand-btn i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
    display: inline-block;
    will-change: transform;
    backface-visibility: hidden;
}

.expand-btn.expanded i {
    transform: rotate(45deg);
}

/* Course Content */
.course-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--light-gray);
}

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

.course-features {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.course-features li {
    padding: 0.5rem 0;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.course-features li::before {
    content: "✓";
    color: var(--secondary);
    margin-right: 0.5rem;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Learning Outcomes */
.learning-outcome {
    background: var(--bg-accent);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent);
    font-size: 0.9rem;
    line-height: 1.5;
}

.learning-outcome strong {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .learning-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .option-btn {
        justify-content: center;
    }
    
    .learning-phase {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .phase-title {
        font-size: 1.3rem;
    }
    
    .course-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .course-icon {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .course-info h3 {
        font-size: 1.1rem;
    }
    
    .course-content {
        padding: 0 1rem 1rem;
    }
}

@media (min-width: 769px) {
    .learning-phase {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Layout for Learning Pathway */
@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .course-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
        align-self: flex-start;
    }
    
    .expand-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        align-self: flex-end;
        margin-top: -2.5rem;
    }
    
    .course-badge {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    
    .course-info {
        width: 100%;
        margin-top: 0.5rem;
    }
}