/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  nbs-service-pages.css  —  Shared stylesheet for NBS Gutenberg service pages
 * ═══════════════════════════════════════════════════════════════════════════
 *
 *  This file contains all CSS rules that are shared across two or more
 *  NBS service-page templates. Each page keeps only its truly page-specific
 *  styles in its own <style> block.
 *
 *  Naming convention
 *  ─────────────────
 *  Every page wrapper carries `class="nbs-page nbs-<slug>"`, where
 *  `.nbs-page` drives all shared resets and component styles, and
 *  `.nbs-<slug>` (e.g. `.nbs-rta`, `.nbs-raas`) scopes page-specific
 *  overrides. Shared components use a single generic name prefixed with
 *  `nbs-` (e.g. `.nbs-hero-outer`, `.nbs-why-card`). Where values
 *  genuinely differ between pages (e.g. flip-card dimensions) the generic
 *  class holds the base/default values and page-scoped overrides are added
 *  below it (e.g. `.nbs-hire-latam .nbs-flip-card { ... }`).
 *
 *  Usage — link tag
 *  ─────────────────
 *  For pages one directory deep inside service-pages/:
 *    <link rel="stylesheet" href="../nbs-service-pages.css">
 *
 *  For pages two directories deep:
 *    <link rel="stylesheet" href="../../nbs-service-pages.css">
 *
 *  Always place the <link> BEFORE the page-specific <style> block so that
 *  page overrides take precedence without needing !important.
 *
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── FONTS ──────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Lato:wght@400;500;600;700&family=Roboto:wght@400;500;600&display=swap");

/* ─── GLOBAL RESETS ────────────────────────────────────────────────────────── */

.nbs-page * {
    box-sizing: border-box;
}
.nbs-page {
    font-family: "Roboto", sans-serif;
    color: #000;
}
.nbs-page h1,
.nbs-page h2,
.nbs-page h3 {
    margin-top: 0;
}
.nbs-page a {
    text-decoration: none;
}
.nbs-page p {
    line-height: 1.7;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.nbs-hero-outer {
    background: #f1f2f4;
    padding: 0 80px;
}
.nbs-hero-inner {
    width: 100%;
    background: url("https://nearshorebusinesssolutions.com/wp-content/uploads/2026/02/bgb-6.avif")
        center/cover no-repeat;
    border-radius: 35px;
    overflow: hidden;
    padding: 120px 40px 40px;
    text-align: center;
}
.nbs-hero-inner h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 65px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 5px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.nbs-hero-inner .nbs-hero-sub {
    color: #fff;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}
.nbs-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ff4800;
    border: 2px solid #ff4800;
    border-radius: 55px;
    padding: 12px 30px;
    margin: 0 auto 30px;
    color: #fff;
    text-decoration: none;
    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.2s;
}
.nbs-hero-cta:hover {
    background: #e04000;
    border-color: #e04000;
    transform: translateY(-2px);
}
.nbs-hero-cta img {
    width: 30px;
    height: auto;
    filter: brightness(0) invert(1);
}
.nbs-hero-cta span {
    font-family: "Lato", sans-serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
}
.nbs-hero-flags {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}
.nbs-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
}
.nbs-hero-stat {
    width: 23%;
    min-width: 200px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out both;
}
.nbs-hero-stat:nth-child(1) {
    animation-delay: 0.1s;
}
.nbs-hero-stat:nth-child(2) {
    animation-delay: 0.25s;
}
.nbs-hero-stat:nth-child(3) {
    animation-delay: 0.4s;
}
.nbs-hero-stat:nth-child(4) {
    animation-delay: 0.55s;
}
.nbs-hero-stat .stat-number {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ff4800;
}
.nbs-hero-stat .stat-label {
    font-size: 14px;
    color: #fff;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── STATS BAR (used by RAAS, RLA) ─────────────────────────────────────── */

.nbs-stats-outer {
    background: #f1f2f4;
    padding: 30px 5%;
    border-radius: 18px;
    margin-bottom: 40px;
}
.nbs-stats-bar {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}
.nbs-stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.nbs-stat-number {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #ff4800;
}
.nbs-stat-label {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* ─── WHY HIRE SECTION ───────────────────────────────────────────────────── */

.nbs-why-outer {
    background: #f1f2f4;
    padding: 40px 0;
}
.nbs-why-inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff
        url("https://nearshorebusinesssolutions.com/wp-content/uploads/2026/02/Recurso-87-check.avif")
        top left/81% no-repeat;
    border-radius: 35px;
    padding: 60px 40px;
}
.nbs-why-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.nbs-why-header img {
    width: 40px;
    height: auto;
}
.nbs-why-header h2 {
    font-family: "Lato", sans-serif;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
}
.nbs-why-subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 40px;
    max-width: 800px;
}
.nbs-why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.nbs-why-card {
    width: 47%;
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.nbs-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.nbs-why-card img {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}
.nbs-why-card h3 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.nbs-why-card p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.nbs-why-card a {
    color: #ff4800;
    text-decoration: underline;
}

/* ─── SERVICE MODELS SECTION ─────────────────────────────────────────────── */

.nbs-models-outer {
    background: #f1f2f4;
    padding: 60px 80px;
}
.nbs-models-outer h2 {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}
.nbs-models-intro {
    text-align: center;
    font-size: 16px;
    color: #333;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.nbs-models-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-models-card {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.nbs-models-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.nbs-models-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.nbs-models-card p {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    flex-grow: 1;
}
.nbs-models-card p a {
    color: #ff4800;
    text-decoration: underline;
}
.nbs-models-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff4800;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    align-self: flex-start;
    transition:
        background 0.3s,
        transform 0.2s;
}
.nbs-models-btn::after {
    content: " →";
}
.nbs-models-btn:hover {
    background: #e04000;
    transform: translateY(-2px);
}

