/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  nbs-role-guides.css  —  Shared stylesheet for NBS role guide pages
 * ═══════════════════════════════════════════════════════════════════════════
 *
 *  Standalone design system for 40+ role guide pages. Uses the same brand
 *  tokens (colors, fonts, shadows) as nbs-service-pages.css but defines
 *  its own component library tuned for the role guide content structure.
 *
 *  Every page wrapper carries `class="nbs-rg"`. No per-page slug class
 *  is needed — all guides share the same template and styles.
 *
 *  Usage — link tag (from one directory deep):
 *    <link rel="stylesheet" href="../nbs-role-guides.css">
 *
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── 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-rg * {
    box-sizing: border-box;
}
.nbs-rg {
    font-family: "Roboto", sans-serif;
    color: #333;
}
/* Full-width background sections must break out of any theme max-width */
.nbs-rg .nbs-rg-why,
.nbs-rg .nbs-rg-salary,
.nbs-rg .nbs-rg-countries,
.nbs-rg .nbs-rg-hero-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.nbs-rg h1,
.nbs-rg h2,
.nbs-rg h3 {
    margin-top: 0;
}
.nbs-rg a {
    text-decoration: none;
}
.nbs-rg p {
    line-height: 1.7;
}

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

.nbs-rg-hero-outer {
    background: #f1f2f4;
    padding: 0 80px;
}
.nbs-rg-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-rg-hero-inner h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 58px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.nbs-rg-hero-inner .nbs-rg-hero-sub {
    color: #fff;
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.nbs-rg-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.nbs-rg-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff4800;
    border: 2px solid #ff4800;
    border-radius: 55px;
    padding: 12px 30px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.nbs-rg-cta-primary:hover {
    background: #e04000;
    border-color: #e04000;
    transform: translateY(-2px);
}
.nbs-rg-cta-primary img {
    width: 28px;
    height: auto;
    filter: brightness(0) invert(1);
}
.nbs-rg-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 55px;
    padding: 12px 30px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.nbs-rg-cta-secondary:hover {
    background: #ff4800;
    border-color: #ff4800;
    color: #fff;
    transform: translateY(-2px);
}
.nbs-rg-hero-flags {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
}
.nbs-rg-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}
.nbs-rg-hero-stat {
    min-width: 180px;
    text-align: center;
}
.nbs-rg-hero-stat .stat-number {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ff4800;
}
.nbs-rg-hero-stat .stat-label {
    font-size: 14px;
    color: #fff;
    margin-top: 4px;
}
/* No entrance animations on above-the-fold content: FlyingPress critical CSS
   can inline an EMPTY @keyframes copy (froze the country-guide heroes at
   opacity:0), and even a working fade delays first paint. Hero content must
   render visible with zero dependency on keyframes. */

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

.nbs-rg-why {
    background: #f1f2f4;
    padding: 60px 80px;
}
.nbs-rg-why-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-why h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.nbs-rg-why p {
    font-size: 16px;
    color: #444;
    margin-bottom: 16px;
}
.nbs-rg-why a {
    color: #ff4800;
    text-decoration: underline;
}
.nbs-rg-why a:hover {
    color: #e04000;
}

/* ─── PROCESS STEP CARDS ─────────────────────────────────────────────────── */

