 

.ubb {
    --ubb-orange: #ff6600;
    --ubb-orange-dark: #e05a00;
    --ubb-orange-soft: #fff1e8;
    --ubb-navy: #0f172a;
    --ubb-ink: #111827;
    --ubb-text: #374151;
    --ubb-muted: #6b7280;
    --ubb-line: #e5e7eb;
    --ubb-soft: #f6f7fb;
    --ubb-radius: 16px;
    --ubb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --ubb-shadow-lg: 0 20px 48px rgba(16, 24, 40, .14);

    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ubb-text);
}
.ubb *, .ubb *::before, .ubb *::after { box-sizing: border-box; }
.ubb img { max-width: 100%; height: auto; }
.ubb a { text-decoration: none; }

.ubb-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.ubb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
    font: 600 15px/1 'Poppins', sans-serif; cursor: pointer; text-decoration: none !important;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.ubb-btn:hover { transform: translateY(-2px); }
.ubb-btn--primary { background: var(--ubb-orange); color: #fff !important; box-shadow: 0 8px 20px rgba(255, 102, 0, .28); }
.ubb-btn--primary:hover { background: var(--ubb-orange-dark); }
.ubb-btn--ghost { background: transparent; color: var(--ubb-ink) !important; border-color: var(--ubb-line); }
.ubb-btn--ghost:hover { border-color: var(--ubb-ink); }
.ubb-btn--light { background: #fff; color: var(--ubb-ink) !important; }
.ubb-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Breadcrumb ---------- */
.ubb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--ubb-muted); }
.ubb-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.ubb-crumbs li + li::before { content: "/"; color: #c4c9d2; }
.ubb-crumbs a { color: var(--ubb-muted) !important; text-decoration: none !important; }
.ubb-crumbs a:hover { color: var(--ubb-orange) !important; }
.ubb-crumbs [aria-current] { color: var(--ubb-ink); font-weight: 500; }

/* ---------- Page hero ---------- */
.ubb-hero { background: var(--ubb-soft); padding: 48px 0 56px; border-bottom: 1px solid var(--ubb-line); }
.ubb-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ubb-orange);
}
.ubb-hero__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.ubb-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--ubb-ink); margin: 0 0 14px; }
.ubb-hero__lead { font-size: 18px; color: var(--ubb-muted); margin: 0; max-width: 680px; }

/* ---------- Meta row ---------- */
.ubb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--ubb-muted); margin: 0; padding: 0; list-style: none; }
.ubb-meta li { display: inline-flex; align-items: center; gap: 6px; }
.ubb-meta svg { width: 16px; height: 16px; color: var(--ubb-orange); flex: none; }
.ubb-meta strong { color: var(--ubb-ink); font-weight: 600; }

/* ==========================================================================
   Listing
   ========================================================================== */
.ubb-list { padding: 64px 0 88px; }

