/* ==========================================================================
   payonclick.in/blog
   --------------------------------------------------------------------------
   Styles for templates/blog/*.html. The article body is HTML pre-rendered by
   the payonclickindia.com build, so the component classes below (.callout,
   .tile-grid, .step-no, .table-wrap) must stay in step with that build's
   Markdown extensions. Light-only, like the other public pages on this host
   (they opt out of Auto Dark Theme with color-scheme: only light).
   ========================================================================== */

:root {
    --pb-ink: #1e293b;
    --pb-text: #475569;
    --pb-muted: #94a3b8;
    --pb-line: #e8ebf4;
    --pb-ground: #f7f8fc;
    --pb-card: #ffffff;
    --pb-soft: #f1f3fd;
    --pb-accent: #667eea;
    --pb-accent-deep: #5a67d8;
    --pb-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pb-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
    background: var(--pb-ground);
    line-height: 1.6;
}
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Poppins', 'Nirmala UI', sans-serif; }
a { color: var(--pb-accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Header ------------------------------------------------------------- */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo img { height: 40px; display: block; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.nav-text { color: var(--pb-text); font-weight: 500; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.nav-text:hover, .nav-text[aria-current="page"] { color: var(--pb-accent); background: var(--pb-soft); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: none; font-family: inherit;
}
.btn-primary { background: var(--pb-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.35); }
.btn-outline { color: var(--pb-accent); border: 2px solid var(--pb-accent); background: transparent; padding: 8px 16px; }
.btn-outline:hover { background: var(--pb-accent); color: #fff; }
.btn-whatsapp { background: #e8f8ef; color: #128c4a; }
.btn-whatsapp:hover { background: #d5f2e2; }
.btn-light { background: #fff; color: var(--pb-accent-deep); }
.btn-line { border: 2px solid rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.hero { background: var(--pb-grad); color: #fff; text-align: center; padding: 48px 20px 72px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; opacity: .9; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.crumbs a:hover { text-decoration: underline; }
.hero .badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.16); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.2; max-width: 880px; margin: 14px auto 12px; text-wrap: balance; }
.hero h1 .gradient-text { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.hero .lead { font-size: 17px; opacity: .93; max-width: 720px; margin: 0 auto; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; opacity: .9; margin-top: 16px; }
.post-meta i { margin-right: 6px; }

/* ---- Article layout ----------------------------------------------------- */
.layout {
    max-width: 1180px; margin: -36px auto 0; padding: 0 20px 40px;
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
}
.article { background: var(--pb-card); border-radius: 16px; box-shadow: var(--pb-shadow); padding: 38px; min-width: 0; }
.aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--pb-card); border-radius: 16px; box-shadow: var(--pb-shadow); padding: 22px; }
.aside-card h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); margin-bottom: 12px; }
.aside-card p { font-size: 14px; color: var(--pb-text); margin-bottom: 14px; }
.aside-card ul { list-style: none; }
.aside-card li a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.45; color: var(--pb-text); }
.aside-card li a:hover { background: var(--pb-soft); color: var(--pb-accent); }
.aside-card .btn + .btn { margin-top: 10px; }

/* ---- Prose (pre-rendered Markdown) -------------------------------------- */
.prose { color: var(--pb-text); font-size: 16px; line-height: 1.85; }
.prose > * + * { margin-top: 16px; }
.prose h2 { color: var(--pb-ink); font-size: 24px; font-weight: 700; line-height: 1.3; margin-top: 40px; scroll-margin-top: 90px; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { color: var(--pb-ink); font-size: 18px; font-weight: 600; line-height: 1.4; margin-top: 28px; scroll-margin-top: 90px; }
.prose strong { color: var(--pb-ink); }
.prose a { font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--pb-accent); }
.prose code { font-family: Consolas, 'Cascadia Mono', monospace; font-size: .88em; background: var(--pb-soft); color: #4c51bf; padding: 2px 6px; border-radius: 5px; word-break: break-word; }
.prose pre { background: #1a1f36; color: #e2e8f0; padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; word-break: normal; }
.prose hr { border: 0; border-top: 1px solid var(--pb-line); margin: 32px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--pb-line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th { background: var(--pb-soft); color: var(--pb-ink); text-align: left; padding: 10px 14px; font-weight: 600; white-space: nowrap; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--pb-line); vertical-align: top; }

.callout { display: flex; gap: 12px; padding: 14px 18px; border-radius: 10px; background: #eef0fe; border: 1px solid #d9ddfb; }
.callout > i { color: var(--pb-accent); margin-top: 6px; }
.callout > div { min-width: 0; }
.callout > div > * + * { margin-top: 8px; }
.callout.tip { background: #ecfdf5; border-color: #bbf7d0; }
.callout.tip > i { color: #059669; }
.callout.warning { background: #fff7ed; border-color: #fed7aa; }
.callout.warning > i { color: #ea580c; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { background: #fafbff; border: 1px solid var(--pb-line); border-radius: 12px; padding: 18px; }
.tile > i { width: 42px; height: 42px; border-radius: 10px; background: var(--pb-grad); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.tile .step-no { width: 36px; height: 36px; border-radius: 10px; background: var(--pb-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.prose .tile h3 { margin-top: 0; font-size: 16px; }
.prose .tile p { margin: 0; font-size: 14px; line-height: 1.6; }

/* ---- Sections below the article ----------------------------------------- */
.section { max-width: 1180px; margin: 0 auto; padding: 16px 20px 40px; }
.section-title { font-size: 26px; font-weight: 700; color: var(--pb-ink); text-align: center; margin-bottom: 20px; text-wrap: balance; }

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--pb-card); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,23,42,0.05); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--pb-ink); display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pb-accent); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 16px; color: var(--pb-text); }
.faq .answer > * + * { margin-top: 8px; }

.cta-band {
    max-width: 1140px; margin: 8px auto 40px; background: var(--pb-grad); border-radius: 16px;
    padding: 30px 32px; color: #fff; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.cta-band p { opacity: .9; margin-top: 4px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card {
    display: flex; flex-direction: column; background: var(--pb-card); border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.05); padding: 20px; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(102,126,234,0.18); }
.post-card .kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--pb-accent); }
.post-card h3 { font-size: 17px; font-weight: 700; color: var(--pb-ink); margin: 6px 0; line-height: 1.4; }
.post-card p { font-size: 14px; color: var(--pb-text); }
.post-card .more { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--pb-accent); }
.lang-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #ecfdf5; color: #059669; font-size: 11px; letter-spacing: 0; text-transform: none; }

/* ---- Enquiry ------------------------------------------------------------ */
.enquiry { max-width: 1140px; margin: 0 auto 56px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.enquiry-copy h2 { font-size: 26px; font-weight: 700; color: var(--pb-ink); line-height: 1.3; }
.enquiry-copy p { color: var(--pb-text); margin: 10px 0 18px; }
.enquiry-copy ul { list-style: none; display: grid; gap: 10px; }
.enquiry-copy li { display: flex; gap: 10px; align-items: center; color: var(--pb-ink); font-weight: 500; }
.enquiry-copy li i { width: 36px; height: 36px; border-radius: 10px; background: var(--pb-soft); color: var(--pb-accent); display: flex; align-items: center; justify-content: center; }
.enquiry-form { background: var(--pb-card); border-radius: 16px; box-shadow: var(--pb-shadow); padding: 26px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--pb-text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--pb-line); border-radius: 10px;
    font: inherit; font-size: 15px; color: var(--pb-ink); background: #fbfcff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pb-accent); background: #fff; }
.field textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 13px; color: var(--pb-muted); }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.ok { color: #059669; }
.form-status.err { color: #dc2626; }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: #1a1f36; color: #cbd5e1; padding: 34px 20px 26px; }
.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 14px; }
.footer-links a { color: #cbd5e1; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-b2b { font-size: 13px; color: #94a3b8; margin-bottom: 10px; }
.footer-b2b a { color: #c3c9f7; }
.footer-copyright { font-size: 13px; color: #94a3b8; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .aside { position: static; }
    .enquiry { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .article { padding: 22px 18px; }
    .hero { padding: 36px 16px 60px; }
    .header-nav .btn span, .hide-sm { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .cta-band { padding: 24px 20px; }
    .prose { font-size: 15.5px; }
}