/* ─── PROCESS / FLIP CARDS ───────────────────────────────────────────────── */
/*
 * Outer wrapper, inner, and grid are identical across pages.
 * Flip-card dimensions and front/back font sizes differ:
 *   base (rta):    33.33% wide / 300px tall / 22px front / 16px back
 *   hire-latam:    23% wide / 340px tall / 24px front / 18px back
 * The flip mechanics (inner transform, ::before overlay, span z-index)
 * are shared.
 */

.nbs-process-outer {
    background: #f1f2f4;
    padding: 50px 80px;
}
.nbs-process-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.nbs-process-inner h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 50px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.nbs-process-inner .nbs-process-sub {
    font-family: "Roboto", sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #333;
    margin-bottom: 50px;
}
.nbs-flip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* base flip card dimensions (rta default) */
.nbs-flip-card {
    width: calc(33.33% - 20px);
    min-width: 250px;
    height: 300px;
    perspective: 1000px;
}
/* hire-latam override — 5 cards per row at desktop (canonical 5-stage process) */
.nbs-hire-latam .nbs-flip-card {
    width: calc(20% - 20px);
    height: 340px;
}

/* shared flip mechanics */
.nbs-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.nbs-flip-card:hover .nbs-flip-card-inner {
    transform: rotateY(180deg);
}

/* shared front/back base (everything except font-size) */
.nbs-flip-front,
.nbs-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #fff;
    background-size: cover;
    background-position: center;
}

/* base front/back font sizes (rta default) */
.nbs-flip-front,
.nbs-flip-back {
    font-size: 22px;
}
/* hire-latam override */
.nbs-hire-latam .nbs-flip-front,
.nbs-hire-latam .nbs-flip-back {
    font-size: 24px;
}

/* shared back transform */
.nbs-flip-back {
    transform: rotateY(180deg);
    font-weight: 500;
}

/* base back font size (rta default) */
.nbs-flip-back {
    font-size: 16px;
}
/* hire-latam override */
.nbs-hire-latam .nbs-flip-back {
    font-size: 18px;
}