.ubb-featured {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 56px;
    background: #fff; border: 1px solid var(--ubb-line); border-radius: 24px; overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
}
.ubb-featured:hover { box-shadow: var(--ubb-shadow-lg); border-color: transparent; }
.ubb-featured__media { display: block; overflow: hidden; background: var(--ubb-soft); min-height: 100%; }
.ubb-featured__media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .5s; }
.ubb-featured:hover .ubb-featured__media img { transform: scale(1.04); }
.ubb-featured__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ubb-tag {
    align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--ubb-orange-soft);
    color: var(--ubb-orange); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.ubb-featured__title { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.ubb-featured__title a, .ubb-card__title a { color: var(--ubb-ink) !important; text-decoration: none !important; }
.ubb-featured__title a:hover, .ubb-card__title a:hover { color: var(--ubb-orange) !important; }
.ubb-featured__excerpt {
    font-size: 16px; color: var(--ubb-muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.ubb-section-title { font-size: 26px; font-weight: 700; color: var(--ubb-ink); margin: 0 0 24px; letter-spacing: -.01em; }

.ubb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ubb-card {
    background: #fff; border: 1px solid var(--ubb-line); border-radius: var(--ubb-radius); overflow: hidden;
    display: flex; flex-direction: column; height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ubb-card:hover { transform: translateY(-4px); box-shadow: var(--ubb-shadow-lg); border-color: transparent; }
.ubb-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ubb-soft); }
.ubb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ubb-card:hover .ubb-card__media img { transform: scale(1.05); }
.ubb-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ubb-card__title { font-size: 19px; line-height: 1.35; font-weight: 600; margin: 0; }
.ubb-card__excerpt {
    font-size: 15px; color: var(--ubb-muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ubb-card__link {
    margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
    color: var(--ubb-orange) !important; text-decoration: none !important;
}
.ubb-card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.ubb-card:hover .ubb-card__link svg { transform: translateX(4px); }
.ubb-card .ubb-meta { font-size: 13px; gap: 4px 14px; }
.ubb-card .ubb-meta svg { width: 14px; height: 14px; }

.ubb-empty { text-align: center; padding: 64px 20px; color: var(--ubb-muted); border: 1px dashed var(--ubb-line); border-radius: var(--ubb-radius); }

/* ---------- Pagination ---------- */
.ubb-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; list-style: none; padding: 0; }
.ubb-pager a, .ubb-pager span {
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; border: 1px solid var(--ubb-line); color: var(--ubb-ink) !important; background: #fff; text-decoration: none !important;
}
.ubb-pager a:hover { border-color: var(--ubb-orange); color: var(--ubb-orange) !important; }
.ubb-pager [aria-current="page"] { background: var(--ubb-orange); border-color: var(--ubb-orange); color: #fff !important; }
.ubb-pager .is-disabled { opacity: .4; }

/* ==========================================================================
   Single post
   ========================================================================== */
.ubb-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ubb-orange); z-index: 10000; transition: width .1s linear; }

.ubb-post-hero { background: var(--ubb-soft); padding: 44px 0 0; }
.ubb-post-hero__inner { max-width: 860px; }
.ubb-post-hero h1 { font-size: 42px; }
.ubb-post-hero .ubb-hero__lead {
    margin-bottom: 22px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ubb-post-hero .ubb-meta { margin-bottom: 36px; }
.ubb-cover { position: relative; }
.ubb-cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--ubb-soft); }
.ubb-cover img {
    /* Poori image dikhao, kabhi crop nahi (blog images mein text hota hai) */
    position: relative; display: block; width: 100%; height: auto; max-width: 1200px; margin: 0 auto;
    border-radius: 24px; box-shadow: var(--ubb-shadow-lg); background: #fff;
}

.ubb-post { padding: 56px 0 72px; }
.ubb-post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.ubb-post__main { min-width: 0; }

/* Article typography */
.ubb-article { font-size: 17px; line-height: 1.8; color: var(--ubb-text); max-width: 760px; }
.ubb-article > *:first-child { margin-top: 0; }
.ubb-article h2 {
    font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ubb-ink);
    margin: 48px 0 16px; scroll-margin-top: 90px;
}
.ubb-article h3 { font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--ubb-ink); margin: 36px 0 12px; scroll-margin-top: 90px; }
.ubb-article h4 { font-size: 18px; font-weight: 600; color: var(--ubb-ink); margin: 28px 0 10px; }
.ubb-article p { margin: 0 0 20px; }
.ubb-article a { color: var(--ubb-orange) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ubb-article a:hover { color: var(--ubb-orange-dark) !important; }
.ubb-article ul, .ubb-article ol { margin: 0 0 24px; padding-left: 24px; }
.ubb-article ul { list-style: disc; }
.ubb-article ol { list-style: decimal; }
.ubb-article li { margin-bottom: 8px; padding-left: 4px; }
.ubb-article li::marker { color: var(--ubb-orange); font-weight: 600; }
.ubb-article strong { color: var(--ubb-ink); }
.ubb-article img { border-radius: 14px; margin: 12px 0 24px; height: auto !important; }
.ubb-article blockquote {
    margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--ubb-orange); background: var(--ubb-orange-soft);
    border-radius: 0 14px 14px 0; font-size: 18px; color: var(--ubb-ink);
}
.ubb-article blockquote p:last-child { margin-bottom: 0; }
/* Tables: admin editor (Google Docs / Word paste) inline styles lagata hai —
   width, colors, fonts, borders, padding — isliye yahan !important se override hota hai */
