/* ================= INTERVIEW ANSWER PAGE ================= */

.answer-page {
    background:
            radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 32%),
            radial-gradient(circle at bottom right, rgba(99,102,241,0.12), transparent 34%),
            var(--bg);
}

.answer-hero {
    padding: 34px 0 18px;
}

.answer-hero-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    background:
            radial-gradient(circle at top right, rgba(56,189,248,0.22), transparent 36%),
            rgba(255,255,255,0.07);
    border: 1px solid rgba(125,211,252,0.18);
    box-shadow: 0 22px 60px rgba(0,0,0,0.26);
}

.answer-hero-card h1 {
    margin: 12px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 900;
    color: #ffffff;
}

.answer-hero-card p {
    max-width: 900px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.75;
}

.back-link-professional {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #7dd3fc !important;
    background: rgba(56,189,248,0.10);
    border: 1px solid rgba(56,189,248,0.22);
    font-weight: 900;
    text-decoration: none;
}

.back-link-professional:hover {
    background: #38bdf8;
    color: #06111f !important;
}

.topic-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #38bdf8 !important;
    background: rgba(56,189,248,0.14);
    border: 1px solid rgba(56,189,248,0.28);
    font-size: 0.86rem;
    font-weight: 900;
}

.answer-layout {
    padding: 18px 0 54px;
}

.answer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
}

.interview-answer {
    min-width: 0;
    padding: 36px;
    border-radius: 28px;
    background: rgba(15,23,42,0.90);
    border: 1px solid rgba(125,211,252,0.18);
    box-shadow: 0 20px 55px rgba(0,0,0,0.24);
}

.answer-content {
    color: #e2e8f0;
    font-size: 1.03rem;
    line-height: 1.86;
}

.answer-content h1,
.answer-content h2,
.answer-content h3,
.answer-content h4 {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.25;
}

.answer-content h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 4px solid #38bdf8;
    font-size: 1.48rem;
}

.answer-content h3 {
    margin-top: 26px;
    color: #38bdf8;
    font-size: 1.2rem;
}

.answer-content p,
.answer-content li {
    color: #cbd5e1;
}

.answer-content ul,
.answer-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-content strong,
.answer-content b {
    color: #ffffff;
}

.answer-content a {
    color: #7dd3fc;
    font-weight: 800;
    text-decoration: underline;
}

.answer-content blockquote,
.answer-content .info-box,
.answer-content .success-box,
.answer-content .warning-box {
    margin: 20px 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(56,189,248,0.10);
    border: 1px solid rgba(56,189,248,0.22);
    color: #cbd5e1;
}

.answer-content pre {
    max-width: 100%;
    margin: 22px 0;
    padding: 20px;
    border-radius: 18px;
    overflow-x: auto;
    background: #020617;
    border: 1px solid rgba(125,211,252,0.18);
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.answer-content code {
    font-family: Consolas, Monaco, monospace;
}

.answer-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    border-collapse: collapse;
    border-radius: 16px;
}

.answer-content th,
.answer-content td {
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid rgba(125,211,252,0.18);
    color: #cbd5e1;
}

.answer-content th {
    color: #ffffff;
    background: rgba(56,189,248,0.16);
    font-weight: 900;
}

