/* =============================================================
   Global CSS — Koading.com
   All styles live here. Zero inline styles in page HTML.
   Zero scattered <style> tags in page HTML.
   ============================================================= */

/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */

:root {
    /* Brand Colors */
    --primary: #6B0DF2;
    /* slightly darker purple */
    --primary-dark: #4A00B7;
    --primary-light: #F9F5FF;
    --primary-soft: #E7D6FF;
    --primary-mid: #C4A0FF;
    --accent: #2ef2c2;

    /* Dark Backgrounds */
    --dark-bg: #2D0F6C;
    --dark-bg-deep: #1a084d;
    --dark-bg-card: #2b0f6b;

    /* Text */
    --text-dark: #000000;
    --text-gray: #555555;
    --text-light: #ffffff;

    /* Borders */
    --border-light: rgba(127, 27, 255, 0.1);

    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --h1-size: clamp(2.2rem, 5vw, 3.5rem);
    --h2-size: clamp(2rem, 4.5vw, 3.2rem);
    --h3-size: clamp(1.5rem, 3vw, 1.8rem);
    --body-size: clamp(1rem, 1.5vw, 1.2rem);
    --small-size: clamp(0.9rem, 1.1vw, 1rem);

    /* Spacing */
    --space-xs: 10px;
    --space-sm: 15px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    --space-2xl: 60px;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(127, 27, 255, 0.1);
    --shadow-lg: 0 15px 40px rgba(127, 27, 255, 0.15);
    --shadow-xl: 0 20px 60px rgba(127, 27, 255, 0.08);

    /* Layout */
    --container-max: 1400px;
    --container-pad: clamp(20px, 5%, 40px);
    --section-pad: clamp(25px, 4vw, 60px) 0;
}

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

html,
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Prevent text blur from 3D layer isolation */
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

/* Two-colour headings — WordPress overrides span color inside h1/h2.
   !important ensures .text-primary purple always shows inside headings. */
h1 .text-primary,
h2 .text-primary,
h3 .text-primary {
    color: var(--primary) !important;
}

h1 .text-dark,
h2 .text-dark,
h3 .text-dark {
    color: var(--text-dark) !important;
}

/* Heading underline decoration */
.heading-underline {
    position: relative;
    margin-bottom: var(--space-lg);
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.heading-underline-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Section header helpers */
.section-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;

    width: 40px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-title span {
    color: var(--primary);
}

.section-label {
    display: inline-block;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;

    width: 40px;
    height: 2px;
    background: var(--primary);
}

.section-description {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================================
   3. TEXT & BACKGROUND UTILITIES
   ========================================================= */

.text-primary {
    color: var(--primary);
}

.text-dark {
    color: var(--text-dark);
}

.text-gray {
    color: var(--text-gray);
}

.text-white {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Extracted Utility Classes */
.position-relative {
    position: relative;
}

.hero-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.hero-section--rounded {
    border-radius: 0 0 40px 40px;
}

.img-container--constrained {
    max-width: 633px;
}

.dot--tl {
    top: 0;
    left: 0;
}

.dot--tr {
    top: 0;
    right: 0;
}

.dot--bl {
    bottom: 0;
    left: 0;
}

.dot--br {
    bottom: 0;
    right: 0;
}

.dot--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-right {
    text-align: right;
}

.bg-primary-light {
    background: var(--primary-light);
}

.bg-primary {
    background: var(--primary);
}

.bg-dark {
    background: var(--dark-bg);
}

.bg-white {
    background: #ffffff;
}

/* =========================================================
   4. LAYOUT — Container, Grid, Section
   ========================================================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

.section-padding {
    padding: var(--section-pad);
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* =========================================================
   5. LINKS
   ========================================================= */

/* WordPress themes inject color on links — override cleanly */
a {
    color: var(--primary);
    text-decoration: none;
    /* color transition removed - causes mobile repaint crash */
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none !important;
}

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

a:active {
    color: var(--primary-dark);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   6. BUTTONS
   WordPress themes inject border and color on buttons —
   !important used only here to reliably override theme styles.
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;

    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1.3rem;

}

.btn:hover i {}

.btn-sm {
    padding: 14px 30px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    max-width: 280px;
}

.btn-rounded {
    border-radius: 50px !important;
}

/* Primary button */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary) !important;
    color: var(--text-light) !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(127, 27, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    border: none !important;

    box-shadow: 0 12px 35px rgba(95, 20, 191, 0.4);
    outline: none;
}

.btn-primary:active {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;

    box-shadow: 0 6px 15px rgba(95, 20, 191, 0.25);
}

/* Secondary button */
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible {
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
    border: none !important;

    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-secondary:active {
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;

}

/* Link button */
.btn-link,
.btn-link:link,
.btn-link:visited,
.btn-link:hover,
.btn-link:active,
.btn-link:focus {
    background: transparent !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 0;
}

.btn-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--primary-dark) !important;
    gap: 10px;
}

.btn-link i {
    font-size: 0.9rem;

}

.btn-link:hover i {}

/* Icon button */
.btn-icon,
.btn-icon:link,
.btn-icon:visited {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light) !important;
    border: none !important;
    border-radius: 50%;
    color: var(--primary) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.btn-icon:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: rotate(-45deg);
}

.btn-icon:active,
.btn-icon:focus,
.btn-icon:focus-visible {
    background-color: var(--primary-dark) !important;
    color: white !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: rotate(-45deg);
    -webkit-tap-highlight-color: transparent !important;
}

.btn-icon i {
    font-size: 1rem;
}

/* Focus ring */
button:focus,
.btn:focus,
.btn-link:focus,
.btn-icon:focus,
a:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* =========================================================
   7. CARDS
   ========================================================= */

.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;

    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary);
    background: #fcfaff;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.8;
}

/* Card with corner decorations */
.card-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.card-corners::before,
.card-corners::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
}

/* Restored Thin Border Corner Decorations */
.card-corner-tl,
.card-corner-tr,
.card-corner-bl,
.card-corner-br {
    display: none;
    position: absolute !important;
    width: 35px;
    height: 35px;
    border-color: rgba(127, 27, 255, 0.4);
    border-style: solid;
    border-width: 0;
    z-index: 2 !important;
    pointer-events: none;
    opacity: 0.3;
}

