/* ════════════════════════════════════════════════════════════════════════════
   CGPA to GPA Calculator skin — CSS VERBATIM from Subash's cgpa-to-gpa-calculator.html
   comp (lines 11–1174). ALL rules scoped under body.single-calculator so nothing
   leaks into the Bricks header / footer chrome.
   Do NOT re-skin — fixes go through the comp first.
   Loaded on single `calculator` with slug `cgpa-to-gpa-calculator` by
   includes/calculator_styles.php (per-slug enqueue).

   ⚠ CSS SCOPING NOTES:
   - comp's :root { --token } block → body.single-calculator { --token } (NOT :root,
     NOT body.single-calculator :root — the latter selects nothing because :root is
     an ancestor of body).
   - html { scroll-behavior } kept global (html is an ancestor, cannot be scoped under body).
   - @keyframes kept global.
   - @media inner selectors scoped under body.single-calculator.
   - comp's :root inside @media (max-width:768px) → body.single-calculator inside that
     media query (same rule: tokens on scoped body, not :root).
   - comp .container max-width: 1920px — kept verbatim (parent constrains SEO sections).
   ════════════════════════════════════════════════════════════════════════════ */

body.single-calculator *, body.single-calculator *::before, body.single-calculator *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* tokens defined on the scoped body (not :root) so var(--*) resolves for the
   calc content via inheritance, without clashing with Bricks' own :root vars. */
body.single-calculator {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --primary: #3b5bff;
    --secondary: #cc00cc;
    --hero-bg: #13217c;
    --primary-hover: #13217c;
    --secondary-hover: #A60066;
    --bg-light: #e6ebff;
    --bg-mid: #a0aeff;
    --text-black: #333333;
    --text-gray: #808080;
    --text-white: #fff;
    --radius: 20px;
    --section-padding: 60px 0;
}

html { scroll-behavior: smooth; }

body.single-calculator {
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-black);
    min-height: 100vh;
}

/* TYPOGRAPHY */
body.single-calculator h1 { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 56px; }
body.single-calculator h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 600; line-height: 48px; color: var(--primary); }
body.single-calculator h3 { font-family: var(--font-heading); font-size: 30px; font-weight: 600; line-height: 40px; }
body.single-calculator h4 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; line-height: 34px; }
body.single-calculator h5 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 30px; }
body.single-calculator p { font-family: var(--font-body); font-weight: 400; color: var(--text-black); }
body.single-calculator .body-1 { font-size: 18px; line-height: 29px; }
body.single-calculator .body-2 { font-size: 16px; line-height: 26px; }
body.single-calculator .body-3 { font-size: 14px; line-height: 22px; }
body.single-calculator .text-center { text-align: center; }

/* LAYOUT */
body.single-calculator section { padding: var(--section-padding); display: flex; justify-content: center; }
body.single-calculator .section-title { font-size: 36px; font-weight: 600; line-height: 48px; color: var(--primary); margin-bottom: 15px; }
body.single-calculator .container { width: 100%; max-width: 1920px; padding: 0 80px; }

