/* ==========================================================================
   3Patti No1 - Boxed / Container-Based UI Stylesheet
   ========================================================================== */

/* ==========================================================================
   Jameel Noori Nastaleeq - Premium Urdu Typography
   ========================================================================== */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
         url('../fonts/JameelNooriNastaleeq.woff') format('woff'),
         url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+FD3E-FD3F, U+FDF2, U+FDFA;
}

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
         url('../fonts/JameelNooriNastaleeq.woff') format('woff'),
         url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+FD3E-FD3F, U+FDF2, U+FDFA;
}

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../fonts/JameelNooriNastaleeq.woff2') format('woff2'),
         url('../fonts/JameelNooriNastaleeq.woff') format('woff'),
         url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+FD3E-FD3F, U+FDF2, U+FDFA;
}

:root {
    --primary: #9A2E23;
    --primary-hover: #7e251e;
    --primary-soft: #fbf1ef;
    --primary-border: #e6c7c3;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #b45309;
    --accent-orange: #9A2E23;
    --accent-orange-dark: #7e251e;
    --dark: #0f172a;
    --dark-muted: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #f0f2f5;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-btn: 0 4px 14px rgba(154, 46, 35, 0.28);
}

/* Universal RTL & Urdu Typography */
[dir="rtl"],
.text-urdu,
.boxed-card [dir="rtl"],
.boxed-card .text-urdu {
    font-family: var(--font-urdu) !important;
    letter-spacing: 0 !important;
    font-size: 1.55rem;
    line-height: 2.45;
    font-weight: normal;
}

/* Helper for inline Latin/English words inside Urdu text */
.urdu-latin {
    font-family: var(--font-sans) !important;
    font-size: 0.72em;
    line-height: 1.45;
    font-weight: 700;
    direction: ltr !important;
    display: inline-block;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
    padding: 0 1px;
    letter-spacing: 0.2px;
}

::selection {
    background-color: var(--primary);
    color: #ffffff;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    background-color: var(--bg-page);
    color: var(--dark-muted);
    line-height: 1.75;
    padding-bottom: 95px; /* Space for sticky download banner */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-page-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(390px, 88vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: max(22px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.18);
    animation: header-menu-enter 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.header-page-menu[hidden] {
    display: none;
}

.header-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: header-menu-backdrop-enter 180ms ease both;
}

.header-menu-backdrop[hidden] {
    display: none;
}

.header-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f4;
}

.header-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--dark);
    text-decoration: none;
}

.header-menu-brand img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(154, 46, 35, 0.18);
}

.header-menu-brand span,
.header-menu-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.header-menu-brand strong {
    font-size: 1rem;
    line-height: 1.3;
}

.header-menu-brand small,
.header-menu-link-copy small {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 450;
    line-height: 1.45;
}

.header-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--dark-muted);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-menu-close:hover {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
}

.header-menu-section-label {
    padding: 0 8px 5px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.header-page-menu .header-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--dark-muted);
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-page-menu .header-menu-link:hover,
.header-page-menu .header-menu-link:focus-visible {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    transform: translateX(2px);
}

.header-menu-link-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f5f7fa;
    color: var(--primary);
}

.header-menu-link-copy strong {
    color: var(--dark);
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.35;
}

.header-menu-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
}