.ubb-table-wrap { overflow-x: auto; margin: 8px 0 28px; border: 1px solid var(--ubb-line); border-radius: 14px; background: #fff; }
.ubb-article table {
    width: 100% !important; height: auto !important; min-width: 520px; margin: 0 !important;
    border: 0 !important; border-collapse: collapse !important; border-spacing: 0;
    font-size: 15px; line-height: 1.55; background: #fff !important;
}
.ubb-article table col { width: auto !important; }
.ubb-article table tr { height: auto !important; background: transparent !important; }
.ubb-article table td, .ubb-article table th {
    width: auto !important; height: auto !important;
    padding: 13px 16px !important; text-align: left; vertical-align: top !important;
    border: 0 !important; border-bottom: 1px solid var(--ubb-line) !important;
    background: #fff !important; color: var(--ubb-text) !important; font-weight: 400;
}
.ubb-article table td + td, .ubb-article table th + th { border-left: 1px solid var(--ubb-line) !important; }
/* Cell ke andar paste hua text: Calibri font, kaala color, 12pt size, margins sab reset */
.ubb-article table td *, .ubb-article table th * {
    font-family: inherit !important; font-size: inherit !important; line-height: inherit !important;
    background-color: transparent !important; white-space: normal !important;
}
.ubb-article table td :not(a), .ubb-article table th :not(a) { color: inherit !important; }
.ubb-article table p { margin: 0 !important; }
.ubb-article table p + p { margin-top: 8px !important; }
.ubb-article table strong, .ubb-article table b { font-weight: 600 !important; }
/* Header row: <thead> ho to woh; warna pehli row (sirf ek row header banegi) */
.ubb-article table thead th, .ubb-article table thead td,
.ubb-article table:not(:has(thead)) tr:first-child th,
.ubb-article table:not(:has(thead)) > tbody:first-of-type > tr:first-child > td {
    background: var(--ubb-navy) !important; color: #fff !important; font-weight: 600 !important;
    border-bottom: 0 !important; border-left-color: rgba(255, 255, 255, .12) !important; vertical-align: middle !important;
}
.ubb-article table thead th *, .ubb-article table thead td *,
.ubb-article table:not(:has(thead)) > tbody:first-of-type > tr:first-child > td * { font-weight: 600 !important; }
.ubb-article table tbody tr:nth-child(even) td { background: var(--ubb-soft) !important; }
.ubb-article table tbody tr:last-child td { border-bottom: 0 !important; }
.ubb-article table tbody tr:hover td { background: var(--ubb-orange-soft) !important; }

/* TOC */
.ubb-toc { background: #fff; border: 1px solid var(--ubb-line); border-radius: var(--ubb-radius); }
.ubb-toc__title {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 20px; font-size: 15px; font-weight: 700;
    color: var(--ubb-ink); border-bottom: 1px solid var(--ubb-line); list-style: none; cursor: default;
}
.ubb-toc__title svg { width: 18px; height: 18px; color: var(--ubb-orange); }
.ubb-toc__list { list-style: none; margin: 0; padding: 10px 10px 12px; max-height: max(220px, calc(100vh - 480px)); overflow-y: auto; }
.ubb-toc__list li { margin: 0; }
.ubb-toc__list a {
    display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4;
    color: var(--ubb-muted) !important; text-decoration: none !important; border-left: 2px solid transparent; transition: background .15s, color .15s;
}
.ubb-toc__list a:hover { background: var(--ubb-soft); color: var(--ubb-ink) !important; }
.ubb-toc__list a.is-active { color: var(--ubb-orange) !important; background: var(--ubb-orange-soft); font-weight: 600; }
.ubb-toc__list .is-sub a { padding-left: 24px; font-size: 13px; }

.ubb-toc--mobile { display: none; margin-bottom: 32px; }
.ubb-toc--mobile summary { cursor: pointer; justify-content: space-between; border-bottom: 0; }
.ubb-toc--mobile summary::-webkit-details-marker { display: none; }
.ubb-toc--mobile[open] summary { border-bottom: 1px solid var(--ubb-line); }
.ubb-toc--mobile .ubb-toc__chev { width: 18px; height: 18px; transition: transform .2s; color: var(--ubb-muted); }
.ubb-toc--mobile[open] .ubb-toc__chev { transform: rotate(180deg); }
.ubb-toc--mobile .ubb-toc__list { max-height: none; }

/* Sidebar */
.ubb-aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.ubb-cta-card {
    background: var(--ubb-navy); color: #cbd5e1; border-radius: var(--ubb-radius); padding: 26px; position: relative; overflow: hidden;
}
.ubb-cta-card::before {
    content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 102, 0, .45), transparent);
}
.ubb-cta-card > * { position: relative; }
.ubb-cta-card strong { display: block; font-size: 19px; line-height: 1.3; color: #fff; margin-bottom: 8px; }
.ubb-cta-card p { font-size: 14px; margin: 0 0 18px; color: #94a3b8; }
.ubb-cta-card .ubb-btn { width: 100%; }

/* Share */
.ubb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding: 24px 0; border-top: 1px solid var(--ubb-line); border-bottom: 1px solid var(--ubb-line); }
.ubb-share__label { font-size: 14px; font-weight: 600; color: var(--ubb-ink); margin-right: 6px; }
.ubb-share a, .ubb-share button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ubb-line); background: #fff; color: var(--ubb-ink) !important;
    display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; padding: 0;
}
.ubb-share a:hover, .ubb-share button:hover { background: var(--ubb-orange); border-color: var(--ubb-orange); color: #fff !important; }
.ubb-share svg { width: 18px; height: 18px; }
.ubb-share button.is-copied { background: #16a34a; border-color: #16a34a; color: #fff !important; }

/* Author box */
.ubb-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px; background: var(--ubb-soft); border-radius: var(--ubb-radius); }
.ubb-author__logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--ubb-line); object-fit: contain; padding: 8px; flex: none; }
.ubb-author strong { display: block; font-size: 17px; color: var(--ubb-ink); margin-bottom: 4px; }
.ubb-author p { margin: 0; font-size: 15px; color: var(--ubb-muted); }