/* HERO */
body.single-calculator .hero-section { background: var(--hero-bg); padding: 60px 0; display: flex; justify-content: center; }
body.single-calculator .hero-inner { width: 100%; max-width: 1920px; padding: 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
body.single-calculator .hero-content h1 { color: var(--text-white); margin-bottom: 20px; }
body.single-calculator .hero-subtitle { font-size: 22px; font-family: var(--font-heading); font-weight: 400; color: var(--text-white); margin-bottom: 20px; line-height: 30px; }
body.single-calculator .hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
body.single-calculator .stat-item { text-align: left; }
body.single-calculator .stat-number { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 600; color: #a0aeff; display: block; }
body.single-calculator .stat-label { font-size: 13px; font-family: 'Inter', sans-serif; color: #8890c4; text-transform: uppercase; letter-spacing: 0.8px; }

/* BUTTONS */
body.single-calculator .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 12px 24px; font-family: var(--font-body); font-size: 18px;
    font-weight: 600; border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease; text-decoration: none; white-space: nowrap;
}
body.single-calculator .btn-primary { background: var(--primary); color: var(--text-white); width: 100%; }
body.single-calculator .btn-primary:hover { background: #13217c; }
body.single-calculator .btn-secondary { background: var(--secondary); color: var(--text-white); }
body.single-calculator .btn-secondary:hover { background: #A600A6; }
body.single-calculator .btn-ghost { background: transparent; color: #3b5bff; border: 2px solid #3b5bff; width: 100%; margin-top: 12px; }
body.single-calculator .btn-ghost:hover { background: #3b5bff; color: #fffdfe; }
body.single-calculator .btn-cta { background: var(--secondary); color: var(--text-white); width: 100%; margin-top: 16px; }
body.single-calculator .btn-cta:hover { background: #A600A6; }

/* HERO CALCULATOR */
body.single-calculator .hero-calc-card { background: #fff; border-radius: 40px; border: 8px solid var(--bg-light); padding: 30px; }
body.single-calculator .calc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
body.single-calculator .calc-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--bg-light); color: var(--primary); border-radius: 12px; flex-shrink: 0; }
body.single-calculator .calc-icon svg { width: 24px; height: 24px; color: var(--primary); }
body.single-calculator .hero-calc-card h3 { font-family: var(--font-heading); font-size: 22px; line-height: 30px; color: var(--text-black); margin-bottom: 0; font-weight: 600; }

/* FORM ELEMENTS */
body.single-calculator .form-group { margin-bottom: 20px; }
body.single-calculator .form-buttons { display: flex; gap: 16px; margin-top: 30px; }
body.single-calculator .form-buttons .btn { margin-top: 0; }
body.single-calculator .form-label { display: block; font-size: 14px; font-family: var(--font-heading); font-weight: 600; color: var(--text-black); margin-bottom: 8px; text-transform: uppercase; }
body.single-calculator .form-input, body.single-calculator .form-select {
    width: 100%; height: 60px; padding: 12px 16px; font-size: 16px;
    font-family: 'Inter', sans-serif; border: 1.5px solid #808080; border-radius: 10px;
    background: rgba(255, 255, 255, 0.1); color: #808080; transition: all 0.3s ease; cursor: pointer;
}
body.single-calculator .form-input::placeholder { color: rgba(255, 255, 255, 0.4); }
body.single-calculator .form-input:focus, body.single-calculator .form-select:focus { outline: none; border-color: #a0aeff; background: rgba(255, 255, 255, 0.15); }
body.single-calculator .form-select option { background: #fff; color: var(--text-black); }

/* RESULT CARD */
body.single-calculator .result-area { margin-top: 20px; background: #e6ebff; border-radius: var(--radius); padding: 24px; text-align: center; opacity: 0; transform: translateY(16px); transition: all 0.5s ease; display: none; }
body.single-calculator .result-area.show { opacity: 1; transform: translateY(0); display: block; }
body.single-calculator .result-label-text { font-size: 14px; font-family: 'Inter', sans-serif; color: #333333; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
body.single-calculator .result-value { font-family: 'Poppins', sans-serif; font-size: 52px; font-weight: 600; color: #13217c; line-height: 1.1; }
body.single-calculator .result-grade { font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 600; color: #13217c; margin: 8px 0 4px; }
body.single-calculator .result-desc { font-size: 14px; font-family: 'Inter', sans-serif; color: #333333; }

/* SPINNER */
body.single-calculator .calculating { display: none; text-align: center; padding: 16px; color: #3b5bff; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; }
body.single-calculator .calculating.show { display: block; }

/* SUCCESS BANNER */
body.single-calculator .success-banner { margin: 15px 0; display: none; }
body.single-calculator .success-banner.show { display: block; animation: slideIn 0.4s ease; }
body.single-calculator .success-banner p { color: #00bc7d; font-weight: 600; font-size: 15px; font-family: 'Inter', sans-serif; text-align: center; }
body.single-calculator .spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(160, 174, 255, 0.3); border-top-color: #3B5Bff; border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }

/* RESULTS SECTION */
body.single-calculator .results-section { background: var(--bg-light); }
body.single-calculator .results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* CARDS */
body.single-calculator .feature-icon-circle { background: #fff; color: var(--primary); border-radius: 20px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
body.single-calculator .feature-icon-circle svg { width: 28px; height: 28px; stroke: var(--primary); }
body.single-calculator .feature-item-title { font-family: var(--font-heading); font-size: 20px; line-height: 20px; color: var(--text-black); display: block; margin-bottom: 8px; font-weight: 600; }
body.single-calculator .feature-item-desc { font-size: 16px; color: var(--text-black); line-height: 26px; font-family: var(--font-body); }
body.single-calculator .feature-list { list-style: none; padding: 0; }
body.single-calculator .feature-list h3 { font-size: 22px; line-height: 29px; font-weight: 600; margin-bottom: 30px; }
body.single-calculator .feature-list-item { display: flex; gap: 16px; margin-bottom: 30px; align-items: flex-start; }
body.single-calculator .feature-list-item:last-child { margin-bottom: 0; }
body.single-calculator .card-accent { display: flex; flex-direction: column; justify-content: center; align-items: start; }
body.single-calculator .card-title-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
body.single-calculator .card-title-bar::before { content: ''; width: 5px; height: 28px; background: var(--primary); border-radius: 4px; flex-shrink: 0; }
body.single-calculator .card-title-bar h3 { font-size: 20px; color: var(--text-black); }

/* LEARN MORE WRAPPER */
body.single-calculator #learnMoreWrapper { display: none; }
body.single-calculator .cta-inline { text-align: center; margin-top: 20px; padding: 20px; background: #13217c; border-radius: var(--radius); }
body.single-calculator .cta-inline p { font-size: 15px; color: #fffdfe; margin-bottom: 12px; font-weight: 600; }
body.single-calculator .cta-inline a.btn { background: var(--secondary); color: #333333; display: inline-flex; }
body.single-calculator .cta-inline a.btn:hover { background: var(--secondary-hover); }

/* COMPARISON TABLE */
body.single-calculator .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); background: #fff; width: 100%; }
body.single-calculator .comparison-table { width: 100%; border-radius: 0; overflow: hidden; border-collapse: collapse; border-radius: 20px; background-color: #fff; }
body.single-calculator .comparison-table thead th { background: var(--primary); color: var(--text-white); padding: 20px 16px; text-align: left; font-family: var(--font-body); font-size: 16px; line-height: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-right: 1px solid rgba(255, 255, 255, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
body.single-calculator .comparison-table thead th:last-child { border-right: none; }
body.single-calculator .comparison-table tbody td { padding: 20px 16px; font-size: 16px; line-height: 26px; font-family: var(--font-body); color: var(--text-black); border-top: 1px solid #dce3ff; border-right: 1px solid #dce3ff; }
body.single-calculator .comparison-table tbody td:last-child { border-right: none; }

/* METHODOLOGY */
body.single-calculator .methodology-section { background: var(--text-white); }
body.single-calculator .section-subtitle { font-size: 20px; font-family: var(--font-heading); color: var(--text-black); margin-bottom: 40px; line-height: 29px; font-weight: 500; }
body.single-calculator .formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
body.single-calculator .formula-card { padding: 24px; background: var(--bg-light); border-radius: var(--radius); }
body.single-calculator .formula-title { font-size: 18px; line-height: 29px; font-family: var(--font-body); font-weight: 600; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.6px; }
body.single-calculator .formula-text { font-size: 16px; line-height: 26px; color: var(--text-black); font-family: var(--font-body); background: var(--text-white); padding: 20px 20px; border-radius: 12px; font-weight: 600; }

/* BODY CONTENT SECTION */
body.single-calculator .body-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; }
body.single-calculator .body-content-block { background: #fff; padding: 25px; border-radius: 30px; }
body.single-calculator .body-content-block h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 20px; line-height: 29px; color: var(--primary); margin-bottom: 10px; }
body.single-calculator .content-block-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; background: var(--bg-light); color: var(--primary); border-radius: 12px; flex-shrink: 0; }
body.single-calculator .content-block-icon svg { width: 28px; height: 28px; color: var(--primary); stroke-width: 2px; }
body.single-calculator .body-content-block p, body.single-calculator .body-content-block li { font-size: 16px; font-family: 'Inter', sans-serif; color: var(--text-black); line-height: 1.75; margin-bottom: 12px; }
body.single-calculator .body-content-block ul { padding-left: 20px; margin-bottom: 16px; }
body.single-calculator .body-content-block li { margin-bottom: 8px; }
body.single-calculator .body-content-full { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: left; margin-top: 40px; }
body.single-calculator .body-content-full h2 { font-size: 24px; line-height: 38px; text-align: center; width: 100%; }
body.single-calculator .body-content-full .conv-table-wrap { width: 100%; }
body.single-calculator #cgpaInput::placeholder { color: #808080; }

/* CONVERSION TABLE IN BODY */
body.single-calculator .conv-table-wrap { overflow-x: auto; margin: 20px auto; width: 100%; }
body.single-calculator .conv-table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: center; overflow: hidden; border-radius: 20px; }
body.single-calculator .conv-table thead th { background: var(--primary); color: var(--text-white); padding: 24px 16px; font-family: 'Inter', sans-serif; font-size: 18px; line-height: 29px; font-weight: 600; border: 1px solid #3b5bff; width: 50%; }
body.single-calculator .conv-table tbody td { background: #fffdfe; padding: 18px 16px; font-size: 16px; line-height: 26px; font-family: 'Inter', sans-serif; color: var(--text-black); border: 1px solid #dce3ff; }
body.single-calculator .conv-table tbody tr:nth-child(even) td { background: #F8F9FA; }
body.single-calculator .conv-table tbody tr:hover { background: #d0d8ff; }

/* FAQ */
body.single-calculator .faq-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
body.single-calculator .faq-main-title { color: var(--primary); margin-bottom: 30px; }
body.single-calculator .faq-item { background: var(--primary); margin-bottom: 18px; overflow: hidden; }
body.single-calculator .faq-question { padding: 20px 50px 20px 20px; font-size: 20px; line-height: 30px; font-weight: 400; color: var(--text-white); cursor: pointer; position: relative; transition: all 0.3s ease; user-select: none; }
body.single-calculator .faq-question::after { content: "›"; position: absolute; right: 28px; top: 50%; transform: translateY(-50%) rotate(0deg); font-size: 28px; color: #fff; font-weight: 400; transition: transform 0.3s ease; line-height: 1; }
body.single-calculator .faq-question.active::after { content: "›"; transform: translateY(-50%) rotate(90deg); }
body.single-calculator .faq-answer { background-color: var(--bg-light); max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 28px; font-size: 20px; line-height: 30px; font-weight: 400; color: var(--primary); }
body.single-calculator .faq-answer.active { max-height: 500px; padding: 20px; }

/* FAQ Layout */
body.single-calculator .faq-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 20px; align-items: start; }
body.single-calculator .faq-image-col img { width: 100%; max-width: 420px; height: auto; border-radius: 20px; display: block; }
body.single-calculator .faq-layout .faq-container { max-width: 100%; margin: 0; padding: 0; }

/* CTA SECTION */
body.single-calculator .cta-section { background: var(--hero-bg); text-align: center; }
body.single-calculator .cta-section h2 { color: var(--text-white); margin-bottom: 16px; }
body.single-calculator .cta-section p { font-size: 18px; line-height: 29px; color: var(--text-white); margin-bottom: 30px; }
body.single-calculator .cta-section a.btn { background: var(--secondary); color: var(--text-white); display: inline-flex; width: auto; }
body.single-calculator .cta-section a.btn:hover { background: var(--secondary-hover); }

/* SECTION CHIP */
body.single-calculator .section-chip { display: inline-block; background: var(--bg-mid); color: var(--primary-hover); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 5px 16px; border-radius: 40px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }

/* DIVIDER */
body.single-calculator .section-divider { display: none; }

/* CTA FORM SECTION (lead-form card) */
body.single-calculator .cta-form-section { background: var(--hero-bg); }
body.single-calculator .cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
body.single-calculator .cta-form-content h2 { color: #fffdfe; margin-bottom: 16px; }
body.single-calculator .cta-form-content p { font-size: 18px; color: #fffdfe; margin-bottom: 15px; font-family: var(--font-body); line-height: 29px; }
body.single-calculator .cta-features { list-style: none; padding-left: 0; margin: 20px 0; }
body.single-calculator .cta-features li { padding-left: 24px; position: relative; font-size: 16px; color: #fffdfe; margin-bottom: 12px; font-family: var(--font-body); line-height: 26px; }
body.single-calculator .cta-features li::before { content: "\2713"; position: absolute; left: 0; color: #00bc7d; font-weight: 700; }
body.single-calculator .cta-form-content .highlight-note { margin-top: 20px; font-weight: 600; color: var(--bg-light); font-family: var(--font-body); font-size: 16px; line-height: 26px; }
body.single-calculator .cta-form-frame { background: #fffdfe; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; padding: 8px; }
body.single-calculator .cta-form-frame iframe { display: none; }
body.single-calculator .calc-lead-form { width: 100%; padding: 28px 28px; }
body.single-calculator .calc-lead-form h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--hero-bg); margin-bottom: 8px; }
body.single-calculator .calc-lead-form > p { font-size: 16px; color: var(--text-gray); margin-bottom: 22px; line-height: 24px; }
body.single-calculator .calc-lead-form .form-row { margin-bottom: 14px; }
body.single-calculator .calc-lead-form input { width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 16px; border: 1.5px solid #dfe5ff; border-radius: 10px; background: #f7f9ff; color: var(--text-black); }
body.single-calculator .calc-lead-form input::placeholder { color: #9aa3c7; }
body.single-calculator .calc-lead-form input:focus { outline: none; border-color: var(--primary); background: #fff; }
body.single-calculator .calc-lead-form .lead-submit { width: 100%; margin-top: 8px; padding: 15px; cursor: pointer; font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: #fff; background: var(--secondary); border: none; border-radius: 10px; transition: background .2s, transform .2s; }
body.single-calculator .calc-lead-form .lead-submit:hover { background: var(--secondary-hover); transform: translateY(-1px); }

/* FAQ SECTION (inside faq partial) */
body.single-calculator .faq-section { background: #fffdfe; }

/* @keyframes — kept global per scoping rules */
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    body.single-calculator .container, body.single-calculator .hero-inner { padding: 0 40px; }

    body.single-calculator .hero-section,
    body.single-calculator .results-section,
    body.single-calculator .methodology-section,
    body.single-calculator .body-content-section,
    body.single-calculator .cta-section { padding: 40px 0; }

    body.single-calculator .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    body.single-calculator .results-grid { grid-template-columns: 1fr; }
    body.single-calculator .formula-grid { grid-template-columns: repeat(2, 1fr); }
    body.single-calculator .faq-section-wrapper { grid-template-columns: 1fr 1.3fr; gap: 36px; }
    body.single-calculator .faq-main-title { font-size: 28px; }
    body.single-calculator .cta-form-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* ⚠ SCOPING: comp had :root { --section-padding } here — moved to body.single-calculator */
    body.single-calculator { --section-padding: 40px 0; }

    body.single-calculator .container, body.single-calculator .hero-inner { padding: 0 20px; }
    body.single-calculator .hero-subtitle { font-size: 20px; }
    body.single-calculator .hero-section { padding: 40px 0; }
    body.single-calculator .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    body.single-calculator .hero-stats { gap: 16px; margin-bottom: 30px; }
    body.single-calculator .stat-number { font-size: 22px; }
    body.single-calculator .stat-label { font-size: 12px; }
    body.single-calculator .hero-calc-card { border-radius: 30px; padding: 20px; }
    body.single-calculator .hero-calc-card h3 { font-size: 18px; }
    body.single-calculator .section-title { font-size: 24px; line-height: 38px; margin-bottom: 10px; }
    body.single-calculator .section-subtitle { font-size: 18px; line-height: 29px; margin-bottom: 30px; }
    body.single-calculator .body-content-grid { grid-template-columns: 1fr; }
    body.single-calculator .formula-grid { grid-template-columns: 1fr 1fr; }
    body.single-calculator .form-buttons { flex-direction: column; gap: 12px; }
    body.single-calculator .results-grid { grid-template-columns: 1fr; gap: 30px; }
    body.single-calculator .feature-list h3 { font-size: 20px; }
    body.single-calculator .feature-list-item { gap: 12px; }
    body.single-calculator .feature-icon-circle { width: 44px; height: 44px; border-radius: 12px; }
    body.single-calculator .feature-icon-circle svg { width: 22px; height: 22px; }
    body.single-calculator .feature-item-title { font-size: 18px; line-height: 29px; margin-bottom: 4px; }
    body.single-calculator .content-block-icon { width: 48px; height: 48px; }
    body.single-calculator .content-block-icon svg { width: 24px; height: 24px; }
    body.single-calculator .body-content-block h2 { font-size: 18px; line-height: 29px; gap: 15px; }
    body.single-calculator .body-content-full { margin-top: 20px; }
    body.single-calculator .faq-layout { grid-template-columns: 1fr; }
    body.single-calculator .faq-section-wrapper { grid-template-columns: 1fr; gap: 32px; }
    body.single-calculator .faq-image-col { display: none; }
    body.single-calculator .faq-main-title { font-size: 24px; text-align: center; }
    body.single-calculator .faq-btn { font-size: 14px; padding: 14px 18px; }
    body.single-calculator .cta-section h2 { font-size: 24px; line-height: 38px; }
    body.single-calculator .cta-section p { font-size: 18px; line-height: 29px; }
    body.single-calculator .cta-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body.single-calculator .comparison-table { min-width: 500px; }
    body.single-calculator .formula-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Bricks integration reset (galv calc — CGPA) — same pattern as the GRE/SAT
   calculators. Neutralise brxe-container / .brxe-text wrappers so the comp
   sections go full-bleed, and prevent the comp's section{padding} from leaking
   into the site header/footer chrome.
   ════════════════════════════════════════════════════════════════════════════ */
body.single-calculator #brx-content.brxe-container,
body.single-calculator .brxe-text {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    gap: 0 !important;
    align-items: stretch !important;
}
body.single-calculator #brx-content.brxe-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Prevent comp's section{padding:60px 0} from inflating the Bricks header/footer. */
body.single-calculator header section,
body.single-calculator footer section {
    padding: 0 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   Galvanize SEO/UX additions (NOT from the comp) — quick-answer callout, the
   explainer/related sections. Constrained to a readable width (comp .container
   is max-width:1920px). The lead-form card css is already present above.
   These re-assert classes the per-slug `*{margin:0}` reset would otherwise
   out-specify (see gal-build_learnings — GRE).
   ════════════════════════════════════════════════════════════════════════════ */
body.single-calculator .calc-qa-eyebrow {
    display: inline-block; font-family: var(--font-heading);
    font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 6px;
}
body.single-calculator .calc-quick-answer {
    max-width: 840px; margin: 24px auto 8px; padding: 22px 26px;
    background: #f7f9ff; border-left: 4px solid var(--primary); border-radius: 12px;
}
body.single-calculator .calc-quick-answer p { margin: 0; }

body.single-calculator .cgpa-explainers .container { max-width: 1000px; }
body.single-calculator .cgpa-explainers h3 { margin-top: 22px; }

body.single-calculator .related-tools .container { max-width: 1120px; }
body.single-calculator .related-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px;
}
body.single-calculator .related-card {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid #dfe5ff; border-radius: 14px; padding: 22px 24px;
    text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.single-calculator .related-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 22px rgba(19, 33, 124, .10); border-color: var(--primary);
}
body.single-calculator .related-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--primary); }
body.single-calculator .related-card-desc { font-size: 15px; color: var(--text-gray); line-height: 22px; }

body.single-calculator .cta-form-frame { display: flex; align-items: center; padding: 8px; }

@media (max-width: 768px) {
    body.single-calculator .related-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Subash design review (2026-06-13) — CGPA to GPA. Overrides layered on top of
   the comp; the verbatim comp block above is untouched.
   ════════════════════════════════════════════════════════════════════════════ */

/* Quick Answer band — full-width lavender strip; card stays its own colour */
body.single-calculator .calc-qa-band { background: #e6ebff; padding: 48px 0; display: flex; justify-content: center; }

/* GPA Grade Comparison Table — remove rounding */
body.single-calculator .table-responsive { border-radius: 20px; }
body.single-calculator .comparison-table { border-radius: 20px; }
/* Note: border: 2px solid #DEE2E6 was NOT found on .comparison-table or .table-responsive
   in any per-slug CSS or HTML partial. It exists only in the shared calculator.css at line 397
   on .results-section (a different element). No override needed here. */

/* Why GPA Matters Abroad card (.card-accent) — left-align all text */
body.single-calculator .card-accent h3,
body.single-calculator .card-accent .feature-item-title,
body.single-calculator .card-accent .feature-item-desc { text-align: left; }

/* Related-card CTA link */
body.single-calculator .related-card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--primary); }
body.single-calculator .related-card:hover .related-card-cta { text-decoration: underline; }

/* (a) GPA Grade Comparison Table .results-section — remove border-radius + border.
   The shared calculator.css defines .results-section with background, border-radius:40px,
   padding, and border:2px solid #dee2e6. On CGPA the content partial sets
   background:#e6ebff via inline style, overriding the white background. This scoped
   override removes the radius and border for the CGPA page only (background + padding kept). */
body.single-calculator .results-section { border-radius: 0; border: none; }

/* (b) "CGPA, GPA & Percentage — Quick Conversions" section — left-align to match content sections.
   BEFORE: .cgpa-explainers .container { max-width: 1000px } (SEO additions block ~line 359).
   AFTER: drop the 1000px cap so the left edge aligns with the page's .container
   (max-width: 1920px / padding: 0 80px); text-align left for heading + body copy. */
body.single-calculator .cgpa-explainers .container { max-width: 1920px; }
body.single-calculator .cgpa-explainers .section-title,
body.single-calculator .cgpa-explainers p { text-align: left; }
