/* Learning System Section Styles - Clean Flow Design */
.explanation-section {
    background: white;
    padding: 60px 40px;
    margin: 60px 0;
    position: relative;
    font-family: 'SUSE', monospace;
}

.explanation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'SUSE', monospace;
}

.explanation-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 50px;
}

/* Learning Flow - 3 Column Layout */
.learning-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    width: 100%;
    min-height: 200px;
}

/* Ensure all steps have equal width */
.learning-flow .flow-step {
    flex: 1;
    max-width: calc(33.333% - 15px);
    min-width: 0;
}

/* Individual Flow Steps */
.flow-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: visible; /* Changed from hidden to visible */
    width: 100%; /* Ensure full width */
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1ABC9C, #16a085);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    text-align: left;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-meta span {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.step-arrow {
    font-size: 2rem;
    color: #1ABC9C;
    font-weight: bold;
    margin: 0 10px;
    flex-shrink: 0;
    align-self: flex-start; /* Changed from center to flex-start to align with H3s */
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    width: 40px;
    height: 40px;
    padding-top: 8px; /* Add padding to align with H3 baseline */
}

/* Platform Compatibility Note */
.platform-note {
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.platform-icon {
    font-size: 1.5rem;
}

.platform-text {
    flex: 1;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.platform-text em {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Structured Advancement Section */
.advancement-section {
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid #1ABC9C;
    text-align: center;
}

.advancement-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.advancement-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center; /* Center the description under the title */
}

.advancement-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.advancement-item {
    font-size: 1rem;
    color: #1ABC9C;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .explanation-section {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .explanation-title {
        font-size: 2rem;
    }
    
    .explanation-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .learning-flow {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .learning-flow .flow-step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .step-meta {
        align-items: center;
    }
    
    .platform-note {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .platform-icon {
        font-size: 1.2rem;
    }
    
    .advancement-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .advancement-title {
        font-size: 1.5rem;
    }
    
    .advancement-description {
        font-size: 1rem;
    }
    
    .advancement-meta {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .explanation-section {
        padding: 30px 15px;
    }
    
    .explanation-title {
        font-size: 1.8rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .advancement-section {
        padding: 15px;
    }
    
    .advancement-title {
        font-size: 1.3rem;
    }
    
    .step-meta span {
        font-size: 0.85rem;
    }
}