@keyframes header-menu-enter {
    from { opacity: 0.8; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes header-menu-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 110;
    width: min(780px, calc(100vw - 32px));
    max-height: min(72vh, 640px);
    overflow-y: auto;
    padding: 18px;
    transform: translateX(-50%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.header-search-panel[hidden] {
    display: none;
}

.site-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.site-search-form input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--dark);
    background: #ffffff;
    font: inherit;
    font-size: 1rem;
}

.site-search-form input:focus {
    outline: 2px solid rgba(154, 46, 35, 0.22);
    border-color: var(--primary);
}

.site-search-form button,
.site-search-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.site-search-form button:hover,
.site-search-home:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.site-search-hint,
.site-search-summary {
    margin: 10px 2px 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.site-search-results {
    margin-top: 12px;
}

.site-search-results.is-loading {
    padding: 14px 4px;
    color: var(--text-muted);
}

.site-search-results ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.site-search-results li a {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    color: var(--dark-muted);
    text-decoration: none;
}

.site-search-results li a:hover,
.site-search-results li a:focus-visible {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.site-search-results li strong {
    color: var(--primary);
    font-size: 0.96rem;
}

.site-search-results li span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-search-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 14px 4px 2px;
}

.site-search-empty p {
    margin: 0;
    color: var(--dark-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .header-page-menu,
    .header-menu-backdrop {
        animation: none;
    }
}

@media (max-width: 480px) {
    .header-search-panel {
        padding: 14px;
        border-radius: 15px;
    }

    .site-search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .site-search-form button {
        padding-inline: 13px;
    }
}

.header-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 812px) {
    .header-container {
        padding: 12px 16px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    width: 90px;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 90px;
}

.btn-header-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-icon:hover {
    background-color: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
    color: inherit;
}

.brand-link:hover {
    color: inherit;
}

/* Brand Logo Image */
.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(154, 46, 35, 0.25);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-img {
    transform: scale(1.05);
}

/* Fallback Vector Placeholder for Brand Logo */
.brand-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7e251e, #9A2E23);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(154, 46, 35, 0.28);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .header-container {
        padding: 10px 16px;
    }
    .brand-tagline {
        display: none;
    }
    .header-left, .header-right {
        width: 38px;
    }
}

/* ==========================================================================
   Boxed Page Body & Container
   ========================================================================== */

.page-body {
    padding: 24px 16px 40px;
}

.boxed-container {
    max-width: 780px;
    margin: 0 auto;
}

.static-page {
    padding-bottom: 0;
}

.content-page-card h1 {
    color: var(--dark);
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin: 0 0 18px;
}

.content-page-card .page-last-updated {
    margin: -7px 0 18px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.content-page-card h2 {
    color: var(--dark);
    font-size: var(--font-heading-h2, 1.4rem);
    line-height: 1.35;
    margin: 28px 0 8px;
}

.content-page-card p + p {
    margin-top: 14px;
}

.content-page-card ul,
.content-page-card ol {
    padding-left: 24px;
    margin: 12px 0 18px;
}

.content-page-card li {
    padding-left: 3px;
    margin: 6px 0;
}

.content-page-card a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 7px;
}

.contact-field label {
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--dark);
    font: inherit;
    line-height: 1.5;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: 2px solid rgba(154, 46, 35, 0.28);
    border-color: var(--primary);
}

.contact-submit {
    justify-self: start;
    min-height: 50px;
    padding: 11px 22px;
    border: 1px solid rgba(154, 46, 35, 0.42);
    border-radius: 13px;
    background: linear-gradient(135deg, #b54538 0%, #9A2E23 58%, #7e251e 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(154, 46, 35, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.contact-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(154, 46, 35, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-submit:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 3px 9px rgba(154, 46, 35, 0.2);
}

.contact-form-note {
    color: var(--text-muted);
    font-size: 0.88rem !important;
    margin-top: -10px;
}

.payments-intro {
    max-width: 600px;
    margin: 16px auto 0;
}

.payments-download-action {
    margin-top: 18px;
}

.payment-steps {
    display: grid;
    gap: 10px;
    padding-left: 24px;
    margin: 16px 0 20px;
}

.payment-steps li {
    padding-left: 5px;
}

.payment-issues h3 {
    margin-top: 20px;
}

.payment-issues h3:first-of-type {
    margin-top: 14px;
}

.download-hero .hero-center-title {
    max-width: 650px;
    margin: 0 auto 16px;
}

.download-hero .hero-stats-row {
    margin-top: 24px;
}

.download-hero .cta-action-group > p:first-child {
    margin-bottom: 12px;
}

.download-hero .download-promo[dir="rtl"] {
    font-family: var(--font-urdu);
    font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem) !important;
    line-height: 2.1 !important;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.download-steps {
    display: grid;
    gap: 10px;
    padding-left: 24px;
    margin: 16px 0 20px;
}

.download-steps li {
    padding-left: 5px;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        justify-self: stretch;
    }

}

/* Breadcrumb Pill */
.breadcrumb-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.breadcrumb-pill {
    display: inline-block;
    padding: 5px 22px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark-muted);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Boxed Cards (Rounded Curves with Primary Colour Bottom Accent Border)
   ========================================================================== */

.boxed-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    padding: 30px 28px;
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Curved Primary Colour Accent Border on Bottom Side (Content sections only - excluding Hero) */
.boxed-card:not(.hero-card) {
    border-bottom: 4px solid var(--primary);
}

.boxed-card:not(.hero-card):hover {
    box-shadow: 0 8px 24px rgba(154, 46, 35, 0.08);
}

.boxed-card.hero-card {
    padding: 38px 28px 36px;
    text-align: center;
}