@media (min-width: 768px) {

    .card-corner-tl,
    .card-corner-tr,
    .card-corner-bl,
    .card-corner-br {
        display: block;
    }
}

.card-corner-tl {
    top: 25px;
    left: 25px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-top-left-radius: 12px;
}

.card-corner-tr {
    top: 25px;
    right: 25px;
    border-top-width: 1px;
    border-right-width: 1px;
    border-top-right-radius: 12px;
}

.card-corner-bl {
    bottom: 25px;
    left: 25px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-left-radius: 12px;
}

.card-corner-br {
    bottom: 25px;
    right: 25px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-bottom-right-radius: 12px;
}

/* =========================================================
   8. STAT BOXES — dark background
   ========================================================= */

.stat-box {
    background: var(--dark-bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    color: var(--text-light);
    position: relative;

    overflow: hidden;
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box:hover {}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-soft);
    border-bottom-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-lg);
}

.stat-box__value {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-box__title {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.stat-box__sub {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    opacity: 0.9;
    font-style: italic;
}

/* Stats grid — used in home page stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stats-grid .stat-box {
    width: 100%;
    min-height: 200px;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 80px;
}

.stat-value {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.stat-box--light {
    background: var(--primary-light);
    color: var(--text-dark);
}

.stat-box--light .stat-box__value {
    color: var(--primary);
}

.stat-box--light .stat-box__title {
    color: var(--text-dark);
}

.stat-box--light .stat-box__sub {
    color: var(--text-gray);
}

.stat-box--light::after {
    background: var(--primary-mid);
}

/* Stat boxes row — flexible centered layout */
.stat-boxes-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-boxes-row .stat-box {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
}

/* =========================================================
   9. STAT CARDS — light background
   ========================================================= */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.stat-card__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 14px 8px;
    }

    .stat-card__number {
        font-size: 1.4rem;
    }

    .stat-card__label {
        font-size: 0.75rem;
    }
}

/* Light stat boxes (Why Choose Us stats row) */
.stat-highlight {
    text-align: center;
    padding: 30px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.stat-highlight:hover {

    box-shadow: var(--shadow-md);
}

.stat-highlight__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-highlight__label {
    color: var(--text-gray);
    font-size: 1rem;
}

/* =========================================================
   10. IMAGE CONTAINERS
   ========================================================= */

.img-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: transparent;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;

}

.img-container:hover img {}

/* Transparent image container */
.img-container--transparent {
    background: transparent;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
}

/* drop-shadow filter removed — causes GPU layer leak during scroll.
   Use box-shadow instead which doesn't create a compositor layer. */
.img-drop-shadow {
    box-shadow: 0 25px 50px rgba(127, 27, 255, 0.15);
}

/* Image caption overlay */
.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 30px;
    color: white;
    pointer-events: none;
}

.img-caption__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.img-caption__sub {
    font-size: 1rem;
    opacity: 0.9;
}

/* =========================================================
   11. BADGES
   ========================================================= */

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.badge-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(127, 27, 255, 0.08);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    width: fit-content;
}

/* =========================================================
   12. LOGO MARQUEE
   ========================================================= */
