/* ==========================================================================
   USBoxesCo — Custom pages (About Us, Privacy, Terms, Shipping...)
   Classes ".ubpg-" se shuru hoti hain. Theme html font-size 62.5% hai, isliye px.
   ========================================================================== */

.ubpg {
    --pg-orange: #ff6600; --pg-orange-dark: #e05a00; --pg-orange-soft: #fff1e8;
    --pg-navy: #0f172a; --pg-ink: #111827; --pg-text: #374151; --pg-muted: #6b7280; --pg-line: #e5e7eb; --pg-soft: #f6f7fb;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--pg-text);
}
.ubpg *, .ubpg *::before, .ubpg *::after { box-sizing: border-box; }
.ubpg-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.ubpg-hero { position: relative; overflow: hidden; background: var(--pg-navy); padding: 44px 0 52px; }
.ubpg-hero::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 102, 0, .35), transparent);
}
.ubpg-hero > * { position: relative; }
.ubpg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; }
.ubpg-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; }
.ubpg-crumbs li + li::before { content: "›"; color: #64748b; }
.ubpg-crumbs a { color: #94a3b8 !important; text-decoration: none !important; }
.ubpg-crumbs a:hover { color: #fff !important; }
.ubpg-crumbs [aria-current] { color: #fff; }
.ubpg-hero h1 { max-width: 860px; margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.ubpg-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.ubpg-chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
    color: #e2e8f0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.ubpg-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-orange); }

/* Content */
.ubpg-body { padding: 56px 0 72px; }
.ubpg-content { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--pg-text); }
.ubpg-content > *:first-child { margin-top: 0 !important; }
.ubpg-content h2 {
    margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--pg-orange);
    font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--pg-ink);
}
.ubpg-content h3 { margin: 30px 0 10px; font-size: 21px; line-height: 1.35; font-weight: 600; color: var(--pg-ink); }
.ubpg-content h4 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; color: var(--pg-ink); }
.ubpg-content p { margin: 0 0 18px; }
.ubpg-content strong, .ubpg-content b { color: var(--pg-ink); }
.ubpg-content a { color: var(--pg-orange) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.ubpg-content ul, .ubpg-content ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.ubpg-content ul > li, .ubpg-content ol > li { position: relative; margin-bottom: 10px; padding-left: 30px; }
.ubpg-content ul > li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--pg-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ubpg-content ol { counter-reset: pg; }
.ubpg-content ol > li { counter-increment: pg; }
.ubpg-content ol > li::before {
    content: counter(pg); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
    background: var(--pg-orange-soft); color: var(--pg-orange); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.ubpg-content img { max-width: 100%; height: auto !important; border-radius: 14px; margin: 8px 0 20px; }
.ubpg-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--pg-orange); border-radius: 0 12px 12px 0; background: var(--pg-orange-soft); color: var(--pg-ink); }
.ubpg-table { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--pg-line); border-radius: 12px; }
.ubpg-content table { width: 100% !important; border-collapse: collapse; font-size: 15px; }
.ubpg-content td, .ubpg-content th { padding: 12px 14px !important; border-bottom: 1px solid var(--pg-line) !important; text-align: left; }

/* Google Docs / Word se paste kiya content: inline fonts, sizes, colors, spacing override */
.ubpg-content [style] {
    font-family: inherit !important; color: inherit !important; background-color: transparent !important;
    white-space: normal !important; line-height: inherit !important; font-variant: normal !important;
}
.ubpg-content p[style] { margin: 0 0 18px !important; padding: 0 !important; text-align: left !important; }
.ubpg-content span[style] { font-size: inherit !important; }
.ubpg-content h2 [style], .ubpg-content h3 [style] { font-weight: inherit !important; }
/* Pasted heading jo asal mein bold paragraph hai */
.ubpg-content p > span[style*="font-weight: bold"]:only-child,
.ubpg-content p > span[style*="font-weight: 700"]:only-child { display: block; margin-top: 22px; font-size: 20px !important; line-height: 1.35 !important; color: var(--pg-ink) !important; }

/* About Us: trust points */
.ubpg-trust { padding: 64px 0 72px; background: var(--pg-soft); }
.ubpg-trust h2 { margin: 0 0 28px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--pg-ink); }
.ubpg-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.ubpg-trust__grid li { padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--pg-line); transition: transform .25s, box-shadow .25s; }
.ubpg-trust__grid li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 24, 40, .1); }
.ubpg-trust__grid span { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; display: grid; place-items: center; background: var(--pg-orange-soft); color: var(--pg-orange); }
.ubpg-trust__grid svg { width: 24px; height: 24px; }
.ubpg-trust__grid strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--pg-ink); }
.ubpg-trust__grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--pg-muted); }

/* Responsive */
@media (max-width: 991px) {
    .ubpg-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ubpg-container { padding: 0 16px; }
    .ubpg-hero { padding: 30px 0 36px; }
    .ubpg-hero h1 { font-size: 27px; }
    .ubpg-chips li { font-size: 12px; padding: 6px 11px; }
    .ubpg-body { padding: 36px 0 48px; }
    .ubpg-content { font-size: 16px; line-height: 1.75; }
    .ubpg-content h2 { font-size: 22px; margin-top: 34px; }
    .ubpg-content h3 { font-size: 18px; }
    .ubpg-trust { padding: 44px 0 52px; }
    .ubpg-trust h2 { font-size: 24px; }
    .ubpg-trust__grid { grid-template-columns: 1fr; gap: 12px; }
}