/* App Icon Container & Placeholder */
.app-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.app-icon-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7e251e 0%, #9A2E23 55%, #b65347 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(154, 46, 35, 0.3);
    border: 2px solid #ffffff;
}

.icon-svg {
    width: 36px;
    height: 36px;
}

.placeholder-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Centered Hero Logo */
.hero-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-app-logo-img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(154, 46, 35, 0.24), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-app-logo-img:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(154, 46, 35, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Centered H1 Title */
.hero-center-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 14px;
}

/* Editorial & Trust Byline */
.hero-meta-byline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 auto 28px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    line-height: 1.4;
}

.meta-byline-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-byline-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-byline-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.meta-byline-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.meta-byline-dot {
    color: #cbd5e1;
    font-weight: 700;
}

@media (max-width: 640px) {
    .hero-meta-byline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
        max-width: 460px;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .hero-meta-byline .meta-byline-dot {
        display: none;
    }

    .hero-meta-byline .meta-byline-item {
        justify-content: center;
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }
}

/* App details grid */
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    max-width: 700px;
    margin: 0 auto 32px;
    gap: 0;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-md);
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 78px;
    padding: 12px 6px;
    text-align: center;
}

.stat-col:not(:nth-child(4n)) {
    border-right: 1px solid #e2e8f0;
}

.stat-col:nth-child(-n + 4) {
    border-bottom: 1px solid #e2e8f0;
}