@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes marqueeLineScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: marqueeScroll 40s linear infinite;
    will-change: auto;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-logo {
    width: auto;
    min-width: 180px;
    max-width: 220px;
    height: auto;
    min-height: 90px;
    flex-shrink: 0;
    /* grayscale filter removed — applying filter to animated element causes
       Chrome to recomposite every frame, leaking GPU memory until crash */
    opacity: 0.7;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.marquee-logo:hover {
    opacity: 1;

    box-shadow: var(--shadow-md);
}

.marquee-logo img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

/* Logo grid (hero section) */
.logo-grid-flex {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Tablet/mobile wrap handled in the 992px and 767px media queries below */

@media (max-width: 1100px) {
    .logo-grid-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-grid-flex .logo-item {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .logo-grid-flex .logo-item {
        flex: 1 1 100%;
        /* Take up full width on very small phones if needed, or keep 2x2 by removing this */
    }
}

.logo-grid-flex .logo-item {
    flex: 1;
}

.logo-item {
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    transform: translateZ(0);
    /* Safety rule for GPU */
    will-change: transform, filter;

    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateZ(0) scale(1.05);
    /* Safe zoom */
    box-shadow: var(--shadow-md);
}

.logo-item img {
    max-width: 80px;
    max-height: 35px;
    object-fit: contain;
    display: block;
}

/* =========================================================
   13. MARQUEE LINE — testimonials/results ticker
   ========================================================= */

.marquee-line {
    background: var(--primary-soft);
    border-radius: var(--radius-full);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-light);
}

.marquee-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.marquee-content {
    flex: 1;
    overflow: hidden;
}

.marquee-track-line {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marqueeLineScroll 35s linear infinite;
    width: max-content;
    will-change: auto;
}

.marquee-line-item {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.marquee-line-divider {
    color: var(--primary);
    opacity: 0.5;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    margin-left: 20px;
    margin-right: 4px;
    padding: 0;
}

/* =========================================================
   14. HERO SHARED
   ========================================================= */

/* Hero section — rounded bottom corners */
.hero-section {
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    position: relative;
}

/* Hero grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 550px;
}

.hero-btn {
    align-self: flex-start;
    margin-bottom: 20px;
}

.hero-right {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Location address line */
.location-address {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Services page subheading */
.svc-subheading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   15. INLINE STATS — case study section
   ========================================================= */

.inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.inline-stats__item {
    flex: 1;
    min-width: 150px;
}

.inline-stats__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.inline-stats__label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* =========================================================
   16. CASE STUDY STAT CARDS
   ========================================================= */

.case-study-right {
    position: relative;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 35px;
}

.case-stat-card {
    background: var(--primary-light);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;

}

.case-stat-card:hover {

    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.case-stat-card__value {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.case-stat-card__label {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.3;
}

/* =========================================================
   17. CHECK LIST — feature lists in panels / accordion
   ========================================================= */

.check-list {
    list-style: none;
    padding: 0;
}

.check-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #444;
    text-align: left;
}

.check-list__item i {
    color: var(--primary);
    margin-top: 3px;
    min-width: 14px;
    flex-shrink: 0;
}

/* FAQ answer highlight box */
.faq-highlight {
    background: rgba(127, 27, 255, 0.04);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-top: 15px;
}

.faq-highlight .check-list__item {
    gap: 10px;
    margin-bottom: 8px;
}

.faq-highlight .check-list__item:last-child {
    margin-bottom: 0;
}

/* =========================================================
   18. SERVICE ICON
   ========================================================= */

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

/* =========================================================
   19. ACCORDION — Why Choose Us
   All visual state driven by CSS .active class.
   JS only toggles .active — never touches element.style.
   ========================================================= */

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    overflow: hidden;
}

.accordion-item.active {
    border-color: var(--primary);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 2.5vw, 25px);
    cursor: pointer;
    gap: 10px;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.accordion-header:hover,
.accordion-item.active .accordion-header {
    background: var(--primary-light);
    border-bottom-color: var(--border-light);
}

.accordion-header-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.accordion-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    background: var(--primary);
}

.accordion-item.active .accordion-icon i {
    color: white;
}

.accordion-title {
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.accordion-item.active .accordion-title {
    color: var(--primary);
}

.accordion-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-toggle i {
    font-size: 0.9rem;
    color: var(--primary);
}

.accordion-item.active .accordion-toggle {
    background: var(--primary);
}

.accordion-item.active .accordion-toggle i {
    color: white;
}

.accordion-content {
    background: white;
    padding: 0 clamp(25px, 3vw, 30px);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
}

.accordion-item.active .accordion-content {
    max-height: none;
    visibility: visible;
    padding: clamp(20px, 2.5vw, 25px) clamp(25px, 3vw, 30px);
}

.accordion-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Why Choose Us — stats row */
.wcu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .wcu-stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   20. FAQ
   Same active/toggle pattern as accordion.
   ========================================================= */

.faq-container {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: white;
    transform: translateZ(0);
    /* Prevent accordion layout thrashing */
    contain: content;
    /* Trap style/layout recalculations inside the FAQ */
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    gap: 15px;
    background: transparent;
}

.faq-question:hover,
.faq-item.active .faq-question {
    background: var(--primary-light);
}

.faq-question h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    flex: 1;
    margin: 0;
    text-align: left;
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
}

.faq-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.faq-toggle i {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
}

.faq-item.active .faq-toggle i {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 0 25px;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    text-align: left;
}

.faq-item.active .faq-answer {
    visibility: visible;
    max-height: none;
    padding: 20px 25px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* FAQ CTA box */
.faq-cta {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(127, 27, 255, 0.05) 0%, rgba(127, 27, 255, 0.01) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.faq-cta .btn {
    margin-top: 20px;
}

/* =========================================================
   21. SERVICE TABS — 3-tab component (SEO / AI / GEO)
   ========================================================= */

.svc-tabs-container .grid-2 {
    align-items: center;
}

.svc-tab-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.svc-tab {
    display: flex;
    gap: 20px;
    padding: 24px;
    cursor: pointer;
    border: 2px solid var(--primary-soft);
    border-radius: var(--radius-lg);
    background: white;

    align-items: center;
}

.svc-tab:hover {}

.svc-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.svc-tab__icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-tab__icon i {
    font-size: 28px;
    color: var(--primary);
}

.svc-tab.active .svc-tab__icon {
    background: var(--primary);
}

.svc-tab.active .svc-tab__icon i {
    color: white;
}

.svc-tab__text h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.svc-tab__text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.svc-tab-panel {
    padding: 0;
    display: none;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 0;
}

.svc-tab-panel.active {
    display: block;
    /* Shows only the active panel */
    padding: 40px;
}

.svc-tab-panel h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
}

.svc-tab-panel p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.svc-tab-panel .check-list {
    margin-bottom: 30px;
}

/* =========================================================
   22. SERVICE SCROLL — horizontal scroll cards + panel
   ========================================================= */

.svc-intro {
    max-width: 800px;
    margin: 0 auto;
}

.svc-scroll-outer {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.svc-prev,
.svc-next {
    position: absolute;
    top: 260px;
    transform: translateY(-50%);
    right: -20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(127, 27, 255, 0.3);
    background-color: var(--primary) !important;
    color: var(--text-light) !important;
    border: none !important;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.svc-prev:hover,
.svc-next:hover {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 6px 20px rgba(127, 27, 255, 0.4);
}

.svc-prev:active,
.svc-next:active {
    background-color: var(--primary-dark) !important;

}

.svc-prev:focus,
.svc-next:focus {
    outline: none;
}

.svc-prev {
    left: -20px;
}

/* Fix for mobile arrow overlaps shown in user screenshot */
.svc-scroll-nav {
    position: absolute;
    top: 50%;

    left: 0;
    right: 0;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.svc-scroll-nav .svc-prev,
.svc-scroll-nav .svc-next {
    pointer-events: auto;
    /* Re-enable clicks on buttons */
}

.svc-scroll-nav .svc-prev {
    position: absolute;
    left: 5px;
}

.svc-scroll-nav .svc-next {
    position: absolute;
    right: 5px;
}

@media (max-width: 768px) {
    .svc-scroll-nav .svc-prev {
        left: -10px;
        width: 35px;
        height: 35px;
    }

    .svc-scroll-nav .svc-next {
        right: -10px;
        width: 35px;
        height: 35px;
    }

    .svc-prev i,
    .svc-next i {
        font-size: 0.9rem;
    }
}

.svc-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    align-items: stretch;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--primary-light);
    transform: translateZ(0);
    /* Isolate scroll layout to prevent crashing */
    contain: layout style;
}

.svc-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.svc-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 10px;
}

.svc-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.svc-card {
    flex: 0 0 280px;
    width: 280px;
    min-height: 480px;
    padding: 32px 34px;
    border: 2px solid var(--primary-soft);
    cursor: pointer;

    border-radius: var(--radius-lg);
    background: white;
    display: flex;
    flex-direction: column;
}

.svc-card:hover {

    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.svc-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.svc-card-data {
    display: none;
}

.svc-icon {
    width: 76px;
    height: 76px;
    background: var(--primary-light);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.svc-icon i {
    color: var(--primary);
    font-size: 30px;
}

.svc-card.active .svc-icon {
    background: var(--primary);
}

.svc-card.active .svc-icon i {
    color: white;
}

.svc-card.active .btn-icon,
.svc-card.active .btn-icon:link,
.svc-card.active .btn-icon:visited {
    background-color: var(--primary-mid) !important;
    color: var(--primary) !important;
}

.svc-card.active .btn-icon:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.svc-card-title {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.4rem;
    line-height: 1.16;
}

.svc-card-desc {
    display: none;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 24px;
}

.svc-tag {
    background: rgba(127, 27, 255, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
}

.svc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.svc-indicators {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.svc-indicators--visible {
    display: flex;
}

.svc-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-soft);
    cursor: pointer;

}

.svc-indicators span.active {
    background: var(--primary);

}

.svc-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-soft);
    margin-top: 30px;
}

@media (max-width: 767px) {
    .svc-panel {
        padding: 25px;
    }
}

.svc-panel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.svc-panel-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.svc-panel-list {
    margin-bottom: 30px;
}

.svc-panel-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.svc-panel-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.svc-panel-item p {
    color: var(--text-gray);
    margin: 0;
}

/* =========================================================
   23. LOCATION STATS COMPONENT
   ========================================================= */

.location-stats-component {
    margin: 0;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
    background: var(--dark-bg-deep);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

/* GPU-heavy radial-gradient pseudo-elements removed — each creates
   a separate compositor layer that leaks GPU memory until Chrome crashes.
   The gradients were 4-15% opacity and barely visible. */
.location-stats-component::before,
.location-stats-component::after {
    display: none;
}

.lst-heading {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: clamp(30px, 4vw, 50px);
    position: relative;
    z-index: 1;
}

.lst-heading span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lst-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(20px, 2.5vw, 30px);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lst-box {
    width: 100%;
    height: clamp(160px, 18vw, 220px);
    background: var(--dark-bg-card);
    border-radius: clamp(16px, 2vw, 24px);
    padding: clamp(20px, 2.5vw, 30px) clamp(15px, 2vw, 25px);
    color: white;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(127, 27, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;

}

.lst-box:hover {

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    border-color: rgba(127, 27, 255, 0.5);
}

.lst-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(30px, 3vw, 40px);
    height: clamp(30px, 3vw, 40px);
    background: var(--accent);
    border-bottom-left-radius: clamp(16px, 2vw, 24px);
    border-top-right-radius: clamp(16px, 2vw, 24px);
    z-index: 2;
}

.lst-number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: clamp(8px, 1vw, 12px);
    line-height: 1;
    position: relative;
    z-index: 3;
}

.lst-title {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: clamp(6px, 0.8vw, 10px);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 3;
}

.lst-sub {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    opacity: 0.9;
    font-style: italic;
    position: relative;
    z-index: 3;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   24. DOT PATTERN CARDS
   ========================================================= */

.dot-card {
    position: relative;
    background: var(--primary-light);
    border: 1px solid rgba(127, 27, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 4vw, 50px);

}

.dot-card--white {
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 30px -10px rgba(0, 0, 0, 0.08);
}

.dot-card--white:hover {
    border-color: rgba(127, 27, 255, 0.15);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.12);
}

.dot-card__content {
    position: relative;
    z-index: 2;
}

.dot-card__heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(20px, 2.5vw, 30px);
    color: var(--text-dark);
}

.dot-card__desc {
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .dot-card {
        padding: 30px 25px;
    }

    .dot-card__desc {
        text-align: left !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.dot-card-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
}

.dot-card-dots .dot {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
}

.dot-card>* {
    position: relative;
    z-index: 1;
}

/* Decorative dots (hero section) */
.decorative-dots {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translateZ(0) translateY(0);
    }

    50% {
        transform: translateZ(0) translateY(-15px);
    }
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatDot 4s ease-in-out infinite;
    will-change: transform;
}

/* Stagger animation so they don't all move identically */
.dot:nth-child(even) {
    animation-duration: 5s;
    animation-delay: 1s;
}

.dot:nth-child(3n) {
    animation-duration: 3.5s;
    animation-delay: 0.5s;
}

/* =========================================================
   25. CONTACT FORM SECTION — kgcs
   ========================================================= */

.kgcs-wrap {
    display: flex;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 70px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.kgcs-left {
    flex: 1;
    min-width: 300px;
    background-color: #2D0F6C;
    padding: 50px;
}

.kgcs-right {
    flex: 1;
    min-width: 300px;
    background-color: #F9F5FF;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.kgcs-badge {
    background-color: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    align-self: flex-start;
}

.kgcs-badge:visited {
    color: #fff;
}

.kgcs-heading {
    font-size: 2.8rem;
    font-weight: 900;
    color: #000;
    line-height: 1.2;
    margin: 0;
}

.kgcs-highlight {
    background-color: var(--primary);
    color: #fff;
    padding: 0 16px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 900;
}

.kgcs-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.kgcs-stat {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.kgcs-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #2D0F6C;
    margin-bottom: 8px;
    word-break: break-word;
}

.kgcs-stat-label {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

@media (max-width: 768px) {
    .kgcs-wrap {
        flex-direction: column;
        border-radius: var(--radius-xl);
    }

    .kgcs-left {
        padding: 30px 20px;
    }

    .kgcs-right {
        padding: 30px 20px;
        gap: 20px;
    }

    .kgcs-heading {
        font-size: 1.8rem;
    }

    .kgcs-stat-value {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .kgcs-stat-label {
        font-size: 0.8rem;
    }
}

/* =========================================================
   26. CTA SECTION
   ========================================================= */

.cta-section {
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-section__inner {
    padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.cta-section__media {
    position: relative;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* radial-gradient decorations removed — GPU layer crash prevention */
.deco-circle--top,
.deco-circle--bottom {
    display: none;
}

.cta-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
}

/* =========================================================
   27. AI OVERVIEW BANNER
   ========================================================= */

.ai-banner {
    background: linear-gradient(180deg, #3a168a 0%, #1e063f 100%);
    border-radius: var(--radius-md);
    padding: clamp(36px, 4vw, 48px) clamp(28px, 5vw, 64px);
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 40px auto;
    width: 90%;
}

.ai-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ai-banner__text {
    max-width: 620px;
}

.ai-banner__text h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.ai-banner__text h2 span {
    color: #b98cff;
}

.ai-banner__text p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    opacity: 0.9;
    margin: 0;
}

.ai-banner__cta {
    background: #efe8ff;
    color: #4b2aad;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;

    flex-shrink: 0;
}

.ai-banner__cta:hover {
    background: #e0d4ff;
    color: #4b2aad;

}

/* float-circle — no will-change, no GPU layer, animation only on large desktop */
.float-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: none;
    will-change: auto;
    pointer-events: none;
    display: none;
}

@media (min-width: 1200px) {

    /* Only animate on large desktop — decorative only, not worth GPU cost below */
    .float-circle {
        display: block;
        animation: float 6s ease-in-out infinite;
    }

    .float-circle:nth-child(1) {
        top: 6%;
        right: 14%;
        animation-duration: 6s;
    }

    .float-circle:nth-child(2) {
        top: 32%;
        right: 22%;
        animation-duration: 6s;
        animation-delay: 0.5s;
    }

    .float-circle:nth-child(3) {
        top: 50%;
        right: 14%;
        animation-duration: 6s;
        animation-delay: 1s;
    }

    .float-circle:nth-child(4) {
        bottom: -14%;
        right: 24%;
        animation-duration: 8s;
    }
}

/* =========================================================
   28. KOADING CHOICE SECTION
   ========================================================= */

.koading-choice-section {
    max-width: 900px;
    margin: 0 auto;
    background: #faf7ff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(123, 44, 255, 0.15);
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.koading-top-badge {
    background: linear-gradient(135deg, #2a0f6d 0%, #1a084d 100%);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #7b2cff;
    position: relative;
    overflow: hidden;
}

/* radial-gradient pseudo removed — GPU layer crash prevention */
.koading-top-badge::before {
    display: none;
}

.koading-top-badge-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.koading-rank {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 900;
    color: #b48cff;
    text-shadow: 0 3px 15px rgba(180, 140, 255, 0.4);
    line-height: 1;
}

.koading-rank-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.koading-rank-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.koading-rank-sub {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    opacity: 0.85;
    color: #fff;
    margin: 0;
}

.koading-trophy {
    font-size: clamp(2rem, 4vw, 2.8rem);
    position: relative;
    z-index: 2;
    line-height: 1;
}

.koading-main-content {
    padding: 50px 40px;
    text-align: center;
}

.koading-heading {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
}

.koading-description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #444;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.koading-bottom-brand {
    background: linear-gradient(135deg, #2a0f6d 0%, #1a084d 100%);
    padding: 25px 40px;
    text-align: center;
    border-top: 4px solid #7b2cff;
}

.koading-brand-name {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #d4b9ff;
    letter-spacing: 2px;
    line-height: 1.2;
}

.koading-arrow {
    display: inline-block;

}

.btn-primary:hover .koading-arrow {}

@media (max-width: 900px) {
    .koading-choice-section {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .koading-top-badge {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .koading-trophy {
        position: absolute;
        top: 30px;
        right: 30px;
    }

    .koading-main-content {
        padding: 40px 30px;
    }

    .koading-bottom-brand {
        padding: 22px 30px;
    }
}

@media (max-width: 480px) {
    .koading-choice-section {
        margin: 0 12px;
    }

    .koading-top-badge {
        padding: 20px;
    }

    .koading-trophy {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .koading-main-content {
        padding: 30px 20px;
    }

    .koading-bottom-brand {
        padding: 18px 20px;
    }
}

/* =========================================================
   29. NUMBER ONE BOX — split panel CTA
   ========================================================= */

.no1-box {
    display: flex;
    flex-direction: row;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary-light);
    box-shadow: 0 10px 30px rgba(123, 44, 255, 0.1);
}

.no1-box__left {
    flex: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

.no1-box__right {
    flex: 1;
    background: linear-gradient(135deg, #2a0f6d 0%, #1a084d 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.no1-box__rank {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #b48cff;
    text-shadow: 0 2px 10px rgba(180, 140, 255, 0.3);
    margin-bottom: 15px;
}

.no1-box__rank-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0;
    font-weight: 600;
}

.no1-box__rank-sub {
    opacity: 0.9;
    font-size: 1rem;
}

.no1-box__brand {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 20px;
    color: #d4b9ff;
}

.no1-box__trophy {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .no1-box {
        flex-direction: column;
    }
}

/* =========================================================
   30. SERVICES PAGE — Hero grid modifier + image caption
   ========================================================= */

.svc-grid {
    gap: 60px;
}

@media (max-width: 992px) {
    .svc-grid {
        gap: 25px;
    }
}

.svc-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 30px;
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.svc-img-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.svc-img-sub {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .svc-img-caption {
        padding: 15px;
    }

    .svc-img-title {
        font-size: 1.1rem;
    }

    .svc-img-sub {
        font-size: 0.85rem;
    }
}

/* =========================================================
   31. ANIMATIONS — defined ONCE
   ========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;

    }

    to {
        opacity: 1;
        transform: none;
    }
}


.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 9999;

    opacity: 0;

}

.notification.show {

    opacity: 1;
}

.notification--success {
    border-left: 4px solid var(--primary);
}

.notification--error {
    border-left: 4px solid #e53e3e;
}

.notification__content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.notification--success .notification__content i {
    color: var(--primary);
}

.notification--error .notification__content i {
    color: #e53e3e;
}

/* =========================================================
   32. SERVICES UNIFIED (home page — replaces duplicate grid)
   ========================================================= */

.services-unified {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {

    .d-none,
    .d-md-none {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .services-unified {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        align-items: stretch !important;
        gap: 16px;
        padding: 0 40px 16px;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        scroll-snap-type: x mandatory !important;
        transform: translateZ(0);
        /* Prevent horizontal scroll smearing */
    }

    .services-unified::-webkit-scrollbar {
        display: none;
    }

    .services-unified>.card,
    .services-unified>div {
        min-width: 280px !important;
        max-width: 300px !important;
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        height: auto !important;
    }
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.position-relative {
    position: relative;
}

/* =========================================================
   33. RESPONSIVE
   All breakpoints consolidated here — nowhere else.
   ========================================================= */

@media (max-width: 1200px) {
    :root {
        --space-2xl: 50px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grid-2>* {
        width: 100%;
        min-width: 0;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-grid>* {
        width: 100%;
        min-width: 0;
    }

    .btn-block {
        max-width: 100%;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    .hero-left .heading-underline::after {
        left: 50%;

    }

    .hero-btn {
        align-self: center;
        width: fit-content;
    }

    .hero-desc {
        margin-bottom: 20px;
    }

    .hero-right {
        margin-top: -15px;
    }

    .badges {
        justify-content: center;
    }

    .location-address {
        justify-content: center;
    }

    .svc-subheading {
        justify-content: center;
    }

    .logo-grid-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .logo-grid-flex .logo-item {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 0;
    }

    .marquee-line {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 25px;
    }

    .marquee-title {
        width: 100%;
        justify-content: center;
    }

    .marquee-content {
        width: 100%;
    }

    .lst-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-tabs-container .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid .stat-box {
        width: 100%;
        min-height: 220px;
    }

    .btn {
        padding: 16px 35px;
    }

    .card {
        transition: none;
        box-shadow: none;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .marquee-track {
        will-change: auto;
    }

    .marquee-track-line {}

    .marquee-logo {
        width: 140px;
        height: 70px;
    }

    .marquee-logo img {
        max-height: 40px;
    }

    .img-container:hover img {
        transform: none;
    }

    .lst-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lst-box {
        transition: none;
    }

    .lst-box:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .stat-box:hover {
        transform: none;
    }

    .stat-boxes-row .stat-box {
        max-width: 280px;
        min-height: 180px;
        height: auto;
    }

    .card-corner-tl,
    .card-corner-tr,
    .card-corner-bl,
    .card-corner-br {
        width: 40px;
        height: 40px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .ai-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .float-circle {
        display: none;
    }
}

@media (max-width: 767px) {
    .svc-scroll-wrapper {
        gap: 15px;
        padding: 10px 60px 20px;
        align-items: stretch;
    }

    .svc-card {
        width: calc(100vw - 140px);
        min-width: calc(100vw - 140px);
        transition: none;
    }

    .svc-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--primary-soft);
    }

    .svc-card.active {
        background: var(--primary-light);
        border-color: var(--primary);
    }

    .svc-prev {
        left: 5px;
        top: 260px;
    }

    .svc-next {
        right: 5px;
        top: 260px;
    }

    .svc-panel {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .case-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 35px auto 0;
    }

    .lst-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .logo-grid-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-grid-flex .logo-item {
        flex: 1 1 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .stat-card__number {
        font-size: 1.8rem;
    }

    .stat-card__label {
        font-size: 0.85rem;
    }

    .card-corner-tl,
    .card-corner-tr,
    .card-corner-bl,
    .card-corner-br {
        display: none;
    }

    .ai-banner {
        padding: 36px 28px;
        width: calc(100% - 30px);
        margin: 20px auto;
    }

    .inline-stats {
        flex-direction: column;
        gap: 20px;
    }

    .inline-stats__item {
        text-align: center;
    }

    .cta-gradient {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        align-items: flex-start;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .faq-question {
        align-items: flex-start;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* =========================================================
38. SITE HEADER — nav, mega-dropdown, mobile toggle
========================================================= */
.site-header {
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(127, 27, 255, 0.08);
    border-bottom: 1px solid var(--border-light);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
    justify-content: space-between;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    border: 1px solid var(--border-light);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown a {
    display: block;
    padding: 8px 24px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-dropdown a:hover {
    color: var(--primary);
    background: #fdfcff;
}

.nav-dropdown__label {
    display: block;
    padding: 12px 24px 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    font-weight: 800;
}

.nav-dropdown__divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.site-header__toggle {
    display: none;
    background: none !important;
    border: none !important;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    padding: 5px;
}

.site-header__toggle:hover,
.site-header__toggle:focus {
    background: transparent !important;
}

.site-header__toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

.site-header.nav-open .site-header__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.site-header.nav-open .site-header__toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .site-header__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   39. SITE FOOTER — columns, social icons, bottom bar
   ========================================================= */
.site-footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 80px 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   STICKY SIDE CTA — visible on all pages via footer.html
   ========================================================= */
.sticky-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 12px;
    border-radius: 12px 0 0 12px;
    z-index: 9999;
    transition: transform 0.2s;
    box-shadow: -4px 0 20px rgba(107, 13, 242, 0.25);
    white-space: nowrap;
}

.sticky-cta:hover {
    transform: translateY(-50%) translateX(-3px);
}

@media (max-width: 768px) {
    .sticky-cta {
        padding: 14px 8px;
        font-size: 0.75rem;
    }
}

/* Strip any theme-injected background from nav dropdown icons */
.nav-link i,
.nav-link svg {
    background: none !important;
    background-color: transparent !important;
    display: inline-block;
    line-height: inherit;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.site-footer__brand-logo {
    margin-bottom: 24px;
}

.site-footer__tagline {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 320px;
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.site-footer__social a:hover {
    background: var(--primary);
}

.site-footer__col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__links li a {
    font-size: 0.95rem;
}

.site-footer__bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   40. BREADCRUMB & PAGE HERO
   ========================================================= */
.page-hero {
    padding: 80px 0 50px;
    background: linear-gradient(180deg, var(--primary-light) 0%, rgba(246, 243, 255, 0.3) 100%);
    border-radius: 0 0 40px 40px;
}

.breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.breadcrumb-center {
    justify-content: center;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb__sep i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* =========================================================
   41. BLOG & CONTENT
   ========================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.blog-card__img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}

.blog-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.blog-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

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

.pagination span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =========================================================
   42. LOCATION DIRECTORY
   ========================================================= */
.loc-country-block {
    margin-bottom: 60px;
}

.loc-country-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.loc-country-flag {
    font-size: 2.5rem;
}

.loc-country-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.loc-region-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.loc-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.loc-city-card {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loc-city-card:hover {
    color: var(--primary);
    background: rgba(127, 27, 255, 0.05);
}

/* =========================================================
   NEW: Header Actions & Blog Index Links
   ========================================================= */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-header__cta-mobile {
    display: none;
}

.blog-index-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.blog-index-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(127, 27, 255, 0.08);
}

.blog-index-icon {
    margin-right: 12px;
    color: var(--gray);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.blog-index-link:hover .blog-index-icon {
    color: var(--primary);
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   40. BLOG POST TEMPLATE
   ========================================================= */

/* Post title (h1) */
.post-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Post meta (author, date, read time) */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 8px;
}

.post-meta i {
    margin-right: 6px;
    color: var(--primary);
}

/* Two-column layout: article + sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Featured image wrapper */
.post-hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.post-hero-img-wrap img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article body typography */
.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    min-width: 0;
    /* Override CSS Grid 'auto' minimum width to prevent table blowout */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.post-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
}

.post-body a:hover {
    text-decoration: none;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* Key takeaways box */
.post-key-takeaways {
    background: linear-gradient(135deg, #f5f0ff 0%, #ede4ff 100%);
    border: 1px solid rgba(127, 27, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
    box-sizing: border-box;
    max-width: 100%;
}

.post-key-takeaways h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 0;
}

.post-key-takeaways ul {
    padding-left: 20px;
    margin: 0;
}

.post-key-takeaways li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Table of contents */
.post-toc {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 36px;
    box-sizing: border-box;
    max-width: 100%;
}

.post-toc strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.post-toc ol {
    padding-left: 20px;
    margin: 0;
}

.post-toc li {
    margin-bottom: 6px;
}

.post-toc a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.post-toc a:hover {
    text-decoration: underline;
}

/* Inline figures */
.post-figure {
    margin: 32px 0;
}

.post-figure img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.post-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Comparison tables */
.post-comparison-table {
    overflow-x: auto;
    margin: 24px 0;
    position: relative;
    transform: translateZ(0);
    /* Force hardware tracking to prevent repaint smearing */
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    max-width: 100%;
    /* Prevent container from blowing out page width */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
}

.post-comparison-table table {
    width: 100%;
    min-width: 600px;
    /* Force table to maintain minimum width to trigger sideways scroll */
    border-collapse: collapse;
}

.post-comparison-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-comparison-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.post-comparison-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.post-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.post-comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Checklists */
.post-checklist {
    background: #f5f0ff;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 24px 0;
}

.post-checklist h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 0;
}

.post-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Callout boxes */
.post-callout {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.post-callout h4 {
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--primary);
}

/* Author box */
.post-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    margin-top: 48px;
    border: 1px solid var(--border-light);
}

.post-author-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    background: #f0e8ff;
    padding: 8px;
    flex-shrink: 0;
}

.post-author-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 6px 0 8px;
}

/* CTA box at end of article */
.post-cta-box {
    text-align: center;
    padding: 36px 32px;
    background: linear-gradient(135deg, #7F1BFF 0%, #5a00d4 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    margin-top: 40px;
}

.post-cta-box h3 {
    color: #fff;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 1.35rem;
}

.post-cta-box p {
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 1rem;
}

.post-cta-box .btn,
.post-cta-box .btn-primary,
.post-cta-box .btn-primary:link,
.post-cta-box .btn-primary:visited,
.btn-white {
    background: #fff !important;
    color: var(--primary) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.post-cta-box .btn:hover,
.post-cta-box .btn-primary:hover,
.post-cta-box .btn-primary:focus,
.btn-white:hover,
.btn-white:focus {
    background: #f0e8ff !important;
    color: var(--primary) !important;
    text-decoration: none !important;
}

/* Sidebar */
.post-sidebar__sticky {
    position: sticky;
    top: 100px;
    transform: translateZ(0);
    /* Isolate sticky layer to prevent intersection crash */
    will-change: transform;
}

.post-sidebar__section {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.post-sidebar__heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
    color: var(--text-dark);
}

.post-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-sidebar__links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 0;
}

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

.post-sidebar__links i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* =========================================================
   41. LEGAL CONTENT (privacy, terms, etc.)
   ========================================================= */
.legal-content {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary);
}

.legal-updated {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-gray);
    background: #f0e8ff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

/* =========================================================
   42. BLOG INDEX — Two-color category headings
   ========================================================= */
.blog-category-block h2 .text-primary {
    color: var(--primary);
}

/* =========================================================
   RESPONSIVE ADDITIONS
   ========================================================= */
@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header__nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
        z-index: 9999;
    }

    .site-header.nav-open .site-header__nav {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .site-header__toggle {
        display: flex !important;
    }

    .site-header__cta {
        display: none;
    }

    .site-header__cta-mobile {
        display: inline-flex;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item.active .nav-dropdown,
    .nav-item.dropdown-open .nav-dropdown {
        display: block;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .post-key-takeaways,
    .post-toc,
    .post-checklist {
        padding: 20px;
    }

    /* Auto-inject swipe hint for all tables on mobile */
    .post-comparison-table::before {
        content: "\f337  Swipe to view full table \2192";
        /* FontAwesome horizontal arrows icon */
        font-family: "Font Awesome 6 Free", var(--font-family);
        font-weight: 900;
        display: block;
        text-align: right;
        font-size: 0.85rem;
        color: var(--text-gray);
        opacity: 0.8;
        margin-bottom: 8px;
        position: sticky;
        left: 0;
    }
}

/* =========================================================
   50. SERVICE PAGE TEMPLATE — sp-* editorial layout
   Minimal styles for the one-page services template.
   All colours use existing :root variables.
   ========================================================= */

.sp-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero */
.sp-hero {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 3rem;
    margin-bottom: 1rem;
}

.sp-hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.sp-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.sp-hero-sub {
    font-size: 17px;
    color: var(--text-gray);
    max-width: 640px;
    margin-top: 0.75rem;
    line-height: 1.7;
}

.sp-hero-sub a {
    display: inline;
}

/* Section divider */
.sp-section {
    border-top: 1px solid var(--border-light);
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

.sp-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.sp-section h2 .text-primary {
    color: var(--primary);
}

.sp-section p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.sp-section p a {
    display: inline;
}

/* Stat row (light cards) — reuses .stat-cards / .stat-card from global */
.sp-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 2.5rem 0;
}

.sp-stat-row.sp-stat-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sp-stat-num {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.sp-stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 4px;
    line-height: 1.4;
}

/* Benefit grid */
.sp-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}

.sp-benefit-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.sp-benefit-card:hover {
    border-color: var(--primary);
}

.sp-benefit-num {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 800;
    font-style: italic;
    display: block;
    margin-bottom: 4px;
}

.sp-benefit-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.sp-benefit-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.55;
}

/* AI band */
.sp-ai-band {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.sp-ai-band h2 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.sp-ai-band p {
    color: var(--primary);
    line-height: 1.7;
}

.sp-ai-band strong {
    color: var(--primary-dark);
}

/* Struggle callout */
.sp-struggle-box {
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    background: #fff;
}

/* Pain point grid */
.sp-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 1.25rem;
}

.sp-pain-item {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem 0.875rem 2.2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
    position: relative;
}

.sp-pain-item a {
    display: inline;
}

.sp-pain-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53e3e;
    flex-shrink: 0;
    animation: none;
    position: absolute;
    left: 1rem;
    top: 1.3rem;
    opacity: 1;
}

/* Pillar grid */
.sp-pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 1.5rem;
}

.sp-pillar-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.sp-pillar-card:hover {
    border-color: var(--primary);
}

.sp-pillar-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-pillar-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Platform pills */
.sp-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.sp-platform-pill {
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Process steps */
.sp-process-steps {
    margin: 1.5rem 0;
}

.sp-step {
    display: flex;
    gap: 16px;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.sp-step:last-child {
    border-bottom: none;
}

.sp-step-num {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    font-style: italic;
    min-width: 28px;
    margin-top: 2px;
}

.sp-step-content h3 {
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sp-step-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Included checklist grid */
.sp-included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 1.25rem;
}

.sp-included-item {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 0.85rem;
    display: block;
    position: relative;
    color: var(--text-dark);
}

.sp-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(107, 13, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: 0.75rem;
    top: 0.875rem;
}

.sp-check i {
    font-size: 0.55rem;
    color: var(--primary);
}

/* Case study grid */
.sp-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}

.sp-case-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.sp-case-card:hover {
    border-color: var(--primary);
}

.sp-case-biz {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-case-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.sp-case-desc {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-top: 6px;
    line-height: 1.5;
}

/* Why grid */
.sp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}

.sp-why-card {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.sp-why-card h3 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sp-why-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* CTA box */
.sp-cta-box {
    background: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.sp-cta-box h2 {
    color: var(--primary-mid);
    margin-top: 0;
    font-size: 1.6rem;
}

.sp-cta-box p {
    color: var(--primary-soft);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.sp-cta-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.sp-cta-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text-dark);
    outline: none;
}

.sp-cta-form input:focus {
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(107, 13, 242, 0.15);
}

.sp-cta-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.sp-cta-form button:hover {
    background: var(--primary-dark);
}

/* Image placeholder */
.sp-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede5ff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px dashed var(--primary-soft);
    margin: 1.5rem 0;
}

.sp-img-placeholder--square {
    aspect-ratio: 1/1;
    max-width: 400px;
}

.sp-img-placeholder--wide {
    aspect-ratio: 21/9;
}

/* Service page responsive */
@media (max-width: 768px) {
    .sp-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .sp-stat-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sp-stat-row.sp-stat-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-benefit-grid,
    .sp-pillar-grid,
    .sp-included-grid {
        grid-template-columns: 1fr;
    }

    .sp-pain-grid,
    .sp-case-grid,
    .sp-why-grid {
        grid-template-columns: 1fr;
    }

    .sp-cta-form {
        flex-direction: column;
    }

    .sp-ai-band {
        padding: 1.5rem;
    }
}

/* Responsive Images for Service Pages */
.sp-page img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* =========================================================
   MARKDOWN PAGE STYLES (.pg-hero & .prose)
   ========================================================= */

/* Page Hero */
.pg-hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: var(--space-2xl) var(--container-pad);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(107, 13, 242, 0.8) 0%, rgba(45, 15, 108, 0.9) 100%);
    z-index: 1;
}

.pg-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
}

.pg-inner h1 {
    font-size: var(--h1-size);
    margin-bottom: var(--space-sm);
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Prose (Markdown Content) */
.prose {
    max-width: 800px;
    margin: var(--space-2xl) auto;
    padding: 0 var(--container-pad);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: var(--text-dark);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.8em; }
.prose h3 { font-size: 1.5em; }
.prose h4 { font-size: 1.25em; }

.prose p {
    margin-bottom: 1.5em;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(107, 13, 242, 0.3);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose li::marker {
    color: var(--primary);
}

.prose img {
    border-radius: var(--radius-md);
    margin: 2em 0;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    height: auto;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-dark);
}

.prose pre {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 1.5em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose code {
    font-family: monospace;
    background: var(--primary-light);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--primary-dark);
    font-size: 0.9em;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.prose th, .prose td {
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.prose th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--text-dark);
}

.prose tbody tr:nth-child(even) {
    background: #fcfaff;
}

/* HubSpot Form Custom Styles */
.hbspt-form form { font-family: 'Inter', sans-serif !important; }
.hbspt-form fieldset { max-width: 100% !important; border: none !important; padding: 0 !important; margin: 0 !important; }
.hbspt-form label { color: #ffffff !important; font-size: 14px !important; font-weight: 600 !important; margin-bottom: 8px !important; display: block !important; }
.hbspt-form .hs-form-required { color: #ff5c5c !important; }
.hbspt-form .hs-input, .hbspt-form select, .hbspt-form textarea { background-color: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: 6px !important; color: #ffffff !important; padding: 12px 16px !important; width: 100% !important; box-sizing: border-box !important; }
.hbspt-form .hs-input::placeholder { color: rgba(255, 255, 255, 0.5) !important; }
.hbspt-form .hs-input:focus { outline: none !important; border-color: rgba(255, 255, 255, 0.5) !important; background-color: rgba(255, 255, 255, 0.15) !important; }
.hbspt-form .hs-button { background-color: #ffffff !important; color: #5c20c4 !important; font-weight: 700 !important; border-radius: 8px !important; padding: 14px 24px !important; width: 100% !important; border: none !important; cursor: pointer !important; font-size: 16px !important; text-align: center !important; }
.hbspt-form .hs-button:hover { background-color: #f0f0f0 !important; }
.hbspt-form .hs-error-msgs label { color: #ff5c5c !important; font-size: 12px !important; }
.hbspt-form .hs-richtext { color: white !important; font-size: 28px !important; font-weight: 800 !important; margin-bottom: 20px !important; }
img[data-astro-cid-sckkx6r4].emoji{height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-0.1em}