/*
 * article.css — IPR India Online
 * Unified stylesheet for all blog/article pages.
 * Covers every component used across existing posts
 * and is ready for future articles of the same pattern.
 *
 * Depends on brand CSS variables defined in main.css / blog.css:
 *   --ipr-primary, --ipr-secondary, --ipr-secondary-pale,
 *   --ipr-secondary-glow, --ipr-surface, --ipr-bg, --ipr-text,
 *   --ipr-border, --ipr-radius, --ipr-radius-sm,
 *   --ipr-shadow-sm, --ipr-shadow-md, --ipr-shadow-lg
 */

/* ─────────────────────────────────────────
   BASE RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--ipr-bg, #f4f7fb);
    color: var(--ipr-text, #1e2d45);
}

/* ─────────────────────────────────────────
   PAGE CONTAINER
───────────────────────────────────────── */
.container {
    max-width: 900px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem 4rem;
}

/* Bootstrap override for pages that use .container.mb-5 */
.container.mb-5 {
    max-width: 900px !important;
    margin-top: 2.5rem !important;
    margin-bottom: 3rem !important;
}

/* ─────────────────────────────────────────
   ARTICLE WRAPPER CARD
───────────────────────────────────────── */
.article-wrap {
    background: var(--ipr-surface, #ffffff);
    border-radius: var(--ipr-radius, 12px);
    box-shadow: var(--ipr-shadow-md, 0 6px 24px rgba(36,59,100,.12));
    padding: 2.5rem 2.75rem 2.75rem;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient accent bar at top */
.article-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ipr-primary, #243b64) 0%, var(--ipr-secondary, #18c29c) 100%);
    border-radius: 12px 12px 0 0;
}

/* ─────────────────────────────────────────
   HERO IMAGE
───────────────────────────────────────── */
.article-hero {
    width: 100%;
    border-radius: var(--ipr-radius-sm, 8px);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.article-hero img,
.img.img-fluid.mb-2 {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: var(--ipr-radius-sm, 8px);
    box-shadow: var(--ipr-shadow-sm, 0 2px 8px rgba(36,59,100,.08));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-hero img:hover,
.img.img-fluid.mb-2:hover {
    transform: scale(1.012);
    box-shadow: var(--ipr-shadow-lg, 0 12px 40px rgba(36,59,100,.16));
}

/* ─────────────────────────────────────────
   BADGE
───────────────────────────────────────── */
.article-badge {
    display: inline-block;
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────
   ARTICLE TITLE (H1)
───────────────────────────────────────── */
.article-title {
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: var(--ipr-primary, #243b64);
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ipr-border, #dde4ee);
}

/* ─────────────────────────────────────────
   INTRO BLOCK
───────────────────────────────────────── */
.article-intro {
    font-size: 15.5px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--ipr-secondary-pale, rgba(24,194,156,.10));
    border-left: 4px solid var(--ipr-secondary, #18c29c);
    border-radius: 0 8px 8px 0;
}

.article-intro a { color: var(--ipr-secondary, #18c29c); font-weight: 600; text-decoration: none; }
.article-intro a:hover { color: var(--ipr-primary, #243b64); }

/* ─────────────────────────────────────────
   TABLE OF CONTENTS
───────────────────────────────────────── */
.toc-box {
    background: #f8fbfe;
    border: 1px solid var(--ipr-border, #dde4ee);
    border-left: 4px solid var(--ipr-primary, #243b64);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.toc-box h2 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--ipr-primary, #243b64) !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem !important;
    border: none !important;
    padding: 0 !important;
}

.toc-box ol { margin: 0; padding-left: 1.2rem; }

.toc-box ol li {
    font-size: 13.5px;
    color: var(--ipr-secondary, #18c29c);
    margin-bottom: 5px;
}

.toc-box ol li a { color: var(--ipr-secondary, #18c29c); text-decoration: none; font-weight: 600; }
.toc-box ol li a:hover { color: var(--ipr-primary, #243b64); text-decoration: underline; }

/* ─────────────────────────────────────────
   SECTION HEADINGS (inside article-wrap)
───────────────────────────────────────── */
.article-wrap h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin: 2rem 0 0.75rem;
    padding-left: 1rem;
    border-left: 4px solid var(--ipr-secondary, #18c29c);
    line-height: 1.4;
}

.article-wrap h3 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin: 1.5rem 0 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--ipr-secondary, #18c29c);
    line-height: 1.4;
}
.ip-card h2, .ip-card h3, .ip-card h4,
.ground-card h2, .ground-card h3, .ground-card h4,
.when-card h2, .when-card h3, .when-card h4,
.where-card h2, .where-card h3, .where-card h4,
.compare-card h2, .compare-card h3, .compare-card h4,
.info-card h2, .info-card h3, .info-card h4,
.tm-step h2, .tm-step h3, .tm-step h4,
.tm-step__body h2, .tm-step__body h3, .tm-step__body h4,.step-body h3,
.ground-body h3, .m-body h3, .faq-item h2, .faq-item h3, .faq-item h4,
.toc-box h2, .toc-box h3, .toc-box h4, .Consideration-note h3,
.conclusion-box h2, .conclusion-box h3, .conclusion-box h4,
.related-box h2, .related-box h3, .related-box h4, .def h3,
.sidebar-card h2, .sidebar-card h3, .sidebar-card h4,
.sidebar-cta h2, .sidebar-cta h3, .sidebar-cta h4 {
    border-left: none !important;
    padding-left: 0 !important;
    margin: 0 0 6px !important;
}


.article-wrap p {
    font-size: 14.5px;
    color: var(--ipr-text, #1e2d45);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────
   IP TYPE CARDS  (patent vs trademark vs copyright)
───────────────────────────────────────── */
.ip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 1.25rem 0 2rem;
}

.ip-card {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-top: 4px solid var(--ipr-secondary, #18c29c);
    border-radius: var(--ipr-radius, 12px);
    padding: 1.4rem 1.2rem;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ip-card:hover {
    box-shadow: var(--ipr-shadow-md, 0 6px 24px rgba(36,59,100,.12));
    transform: translateY(-3px);
}

.ip-card .ic-icon { font-size: 36px; display: block; margin-bottom: 10px; }

.ip-card .ic-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin-bottom: 6px;
}

.ip-card .ic-validity {
    display: inline-block;
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.ip-card p { font-size: 13px; color: #555; line-height: 1.6; margin: 0; text-align: left; }

.ip-card .ic-examples {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--ipr-secondary, #18c29c);
    text-align: left;
}

.ip-card .ic-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--ipr-secondary, #18c29c);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.ip-card .ic-link:hover {
    color: var(--ipr-primary, #243b64);
    border-bottom-color: var(--ipr-primary, #243b64);
}

/* ─────────────────────────────────────────
   GROUND CARDS  (opposition / rectification grounds)
───────────────────────────────────────── */
.grounds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1rem 0 1.5rem;
}

.ground-card {
    background: rgba(24, 194, 156, 0.08);  /* light teal */
    border: 1px solid var(--ipr-border, #dde4ee);
    /* border-left: 4px solid var(--ipr-secondary, #18c29c); */
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1rem 1.1rem;
    transition: box-shadow 0.2s;
}

.ground-card:hover { box-shadow: var(--ipr-shadow-sm, 0 2px 8px rgba(36,59,100,.08)); }

.ground-card .gc-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ground-card p { font-size: 13.5px; color: #444; line-height: 1.65; margin: 0; }

/* ─────────────────────────────────────────
   WHO PILLS
───────────────────────────────────────── */
.who-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 1rem 0 1.5rem; }

.who-pill {
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    transition: background 0.2s;
}

.who-pill:hover { background: var(--ipr-secondary, #18c29c); }

/* ─────────────────────────────────────────
   WHEN CARDS  (when to use each IP type)
───────────────────────────────────────── */
.when-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 1rem 0 1.5rem;
}

.when-card {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-top: 3px solid var(--ipr-secondary, #18c29c);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1rem 1.1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.when-card:hover { box-shadow: var(--ipr-shadow-sm); transform: translateY(-2px); }
.when-card h3 { font-size: 14px; font-weight: 700; color: var(--ipr-primary, #243b64); margin: 0 0 6px; }
.when-card p  { font-size: 13px; color: #555; line-height: 1.6; margin: 0; }
.when-card ul { padding-left: 1.1rem; margin: 0; }
.when-card ul li { font-size: 13px; color: #555; line-height: 1.65; margin-bottom: 4px; }

/* ─────────────────────────────────────────
   WHERE CARDS  (filing offices / portals)
───────────────────────────────────────── */
.where-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 1rem 0 1.5rem;
}

.where-card {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-top: 3px solid var(--ipr-secondary, #18c29c);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1.1rem 1.1rem 1rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.where-card:hover { box-shadow: var(--ipr-shadow-sm); transform: translateY(-2px); }
.where-card .wc-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.where-card h3,h4 { font-size: 14px; font-weight: 700; color: var(--ipr-primary, #243b64); margin: 0 0 6px; }
.where-card p  { font-size: 12.5px; color: #555; line-height: 1.6; margin: 0; }
.where-card a  { color: var(--ipr-secondary, #18c29c); font-weight: 600; text-decoration: none; }
.where-card a:hover { color: var(--ipr-primary, #243b64); }

/* ─────────────────────────────────────────
   COMPARE CARDS  (side-by-side IP comparison)
───────────────────────────────────────── */
.compare-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 1.25rem 0 2rem;
}

.compare-card {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-top: 4px solid var(--ipr-primary, #243b64);
    border-radius: var(--ipr-radius, 12px);
    padding: 1.4rem 1.2rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.compare-card:hover { box-shadow: var(--ipr-shadow-md); transform: translateY(-3px); }

.compare-card .cc-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin-bottom: 1rem;
    text-align: center;
}

.compare-card .cc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
    font-size: 13px;
    gap: 8px;
}

.compare-card .cc-row:last-child { border-bottom: none; }
.compare-card .cc-label { color: var(--ipr-secondary, #18c29c); font-weight: 700; min-width: 100px; }
.compare-card .cc-value { color: #333; text-align: right; }

/* ─────────────────────────────────────────
   COMPARE TABLE  (horizontal scrollable)
───────────────────────────────────────── */
.compare-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0 2rem;
    border-radius: var(--ipr-radius-sm, 8px);
    border: 1px solid var(--ipr-border, #dde4ee);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.compare-table thead tr { background: var(--ipr-primary, #243b64); color: #fff; }

.compare-table thead th {
    padding: 12px 16px;
    font-weight: 700;
    text-align: left;
    font-size: 13px;
}

.compare-table thead th:first-child { border-radius: 8px 0 0 0; }
.compare-table thead th:last-child  { border-radius: 0 8px 0 0; }

.compare-table tbody tr:nth-child(even) { background: rgba(24,194,156,.06); }
.compare-table tbody tr:nth-child(odd)  { background: #fff; }

.compare-table tbody td {
    padding: 11px 16px;
    color: #333;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
}

.compare-table tbody td:first-child { font-weight: 600; color: var(--ipr-primary, #243b64); }

/* ─────────────────────────────────────────
   INFO CARDS  (facts / stats / lists)
───────────────────────────────────────── */
.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 1rem 0 1.5rem;
}

.info-card {
    background: #f8fbfe;
    border: 1px solid var(--ipr-border, #dde4ee);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1.1rem 1.2rem;
}

.info-card h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ipr-secondary, #18c29c);
    margin: 0 0 10px;
}

.info-card ul { padding-left: 1.2rem; margin: 0; }
.info-card ul li { font-size: 13.5px; color: #444; line-height: 1.65; margin-bottom: 4px; }

/* Stat variant */
.info-card .stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin-bottom: 4px;
}

.info-card .stat-label { font-size: 12.5px; color: #666; }

/* ─────────────────────────────────────────
   NUMBERED STEPS LIST
───────────────────────────────────────── */
.steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.steps-list li::before {
    content: counter(steps);
    min-width: 30px;
    height: 30px;
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.steps-list li .step-body strong {
    display: block;
    font-size: 14px;
    color: var(--ipr-primary, #243b64);
    margin-bottom: 3px;
}

.steps-list li .step-body span { font-size: 13px; color: #555; line-height: 1.6; }

/* ─────────────────────────────────────────
   MISTAKES / WARNINGS LIST
───────────────────────────────────────── */
.mistakes-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }

.mistakes-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8f0;
    border: 1px solid #f5d8b8;
    border-left: 4px solid #e07b00;
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 0.9rem 1rem;
    margin-bottom: 10px;
}

.mistakes-list li .m-icon { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.mistakes-list li .m-body strong { display: block; font-size: 14px; color: #7a3b00; margin-bottom: 3px; }
.mistakes-list li .m-body span   { font-size: 13px; color: #8a5500; line-height: 1.6; }

/* ─────────────────────────────────────────
   CONCLUSION BOX
───────────────────────────────────────── */
.conclusion-box {
    background: var(--ipr-secondary-pale, rgba(24,194,156,.10));
    border: 1px solid var(--ipr-secondary-glow, rgba(24,194,156,.22));
    border-left: 4px solid var(--ipr-secondary, #18c29c);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.conclusion-box p { font-size: 14.5px; color: #333; line-height: 1.75; margin-bottom: 0.5rem; }
.conclusion-box p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   RELATED ARTICLES BOX
───────────────────────────────────────── */
.related-box {
    border: 1px solid var(--ipr-border, #dde4ee);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ipr-surface, #fff);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-box:hover { box-shadow: var(--ipr-shadow-sm); transform: translateY(-1px); }
.related-box .rel-icon { font-size: 28px; flex-shrink: 0; }
.related-box .rel-body p { font-size: 12px; color: #888; margin: 0 0 3px; }

.related-box .rel-body a {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    text-decoration: none;
}

.related-box .rel-body a:hover { color: var(--ipr-secondary, #18c29c); }

/* ─────────────────────────────────────────
   DISCLOSURE / LEGAL NOTE
───────────────────────────────────────── */
.disclosure-note {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-left: 4px solid var(--ipr-primary, #243b64);
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 0.85rem 1rem;
    font-size: 14.5px;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────
   SECTION DIVIDER
───────────────────────────────────────── */
.section-divider { border: none; border-top: 1px solid var(--ipr-border, #dde4ee); margin: 2rem 0; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────── */
@media (max-width: 768px) {
    .article-wrap { padding: 1.5rem 1.25rem 2rem; }
    .article-title { font-size: 1.35rem; }
    .grounds-grid,
    .info-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 576px) {
    .article-wrap { padding: 1.1rem 0.9rem 1.5rem; }
    .article-title { font-size: 1.2rem; }
    .ip-cards-grid,
    .compare-cards-grid,
    .when-grid,
    .where-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   TWO-COLUMN ARTICLE LAYOUT
   .article-layout = main content + sidebar
───────────────────────────────────────── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
    max-width: 1160px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem 4rem;
}

/* When .article-layout is used, remove container's own max-width */
.container.mb-5:has(.article-layout) {
    max-width: 100% !important;
    padding: 0;
    margin: 0;
}

.article-main {
    min-width: 0; /* prevent grid blowout */
}

/* ─────────────────────────────────────────
   SIDEBAR WRAPPER — sticky on scroll
───────────────────────────────────────── */
.article-sidebar {
    position: sticky;
    top: 90px; /* below fixed header — adjust to match your header height */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─────────────────────────────────────────
   SIDEBAR CTA CARD
───────────────────────────────────────── */
.sidebar-cta {
    background: linear-gradient(145deg, var(--ipr-primary, #243b64) 0%, #1a2d52 100%);
    border-radius: var(--ipr-radius, 12px);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(36,59,100,.22);
}

.sidebar-cta__icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--ipr-secondary, #18c29c);
    font-weight: 900;
    line-height: 1;
}

.sidebar-cta__title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sidebar-cta__text {
    font-size: 12.5px;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.sidebar-cta__btn {
    display: inline-block;
    background: var(--ipr-secondary, #18c29c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s;
}

.sidebar-cta__btn:hover {
    background: #13a886;
    transform: translateY(-1px);
    color: #fff;
}

/* ─────────────────────────────────────────
   SIDEBAR GENERIC CARD
───────────────────────────────────────── */
.sidebar-card {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-radius: var(--ipr-radius, 12px);
    overflow: hidden;
    box-shadow: var(--ipr-shadow-sm, 0 2px 8px rgba(36,59,100,.08));
}

.sidebar-card__heading {
    background: #f4f7fb;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
    padding: 0.65rem 1rem;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ─────────────────────────────────────────
   SIDEBAR LINK ITEM
───────────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
    text-decoration: none;
    transition: background 0.18s;
}

.sidebar-link:last-child { border-bottom: none; }

.sidebar-link:hover { background: #f8fbfe; }

.sidebar-link__icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

.sidebar-link__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link__label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ipr-secondary, #18c29c);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-link__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ipr-primary, #243b64);
    line-height: 1.45;
    transition: color 0.18s;
}

.sidebar-link:hover .sidebar-link__title {
    color: var(--ipr-secondary, #18c29c);
}

/* ─────────────────────────────────────────
   SIDEBAR QUICK FACTS LIST
───────────────────────────────────────── */
.sidebar-facts {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-facts li {
    font-size: 12.5px;
    color: #444;
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}

.sidebar-facts li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ipr-secondary, #18c29c);
    font-size: 10px;
    top: 2px;
}

.sidebar-facts li strong {
    color: var(--ipr-primary, #243b64);
    font-weight: 700;
}

/* ─────────────────────────────────────────
   RESPONSIVE — collapse sidebar below tablet
───────────────────────────────────────── */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-sidebar {
        position: static; /* disable sticky on mobile */
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .sidebar-cta  { flex: 1 1 260px; }
    .sidebar-card { flex: 1 1 260px; }
}

@media (max-width: 576px) {
    .article-layout { padding: 0 0.75rem 2rem; }

    .article-sidebar {
        flex-direction: column;
    }

    .sidebar-cta,
    .sidebar-card { flex: 1 1 100%; }
}

/* ─────────────────────────────────────────
   TRADEMARK STEP CARDS
   (.tm-step) — numbered process steps
───────────────────────────────────────── */
.tm-step {
    background: var(--ipr-surface, #fff);
    border: 1px solid var(--ipr-border, #dde4ee);
    border-left: 4px solid var(--ipr-secondary, #18c29c);
    border-radius: var(--ipr-radius, 12px);
    margin-bottom: 18px;
    overflow: hidden;
    transition: box-shadow 0.22s;
}

.tm-step:hover {
    box-shadow: var(--ipr-shadow-md, 0 6px 24px rgba(36,59,100,.12));
}

.tm-step--final {
    border-left-color: var(--ipr-primary, #243b64);
    background: linear-gradient(135deg, #f8fbfe 0%, #edf6f3 100%);
}

.tm-step__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.25rem;
    background: #f4f7fb;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
}

.tm-step--final .tm-step__header {
    background: linear-gradient(90deg, rgba(36,59,100,.06) 0%, rgba(24,194,156,.08) 100%);
}

.tm-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.tm-step--final .tm-step__num {
    background: var(--ipr-secondary, #18c29c);
}

.tm-step__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    margin: 0;
    line-height: 1.35;
}

.tm-step__sub {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

.tm-step__body {
    padding: 1rem 1.25rem 1.1rem;
}

.tm-step__body p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.tm-step__body p:last-child { margin-bottom: 0; }

.tm-step__list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.tm-step__list li {
    font-size: 13.5px;
    color: #444;
    line-height: 1.65;
    padding: 5px 0 5px 22px;
    position: relative;
    border-bottom: 1px dashed var(--ipr-border, #dde4ee);
}

.tm-step__list li:last-child { border-bottom: none; }

.tm-step__list li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--ipr-secondary, #18c29c);
    font-size: 11px;
    top: 7px;
}

.tm-step__list li a {
    color: var(--ipr-secondary, #18c29c);
    font-weight: 600;
    text-decoration: none;
}

.tm-step__list li a:hover {
    color: var(--ipr-primary, #243b64);
    text-decoration: underline;
}

/* ─────────────────────────────────────────
   TRADEMARK CLASS CARDS (inside Step 2)
───────────────────────────────────────── */
.tm-class-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0.75rem 0 1rem;
}

.tm-class-card {
    border-radius: var(--ipr-radius-sm, 8px);
    padding: 1rem;
    text-align: center;
}

.tm-class-card--goods {
    background: rgba(36,59,100,.07);
    border: 1px solid rgba(36,59,100,.18);
}

.tm-class-card--services {
    background: rgba(24,194,156,.08);
    border: 1px solid rgba(24,194,156,.22);
}

.tm-class-card__badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ipr-primary, #243b64);
    margin-bottom: 5px;
}

.tm-class-card--services .tm-class-card__badge {
    color: #0d8a6e;
}

.tm-class-card__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

/* ─────────────────────────────────────────
   TRADEMARK TYPES PILL GRID
───────────────────────────────────────── */
.tm-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0 0.5rem;
}

.tm-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ipr-surface, #fff);
    border: 1.5px solid var(--ipr-border, #dde4ee);
    border-radius: 25px;
    padding: 7px 15px 7px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    transition: border-color 0.2s, background 0.2s, transform 0.18s;
}

.tm-type-pill span {
    font-size: 11.5px;
    font-weight: 500;
    color: #777;
}

.tm-type-pill:hover {
    border-color: var(--ipr-secondary, #18c29c);
    background: rgba(24,194,156,.07);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1rem 0 1.5rem;
}

.faq-item {
    border: 1px solid var(--ipr-border, #dde4ee);
    border-radius: var(--ipr-radius-sm, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--ipr-shadow-sm, 0 2px 8px rgba(36,59,100,.08));
}

.faq-item--open {
    border-color: var(--ipr-secondary, #18c29c);
    box-shadow: 0 0 0 2px rgba(24,194,156,.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.1rem;
    background: #f8fbfe;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: var(--ipr-primary, #243b64);
    line-height: 1.4;
    transition: background 0.18s;
}

.faq-question:hover { background: #eef4fb; }

.faq-item--open .faq-question {
    background: rgba(24,194,156,.10);
    color: #0d7a62;
}

.faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--ipr-secondary, #18c29c);
    flex-shrink: 0;
    transition: transform 0.22s;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    font-size: 13.5px;
    color: #444;
    line-height: 1.75;
    margin: 0;
    padding: 0.85rem 1.1rem 1rem;
}

.faq-answer a {
    color: var(--ipr-secondary, #18c29c);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    color: var(--ipr-primary, #243b64);
    text-decoration: underline;
}

/* Responsive tweaks for new components */
@media (max-width: 576px) {
    .tm-class-grid { grid-template-columns: 1fr; }
    .tm-step__header { gap: 10px; padding: 0.85rem 1rem; }
    .tm-step__body  { padding: 0.85rem 1rem 1rem; }
    .tm-types-grid  { gap: 8px; }
    .tm-type-pill   { font-size: 12px; padding: 6px 12px 6px 10px; }

    .tm-step__body img {
        border-radius: 4px;
    }
}

/* ADD only these — rest already exists */
.steps-list li .step-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.steps-list li .step-body img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid var(--ipr-border, #dde4ee);
}
.steps-list li .step-body ul li {
    display: list-item;
    list-style: disc;
    counter-increment: none;
}

.steps-list li .step-body ul li::before {
    display: none;
}
.step-body {
  flex: 1;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}



/* Images */

.tm-step__body img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
    border-radius: 6px;
    border: 1px solid var(--ipr-border, #dde4ee);
    box-shadow: var(--ipr-shadow-sm, 0 2px 8px rgba(36,59,100,.08));
}

.step-body img {
  width: 100%;
  border-radius: 0 !important;
  height: auto !important;
  display: block;
  margin-top: 12px;
  box-shadow: none;
}

/* ── Mobile: IP Comparison Table ── */
@media (max-width: 600px) {
  .compare-table-wrap {
    overflow-x: unset; /* disable horizontal scroll */
  }

  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  /* Hide the original thead (column labels move inline) */
  .compare-table thead { display: none; }

  .compare-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--ipr-border, #dde4ee);
    border-radius: var(--ipr-radius-sm, 8px);
    overflow: hidden;
  }

  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--ipr-border, #dde4ee);
  }

  .compare-table tbody td:last-child { border-bottom: none; }

  /* First cell becomes the row heading */
  .compare-table tbody td:first-child {
    background: var(--ipr-primary, #243b64);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    justify-content: flex-start;
  }

  /* Inject column label before each value */
  .compare-table tbody td:nth-child(2)::before { content: "Patent"; }
  .compare-table tbody td:nth-child(3)::before { content: "Copyright"; }
  .compare-table tbody td:nth-child(4)::before { content: "Trademark"; }

  .compare-table tbody td::before {
    font-weight: 700;
    color: var(--ipr-secondary, #18c29c);
    font-size: 11.5px;
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 1px;
  }
}