/* Prev / next */
.ubb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ubb-pn a {
    display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--ubb-line); border-radius: 14px;
    text-decoration: none !important; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.ubb-pn a:hover { border-color: var(--ubb-orange); box-shadow: var(--ubb-shadow); }
.ubb-pn__label { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ubb-orange); }
.ubb-pn__title { font-size: 16px; font-weight: 600; color: var(--ubb-ink); line-height: 1.4; }
.ubb-pn__next { text-align: right; grid-column: 2; }

/* Related + bottom CTA */
.ubb-related { background: var(--ubb-soft); padding: 72px 0; }
.ubb-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ubb-related__head .ubb-section-title { margin: 0; }

.ubb-cta { padding: 72px 0; }
.ubb-cta__box {
    background: var(--ubb-navy); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    position: relative; overflow: hidden;
}
.ubb-cta__box::before {
    content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -220px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 102, 0, .4), transparent);
}
.ubb-cta__box > * { position: relative; }
.ubb-cta__box h2 { font-size: 32px; line-height: 1.25; color: #fff; margin: 0 0 10px; font-weight: 700; letter-spacing: -.02em; }
.ubb-cta__box p { margin: 0; color: #94a3b8; font-size: 17px; }
.ubb-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ubb-cta__actions .ubb-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .25); }
.ubb-cta__actions .ubb-btn--ghost:hover { border-color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .ubb-post__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; }
}

@media (max-width: 991px) {
    .ubb-hero h1, .ubb-post-hero h1 { font-size: 34px; }
    .ubb-featured { grid-template-columns: 1fr; }
    .ubb-featured__body { padding: 28px; }
    .ubb-featured__title { font-size: 25px; }
    .ubb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ubb-post__grid { grid-template-columns: 1fr; }
    .ubb-aside { position: static; }
    .ubb-aside .ubb-toc { display: none; }
    .ubb-toc--mobile { display: block; }
    .ubb-article { max-width: none; }
    .ubb-cta__box { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 767px) {
    .ubb { font-size: 15px; }
    .ubb-container { padding: 0 16px; }
    .ubb-hero { padding: 32px 0 36px; }
    .ubb-post-hero { padding-top: 28px; }
    .ubb-hero h1, .ubb-post-hero h1 { font-size: 27px; }
    .ubb-hero__lead { font-size: 16px; }
    .ubb-cover img { border-radius: 16px; }
    .ubb-list { padding: 40px 0 56px; }
    .ubb-featured { margin-bottom: 40px; border-radius: 18px; }
    .ubb-featured__body { padding: 22px; gap: 12px; }
    .ubb-featured__title { font-size: 21px; }
    .ubb-grid { grid-template-columns: 1fr; }
    .ubb-post { padding: 36px 0 48px; }
    .ubb-article { font-size: 16px; line-height: 1.75; }
    .ubb-article h2 { font-size: 24px; margin-top: 36px; }
    .ubb-article h3 { font-size: 19px; }
    .ubb-pn { grid-template-columns: 1fr; }
    .ubb-pn__next { grid-column: auto; }
    .ubb-related { padding: 48px 0; }
    .ubb-related__head { flex-direction: column; align-items: flex-start; }
    .ubb-cta { padding: 48px 0; }
    .ubb-cta__box { padding: 32px 22px; border-radius: 20px; }
    .ubb-cta__box h2 { font-size: 24px; }
    .ubb-cta__actions .ubb-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ubb *, .ubb *::before, .ubb *::after { transition: none !important; }
}