/* shared overlay and z-index */
.nbs-flip-front::before,
.nbs-flip-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 30px;
}
.nbs-flip-front span,
.nbs-flip-back span {
    position: relative;
    z-index: 1;
}

/* ─── CTA BANNER (image background, split left/right) ───────────────────── */
/*
 * hire-latam calls this section "retention" (link on right side).
 * rta calls it "cta" (link on left side).
 * The link styles are identical so they share a rule; the selectors differ
 * because they target different sides of the layout.
 */

.nbs-cta-outer {
    background: url("https://nearshorebusinesssolutions.com/wp-content/uploads/2026/02/image-58.avif")
        center/cover no-repeat;
    border-radius: 30px;
    margin: 40px 80px;
    overflow: hidden;
    position: relative;
}
.nbs-cta-outer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        transparent 100%
    );
    border-radius: 30px;
    pointer-events: none;
}
.nbs-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}
.nbs-cta-left {
    width: 50%;
    min-width: 300px;
    padding: 50px 40px;
}
/* Prefix with root page class to outspecify theme heading/text color rules */
.nbs-hire-latam .nbs-cta-left h3,
.nbs-rta .nbs-cta-left h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}
.nbs-hire-latam .nbs-cta-left h2,
.nbs-rta .nbs-cta-left h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 45px;
    font-weight: 500;
    color: #fff;
    line-height: 50px;
    margin-bottom: 20px;
}
.nbs-hire-latam .nbs-cta-left p,
.nbs-rta .nbs-cta-left p {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
}
/* Link — hire-latam places it on the right, rta on the left; styles match */
.nbs-hire-latam .nbs-cta-right a,
.nbs-rta .nbs-cta-left a {
    display: block;
    margin-top: 20px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #fff;
    text-decoration: underline;
}
.nbs-cta-right {
    width: 50%;
    min-width: 300px;
    text-align: center;
    padding: 30px;
}
.nbs-cta-right img {
    width: 60%;
    height: auto;
}

/* ─── ROLES SECTION ──────────────────────────────────────────────────────── */
/*
 * hire-latam link selector: .nbs-roles-card p a  (link inside <p>)
 * rta link selector:        .nbs-roles-card a    (link is a direct child)
 * Both are covered by the combined rule below.
 */

.nbs-roles-outer {
    background: #f1f2f4;
    padding: 60px 80px;
}
.nbs-roles-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-roles-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.nbs-roles-header img {
    width: 40px;
    height: auto;
}
.nbs-roles-header h2 {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}
.nbs-roles-subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 40px;
    max-width: 900px;
}
.nbs-roles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.nbs-roles-card {
    width: calc(33.33% - 20px);
    min-width: 280px;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.nbs-roles-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.nbs-roles-card img {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}
.nbs-roles-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 10px;
}
.nbs-roles-card p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}
.nbs-roles-card p a,
.nbs-roles-card a {
    color: #ff4800;
    text-decoration: underline;
}
/* hire-latam only — section-level CTA link below the grid */
.nbs-roles-cta {
    text-align: center;
    margin-top: 40px;
}
.nbs-roles-cta a {
    color: #ff4800;
    font-weight: 600;
    font-size: 17px;
    text-decoration: underline;
}

/* ─── LEGAL SECTION ──────────────────────────────────────────────────────── */
/*
 * hire-latam uses .wp-block-list on <ul>; rta uses a plain <ul>.
 * The ul base styles and li/::before rules are combined.
 */

.nbs-legal-outer {
    padding: 30px 80px;
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-legal-outer h2 {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}
.nbs-legal-outer p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}
.nbs-legal-outer a {
    color: #ff4800;
    text-decoration: underline;
}
.nbs-legal-outer ul,
.nbs-legal-outer .wp-block-list {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding-left: 0;
    list-style: none;
}
.nbs-rta .nbs-legal-outer ul {
    margin: 16px 0;
}
.nbs-legal-outer .wp-block-list li,
.nbs-legal-outer ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}
.nbs-legal-outer .wp-block-list li::before,
.nbs-legal-outer ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #ff4800;
    border-radius: 50%;
}

