.topic-layout-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem 1.5rem;
}

.topic-navigation {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.topic-header {
    margin-bottom: 3rem;
}

.topic-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.topic-subtitle {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
}

/* Steps Styling */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--brand-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.step-content p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.55;
}

/* Modern Inline Links in Explanations */
.step-content p a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
    background-color: rgba(8, 187, 231, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.step-content p a:hover {
    color: #ffffff;
    background-color: var(--brand-color);
    transform: translateY(-1px);
}

/* Video Section */
.video-section {
    background: #f8fcfd;
    border: 1px solid #e0f2fe;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.video-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

@media (max-width: 640px) {
    .step-card {
        flex-direction: column;
        gap: 0.75rem;
    }
}