/* =========================================================
   TOPIC DETAIL PAGES — SHARED STYLES
   Used by: magnification-guided-precision.html,
            treat-only-whats-needed.html, and future
            "why choose us" detail pages.
========================================================= */

.topic-hero {
    padding: 72px 24px 60px;
    background: #FAF7F0;
    text-align: center;
}

.topic-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #12213F;
    border: 3px solid #C9A227;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.topic-hero-img {
    max-width: 320px;
    margin: 0 auto 8px;
}

.topic-hero-img img {
    display: block;
    width: 100%;
    height: auto;
}

.topic-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #C9A227;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.topic-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    font-weight: 600;
    color: #12213F;
    margin: 0 0 18px;
}

.topic-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #202223;
}

.topic-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px 20px;
}

.topic-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #12213F;
    margin: 0 0 16px;
}

.topic-body p {
    font-size: 15.5px;
    line-height: 1.85;
    color: #202223;
    margin: 0 0 24px;
}

.topic-points {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    gap: 16px;
}

.topic-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #E9E4D8;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(18, 33, 63, 0.04);
}

.topic-points .point-mark {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EFE6C8;
    color: #8A6D0E;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-points strong {
    display: block;
    color: #12213F;
    font-size: 15px;
    margin-bottom: 4px;
}

.topic-points span {
    font-size: 14px;
    color: #202223;
    line-height: 1.6;
}

.topic-compare {
    background: #12213F;
    border-radius: 14px;
    padding: 36px 40px;
    margin: 0 0 48px;
    color: #ffffff;
}

.topic-compare h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 18px;
    color: #E7CB6B;
}

.topic-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.topic-compare-col h4 {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9AA4BD;
    margin: 0 0 10px;
    font-weight: 700;
}

.topic-compare-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #D9DEEB;
}

.topic-compare-img {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 48px;
    border: 1px solid #E9E4D8;
}

.topic-compare-img img {
    display: block;
    width: 100%;
    height: auto;
}

.topic-photo {
    margin: 0 0 48px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E9E4D8;
    box-shadow: 0 8px 30px rgba(18, 33, 63, 0.06);
}

.topic-photo img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.topic-photo-caption {
    font-size: 12.5px;
    color: #9AA4BD;
    text-align: center;
    margin-top: 10px;
}

.topic-back-link {
    display: inline-block;
    margin: 0 0 36px;
    font-size: 14px;
    color: #C9A227;
    text-decoration: none;
    font-weight: 600;
}

.topic-back-link:hover {
    text-decoration: underline;
}

/* =========================================================
   FAQ ACCORDION (JS-driven, see topic-detail.js)
========================================================= */

.topic-faq {
    margin: 0 0 48px;
    border-top: 1px solid #E9E4D8;
}

.faq-item {
    border-bottom: 1px solid #E9E4D8;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 4px;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #12213F;
}

.faq-icon {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #EFE6C8;
    color: #8A6D0E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: #C9A227;
    color: #12213F;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
}

.faq-item[aria-expanded="true"] .faq-answer {
    padding: 0 4px 20px;
}

.faq-answer p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #6B7280;
    margin: 0;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .topic-hero h1 {
        font-size: 32px;
    }

    .topic-hero-img {
        max-width: 220px;
    }

    .topic-compare-grid {
        grid-template-columns: 1fr;
    }

    .topic-compare {
        padding: 28px 24px;
    }

    .topic-photo img {
        height: 240px;
    }

}