/* ─── FAQ SECTION ────────────────────────────────────────────────────────── */

.nbs-faq-outer {
    padding: 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-faq-outer h2 {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}
.nbs-faq-outer details,
.nbs-faq-outer .wp-block-details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.nbs-faq-outer details:hover,
.nbs-faq-outer .wp-block-details:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.nbs-faq-outer details summary,
.nbs-faq-outer .wp-block-details summary {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    padding: 18px 50px 18px 22px;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.nbs-faq-outer details summary::-webkit-details-marker,
.nbs-faq-outer .wp-block-details summary::-webkit-details-marker {
    display: none;
}
.nbs-faq-outer details summary::after,
.nbs-faq-outer .wp-block-details summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #ff4800;
    transition: transform 0.3s;
}
.nbs-faq-outer details[open] summary::after,
.nbs-faq-outer .wp-block-details[open] summary::after {
    content: "−";
}
.nbs-faq-outer details p,
.nbs-faq-outer .wp-block-details p,
.nbs-faq-outer .wp-block-details .nbs-faq-table {
    padding: 0 22px 18px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}
/* link color within FAQ answers */
.nbs-faq-outer details p a,
.nbs-faq-outer .wp-block-details p a {
    color: #ff4800;
    text-decoration: underline;
}

/* ─── WHY NBS SECTION ────────────────────────────────────────────────────── */

.nbs-whynbs-outer {
    padding: 50px 80px;
    max-width: 1400px;
    margin: 20px auto;
    background: #f1f2f4;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}
.nbs-whynbs-outer h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.nbs-whynbs-outer p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}
.nbs-whynbs-outer ol {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding-left: 20px;
}
.nbs-rta .nbs-whynbs-outer ol {
    margin: 16px 0;
}
.nbs-whynbs-outer ol li {
    margin-bottom: 16px;
}
.nbs-whynbs-outer strong {
    color: #1a1a1a;
}

/* ─── FINAL CTA SECTION ──────────────────────────────────────────────────── */

.nbs-final-cta {
    padding: 40px 80px 60px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-final-cta h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}
.nbs-final-cta p {
    font-size: 17px;
    color: #333;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.nbs-final-btn,
.nbs-final-btn .wp-block-button__link {
    display: inline-block;
    background: #ff4800 !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 55px;
    text-decoration: none;
    border: none;
    transition:
        background 0.3s,
        transform 0.2s,
        box-shadow 0.3s;
}
.nbs-final-btn:hover,
.nbs-final-btn .wp-block-button__link:hover {
    background: #e04000 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 72, 0, 0.35);
}

/* ─── RESPONSIVE — 960 px breakpoint ────────────────────────────────────── */

@media (max-width: 960px) {
    .nbs-hero-outer,
    .nbs-process-outer,
    .nbs-roles-outer,
    .nbs-countries-outer,
    .nbs-rta-countries-outer,
    .nbs-legal-outer,
    .nbs-faq-outer,
    .nbs-whynbs-outer,
    .nbs-final-cta {
        padding-left: 20px;
        padding-right: 20px;
    }
    .nbs-hero-inner h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }
    .nbs-why-header h2 {
        font-size: 28px;
    }
    .nbs-process-inner h2 {
        font-size: 32px;
    }
    .nbs-why-card,
    .nbs-models-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-roles-card {
        width: calc(50% - 15px);
        max-width: 100%;
    }
    .nbs-whynbs-outer {
        margin-left: 20px;
        margin-right: 20px;
    }
    .nbs-flip-card {
        width: 45%;
    }
    .nbs-cta-left,
    .nbs-cta-right {
        width: 100%;
    }
    .nbs-cta-outer {
        margin: 20px;
    }
    .nbs-cta-left h2 {
        font-size: 32px;
        line-height: 38px;
    }
    .nbs-countries-outer h2 {
        font-size: 28px;
    }
    .nbs-rta-countries-header h2 {
        font-size: 28px;
    }
    /* page-specific overrides that remain in shared CSS because they use
       page-specific class names already kept as-is */
    .nbs-raas-countries-header h2 {
        font-size: 28px;
    }
    .nbs-raas-whylatam-card,
    .nbs-raas-model-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-raas-role-card {
        width: calc(50% - 15px);
        max-width: 100%;
    }
    .nbs-rta-country-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-rta-country-chips {
        grid-template-columns: repeat(4, 1fr);
    }
    .nbs-raas-countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nbs-raas-country-breakdown-grid,
    .nbs-raas-models-grid,
    .nbs-raas-roles-grid,
    .nbs-raas-whynbs-grid {
        grid-template-columns: 1fr;
    }
    /* RLA responsive overrides now live in the page-specific <style> block */
    .nbs-sa-models-grid,
    .nbs-sa-country-grid,
    .nbs-sa-nbs-grid {
        grid-template-columns: 1fr;
    }
    .nbs-sa-roles-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbs-sa-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nbs-sa-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbs-sa-why-card,
    .nbs-sa-models-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-sa-pillar-card {
        width: calc(50% - 15px);
        max-width: 100%;
    }
    .nbs-panel { padding: 36px 28px; }
    .nbs-split-panel { flex-direction: column; }
    .nbs-split-left { flex: none; border-radius: 34px 34px 0 0; padding: 36px 32px; }
    .nbs-split-right { padding: 36px 32px; }
}

/* ─── RESPONSIVE — 600 px breakpoint ────────────────────────────────────── */

@media (max-width: 600px) {
    .nbs-flip-card {
        width: 100%;
        height: auto;
        perspective: none;
    }
    .nbs-flip-card-inner {
        transform: none !important;
        transform-style: flat;
    }
    .nbs-flip-card:hover .nbs-flip-card-inner {
        transform: none !important;
    }
    .nbs-flip-front,
    .nbs-flip-back {
        position: relative;
        backface-visibility: visible;
        transform: none !important;
        border-radius: 20px;
    }
    .nbs-flip-front {
        padding: 25px 30px;
        min-height: 0;
        height: auto;
        border-radius: 20px 20px 0 0;
    }
    .nbs-flip-back {
        padding: 20px 30px;
        min-height: 0;
        height: auto;
        margin-top: -8px;
        border-radius: 0 0 20px 20px;
    }
    .nbs-roles-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-hero-stats {
        flex-direction: column;
        align-items: center;
    }
    .nbs-hero-stat {
        width: 80%;
    }
    /* stats bar grids at 600px — 2-col */
    .nbs-stats-bar {
        flex-direction: column;
        align-items: center;
    }
    /* page-specific flip/grid overrides kept as-is */
    .nbs-raas-flip-card {
        width: 100%;
        height: auto;
        perspective: none;
    }
    .nbs-raas-flip-inner {
        transform: none !important;
        transform-style: flat;
    }
    .nbs-raas-flip-card:hover .nbs-raas-flip-inner {
        transform: none !important;
    }
    .nbs-raas-flip-front,
    .nbs-raas-flip-back {
        position: relative;
        backface-visibility: visible;
        transform: none !important;
        border-radius: 20px;
    }
    .nbs-raas-flip-front {
        padding: 25px 30px;
        min-height: 0;
        height: auto;
        border-radius: 20px 20px 0 0;
    }
    .nbs-raas-flip-back {
        padding: 20px 30px;
        min-height: 0;
        height: auto;
        margin-top: -8px;
        border-radius: 0 0 20px 20px;
    }
    /* RLA flip-card mobile overrides now live in the page-specific <style> block */
    /* SA vs-flip-cards now use shared .nbs-flip-card classes (rules above) */
    .nbs-raas-role-card,
    /* .nbs-rla-role-card removed — now in page-specific <style> */
    .nbs-sa-pillar-card {
        width: 100%;
        max-width: 100%;
    }
    .nbs-raas-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbs-rta-country-chips {
        grid-template-columns: repeat(3, 1fr);
    }
    .nbs-sa-process-grid,
    .nbs-sa-roles-pillars,
    .nbs-sa-why-grid {
        grid-template-columns: 1fr;
    }
    /* RLA grid overrides now in page-specific <style> block */
}

/* ─── COUNTRIES — CARD / CHIP LAYOUT ────────────────────────────────────── */
/* Rich layout with flag images, country cards, stat chips, and a chip strip.
   Used by remote-talent-acquisition and any future pages with the same
   countries section structure. */

.nbs-rta-countries-outer {
    background: #f1f2f4;
    padding: 40px 0;
}
.nbs-rta-countries-inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.nbs-rta-countries-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.nbs-rta-countries-header img {
    width: 40px;
    height: auto;
}
.nbs-rta-countries-header h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}
.nbs-rta-countries-subtitle {
    font-size: 17px;
    color: #333;
    margin-bottom: 36px;
    max-width: 800px;
}
.nbs-rta-country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 36px;
}
.nbs-rta-country-card {
    width: 47%;
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.nbs-rta-country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.nbs-rta-country-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.nbs-rta-country-flag-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.nbs-rta-country-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.nbs-rta-country-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.nbs-rta-country-stat-chip {
    background: #fff4f0;
    border: 1px solid rgba(255, 72, 0, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ff4800;
}
.nbs-rta-country-card p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}
.nbs-rta-country-card a.nbs-rta-country-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff4800;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    align-self: flex-start;
    transition:
        background 0.3s,
        transform 0.2s;
}
.nbs-rta-country-card a.nbs-rta-country-link::after {
    content: " →";
}
.nbs-rta-country-card a.nbs-rta-country-link:hover {
    background: #e04000;
    transform: translateY(-2px);
}
.nbs-rta-country-strip-label {
    font-weight: 700;
    color: #ff4800;
    margin: 0 0 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}
