/* =========================================================
   ISO Registry — Blog Article Styles (v2, richer visual design)
   Theme: Navy (#001f3f) / Gold (#ffd700)
   Used by: /blog/iso-certification-online-india.php
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #001f3f;
    --navy-light: #0a3566;
    --gold: #ffd700;
    --gold-deep: #c9a600;
    --ink: #2a2f36;
    --muted: #6b7280;
    --paper: #ffffff;
    --paper-soft: #f7f8fa;
    --border: #e7e9ee;
}

/* Force a white page background regardless of the site's global theme */
html, body {
    background-color: var(--paper) !important;
}

.blog-body,
.blog-body .container,
.article-content,
.sidebar-card-body {
    background-color: var(--paper) !important;
}

.article-content,
.article-content p,
.article-content li {
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
}

.article-content h2,
.article-content h3,
.blog-hero h1,
.faq-block h2,
.conclusion-box h2,
.sidebar-card-header {
    font-family: 'Poppins', -apple-system, Segoe UI, Roboto, sans-serif;
}

.card a { text-decoration: none; color: #000; }
.link-btn { background: var(--gold); padding: 5px; text-decoration: none !important; color: var(--navy); }
.link-btn:hover { background: var(--navy); color: #ffffff; border-bottom: 1px solid var(--gold); }

/* ===== Reading progress bar ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #ffe985);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Hero ===== */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 64px 0 54px;
    color: #fff;
    overflow: hidden;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.14) 0%, rgba(255,215,0,0) 70%);
}

.blog-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero .badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--navy);
    padding: 6px 14px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 18px;
}

.blog-hero h1 {
    color: #fff;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.blog-hero .meta span {
    margin-right: 18px;
    font-size: 0.9em;
    color: #c9d3e0;
}

.blog-hero .meta i { color: var(--gold); margin-right: 5px; }

/* ===== Breadcrumb (optional, if present) ===== */
.breadcrumb-wrap { background: var(--paper-soft); padding: 12px 0; font-size: 0.88em; }
.breadcrumb-wrap a { color: var(--navy); text-decoration: none; }
.breadcrumb-wrap a:hover { text-decoration: underline; }
.breadcrumb-wrap .sep { margin: 0 6px; color: #b7bcc4; }

/* ===== Article body ===== */
.blog-body { padding: 48px 0 70px; }

.article-hero {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 14px 34px -12px rgba(0, 31, 63, 0.35);
    border: none;
}

.article-content { font-size: 1.04rem; }

.article-content > p:first-of-type {
    font-size: 1.14rem;
    color: var(--ink);
}

.article-content h2 {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.6rem;
    margin-top: 46px;
    margin-bottom: 18px;
    padding-left: 16px;
    position: relative;
}

.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 3px;
}

.article-content h3 {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.22rem;
    margin-top: 34px;
    margin-bottom: 14px;
}

.article-content p,
.article-content li { color: var(--ink); line-height: 1.85; }

.article-content a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 1px;
    transition: background-size 0.2s ease;
}
.article-content a:hover { background-size: 100% 100%; color: var(--navy); }

.article-img {
    width: 100%;
    border-radius: 10px;
    margin: 26px 0;
    box-shadow: 0 14px 34px -14px rgba(0,31,63,0.30);
    border: none;
}

/* ---- Plain bullet list (documents) styled as a checklist ---- */
.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 18px 0 24px;
    display: grid;
    gap: 10px;
}

.article-content ul li {
    position: relative;
    padding: 12px 16px 12px 44px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0;
}

.article-content ul li::before {
    content: "\f26e"; /* bootstrap-icons check-circle-fill glyph fallback */
    font-family: "bootstrap-icons", sans-serif;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-deep);
    font-size: 1.05rem;
}

/* ---- Numbered process steps styled as a vertical timeline ---- */
.article-content ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin: 20px 0 24px;
    position: relative;
}

.article-content ol li {
    counter-increment: step-counter;
    position: relative;
    padding: 6px 0 22px 54px;
    margin-bottom: 0;
}

.article-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.article-content ol li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -6px;
    width: 2px;
    background: var(--border);
}

/* ===== Conclusion box ===== */
.conclusion-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 30px 32px;
    border-radius: 12px;
    margin-top: 44px;
    box-shadow: 0 16px 40px -16px rgba(0,31,63,0.45);
}

.conclusion-box h2 { color: var(--gold); padding-left: 0; margin-top: 0; }
.conclusion-box h2::before { display: none; }
.conclusion-box p { color: #dbe3ee; }

.btn-cta {
    display: inline-block;
    margin-top: 10px;
    background: var(--gold);
    color: var(--navy);
    padding: 11px 24px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover { background: #fff; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.2); }

/* ===== FAQ accordion ===== */
.faq-block { margin-top: 48px; }

.faq-block h2 {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.6rem;
    padding-left: 16px;
    margin-bottom: 22px;
    position: relative;
}
.faq-block h2::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px; width: 5px;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 3px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item.open { border-color: var(--gold-deep); box-shadow: 0 8px 22px -12px rgba(0,31,63,0.25); }

.faq-question {
    padding: 16px 18px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--paper-soft);
    transition: background 0.2s ease;
}
.faq-item.open .faq-question { background: #fff8dc; }

.faq-icon { transition: transform 0.25s ease; color: var(--navy); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-icon { transform: rotate(135deg); color: var(--gold-deep); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    color: var(--ink);
    line-height: 1.75;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 4px 18px 18px; }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 20px; }

.sidebar-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 10px 26px -18px rgba(0,31,63,0.25);
}

.sidebar-card-header {
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
}

.sidebar-card-body { padding: 16px; }

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92em;
    padding: 8px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.toc-list a:hover { background: var(--paper-soft); color: var(--navy); }
.toc-list a.active { background: #fff8dc; color: var(--navy); font-weight: 600; }
.toc-list i { color: var(--gold-deep); flex-shrink: 0; }

/* ===== Scroll to top button ===== */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,31,63,0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.scroll-top:hover { transform: translateY(-3px); }
.scroll-top.show { display: flex; }

@media (max-width: 991px) {
    .sidebar { position: static; }
    .blog-hero h1 { font-size: 1.6rem; }
}