.nbs-rg-process {
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-process h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.nbs-rg-process .nbs-rg-process-intro {
    font-size: 17px;
    color: #444;
    margin-bottom: 30px;
}
.nbs-rg-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
.nbs-rg-step {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}
.nbs-rg-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.nbs-rg-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ff4800;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 14px;
}
.nbs-rg-step h3 {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.nbs-rg-step p {
    font-size: 15px;
    color: #444;
    margin: 0;
}

/* Social proof placeholder */
.nbs-rg-social-proof {
    background: #f1f2f4;
    border-left: 4px solid #ff4800;
    border-radius: 8px;
    padding: 24px 28px;
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* ─── SALARY BENCHMARKS ──────────────────────────────────────────────────── */

.nbs-rg-salary {
    background: #f1f2f4;
    padding: 60px 80px;
}
.nbs-rg-salary-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-salary h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.nbs-rg-salary .nbs-rg-salary-intro {
    font-size: 17px;
    color: #444;
    margin-bottom: 24px;
}
.nbs-rg-salary h3 {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 30px;
    margin-bottom: 10px;
}
.nbs-rg-salary p {
    font-size: 16px;
    color: #444;
}
.nbs-rg-salary .nbs-rg-table-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 12px;
}

/* ─── SHARED DATA TABLE ──────────────────────────────────────────────────── */

.nbs-rg-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}
.nbs-rg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 500px;
}
.nbs-rg-table thead th {
    background: #ff4800;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
}
.nbs-rg-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}
.nbs-rg-table tbody tr:nth-child(even) td {
    background: #f9f9f9;
}
.nbs-rg-table tbody td strong {
    color: #1a1a2e;
}

/* ─── INLINE CTA ─────────────────────────────────────────────────────────── */

.nbs-rg-cta-inline {
    background: url("https://nearshorebusinesssolutions.com/wp-content/uploads/2026/02/image-58.avif")
        center/cover no-repeat;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}
.nbs-rg-cta-inline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(40, 33, 35, 0.75) 100%);
}
.nbs-rg .nbs-rg-cta-inline p {
    position: relative;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.nbs-rg .nbs-rg-cta-inline a {
    position: relative;
    display: inline-block;
    background: #ff4800;
    border: 2px solid #ff4800;
    border-radius: 55px;
    padding: 12px 30px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.nbs-rg .nbs-rg-cta-inline a:hover {
    background: #e04000;
    border-color: #e04000;
    transform: translateY(-2px);
}

/* ─── SKILLS SECTION ─────────────────────────────────────────────────────── */

.nbs-rg-skills {
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-skills h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.nbs-rg-skills .nbs-rg-skills-intro {
    font-size: 17px;
    color: #444;
    margin-bottom: 24px;
}
.nbs-rg-skills h3 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 12px;
}
.nbs-rg-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.nbs-rg-skills-category {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 4px 19px rgba(0, 0, 0, 0.1);
}
.nbs-rg-skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nbs-rg-skills li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}
.nbs-rg-skills li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #ff4800;
    border-radius: 50%;
}

/* ─── COUNTRY COMPARISON ─────────────────────────────────────────────────── */