.nbs-rta-country-chips {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.nbs-rta-country-chip {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 16px 8px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}
.nbs-rta-country-chip img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.nbs-rta-country-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 72, 0, 0.3);
    color: #ff4800;
}

/* ─── SHARED PANEL (.nbs-panel) ─────────────────────────────────────────── */

.nbs-panel {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 19px rgba(0,0,0,0.08);
    padding: 50px 56px;
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* ─── SPLIT PANEL LAYOUT ─────────────────────────────────────────────────── */

.nbs-split-panel {
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.nbs-split-left {
    background: rgba(255,255,255,0.96);
    padding: 52px 48px;
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 34px 0 0 34px;
}
.nbs-split-left img { width: 42px; margin-bottom: 12px; }
.nbs-split-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.nbs-split-right {
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.nbs-split-right p { font-size: 16px; color: #222; line-height: 1.8; }
.nbs-split-right ul { margin: 0; padding-left: 22px; }
.nbs-split-right ul li { font-size: 16px; color: #222; line-height: 1.8; margin-bottom: 6px; }

/* ─── FLIP CARD CONTENT WRAPPERS ─────────────────────────────────────────── */

.nbs-flip-front-content,
.nbs-flip-back-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 20px;
    color: #fff;
}
.nbs-flip-step-img { width: 54px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.nbs-flip-front-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.nbs-flip-back-content p { font-size: 14px; color: #fff; }

/* ─── ICON ITEM ──────────────────────────────────────────────────────────── */

.nbs-icon-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f7f7fa;
    border-radius: 16px;
    padding: 24px;
}
.nbs-icon-item img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}
.nbs-icon-item-text h3 {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.nbs-icon-item-text p { font-size: 14px; color: #555; line-height: 1.7; }

/* ─── STEP NUMBER ────────────────────────────────────────────────────────── */

.nbs-step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #ff4800;
    line-height: 1;
    margin-bottom: 10px;
}

/* ─── SECTION INTRO TEXT ─────────────────────────────────────────────────── */

.nbs-section-intro {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    max-width: 900px;
    margin-bottom: 40px;
}