.answer-side-card {
    position: sticky;
    top: 112px;
    padding: 22px;
    border-radius: 24px;
    background:
            radial-gradient(circle at top right, rgba(56,189,248,0.16), transparent 40%),
            rgba(255,255,255,0.07);
    border: 1px solid rgba(125,211,252,0.18);
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.answer-side-card h4 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

.side-link {
    display: block;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #7dd3fc !important;
    background: rgba(56,189,248,0.10);
    border: 1px solid rgba(56,189,248,0.16);
    font-weight: 900;
    text-decoration: none;
}

.side-link:hover {
    background: #38bdf8;
    color: #06111f !important;
}

/* LIGHT MODE */

body.light .answer-page {
    background:
            radial-gradient(circle at top left, rgba(2,132,199,0.10), transparent 32%),
            #f8fafc;
}

body.light .answer-hero-card,
body.light .interview-answer,
body.light .answer-side-card {
    background: #ffffff;
    border-color: rgba(2,132,199,0.16);
    box-shadow: 0 16px 36px rgba(15,23,42,0.08);
}

body.light .answer-hero-card h1,
body.light .answer-side-card h4,
body.light .answer-content h1,
body.light .answer-content h2,
body.light .answer-content h4,
body.light .answer-content strong,
body.light .answer-content b {
    color: #0f172a !important;
}

body.light .answer-hero-card p,
body.light .answer-content,
body.light .answer-content p,
body.light .answer-content li {
    color: #334155 !important;
}

body.light .answer-content h3 {
    color: #0284c7 !important;
}

body.light .answer-content pre {
    background: #0f172a;
    color: #e2e8f0;
}

body.light .answer-content th {
    color: #0f172a;
    background: rgba(2,132,199,0.10);
}

body.light .answer-content td {
    color: #334155;
}

/* MOBILE */

@media (max-width: 991px) {
    .answer-shell {
        grid-template-columns: 1fr;
    }

    .answer-side-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .answer-hero {
        padding: 22px 0 12px;
    }

    .answer-hero-card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .answer-hero-card h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .answer-hero-card p {
        font-size: 0.93rem;
        line-height: 1.62;
    }

    .answer-layout {
        padding-top: 10px;
    }

    .interview-answer {
        padding: 20px 15px;
        border-radius: 22px;
    }

    .answer-content {
        font-size: 0.95rem;
        line-height: 1.74;
    }

    .answer-content h2 {
        font-size: 1.18rem;
        margin-top: 26px;
    }

    .answer-content h3 {
        font-size: 1.04rem;
    }

    .answer-content pre {
        padding: 14px;
        font-size: 0.82rem;
        border-radius: 14px;
    }

    .answer-content th,
    .answer-content td {
        padding: 10px;
        font-size: 0.86rem;
    }

    .answer-side-card {
        padding: 16px;
        border-radius: 18px;
    }

    .side-link {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
}

/* ===============================
   ADSENSE + SEO CONTENT VISIBILITY
================================ */

.answer-content {
    max-width: 100%;
    word-break: normal;
}

.answer-content p {
    margin-bottom: 18px;
}

.answer-content h2 {
    scroll-margin-top: 110px;
}

.answer-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 18px 0;
}

.answer-content table {
    background: rgba(255,255,255,0.03);
}

.answer-seo-box {
    margin-top: 34px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(56,189,248,0.09);
    border: 1px solid rgba(56,189,248,0.20);
}

.answer-seo-box h2 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
    color: #38bdf8;
    font-size: 1.35rem;
}

.answer-seo-box p {
    color: #cbd5e1;
    line-height: 1.8;
}

body.light .answer-seo-box {
    background: #f0f9ff;
    border-color: rgba(2,132,199,0.18);
}

body.light .answer-seo-box h2 {
    color: #075985 !important;
}

body.light .answer-seo-box p {
    color: #334155 !important;
}

/* Better mobile reading */
@media (max-width: 768px) {
    .answer-shell {
        display: block;
    }

    .answer-side-card {
        margin-bottom: 16px;
    }

    .answer-content h2 {
        font-size: 1.22rem;
        line-height: 1.35;
        margin-top: 26px;
    }

    .answer-content h3 {
        font-size: 1.08rem;
    }

    .answer-content p,
    .answer-content li {
        font-size: 0.96rem;
        line-height: 1.78;
    }

    .answer-seo-box {
        padding: 18px 15px;
        border-radius: 18px;
    }
}

.question-intro{
    max-width: 850px;
    margin-top: 14px;

    font-size: 1.02rem;
    line-height: 1.85;

    color: #cbd5e1;
    opacity: 0.95;
}

.question-intro strong{
    color: #38bdf8;
    font-weight: 700;
}

body.light .question-intro{
    color: #475569 !important;
}

body.light .question-intro strong{
    color: #0284c7 !important;
}

@media(max-width:768px){

    .question-intro{
        font-size:0.95rem;
        line-height:1.75;
    }
}