/* =========================================================================
   Finowings shared content styles  (css/fw-content.css)
   One look for article content on every page:
     .fw-content      wrapper: headings, paragraphs, lists, internal links
     .fw-note         "quick answer" note, light yellow like a highlighted book note
     .fw-table-wrap   table (same as the "Which calculator should you use?" table)
     .fw-faq          FAQ (same as the locality pages, e.g. /stock-market-course-in-mahanagar/)
   Self-contained: needs no Bootstrap, jQuery or icon font. FAQ uses <details>.
   ========================================================================= */
.fw-content, .fw-faq {
    --fw-navy: #273158;
    --fw-gold: #cf9c0a;
    --fw-gold-d: #a87c00;   /* gold dark enough for text on white */
    --fw-blue: #1d4ed8;
    --fw-light: #f4fbfb;
    --fw-line: #e0f0f5;
    --fw-text: #333;
    --fw-note-bg: #fff8db;
    --fw-note-line: #f3c94d;
}

/* ---- Text rhythm ---- */
.fw-content { color: var(--fw-text); line-height: 1.7; text-align: left; }
.fw-content > :first-child { margin-top: 0; }
.fw-content h2 {
    margin: 40px 0 14px;
    color: var(--fw-navy);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.fw-content h3 {
    margin: 28px 0 10px;
    color: var(--fw-navy);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}
.fw-content h2 + h3 { margin-top: 16px; }
.fw-content p { margin: 0 0 14px; }
.fw-content ul, .fw-content ol { margin: 0 0 16px; padding-left: 1.4rem; }
.fw-content li { margin-bottom: 8px; }
.fw-content li:last-child { margin-bottom: 0; }

/* ---- Internal links: gold, blue on hover ---- */
.fw-content a, .fw-faq a {
    color: var(--fw-gold-d);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
    transition: color .15s ease;
}
.fw-content a:hover, .fw-content a:focus-visible,
.fw-faq a:hover, .fw-faq a:focus-visible { color: var(--fw-blue); }

/* ---- Note / quick answer ---- */
.fw-note {
    margin: 0 0 22px;
    padding: 16px 20px;
    background: var(--fw-note-bg);
    border-left: 4px solid var(--fw-note-line);
    border-radius: 0 10px 10px 0;
    color: #3a3220;
}
.fw-note p:last-child { margin-bottom: 0; }

/* ---- Formula box ---- */
.fw-formula {
    margin: 4px 0 14px;
    padding: 14px 18px;
    overflow-x: auto;
    background: #f4fbfb;
    border: 1px dashed #b9dbe6;
    border-radius: 10px;
    color: #273158;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
}
.fw-formula sup { font-size: .7em; }
.fw-formula + p { color: #5a6478; font-size: .95rem; }

/* ---- Tables ---- */
.fw-table-wrap {
    margin: 6px 0 12px;
    overflow-x: auto;
    border: 1px solid var(--fw-line);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}
.fw-table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.fw-table th {
    padding: 12px 16px;
    background: var(--fw-navy);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    border: 0;
}
.fw-table td {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--fw-line);
    color: var(--fw-text);
}
.fw-table tbody tr:nth-child(even) td { background: var(--fw-light); }
.fw-table td[rowspan] { background: #fff !important; border-right: 1px solid var(--fw-line); font-weight: 600; vertical-align: middle; }
.fw-table-note { margin: 0 0 14px; color: #5a6478; font-size: 13px; }

/* ---- FAQ ---- */
.fw-faq { margin: 48px 0 8px; text-align: center; }
.fw-faq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--fw-note-line);
    border-radius: 999px;
    background: #fffaf0;
    color: var(--fw-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.fw-faq-kicker::before { content: "\25B2"; color: #1f9d55; font-size: 9px; }
.fw-faq > h2 {
    margin: 14px 0 0;
    color: var(--fw-navy);
    font-size: 2rem;
    font-weight: 700;
}
.fw-faq-box {
    margin: 18px auto 0;
    max-width: 880px;
    padding: 40px;
    background: #e9f9ff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
    text-align: left;
}
.fw-faq details {
    margin-bottom: 14px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
    transition: box-shadow .3s, transform .3s;
}
.fw-faq details:last-child { margin-bottom: 0; }
.fw-faq details:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.fw-faq summary {
    position: relative;
    display: block;
    padding: 18px 56px 18px 22px;
    border-left: 6px solid var(--fw-gold);
    color: var(--fw-navy);
    cursor: pointer;
    list-style: none;
}
.fw-faq summary::-webkit-details-marker { display: none; }
.fw-faq summary h3 { margin: 0; color: inherit; font-size: .98rem; font-weight: 600; line-height: 1.5; }
.fw-faq summary::after {        /* chevron */
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}
.fw-faq details[open] summary { background: var(--fw-navy); color: #fff; }
.fw-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.fw-faq summary:focus-visible { outline: 2px solid var(--fw-blue); outline-offset: -2px; }
.fw-faq-answer { padding: 18px 22px 20px 28px; color: #000; font-size: .95rem; line-height: 1.75; }
.fw-faq-answer p:last-child { margin-bottom: 0; }

@media (max-width: 767.98px) {
    .fw-content h2 { margin-top: 32px; font-size: 1.35rem; }
    .fw-content h3 { font-size: 1.1rem; }
    .fw-faq > h2 { font-size: 1.6rem; }
    .fw-faq-box { padding: 22px 14px; border-radius: 18px; }
    .fw-faq summary { padding: 16px 48px 16px 16px; }
    .fw-faq-answer { padding: 14px 16px 16px 20px; }
}
