/* Contextual study links — MCQ pages (top) and interview Q&A pages (footer) */
.mcq-related-links {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6fc 100%);
    border: 1px solid rgba(0, 89, 156, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 89, 156, 0.06);
}

.mcq-related-links-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e76f00;
}

.mcq-related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.mcq-related-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mcq-related-card:hover {
    border-color: #e76f00;
    box-shadow: 0 6px 16px rgba(0, 89, 156, 0.12);
    transform: translateY(-2px);
    color: #1a252f;
}

.mcq-related-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
}

.mcq-related-tutorial .mcq-related-icon {
    background: rgba(0, 89, 156, 0.12);
    color: #e76f00;
}

.mcq-related-qa .mcq-related-icon {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}

.mcq-related-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mcq-related-text strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 600;
}

.mcq-related-text span:last-child {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: #e76f00;
}

.mcq-related-qa .mcq-related-text span:last-child {
    color: #1e7e34;
}

.mcq-related-mcq .mcq-related-icon {
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.mcq-related-mcq .mcq-related-text span:last-child {
    color: #6f42c1;
}

.mcq-related-links--footer {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.mcq-related-links--cross-lang.mcq-related-links--footer {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.mcq-related-lang-c .mcq-related-icon {
    background: rgba(0, 89, 156, 0.12);
    color: #00599c;
}

.mcq-related-lang-c .mcq-related-text span:last-child {
    color: #00599c;
}

.mcq-related-lang-cpp .mcq-related-icon {
    background: rgba(0, 48, 99, 0.12);
    color: #003063;
}

.mcq-related-lang-cpp .mcq-related-text span:last-child {
    color: #003063;
}

.mcq-related-lang-python .mcq-related-icon {
    background: rgba(55, 118, 171, 0.15);
    color: #3776ab;
}

.mcq-related-lang-python .mcq-related-text span:last-child {
    color: #3776ab;
}

@media (max-width: 576px) {
    .mcq-related-links-grid {
        grid-template-columns: 1fr;
    }
}