.nbs-rg-countries {
    background: #f1f2f4;
    padding: 60px 80px;
}
.nbs-rg-countries-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-countries h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.nbs-rg-countries h3 {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 28px;
    margin-bottom: 10px;
}
.nbs-rg-countries p {
    font-size: 16px;
    color: #444;
}
.nbs-rg-countries a {
    color: #ff4800;
    text-decoration: underline;
}
.nbs-rg-countries a:hover {
    color: #e04000;
}
/* Country links in table rendered as small buttons */
.nbs-rg-table .nbs-rg-btn-sm {
    display: inline-block;
    background: #ff4800;
    color: #fff;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-family: "Lato", sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}
.nbs-rg-table .nbs-rg-btn-sm:hover {
    background: #e04000;
    transform: translateY(-1px);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────────────────── */

.nbs-rg-faq {
    padding: 60px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.nbs-rg-faq h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}
.nbs-rg-faq details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.nbs-rg-faq details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.nbs-rg-faq details[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.nbs-rg-faq summary {
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 18px 50px 18px 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.nbs-rg-faq summary::-webkit-details-marker {
    display: none;
}
.nbs-rg-faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #ff4800;
    transition: transform 0.2s;
}
.nbs-rg-faq details[open] summary::after {
    content: "−";
}
.nbs-rg-faq details p {
    padding: 0 20px 18px;
    font-size: 15px;
    color: #444;
    margin: 0;
    line-height: 1.7;
}

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

.nbs-rg-final-cta {
    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-rg-final-cta::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-rg-final-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}
.nbs-rg-final-cta-left {
    width: 50%;
    min-width: 300px;
    padding: 50px 40px;
}
.nbs-rg-final-cta h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}
.nbs-rg-final-cta h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.nbs-rg-final-cta p {
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.nbs-rg-final-cta-left a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff4800;
    border: 2px solid #ff4800;
    border-radius: 55px;
    padding: 12px 30px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.nbs-rg-final-cta-left a:hover {
    background: #e04000;
    border-color: #e04000;
    transform: translateY(-2px);
}
.nbs-rg-final-cta-left a img {
    width: 28px;
    height: auto;
    filter: brightness(0) invert(1);
}
.nbs-rg-final-cta-right {
    width: 50%;
    min-width: 300px;
    text-align: center;
    padding: 30px;
}
.nbs-rg-final-cta-right img {
    width: 60%;
    height: auto;
}

/* ─── RESPONSIVE: TABLET (≤960px) ────────────────────────────────────────── */

@media (max-width: 960px) {
    .nbs-rg-hero-outer {
        padding: 0 40px;
    }
    .nbs-rg-hero-inner {
        padding: 70px 30px 40px;
    }
    .nbs-rg-hero-inner h1 {
        font-size: 42px;
        letter-spacing: 2px;
    }
    .nbs-rg-why,
    .nbs-rg-process,
    .nbs-rg-salary,
    .nbs-rg-skills,
    .nbs-rg-countries,
    .nbs-rg-faq {
        padding: 40px 40px;
    }
    .nbs-rg-step-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbs-rg-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbs-rg-final-cta {
        margin: 30px 40px;
    }
    .nbs-rg-final-cta h2 {
        font-size: 32px;
    }
    .nbs-rg-final-cta h2,
    .nbs-rg-why h2,
    .nbs-rg-process h2,
    .nbs-rg-salary h2,
    .nbs-rg-skills h2,
    .nbs-rg-countries h2,
    .nbs-rg-faq h2 {
        font-size: 30px;
    }
}

/* ─── RESPONSIVE: MOBILE (≤600px) ────────────────────────────────────────── */

@media (max-width: 600px) {
    .nbs-rg-hero-outer {
        padding: 0 16px;
    }
    .nbs-rg-hero-inner {
        padding: 50px 20px 30px;
        border-radius: 20px;
    }
    .nbs-rg-hero-inner h1 {
        font-size: 30px;
        letter-spacing: 1px;
    }
    .nbs-rg-hero-inner .nbs-rg-hero-sub {
        font-size: 15px;
    }
    .nbs-rg-cta-primary,
    .nbs-rg-cta-secondary {
        padding: 10px 22px;
        font-size: 15px;
    }
    .nbs-rg-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .nbs-rg-hero-stat .stat-number {
        font-size: 26px;
    }
    .nbs-rg-why,
    .nbs-rg-process,
    .nbs-rg-salary,
    .nbs-rg-skills,
    .nbs-rg-countries,
    .nbs-rg-faq {
        padding: 30px 20px;
    }
    .nbs-rg-step-grid {
        grid-template-columns: 1fr;
    }
    .nbs-rg-skills-grid {
        grid-template-columns: 1fr;
    }
    .nbs-rg-final-cta {
        margin: 20px 16px;
        border-radius: 20px;
    }
    .nbs-rg-final-cta::before {
        border-radius: 20px;
    }
    .nbs-rg-final-cta-left {
        width: 100%;
        min-width: 0;
        padding: 30px 24px;
    }
    .nbs-rg-final-cta-right {
        width: 100%;
        min-width: 0;
        padding: 0 24px 30px;
    }
    .nbs-rg-final-cta-right img {
        width: 50%;
    }
    .nbs-rg-final-cta h2,
    .nbs-rg-why h2,
    .nbs-rg-process h2,
    .nbs-rg-salary h2,
    .nbs-rg-skills h2,
    .nbs-rg-countries h2,
    .nbs-rg-faq h2 {
        font-size: 24px;
    }
    .nbs-rg-cta-inline {
        padding: 24px 20px;
    }
    .nbs-rg-cta-inline p {
        font-size: 16px;
    }
    .nbs-rg-faq summary {
        font-size: 15px;
        padding: 14px 40px 14px 16px;
    }
}