.stat-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.stat-main-text {
    font-size: 0.98rem;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.star-icon {
    color: #eab308;
}

.badge-18 {
    display: inline-block;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.stat-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.stat-v-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

/* CTA Actions */
.cta-action-group {
    max-width: 720px;
    margin: 0 auto 28px;
}

/* Urdu Promo Text Above Install Button */
.boxed-card p.hero-urdu-promo,
.hero-urdu-promo {
    font-family: var(--font-urdu) !important;
    color: var(--primary) !important;
    font-size: 1.58rem !important;
    font-weight: 700 !important;
    line-height: 2.3 !important;
    text-align: center !important;
    direction: rtl !important;
    margin: 0 auto 18px !important;
    padding: 0 8px !important;
    letter-spacing: 0 !important;
    text-shadow: 0 1px 2px rgba(154, 46, 35, 0.12);
}

.btn-hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    background: linear-gradient(135deg, #b54538 0%, #9A2E23 58%, #7e251e 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    padding: 15px 26px;
    border: 1px solid rgba(154, 46, 35, 0.42);
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(154, 46, 35, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.btn-hero-primary:hover {
    filter: brightness(1.04);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(154, 46, 35, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 3px 9px rgba(154, 46, 35, 0.22);
}

.btn-arrow-icon {
    flex-shrink: 0;
}

.safe-link-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 500;
}

/* ==========================================================================
   Roman Urdu Content Cards (Curved Left Accent Design)
   ========================================================================== */

.roman-urdu-note {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: 20px;
    padding: 22px 26px;
    margin: 22px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roman-urdu-note:hover {
    box-shadow: 0 6px 20px rgba(154, 46, 35, 0.09);
}

.roman-urdu-note .note-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.roman-urdu-note .note-badge {
    display: inline-block;
    background: rgba(154, 46, 35, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.roman-urdu-note p {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.75;
    font-weight: 500;
    margin: 0;
}

.boxed-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.boxed-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.boxed-card p {
    margin-bottom: 14px;
    color: #475569;
    line-height: 1.75;
    font-size: 1.05rem;
}

.boxed-card ul,
.boxed-card ol {
    margin: 12px 0 18px 24px;
    color: #475569;
}

.boxed-card li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.02rem;
}

/* ==========================================================================
   Features Grid & Interactive Cards
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 22px 0 10px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-bottom: 3.5px solid var(--primary);
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(154, 46, 35, 0.12);
    border-color: #cbd5e1;
    border-bottom-color: var(--primary);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(154, 46, 35, 0.08);
    color: var(--primary);
    border: 1px solid rgba(154, 46, 35, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.68;
    margin: 0;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .feature-card {
        padding: 18px 16px;
    }
}

/* Technical Specs Table */
.content-table-wrapper {
    overflow-x: auto;
    margin: 16px 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.98rem;
}

.info-specs-table th,
.info-specs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.info-specs-table th {
    width: 35%;
    font-weight: 700;
    color: var(--dark);
    background-color: #f8fafc;
}

.info-specs-table td {
    color: #334155;
    font-weight: 500;
}

.info-specs-table tr:last-child th,
.info-specs-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Reviews Grid & Bilingual Customer Feedback Cards
   ========================================================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    margin-top: 20px;
}

.review-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-bottom: 3.5px solid var(--primary);
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(154, 46, 35, 0.1);
}

.review-card-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    flex-shrink: 0;
}

.avatar-m {
    background: linear-gradient(135deg, #1e293b, #475569);
}

.avatar-f {
    background: linear-gradient(135deg, #be185d, #ec4899);
}

.reviewer-meta {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
}

.reviewer-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fefce8;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    border: 1px solid #fef08a;
}

.review-rating .stars {
    color: #eab308;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.review-rating .rating-num {
    font-size: 0.78rem;
    font-weight: 800;
    color: #854d0e;
}

.review-text {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.boxed-card p.review-text.text-urdu,
.review-text.text-urdu {
    font-family: var(--font-urdu) !important;
    font-size: 1.5rem !important;
    color: #1e293b !important;
    line-height: 2.4 !important;
    direction: rtl !important;
    text-align: right !important;
    font-weight: normal !important;
}

.review-verified-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #16a34a;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    line-height: 1.55;
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .review-card {
        padding: 20px 18px;
    }

    .review-card-top {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .review-card-top {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .reviewer-avatar {
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
    }

    .reviewer-meta {
        grid-column: 2;
        grid-row: 1;
    }

    .review-rating {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
}

/* Pros and Cons Boxes */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 24px;
}

.pro-box, .con-box {
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.pro-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.pro-box h3 {
    color: #166534;
    margin-top: 0;
    margin-bottom: 10px;
}

.pro-box ul {
    margin: 0;
    padding-left: 18px;
    color: #14532d;
}

.con-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.con-box h3 {
    color: #991b1b;
    margin-top: 0;
    margin-bottom: 10px;
}

.con-box ul {
    margin: 0;
    padding-left: 18px;
    color: #7f1d1d;
}

/* FAQ Group & Bilingual Pakistani Optimization */
.faq-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.faq-group .faq-item {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-group .faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-q-en {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.boxed-card h4.faq-q-urdu,
.faq-q-urdu {
    font-family: var(--font-urdu) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin: 0 0 10px 0 !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 2.2 !important;
}

.faq-ans-en {
    font-size: 1.02rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 10px 0;
}

.boxed-card p.faq-ans-urdu,
.faq-ans-urdu {
    font-family: var(--font-urdu) !important;
    font-size: 1.55rem !important;
    color: #1e293b !important;
    line-height: 2.5 !important;
    margin: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    font-weight: normal !important;
    padding-top: 12px !important;
    border-top: 1px dashed #e2e8f0 !important;
}

@media (max-width: 640px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

/* Sticky CTA Banner (Same-to-same GET 100 BONUS + DOWNLOAD APP) */
.sticky-cta-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 16px 14px;
    background: transparent;
    display: flex;
    justify-content: center;
}

.sticky-cta-inner {
    width: 100%;
    max-width: 560px;
    position: relative;
    padding-top: 14px;
}

.floating-bonus-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffe08a 0%, #ffc43d 55%, #f3a90b 100%);
    color: #472900;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.65px;
    padding: 5px 19px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(124, 74, 0, 0.22);
    z-index: 2;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-bonus-style {
    background: linear-gradient(112deg, #b54538 0%, #9A2E23 55%, #7e251e 100%);
    box-shadow: 0 8px 20px rgba(154, 46, 35, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-bonus-style:hover {
    box-shadow: 0 11px 24px rgba(154, 46, 35, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .sticky-cta-wrapper {
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .sticky-cta-inner {
        max-width: 520px;
        padding-top: 15px;
    }

    .floating-bonus-tag {
        font-size: 0.72rem;
        padding: 4px 16px;
    }

    .btn-hero-primary.btn-bonus-style {
        min-height: 54px;
        padding: 12px 18px;
        border-radius: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .boxed-card {
        padding: 22px 18px;
    }
    .hero-center-title {
        font-size: 1.6rem;
        line-height: 1.35;
    }
    .content-page-card h1 {
        font-size: 1.6rem;
        line-height: 1.35;
    }
    .boxed-card h2 {
        font-size: 1.35rem;
    }
    .boxed-card h3 {
        font-size: 1.15rem;
    }
    .boxed-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    .boxed-card li {
        font-size: 0.98rem;
    }
    .hero-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 6px;
    }
    .hero-stats-row .stat-col:not(:nth-child(4n)) {
        border-right: 0;
    }
    .hero-stats-row .stat-col:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }
    .hero-stats-row .stat-col:nth-child(-n + 6) {
        border-bottom: 1px solid #e2e8f0;
    }
    .stat-v-divider {
        display: none;
    }
    .btn-hero-primary {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .boxed-card p.hero-urdu-promo,
    .hero-urdu-promo {
        font-size: 1.38rem !important;
        line-height: 2.15 !important;
        margin-bottom: 14px !important;
    }
    .roman-urdu-note {
        padding: 16px 18px;
        margin: 18px 0;
    }
    .roman-urdu-note .note-title {
        font-size: 1.02rem;
    }
    .roman-urdu-note p {
        font-size: 1.02rem;
        line-height: 1.7;
    }
    .review-text {
        font-size: 1.02rem;
        line-height: 1.7;
    }
    .boxed-card p.review-text.text-urdu,
    .review-text.text-urdu {
        font-size: 1.28rem !important;
        line-height: 2.2 !important;
    }
    .boxed-card h4.faq-q-urdu,
    .faq-q-urdu {
        font-size: 1.35rem !important;
        line-height: 2.05 !important;
    }
    .boxed-card p.faq-ans-urdu,
    .faq-ans-urdu {
        font-size: 1.32rem !important;
        line-height: 2.25 !important;
        padding-top: 10px !important;
    }
    .boxed-card [dir="rtl"],
    [dir="rtl"],
    .boxed-card .text-urdu,
    .text-urdu {
        font-size: 1.3rem !important;
        line-height: 2.2 !important;
    }
}

/* In-Content Screenshot Cards & Showcases */
.content-screenshot-card {
    margin: 22px 0 26px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-screenshot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(154, 46, 35, 0.12);
}

.content-screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #0f172a;
}

.screenshot-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    line-height: 1.4;
    letter-spacing: -0.1px;
}

/* 2-Column Responsive Screenshot Showcase */
.screenshot-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 22px 0 26px;
}

.screenshot-grid-2 .content-screenshot-card {
    margin: 0;
}

@media (max-width: 768px) {
    .screenshot-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .screenshot-caption {
        font-size: 0.84rem;
        padding: 10px 14px;
    }
}

/* Section Anchor Offset for Fixed Header */
.boxed-card[id] {
    scroll-margin-top: 84px;
}

/* ==========================================================================
   Table of Contents Component
   ========================================================================== */
.toc-card {
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.toc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toc-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    padding: 0;
    letter-spacing: -0.3px;
    border: none;
}

.toc-eyebrow {
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.toc-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

.toc-toggle-chevron {
    transition: transform 0.25s ease;
}

.toc-toggle-btn[aria-expanded="false"] .toc-toggle-chevron {
    transform: rotate(180deg);
}

.toc-nav {
    margin-top: 18px;
    transition: all 0.3s ease;
}

.toc-nav.collapsed {
    display: none;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}

/* Override the general content-list indent so the TOC fills its card evenly. */
.boxed-card .toc-list {
    margin: 0;
    padding: 0;
    width: 100%;
}

.boxed-card .toc-list > li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.toc-link:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-1px);
}

.toc-link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #94a3b8;
    border-right: 1.5px solid #94a3b8;
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-left: auto;
}

.toc-link:hover::after {
    border-color: var(--primary);
}

.toc-num {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(154, 46, 35, 0.09);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    flex-shrink: 0;
    min-width: 26px;
    text-align: center;
    line-height: 1.4;
}

.toc-link:hover .toc-num {
    background: var(--primary);
    color: #ffffff;
}

.toc-text {
    line-height: 1.35;
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .toc-card {
        padding: 20px 18px;
    }
    .toc-title {
        font-size: 1.15rem;
    }
    .toc-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .toc-link {
        font-size: 0.9rem;
        min-height: 46px;
        padding: 8px 9px;
    }
}

/* Responsive reading sizes: keep English compact and legible while giving
   Nastaleeq Urdu enough scale and vertical room to remain easy to read. */
:root {
    --font-reading-en: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
    --font-reading-urdu: clamp(1.18rem, 1.08rem + 0.42vw, 1.42rem);
    --font-heading-h2: clamp(1.4rem, 1.28rem + 0.55vw, 1.75rem);
    --font-heading-h3: clamp(1.18rem, 1.1rem + 0.35vw, 1.38rem);
}

body {
    font-size: var(--font-reading-en);
}

.boxed-card p:not([dir="rtl"]):not(.text-urdu),
.faq-ans-en,
.review-text:not(.text-urdu) {
    font-size: var(--font-reading-en);
    line-height: 1.8;
}

.boxed-card h2 {
    font-size: var(--font-heading-h2);
    line-height: 1.3;
}

.boxed-card h3 {
    font-size: var(--font-heading-h3);
    line-height: 1.35;
}

[dir="rtl"],
.text-urdu,
.boxed-card [dir="rtl"],
.boxed-card .text-urdu {
    font-size: var(--font-reading-urdu) !important;
    line-height: 2.15 !important;
    max-width: 100%;
}

.boxed-card p.hero-urdu-promo,
.hero-urdu-promo {
    font-size: clamp(1.02rem, 0.96rem + 0.42vw, 1.3rem) !important;
    line-height: 2.05 !important;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    box-sizing: border-box;
}

.boxed-card p.review-text.text-urdu,
.review-text.text-urdu {
    font-size: clamp(1.18rem, 1.08rem + 0.42vw, 1.42rem) !important;
    line-height: 2.15 !important;
}

.boxed-card h4.faq-q-urdu,
.faq-q-urdu {
    font-size: clamp(1.2rem, 1.1rem + 0.42vw, 1.45rem) !important;
    line-height: 2.1 !important;
}

.boxed-card p.faq-ans-urdu,
.faq-ans-urdu {
    font-size: var(--font-reading-urdu) !important;
    line-height: 2.15 !important;
}

/* Keep mixed Urdu and English copy contained on narrow phones and tablets. */
[dir="rtl"],
.text-urdu {
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

/* Compact, balanced Table of Contents header across screen sizes. */
.toc-header {
    gap: 16px;
    padding-bottom: 20px;
}

.toc-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 4px;
}

.boxed-card .toc-title {
    font-size: clamp(1.28rem, 1.16rem + 0.45vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0;
    padding: 0;
    border: 0;
}

.toc-card {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fbf6f5 0, #ffffff 120px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.toc-nav {
    margin-top: 18px;
}

.toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.toc-link {
    background: rgba(248, 250, 252, 0.78);
    border-color: #e9eef4;
    min-width: 0;
}

.toc-card .toc-nav {
    width: 100%;
    min-width: 0;
}

.toc-num {
    background: var(--primary-soft);
    color: var(--primary);
    letter-spacing: 0.01em;
}

.toc-toggle-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    background: #ffffff;
    border-color: #dbe3ec;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.toc-toggle-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
}

.toc-toggle-btn:focus-visible {
    outline-offset: 3px;
}

.toc-toggle-chevron {
    flex: 0 0 auto;
}

@media (max-width: 480px) {
    .toc-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .toc-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 16px;
    }

    .toc-header-left {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .boxed-card .toc-title {
        font-size: 1.2rem;
        min-width: 0;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .toc-toggle-btn {
        width: 40px;
        height: 40px;
    }
}

/* Site footer */
.site-footer {
    margin-top: 44px;
    background: var(--bg-page);
    color: var(--dark-muted);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
    padding: 34px 0 18px;
    text-align: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-bottom: 26px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    color: var(--dark);
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--dark);
}

.footer-brand img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-brand-copy strong {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
}

.footer-brand-copy > span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 0;
    width: 100%;
    max-width: 100%;
}

.footer-links a {
    color: var(--dark-muted);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-links a + a::before {
    content: "|";
    display: inline-block;
    color: #94a3b8;
    margin: 0 11px;
    font-weight: 400;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease;
}

/* PC setup guide */
.pc-guide-intro {
    max-width: 660px;
    margin: 0 auto 24px !important;
    text-align: center;
}

.pc-guide-cta {
    margin-bottom: 0;
}

.pc-checklist,
.pc-install-steps {
    padding-left: 24px;
}

.pc-issues h3:first-of-type {
    margin-top: 0;
}

.pc-issues p:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .footer-container {
        width: min(100% - 32px, 560px);
        padding-top: 28px;
    }

    .footer-main {
        gap: 20px;
        padding-bottom: 22px;
    }

    .footer-links {
        justify-content: center;
        gap: 8px;
    }

    .footer-links a {
        padding: 6px 9px;
        border: 1px solid var(--border-color);
        border-radius: 999px;
        font-size: 0.82rem;
    }

    .footer-links a + a::before {
        display: none;
    }

    .pc-guide-hero {
        padding-top: 28px;
    }

    .pc-checklist,
    .pc-install-steps {
        padding-left: 21px;
    }
}
