:root {
    /* Brand palette — derived from the RT Solutions logo (violet → blue) */
    --brand: #5a3ec8;
    --brand-rgb: 90, 62, 200;
    --brand-50: #f5f3ff;
    --brand-100: #ece8fe;
    --brand-200: #d4ccfb;
    --brand-300: #ab9df3;
    --brand-400: #8572ea;
    --brand-400-rgb: 133, 114, 234;
    --brand-500: #6a55e0;
    --brand-500-rgb: 106, 85, 224;
    --brand-600: #5a3ec8;
    --brand-600-rgb: 90, 62, 200;
    --brand-700: #4a2fb0;
    --brand-700-rgb: 74, 47, 176;
    --brand-800: #3a2590;
    --brand-900: #1f1650;
    --brand-blue: #3d63ec;
    --brand-gradient: linear-gradient(135deg, #5a3ec8 0%, #4a52e0 55%, #3d63ec 100%);
    /* Accent — reserved for primary calls to action */
    --accent: #f47c20;
    --accent-600: #dd6a10;
    --accent-rgb: 244, 124, 32;
    /* Neutrals (slate) */
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    /* Shape & elevation */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --header-h: 76px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* No global smooth-scroll: JS handles anchor scrolling with header offset.
       This also stops the browser animating scroll restoration on load. */
}

body {
    overflow-anchor: none; /* stop scroll anchoring jumping the page on image load */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--ink-700);
    background-color: #fff;
}

.container {
	max-width:1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 15px;
    background: linear-gradient(90deg, #fafbff 0%, #f4f3fb 100%);
    border-bottom: 1px solid #e9ecef;
}

.contact-info {
    display: flex;
    gap: 22px;
}

.email-link,
.network-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    margin: -4px -10px;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease;
}

.email-link i,
.network-link i {
    color: var(--brand-500);
    font-size: 12px;
}

.email-link:hover,
.network-link:hover {
    color: var(--brand-500);
    background: rgba(var(--brand-500-rgb), 0.08);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    color: var(--ink-500);
    font-size: 13px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--brand-rgb), 0.18);
    background: #fff;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #fff;
    background: #0077b5;
    border-color: #0077b5;
    transform: translateY(-1px);
}

.header-top .dark-mode-toggle {
    margin-left: 0;
    width: 30px;
    height: 30px;
    font-size: 13px;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--brand-rgb), 0.05);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(10px);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 12px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    position: relative;
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--brand-rgb), 0.05);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-brand:hover::before {
    opacity: 1;
}

/* Logo — single consolidated rule */
.logo {
    height: 58px;
    width: auto;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.12));
    position: relative;
    z-index: 1;
    object-fit: cover;
    animation: logo-shine 3s ease-in-out infinite;
    flex-shrink: 0;
}

.nav-brand:hover .logo {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
}

.brand-text {
    font-size: 23px;
    font-weight: 600;
    color: var(--ink-700);
    background: var(--brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    letter-spacing: -0.5px;
    white-space: nowrap !important;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1.1;
}

.nav-brand:hover .brand-text {
    letter-spacing: 0px;
    transform: translateX(3px);
}

.brand-medal {
    color: #fbbf24;
    font-size: 1rem;
    margin-left: 6px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    flex-shrink: 0;
}

.nav-brand:hover .brand-medal {
    transform: scale(1.15) rotate(-8deg);
}

/* Logo shine animation */
@keyframes logo-shine {
    0%   { filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.12)); }
    50%  { filter: drop-shadow(0 2px 8px rgba(var(--brand-700-rgb), 0.4)); }
    100% { filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.12)); }
}

/* Accessibility — visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.nav-menu {
    display: flex;
}

/* Subpage header nav (generated pages: /type-approval/, /services/, …) */
ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 6px;
}

ul.nav-menu .nav-item {
    border: none;
}

ul.nav-menu .nav-link {
    display: block;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

ul.nav-menu .nav-link:hover {
    color: var(--brand);
    background: rgba(var(--brand-500-rgb), 0.10);
}

ul.nav-menu .nav-link.active {
    color: #fff;
    background: var(--brand);
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

@media (max-width: 768px) {
    ul.nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    ul.nav-menu .nav-item {
        border-bottom: 1px solid #eef2f7;
    }

    ul.nav-menu .nav-item:last-child {
        border-bottom: none;
    }

    ul.nav-menu .nav-link {
        border-radius: 0;
        padding: 16px 0;
    }

    ul.nav-menu .nav-link.active {
        background: none;
        box-shadow: none;
        color: var(--brand);
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    position: relative;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    border-radius: 25px;
    margin: 0 5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.nav-link::after {
    display: none;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 600;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    min-width: 280px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border-radius: 15px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    list-style: none;
    border: 1px solid rgba(var(--brand-500-rgb), 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--ink-700);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    border-radius: 8px;
    margin: 2px 10px;
    font-weight: 500;
}

.dropdown-link:hover {
    background: var(--brand);
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

/* ── Countries mega-menu ────────────────────────────────────────────────── */
.mega-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-15px) scale(0.95);
    width: min(860px, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.dropdown:hover .mega-menu {
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu::-webkit-scrollbar { width: 6px; }
.mega-menu::-webkit-scrollbar-thumb { background: rgba(var(--brand-500-rgb), 0.35); border-radius: 3px; }

.mega-head {
    padding: 18px 24px 14px;
    border-bottom: 1px solid rgba(var(--brand-500-rgb), 0.12);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.08) 0%, rgba(255, 255, 255, 0.97) 60%);
    backdrop-filter: blur(15px);
    z-index: 2;
}

.mega-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mega-head-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-head-title > i {
    font-size: 22px;
    color: var(--brand-500);
}

.mega-head strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

.mega-head-title span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.mega-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-500);
    text-decoration: none;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--brand-500-rgb), 0.3);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mega-all:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
}

.mega-search {
    position: relative;
}

.mega-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #94a3b8;
    pointer-events: none;
}

.mega-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px 8px 34px;
    font-size: 0.85rem;
    color: #334155;
    background: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mega-search input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(var(--brand-500-rgb), 0.15);
}

.mega-search input::placeholder { color: #94a3b8; }

.mega-empty {
    padding: 26px 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

body.dark-mode .mega-search input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.mega-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.mega-group { padding: 14px 0 18px; }
.mega-group + .mega-group { border-left: 1px solid rgba(var(--brand-500-rgb), 0.1); }

.mega-group-title {
    display: block;
    padding: 4px 24px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.mega-col {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 4px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 18px;
    margin: 0 8px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    break-inside: avoid;
}

@media (min-width: 769px) {
    /* Keep each country on one line in the desktop mega-menu */
    .mega-item {
        white-space: nowrap;
    }
}

.mega-item img {
    width: 20px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.mega-item {
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mega-item:hover {
    background: rgba(var(--brand-rgb), 0.12);
    color: var(--brand-500);
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .mega-menu {
        left: 0;
        width: 100%;
        transform: none;
        max-height: 50vh;
    }
    .mega-cols { grid-template-columns: 1fr; }
    .mega-group + .mega-group { border-left: none; border-top: 1px solid rgba(var(--brand-500-rgb), 0.1); }
    .mega-col { columns: 1; }
}

body.dark-mode .mega-menu { background: #1e293b; }
body.dark-mode .mega-head { background: rgba(30, 41, 59, 0.97); }
body.dark-mode .mega-head strong { color: #e2e8f0; }
body.dark-mode .mega-item { color: #cbd5e1; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink-700);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Hero Section */
.hero {
    color: white;
    text-align: center;
    margin-top: 0;
    padding-top: 150px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Homepage header: full-width white bar with airy spacing and plain nav links */
.home-header {
    background: #fff;
    box-shadow: 0 1px 0 #e5e7eb;
}

.home-header .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

#main-content > section:not(.hero) {
    margin: 0 0 40px;
}

.home-header .navbar {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 18px 0;
    margin: 0;
}

.home-header .navbar .nav-brand {
    padding: 0;
}

.home-header .navbar .nav-brand::before {
    display: none;
}

.home-header .nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-header .nav-link {
    color: #475569;
    background: none;
    box-shadow: none;
    transform: none;
    padding: 10px 2px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.home-header .nav-link::after {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.home-header .nav-link:hover,
.home-header .nav-link.active {
    color: var(--accent);
    background: none;
    box-shadow: none;
    transform: none;
}

.home-header .nav-link:hover::after,
.home-header .nav-link.active::after {
    transform: scaleX(1);
}

@media (min-width: 769px) {
    .home-header .navbar {
        justify-content: flex-start;
        gap: 35%;
    }
}

/* Homepage hero: left-aligned bold uppercase headline with orange primary CTA */
.hero .carousel-slide .hero-content {
    text-align: left;
    max-width: 720px;
    margin-left: 0;
}

.hero .carousel-slide h1,
.hero .carousel-slide h2 {
    font-size: 2em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero .hero-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 640px;
}

.hero .hero-buttons {
    justify-content: flex-start;
}

.hero .hero-buttons .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.hero .hero-buttons .btn-primary:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 5D Particle canvas — behind content, above slide backgrounds */
#particles-5d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ensure carousel track & controls sit above the canvas */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.carousel-btn {
    z-index: 12;
}

.carousel-indicators {
    z-index: 12;
}



.carousel-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 20px;
    background-size: cover;
    background-position: 50% 45%;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    animation: heroKenBurns 9s ease-out both;
}

/* Subtle Ken Burns drift on the active slide's photo —
   direction alternates between slides for variety */
@keyframes heroKenBurns {
    from { background-position: 50% 42%; }
    to   { background-position: 50% 56%; }
}

@keyframes heroKenBurnsAlt {
    from { background-position: 50% 56%; }
    to   { background-position: 50% 42%; }
}

.carousel-slide.active:nth-child(even) {
    animation-name: heroKenBurnsAlt;
}

/* Staggered entrance for headline / subtitle / buttons */
.carousel-slide .hero-content > * {
    opacity: 0;
    transform: translateY(26px);
}

.carousel-slide.active .hero-content > * {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.carousel-slide.active .hero-content > .hero-subtitle { animation-delay: 0.12s; }
.carousel-slide.active .hero-content > .hero-buttons { animation-delay: 0.24s; }
.carousel-slide.active .hero-content > :first-child { animation-delay: 0s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track,
    .carousel-slide { transition-duration: 0.01s; }
    .carousel-slide.active { animation: none; }
    .carousel-slide .hero-content > * { opacity: 1; transform: none; }
    .carousel-slide.active .hero-content > * { animation: none; }
}

.carousel-slide .hero-content {
    width: 100%;
    text-align: center;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    opacity: 0.75;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.indicator.active {
    width: 28px;
    background: rgba(255, 255, 255, 0.35);
}

/* Fill bar on the active dot — tracks the 5 s autoplay interval */
.indicator.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    animation: indicatorFill 5s linear forwards;
}

@keyframes indicatorFill {
    to { transform: scaleX(1); }
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #fff;
    color: var(--brand-500);
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--brand-500);
}

/* Services Overview */
.services-overview {
    /* padding: 100px 0; */
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--ink-700);
}

/* About Section */
.about-section {
    margin-bottom: 80px;
    background: #fff;
    border: 1px solid rgba(var(--brand-500-rgb), 0.12);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.about-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 10px;
}

.about-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--brand);
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--ink-500);
    margin-bottom: 40px;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-500);
    margin-bottom: 30px;
}

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    position: relative;
    color: var(--ink-500);
    background: #f8f9fc;
    border: 1px solid #eef0f6;
    border-radius: 12px;
    line-height: 1.6;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-features li:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-500-rgb), 0.4);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.af-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-rgb), 0.14);
    color: var(--brand);
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.about-features li:hover .af-icon {
    background: var(--brand);
    color: #fff;
}

.about-features li strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.about-features li p {
    font-size: 0.88rem;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.vision-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.vision,
.values {
    background: #f8f9fc;
    border: 1px solid rgba(var(--brand-500-rgb), 0.12);
    border-radius: 14px;
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vision:hover,
.values:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.vision h3,
.values h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 18px;
    text-align: center;
}

.vv-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.vision p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.values ul {
    justify-content: center;
}

.values ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vision h3 i,
.values h3 i {
    margin-right: 0;
}

.values li i {
    color: var(--brand-500);
}

.values li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(var(--brand-500-rgb), 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-700);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.services-subtitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 20px;
}

/* Each card is a single <a> linking to its service page.
   Per-card accent vars: --acc-1/--acc-2 (gradient), --acc-text,
   --acc-glow (shadow), --acc-soft / --acc-border (tints). */
.service-card {
    --acc-1: var(--brand-500);
    --acc-2: var(--brand-700);
    --acc-text: var(--brand-500);
    --acc-glow: rgba(var(--brand-500-rgb), 0.3);
    --acc-soft: rgba(var(--brand-500-rgb), 0.1);
    --acc-border: rgba(var(--brand-500-rgb), 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, var(--acc-soft) 0%, rgba(255, 255, 255, 0) 45%), #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #e8eaf6;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Per-service accent palettes — same saturation family, distinct hues */
.services-grid > a.service-card:nth-of-type(1) { --acc-1:var(--brand-600); --acc-2:var(--brand-700); --acc-text:var(--brand-700); --acc-glow:rgba(var(--brand-600-rgb), .32); --acc-soft:rgba(var(--brand-600-rgb), .09); --acc-border:rgba(var(--brand-600-rgb), .30); }
.services-grid > a.service-card:nth-of-type(2) { --acc-1:#2563eb; --acc-2:#1d4ed8; --acc-text:#1d4ed8; --acc-glow:rgba(37,99,235,.32); --acc-soft:rgba(37,99,235,.09); --acc-border:rgba(37,99,235,.30); }
.services-grid > a.service-card:nth-of-type(3) { --acc-1:#0891b2; --acc-2:#0e7490; --acc-text:#0e7490; --acc-glow:rgba(8,145,178,.32); --acc-soft:rgba(8,145,178,.09); --acc-border:rgba(8,145,178,.30); }
.services-grid > a.service-card:nth-of-type(4) { --acc-1:#059669; --acc-2:#047857; --acc-text:#047857; --acc-glow:rgba(5,150,105,.32); --acc-soft:rgba(5,150,105,.09); --acc-border:rgba(5,150,105,.30); }
.services-grid > a.service-card:nth-of-type(5) { --acc-1:#e11d48; --acc-2:#be123c; --acc-text:#be123c; --acc-glow:rgba(225,29,72,.30); --acc-soft:rgba(225,29,72,.08); --acc-border:rgba(225,29,72,.30); }
.services-grid > a.service-card:nth-of-type(6) { --acc-1:#d97706; --acc-2:#b45309; --acc-text:#b45309; --acc-glow:rgba(217,119,6,.32); --acc-soft:rgba(217,119,6,.09); --acc-border:rgba(217,119,6,.30); }
.services-grid > a.service-card:nth-of-type(7) { --acc-1:#4f46e5; --acc-2:#4338ca; --acc-text:#4338ca; --acc-glow:rgba(79,70,229,.32); --acc-soft:rgba(79,70,229,.09); --acc-border:rgba(79,70,229,.30); }
.services-grid > a.service-card:nth-of-type(8) { --acc-1:#c026d3; --acc-2:#a21caf; --acc-text:#a21caf; --acc-glow:rgba(192,38,211,.30); --acc-soft:rgba(192,38,211,.08); --acc-border:rgba(192,38,211,.30); }
.services-grid > a.service-card:nth-of-type(9) { --acc-1:#16a34a; --acc-2:#15803d; --acc-text:#15803d; --acc-glow:rgba(22,163,74,.32); --acc-soft:rgba(22,163,74,.09); --acc-border:rgba(22,163,74,.30); }
.services-grid > a.service-card:nth-of-type(10) { --acc-1:#ea580c; --acc-2:#c2410c; --acc-text:#c2410c; --acc-glow:rgba(234,88,12,.32); --acc-soft:rgba(234,88,12,.09); --acc-border:rgba(234,88,12,.30); }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--acc-1) 0%, var(--acc-2) 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--acc-border);
    background: linear-gradient(180deg, var(--acc-soft) 0%, var(--acc-soft) 35%, rgba(255, 255, 255, 0) 75%), #ffffff;
}

body.dark-mode .service-card {
    background: linear-gradient(180deg, var(--acc-soft) 0%, rgba(255, 255, 255, 0) 45%), #1e293b;
}

body.dark-mode .service-card:hover {
    background: linear-gradient(180deg, var(--acc-soft) 0%, var(--acc-soft) 35%, rgba(255, 255, 255, 0) 75%), #1e293b;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--acc-1) 0%, var(--acc-2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 5px 20px var(--acc-glow);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc-2) 0%, var(--acc-1) 100%);
    opacity: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px var(--acc-glow);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-icon i {
    font-size: 35px;
    color: white;
    position: relative;
    z-index: 1;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--acc-text);
}

.service-card p {
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--acc-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link i {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.service-link:hover {
    color: var(--acc-2);
}

.service-link:hover i,
.service-card:hover .service-link i {
    transform: translateX(2px);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    opacity: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.benefit-card:hover .benefit-icon::before {
    opacity: 1;
}

.benefit-icon i {
    font-size: 30px;
    color: white;
    position: relative;
    z-index: 1;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.benefit-card:hover .benefit-icon i {
    transform: scale(1.15);
}

/* Per-card icon colour variants — soft tinted circle + accent glyph */
.benefit-card:nth-child(1) .benefit-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}
.benefit-card:nth-child(1) .benefit-icon i { color: #2563eb; }
.benefit-card:nth-child(1) .benefit-icon::before { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.benefit-card:nth-child(1):hover .benefit-icon i { color: #fff; }

.benefit-card:nth-child(2) .benefit-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12);
}
.benefit-card:nth-child(2) .benefit-icon i { color: var(--brand-600); }
.benefit-card:nth-child(2) .benefit-icon::before { background: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-600) 100%); }
.benefit-card:nth-child(2):hover .benefit-icon i { color: #fff; }

.benefit-card:nth-child(3) .benefit-icon {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
}
.benefit-card:nth-child(3) .benefit-icon i { color: #0d9488; }
.benefit-card:nth-child(3) .benefit-icon::before { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.benefit-card:nth-child(3):hover .benefit-icon i { color: #fff; }

.benefit-card:nth-child(4) .benefit-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.benefit-card:nth-child(4) .benefit-icon i { color: #d97706; }
.benefit-card:nth-child(4) .benefit-icon::before { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.benefit-card:nth-child(4):hover .benefit-icon i { color: #fff; }

.benefit-card:nth-child(5) .benefit-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
.benefit-card:nth-child(5) .benefit-icon i { color: #059669; }
.benefit-card:nth-child(5) .benefit-icon::before { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.benefit-card:nth-child(5):hover .benefit-icon i { color: #fff; }

.benefit-card:nth-child(6) .benefit-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
}
.benefit-card:nth-child(6) .benefit-icon i { color: #db2777; }
.benefit-card:nth-child(6) .benefit-icon::before { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.benefit-card:nth-child(6):hover .benefit-icon i { color: #fff; }

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--ink-500);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--brand);
    color: white;
}

/* Qualifications Section */
.qualifications-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.qualifications-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.qualifications-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-500);
    margin-bottom: 20px;
}

.qualifications-list {
    list-style: none;
    margin: 30px 0;
}

.qualifications-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--ink-700);
    display: flex;
    align-items: center;
    gap: 15px;
}

.qualifications-list li i {
    color: var(--brand-500);
    font-size: 1.3rem;
}

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

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.certification-badge {
    width: 180px;
    height: 180px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.certification-badge:hover {
    transform: scale(1.05);
}

.certification-badge i {
    font-size: 50px;
    margin-bottom: 15px;
}

.certification-badge span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.ce-mark {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--ink-700);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.ce-mark:hover {
    transform: scale(1.05);
}

.ce-mark:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--brand-500);
    border-radius: 50%;
}

.ce-symbol {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--ink-700);
    position: relative;
}

.ce-symbol:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--brand-500);
    border-radius: 50%;
}

.ce-mark span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-500);
}

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

    .qualifications-image {
        order: -1;
        margin-bottom: 30px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 100px 0 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 10px;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.contact-item:hover .contact-icon::before {
    opacity: 0.3;
    width: 120%;
    height: 120%;
}

.contact-icon i {
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 1;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse animation for icons */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-500);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.contact-item:nth-child(1) .contact-icon::after {
    animation-delay: 0s;
}

.contact-item:nth-child(2) .contact-icon::after {
    animation-delay: 0.3s;
}

.contact-item:nth-child(3) .contact-icon::after {
    animation-delay: 0.6s;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--ink-700);
    font-weight: 600;
}

.contact-item a {
    color: var(--ink-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--brand-500);
}

.map-container {
    width: min(1500px, calc(100% - 40px));
    height: 480px;
    margin: 80px auto 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--brand-500-rgb), 0.15);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}

/* ============================================================
   Office Map — Floating HQ Info Card
   ============================================================ */
.office-map-card {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    width: 250px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(var(--brand-500-rgb), 0.18);
    box-shadow: 0 10px 30px rgba(48, 0, 84, 0.18);
    padding: 16px;
}

.office-map-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.office-map-card-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.office-map-card-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.office-map-card-name {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--brand-800);
    line-height: 1.2;
}

.office-map-card-address {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 12px 0;
}

.office-map-card-flag {
    width: 18px;
    height: auto;
    border-radius: 3px;
    vertical-align: -3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Flag images replacing emoji flags (Windows-safe) */
.faq-flag {
    width: 22px;
    height: auto;
    border-radius: 3px;
    vertical-align: -4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.contact-flag {
    width: 18px;
    height: auto;
    border-radius: 3px;
    vertical-align: -3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.office-map-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.office-map-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-500);
    background: rgba(var(--brand-500-rgb), 0.08);
    border: 1px solid rgba(var(--brand-500-rgb), 0.18);
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.office-map-card-link:hover {
    background: var(--brand-500);
    color: #ffffff;
    border-color: var(--brand-500);
}

.office-map-card-link.whatsapp {
    color: #16a34a;
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.25);
}

.office-map-card-link.whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

/* Dark mode */
body.dark-mode .office-map-card {
    background: rgba(30, 41, 59, 0.94);
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.dark-mode .office-map-card-head {
    border-bottom-color: #334155;
}

body.dark-mode .office-map-card-name {
    color: var(--brand-200);
}

body.dark-mode .office-map-card-address {
    color: #94a3b8;
}

/* Responsive — compact card on small screens */
@media (max-width: 768px) {
    .office-map-card {
        top: 10px;
        left: 10px;
        width: 210px;
        max-width: calc(100% - 20px);
        padding: 12px;
    }

    .office-map-card-logo {
        width: 28px;
        height: 28px;
    }

    .office-map-card-name {
        font-size: 0.8rem;
    }

    .office-map-card-address {
        font-size: 0.76rem;
        margin: 10px 0;
    }

    .office-map-card-link {
        font-size: 0.68rem;
        padding: 4px 8px;
    }
}

/* Office map — compact card anchored to the marker */
.office-marker-card {
    min-width: 190px;
    padding: 12px 14px;
    text-align: left;
}

.office-marker-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 8px;
}

.office-marker-card-head img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.office-marker-card-head strong {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--brand-800);
}

.office-marker-card-addr {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}

.office-marker-card-actions {
    display: flex;
    gap: 6px;
}

.office-marker-card-actions a {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-500);
    background: rgba(var(--brand-500-rgb), 0.08);
    border: 1px solid rgba(var(--brand-500-rgb), 0.18);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.office-marker-card-actions a:hover {
    background: var(--brand-500);
    color: #fff;
}

.office-marker-card-actions a.omc-wa {
    color: #16a34a;
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.25);
}

.office-marker-card-actions a.omc-wa:hover {
    background: #25D366;
    color: #fff;
}

@media (max-width: 480px) {
    .office-marker-card {
        min-width: 160px;
        padding: 10px 12px;
    }
}

/* Allow popups to render outside the map frame without clipping */
.maplibregl-map {
    overflow: visible !important;
}

/* Force popups above markers on the map */
.maplibregl-popup {
    z-index: 1000 !important;
}

/* RT Solutions target / bullseye marker */
.rt-target-marker {
    position: relative;
    width: 44px;
    height: 44px;
    display: block;
    pointer-events: auto;
    cursor: pointer;
    transform: translateZ(0);
}

.rt-target-marker .rt-target-svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.12));
}

.rt-target-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: rgba(var(--brand-400-rgb), 0.45);
    z-index: 1;
    animation: rtTargetPulse 2s ease-out infinite;
}

.rt-target-pulse.rt-target-pulse-delay {
    animation-delay: 1s;
}

@keyframes rtTargetPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    80%  { transform: scale(3.2); opacity: 0;   }
    100% { transform: scale(3.2); opacity: 0;   }
}

/* Keep map tiles clipped inside the map frame */
.map-container .maplibregl-canvas-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   mapcn Styled Markers & Popups (Premium Aesthetic) 
-------------------------------------------------------------------------- */

/* Professional pulsing marker with enhanced visual hierarchy */
.mapcn-marker {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mapcn-marker-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mapcn-marker-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--brand-500-rgb), 0.4);
    border-radius: 50%;
    z-index: 2;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mapcn-marker:hover {
    transform: scale(1.15);
}

.mapcn-marker:hover .mapcn-marker-core {
    width: 14px;
    height: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mapcn-marker:hover .mapcn-marker-ring {
    width: 26px;
    height: 26px;
    border-width: 3px;
    border-color: rgba(var(--brand-500-rgb), 0.6);
}

.mapcn-marker-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(var(--brand-500-rgb), 0.6) 0%, rgba(var(--brand-500-rgb), 0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: mapcn-pulse-pro 2.5s ease-out infinite;
    z-index: 1;
}

@keyframes mapcn-pulse-pro {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Office premium pin SVG wrapper */
.mapcn-office-pin-svg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mapcn-office-svg {
    filter: drop-shadow(0px 4px 6px rgba(15, 23, 42, 0.12));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.mapcn-office-pin-svg-wrapper:hover .mapcn-office-svg {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0px 8px 12px rgba(15, 23, 42, 0.12));
}

/* Professional popup styling with enhanced UX */
.mapcn-popup-theme .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(var(--brand-500-rgb), 0.2) !important;
    min-width: 240px !important;
    max-width: 280px !important;
    animation: popupFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
}

.mapcn-popup-theme .maplibregl-popup-tip {
    border-top-color: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

.mapcn-popup-theme .maplibregl-popup-close-button {
    font-size: 18px !important;
    padding: 6px 10px !important;
    color: var(--brand-500) !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.mapcn-popup-theme .maplibregl-popup-close-button:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.mapcn-popup-card {
    display: flex;
    flex-direction: column;
    background: white;
}

.mapcn-popup-header {
    position: relative;
    background: var(--brand);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    overflow: hidden;
}

.mapcn-popup-flag {
    width: 70px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mapcn-popup-body {
    padding: 16px;
    background: white;
    text-align: center;
}

.mapcn-popup-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.mapcn-popup-coverage {
    font-size: 0.85rem;
    color: var(--brand-500);
    font-weight: 600;
    margin: 0;
}

.mapcn-popup-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(var(--brand-rgb), 0.08);
    color: var(--brand-500);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(var(--brand-500-rgb), 0.15);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-badge:hover {
    background: rgba(var(--brand-rgb), 0.15);
    transform: translateY(-1px);
}

.service-badge i {
    font-size: 0.8rem;
}

.mapcn-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.mapcn-popup-badge i {
    font-size: 0.9rem;
}

.mapcn-popup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.mapcn-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    text-decoration: none;
    color: white;
}

.mapcn-popup-cta i {
    font-size: 1rem;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mapcn-popup-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.mapcn-direction-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.mapcn-direction-link:hover {
    gap: 10px;
}

/* Ensure map controls (zoom) respect styling */
.maplibregl-ctrl-group {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}


.quote-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    align-self: start;
}

.quote-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 10px;
}

.quote-subtitle {
    font-size: 1rem;
    color: var(--ink-500);
    margin-bottom: 30px;
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.faq-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
    max-width: 720px;
    margin: -10px auto 50px;
    line-height: 1.7;
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(var(--brand-500-rgb), 0.12);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border-color: rgba(var(--brand-500-rgb), 0.35);
}

.faq-item:hover:not([open]) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #1a202c;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-chevron {
    color: var(--brand-600);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 26px 24px 66px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.75;
    animation: faqAnswerIn 0.3s ease both;
}

.faq-answer p {
    margin: 0 0 12px;
}

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

.faq-answer strong {
    color: #1a202c;
}

.faq-subtitle {
    margin: 18px 0 8px;
    font-size: 1rem;
    color: #1a365d;
    font-weight: 600;
}

.faq-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-bullets li {
    position: relative;
    padding-left: 22px;
}

.faq-figure {
    margin: 16px 0 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.faq-figure figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

.faq-bullets li::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 0;
    color: var(--brand-600);
    font-weight: 600;
}

@keyframes faqAnswerIn {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@media (max-width: 640px) {
    .faq-section { padding: 60px 0; }
    .faq-question { padding: 18px 18px; font-size: 1rem; gap: 12px; }
    .faq-answer { padding: 0 18px 20px 48px; }
    .faq-icon { font-size: 1.25rem; }
}

/* News Section restored styles */
.news-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--ink-500);
    font-size: 1.1rem;
    line-height: 1.6;
}

.news-filter-container {
    margin-bottom: 50px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.news-country-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.news-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

.news-country-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-country-item.active {
    background: var(--brand);
    color: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border-color: transparent;
}

.country-icon-all {
    font-size: 20px;
}

.news-country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Regional flag rows removed — see git history if needed again */

.no-news-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.no-news-message i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 20px;
    display: block;
}

.no-news-message h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.no-news-message p {
    color: #718096;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

/* ============================================================
   News Card v2 — flag banner + region chip + read-more
   ============================================================ */
.news-card-v2 {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease;
}

.news-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-flag-banner {
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 4px solid var(--brand-400);
}

.news-flag-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.news-region-chip {
    align-self: flex-start;
    display: inline-block;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-preview {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    gap: 12px;
}

.news-card-date {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.news-read-more {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--brand-600);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-read-more:hover {
    color: #5b21b6;
    transform: translateX(3px);
}

/* Older news links section */
.news-card-older-news {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.older-news-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.older-news-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.older-news-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    text-align: left;
    width: 100%;
}

.older-news-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.older-news-link i.fa-newspaper {
    color: var(--brand-600);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.older-news-link span {
    flex: 1;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.older-news-link em {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: normal;
    flex-shrink: 0;
}

/* ============================================================
   News Modal
   ============================================================ */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.news-modal.open {
    display: flex;
    animation: newsModalFade 0.25s ease both;
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.news-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: newsModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #1a202c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-modal-close:hover {
    transform: scale(1.08);
    background: #ffffff;
}

/* Flag banner: full flag centered on a soft gradient — no cropping */
.news-modal-banner {
    width: 100%;
    height: 190px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1fa 100%);
    border-bottom: 5px solid var(--brand-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-banner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.news-modal-body {
    padding: 26px 30px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-modal-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

.news-modal-date {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-modal-content {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.75;
}

.news-modal-content h4 {
    margin: 18px 0 8px;
    color: #1a365d;
}

.news-modal-content ul {
    padding-left: 20px;
}

/* ── Modal footer: CTA + related news side-by-side ────────────── */
.news-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 20px -30px -30px -30px;
}

.news-modal-cta {
    flex-shrink: 0;
    align-self: flex-start;
    background: var(--brand);
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

/* ── Related news block ────────────────────────────────────────── */
.news-modal-related {
    flex: 1;
    min-width: 250px;
}

.news-modal-related-heading {
    font-size: 0.75rem;
    font-weight: 600;
    
    color: #64748b;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-modal-related-heading::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #cbd5e1;
}

.news-modal-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-modal-related-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.news-modal-related-link:hover {
    border-color: var(--brand-400);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.news-modal-related-link > i.fa-newspaper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.9rem;
    color: var(--brand-400);
    flex-shrink: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-modal-related-link:hover > i.fa-newspaper {
    background: var(--brand-400);
    color: #ffffff;
}

.news-modal-related-link .link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-modal-related-link span {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    transition: color 0.2s ease;
}

.news-modal-related-link:hover span {
    color: var(--brand-600);
}

.news-modal-related-link em {
    font-style: normal;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.news-modal-related-link .link-arrow {
    font-size: 0.8rem;
    color: #cbd5e1;
    transform: translateX(-4px);
    opacity: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-modal-related-link:hover .link-arrow {
    color: var(--brand-400);
    transform: translateX(0);
    opacity: 1;
}

@keyframes newsModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes newsModalPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

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

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-modal-body { padding: 20px; }
    .news-modal-title { font-size: 1.2rem; }
}

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

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

.news-grid.fade-out {
    opacity: 0;
}

/* News Section Adjustments */
.news-country-selector.single-row {
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
}

.news-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(var(--brand-500-rgb), 0.1);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    max-height: 750px;
    overflow-y: auto;
    margin-top: 1%;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    flex-grow: 1;
}

.news-card .news-badge {
    align-self: flex-start;
    margin-bottom: 20px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: auto;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border-color: rgba(var(--brand-500-rgb), 0.3);
}

.news-card.featured {
    border-color: rgba(var(--brand-500-rgb), 0.2);
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    }

    50% {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    }
}

.news-badge i {
    font-size: 0.9rem;
}

.news-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.news-icon {
    width: 60px;
    height: 60px;
    background: var(--brand);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-card:hover .news-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-icon i {
    font-size: 28px;
    color: white;
}

.news-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-date,
.news-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-500);
    font-weight: 500;
}

.news-date i,
.news-location i {
    color: var(--brand-500);
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 20px;
    line-height: 1.3;
    background: var(--brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-description {
    color: var(--ink-500);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.news-highlights {
    background: rgba(var(--brand-rgb), 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--brand-500);
}

.news-highlights h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-highlights h4 i {
    color: var(--brand-500);
    font-size: 1rem;
}

.news-specs {
    list-style: none;
    display: grid;
    gap: 15px;
}

.news-specs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-specs li:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-specs li i {
    color: var(--brand-500);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.news-specs li strong {
    color: var(--ink-700);
    font-weight: 600;
}

.news-benefits {
    margin-bottom: 30px;
}

.news-benefits h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-benefits h4 i {
    color: var(--brand-500);
    font-size: 1rem;
}

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefit-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--brand);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.benefit-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--brand);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.news-cta i {
    transition: transform 0.3s ease;
}

.news-cta:hover i {
    transform: translateX(2px);
}

/* Legacy news styles for compatibility */
.news-date {
    display: inline-block;
    background: var(--brand);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-link {
    color: var(--brand-500);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-link:hover {
    color: var(--brand-700);
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(3px);
}


.news-cta {
    text-align: center;
    background: var(--brand);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 40px;
}

.news-cta h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        padding: 25px 20px;
    }

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

    .news-cta h3 {
        font-size: 1.5rem;
    }
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(var(--brand-500-rgb), 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideDown 0.3s ease;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character counter */
.char-counter {
    font-size: 12px;
    color: var(--ink-500);
    text-align: right;
    margin-top: 5px;
    transition: color 0.3s ease;
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    animation: slideDown 0.5s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    transition: opacity 0.3s ease;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.success-message strong {
    font-size: 1.3rem;
    display: block;
}

.success-message p {
    margin: 0;
    opacity: 0.95;
}

/* Submit button enhancements */
.btn-submit {
    background: var(--brand);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 100%;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit i {
    margin-right: 8px;
}

/* Countries We Cover Section */
.countries-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink-500);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.countries-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 60px;
}

.countries-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.countries-sidebar h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ink-700);
}

.country-search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.country-search-input:focus {
    outline: none;
    border-color: var(--brand-500);
}

.search-container {
    position: relative;
    margin-bottom: 25px;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    display: none;
    z-index: 10;
}

.clear-search-btn:hover {
    color: var(--brand-500);
    background: rgba(var(--brand-500-rgb), 0.1);
}

.clear-search-btn.show {
    display: block;
}

.countries-stats {
    background: var(--brand);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.countries-stats .stat-item {
    color: white;
}

.countries-stats .stat-number {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.countries-stats .stat-number:hover {
    transform: scale(1.1);
}

.countries-stats .stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

.countries-map {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 650px;
    position: relative;
    border: 1px solid rgba(var(--brand-500-rgb), 0.1);
}

.countries-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.countries-list {
    margin-top: 20px;
}

.countries-list h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--ink-700);
}

.countries-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.countries-grid::-webkit-scrollbar {
    width: 6px;
}

.countries-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.countries-grid::-webkit-scrollbar-thumb {
    background: var(--brand-500);
    border-radius: 10px;
}

.countries-grid::-webkit-scrollbar-thumb:hover {
    background: var(--brand-700);
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.country-item:hover {
    background: var(--brand);
    color: white;
    transform: translateX(2px);
    border-color: var(--brand-500);
}

.country-item.highlighted {
    background: rgba(var(--brand-rgb), 0.1);
    border-color: var(--brand-500);
}

.country-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Leaflet country tooltip styling */
.country-tooltip {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    letter-spacing: 0.3px;
}

.country-tooltip::before {
    border-top-color: var(--brand-500);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border: 2px solid rgba(var(--brand-500-rgb), 0.2);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Country polygon styling */
.country-polygon {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    cursor: pointer;
}

.country-polygon:hover {
    filter: brightness(1.1);
}

/* Enhanced circle markers */
.leaflet-interactive {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Map container enhancements */
.countries-map .leaflet-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Footer */
.footer {
    background: var(--ink-700);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--brand-500);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
/* ============================================================
   Tablet breakpoint — 992px
   ============================================================ */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qualifications-content {
        grid-template-columns: 1fr;
    }

    .qualifications-image {
        order: -1;
        margin-bottom: 30px;
    }
}

/* ============================================================
   Mobile breakpoint — 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Map mobile optimizations */
    .countries-map {
        height: 450px;
        border-radius: 15px;
    }
    
    .countries-content {
        flex-direction: column;
    }
    
    .countries-sidebar {
        order: 1;
        margin-bottom: 20px;
    }
    
    .mapcn-popup-theme .maplibregl-popup-content {
        min-width: 220px !important;
        max-width: 260px !important;
    }
    
    .mapcn-popup-title {
        font-size: 1.05rem;
    }
    
    .mapcn-popup-coverage {
        font-size: 0.8rem;
    }
    
    .mapcn-popup-flag {
        width: 60px;
    }
    
    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
        max-height: none;
        overflow: visible;
        padding: 6px 0;
        border-radius: 8px;
    }

    .dropdown-link {
        padding: 12px 16px;
    }

    .countries-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .countries-sidebar {
        order: 2;
    }

    .countries-map {
        order: 1;
        height: 400px;
    }

    .hero {
        padding: 140px 0 60px;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .vision-values {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        order: 2;
    }

    .quote-form {
        order: 1;
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .map-container {
        width: calc(100% - 24px);
        height: 340px;
        margin: 56px auto 0;
        border-radius: 14px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    /* News country selector — allow wrapping on narrow screens */
    .news-country-selector {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .news-country-item {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .benefit-card {
        padding: 25px 20px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .world-map {
        padding: 15px;
    }


}

/* Carousel Responsive Design */
@media (max-width: 1100px) {
    .hero .carousel-slide h1,
    .hero .carousel-slide h2 {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .hero .carousel-slide h1,
    .hero .carousel-slide h2 {
        font-size: 1.5rem;
        white-space: normal;
        letter-spacing: 0.3px;
    }

    .hero .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .carousel-slide {
        padding: 0 24px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero .carousel-slide h1,
    .hero .carousel-slide h2 {
        font-size: 1.25rem;
    }

    .hero .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }

    .carousel-btn {
        display: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
}

.back-to-top:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================================
   Mobile spacing refinements — reduce excessive padding/margin
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
    }

    .footer-content,
    .contact-content,
    .about-content,
    .qualifications-content,
    .countries-content {
        margin-left: 10px;
        margin-right: 10px;
    }

    .benefits-section,
    .stats-section,
    .qualifications-section,
    .contact-section,
    .news-section,
    .countries-section {
        padding: 60px 0;
    }

    /* Map sits flush at the bottom of the contact section */
    .contact-section {
        padding-bottom: 0;
    }

    .about-section {
        margin-bottom: 40px;
        padding: 24px 16px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .news-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .countries-sidebar {
        padding: 20px;
    }

    .quote-form,
    .contact-form {
        padding: 25px 18px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .hero {
        padding: 110px 0 40px;
        margin-top: 0;
    }

    .news-filter-container {
        margin-bottom: 30px;
    }

    /* Ensure sticky header doesn't hide anchored content */
    html {
        scroll-padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
    }

    .news-card {
        padding: 22px 16px;
    }

    .service-card,
    .benefit-card {
        padding: 22px 16px;
    }

    .benefits-section,
    .stats-section,
    .qualifications-section,
    .contact-section,
    .news-section,
    .countries-section {
        padding: 48px 0;
    }

    .certification-badge,
    .ce-mark {
        width: 150px;
        height: 150px;
    }

    .certification-badge i {
        font-size: 40px;
        margin-bottom: 10px;
    }
}

/* ============================================================
   Map Flag Markers (Pro style)
   ============================================================ */
.mapcn-marker-flag {
    width: 34px;
    height: 44px;
    cursor: pointer;
}

.mapcn-flag-pin {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--brand-500);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease, border-color 0.25s ease;
    z-index: 2;
}

.mapcn-flag-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mapcn-flag-pin-tip {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--brand-500);
    z-index: 1;
}

.mapcn-marker-flag:hover .mapcn-flag-pin {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    border-color: var(--brand-700);
}

.mapcn-marker-flag .mapcn-marker-pulse {
    top: 16px;
}

.mapcn-marker-highlight .mapcn-flag-pin {
    border-color: var(--brand-700);
    transform: translateX(-50%) scale(1.25);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

/* ============================================================
   Dark Mode Toggle Button (header)
   ============================================================ */
.dark-mode-toggle {
    background: rgba(var(--brand-rgb), 0.10);
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    color: var(--brand);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.dark-mode-toggle:hover {
    background: rgba(var(--brand-rgb), 0.18);
    transform: rotate(20deg);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(var(--brand-400-rgb), 0.15);
    border-color: rgba(var(--brand-400-rgb), 0.35);
    color: var(--brand-200);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(var(--brand-400-rgb), 0.28);
}

/* ============================================================
   RT Assistant Chatbot
   ============================================================ */
.rt-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    font-family: 'Inter', sans-serif;
}

.rt-chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--brand);
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rt-chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.rt-chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.rt-chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.rt-chatbot.open .rt-chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.rt-chatbot-header {
    background: var(--brand);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rt-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rt-chatbot-header-info strong {
    display: block;
    font-size: 0.95rem;
}

.rt-chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    object-fit: contain;
}

.rt-chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rt-chatbot-status {
    font-size: 0.72rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.rt-chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.rt-chatbot-close:hover {
    opacity: 1;
}

.rt-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.rt-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.rt-chat-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.05);
}

.rt-chat-bot a {
    color: var(--brand-600);
    font-weight: 600;
}

.rt-chat-user {
    align-self: flex-end;
    background: var(--brand);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.rt-chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px;
}

.rt-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: rtTyping 1.2s infinite ease-in-out;
}

.rt-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.rt-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes rtTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-2px); opacity: 1; }
}

.rt-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.rt-chat-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rt-chat-chip:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #ffffff;
}

.rt-chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

.rt-chatbot-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.rt-chatbot-input-area input:focus {
    border-color: var(--brand-500);
}

.rt-chatbot-input-area button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.rt-chatbot-input-area button:hover {
    transform: scale(1.08);
}

/* Move back-to-top above chatbot to avoid overlap */
.back-to-top {
    bottom: 100px !important;
}

@media (max-width: 768px) {
    .rt-chatbot {
        bottom: 16px;
        right: 16px;
    }

    .rt-chatbot-window {
        height: 420px;
    }
}

/* ============================================================
   Dark Mode Theme
   ============================================================ */
body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .services-overview,
body.dark-mode .benefits-section,
body.dark-mode .qualifications-section,
body.dark-mode .countries-section,
body.dark-mode .faq-section,
body.dark-mode .news-section,
body.dark-mode .contact-section {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .section-title,
body.dark-mode .about-title,
body.dark-mode .contact-title,
body.dark-mode .quote-title,
body.dark-mode h2,
body.dark-mode h3:not(.news-card-title):not(.news-modal-title),
body.dark-mode h4 {
    color: #f1f5f9;
}

body.dark-mode p,
body.dark-mode li {
    color: #cbd5e1;
}

body.dark-mode .service-card,
body.dark-mode .benefit-card,
body.dark-mode .news-card-v2,
body.dark-mode .countries-sidebar,
body.dark-mode .faq-item,
body.dark-mode .quote-form {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .service-card h3,
body.dark-mode .benefit-card h3,
body.dark-mode .news-card-title,
body.dark-mode .faq-question-text {
    color: #f1f5f9;
}

body.dark-mode .service-card p,
body.dark-mode .benefit-card p,
body.dark-mode .news-card-preview {
    color: #94a3b8;
}

body.dark-mode .news-card-foot,
body.dark-mode .news-card-older-news {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .older-news-link {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .older-news-link span {
    color: #cbd5e1;
}

body.dark-mode .older-news-link:hover {
    background: #16223a;
}

body.dark-mode .news-country-item {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .country-search-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder,
body.dark-mode .country-search-input::placeholder {
    color: #64748b;
}

body.dark-mode .contact-item,
body.dark-mode .contact-value,
body.dark-mode .contact-label {
    color: #cbd5e1;
}

body.dark-mode .faq-answer {
    color: #cbd5e1;
}

body.dark-mode .faq-answer strong,
body.dark-mode p strong,
body.dark-mode li strong {
    color: #f1f5f9;
}

body.dark-mode .faq-subtitle {
    color: #e2e8f0;
}

body.dark-mode .news-modal-dialog {
    background: #1e293b;
}

body.dark-mode .news-modal-title {
    color: #f1f5f9;
}

body.dark-mode .news-modal-content {
    color: #cbd5e1;
}

body.dark-mode .news-modal-related-link {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .rt-chatbot-window {
    background: #1e293b;
}

body.dark-mode .rt-chatbot-messages,
body.dark-mode .rt-chatbot-suggestions {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .rt-chat-bot {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .rt-chatbot-input-area {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .rt-chatbot-input-area input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

body.dark-mode .rt-chat-chip {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

body.dark-mode .footer {
    background: #020617;
}

body.dark-mode .search-suggestions {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .stat-item {
    background: #0f172a;
}

body.dark-mode .country-item {
    background: #0f172a;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .mapcn-flag-pin {
    background: #1e293b;
    border-color: var(--brand-400);
}

/* ============================================================
   Chatbot Robot Avatar (circle)
   ============================================================ */
.rt-chatbot-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Office Map — RT Solutions Logo Pin
   ============================================================ */
.rt-office-logo-marker {
    position: relative;
    width: 56px;
    height: 68px;
    cursor: pointer;
}

.rt-office-logo-marker .rt-target-pulse {
    top: 24px;
}

.rt-office-logo-pin {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--brand-600);
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px rgba(var(--brand-600-rgb), 0.5),
        0 6px 18px rgba(var(--brand-600-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rt-office-logo-pin img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.rt-office-logo-pin-tip {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 14px solid var(--brand-600);
    z-index: 1;
    filter: drop-shadow(0 3px 5px rgba(var(--brand-600-rgb), 0.35));
}

.rt-office-logo-marker:hover .rt-office-logo-pin {
    transform: translateX(-50%) scale(1.1);
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px rgba(var(--brand-600-rgb), 0.7),
        0 10px 24px rgba(var(--brand-600-rgb), 0.55);
}

/* ============================================================
   Services Grid — Intro & Tags
   ============================================================ */
.services-intro {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}

.service-tags span {
    background: var(--acc-soft);
    color: var(--acc-text);
    border: 1px solid var(--acc-border);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

body.dark-mode .about-section,
body.dark-mode .vision,
body.dark-mode .values {
    background: #1e293b;
    border-color: rgba(var(--brand-400-rgb), 0.25);
}

body.dark-mode .about-content p {
    color: #94a3b8;
}

body.dark-mode .values li {
    background: #0f172a;
    border-color: rgba(var(--brand-400-rgb), 0.25);
    color: #cbd5e1;
}

body.dark-mode .about-features li {
    background: #0f172a;
    border-color: rgba(var(--brand-400-rgb), 0.2);
    color: #cbd5e1;
}

body.dark-mode .about-features li strong {
    color: #e2e8f0;
}

body.dark-mode .about-features li p {
    color: #94a3b8;
}

body.dark-mode .af-icon {
    background: rgba(var(--brand-400-rgb), 0.15);
    color: var(--brand-200);
}

body.dark-mode .vision h3,
body.dark-mode .values h3 {
    color: #e2e8f0;
}

body.dark-mode .vision p {
    color: #94a3b8;
    border-left-color: rgba(var(--brand-400-rgb), 0.5);
}

body.dark-mode .service-tags span {
    background: rgba(var(--brand-400-rgb), 0.14);
    color: var(--brand-200);
    border-color: rgba(var(--brand-400-rgb), 0.35);
}

/* Footer contact icons */
.footer-section p i {
    width: 18px;
    margin-right: 6px;
    color: var(--brand-400);
    text-align: center;
}

.footer-section p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section p a:hover {
    color: var(--brand-200);
}

/* ============================================================
   Mobile / Responsive Hardening
   ============================================================ */

/* Never allow horizontal scroll caused by absolutely-positioned elements */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Hard-clip both maps so markers can NEVER spill outside their container */
#countries-map,
#office-map {
    overflow: hidden !important;
    contain: layout paint;
    isolation: isolate;
}

#countries-map .maplibregl-map,
#office-map .maplibregl-map {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

/* Markers stay behind map controls/popups */
#countries-map .maplibregl-marker,
#office-map .maplibregl-marker {
    z-index: 1;
}

@media (max-width: 768px) {
    /* Countries map: compact but usable */
    .countries-map {
        height: 380px;
    }

    /* Smaller flag pins on mobile so the map stays readable */
    .mapcn-marker-flag {
        width: 26px;
        height: 34px;
    }

    .mapcn-flag-pin {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }

    .mapcn-flag-pin-tip {
        top: 21px;
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 8px;
    }

    /* Compact map legend on mobile */
    .map-legend {
        max-width: 150px;
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .map-legend h4 {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    /* Office map & logo pin */
    .map-container {
        height: 340px;
    }

    .rt-office-logo-marker {
        width: 50px;
        height: 62px;
    }

    .rt-office-logo-pin {
        width: 44px;
        height: 44px;
        border-width: 3px;
        box-shadow:
            0 0 0 2px #ffffff,
            0 0 0 4px rgba(var(--brand-600-rgb), 0.55),
            0 6px 16px rgba(var(--brand-600-rgb), 0.4);
    }

    .rt-office-logo-pin-tip {
        top: 39px;
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 13px;
    }

    /* Services grid */
    .services-intro {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .service-tags span {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    /* Contact section */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-value {
        word-break: break-word;
    }

    .social-links {
        flex-wrap: wrap;
    }

    /* Footer */
    .footer-section p {
        word-break: break-word;
        font-size: 0.88rem;
    }

    /* Chatbot: full-width friendly on small screens */
    .rt-chatbot-window {
        width: calc(100vw - 32px);
        right: -8px;
    }

    .rt-chatbot-toggle {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    /* News modal on mobile */
    .news-modal-dialog {
        max-width: calc(100vw - 24px);
    }

    /* FAQ image scales down */
    .faq-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .countries-map {
        height: 320px;
    }

    .map-container {
        width: calc(100% - 16px);
        height: 300px;
        margin: 48px auto 0;
    }

    /* Hide legend on very small screens to free map space */
    .map-legend {
        display: none;
    }

    .rt-chatbot-window {
        height: 70vh;
        max-height: 480px;
    }

    .services-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
}


/* Mobile dropdown click-to-open + more professional menu */
@media (max-width: 768px) {
    .nav-menu {
        border-radius: 0 0 20px 20px;
        overflow: hidden;
    }

    .nav-list {
        padding: 10px 20px;
    }

    .nav-item {
        border-bottom: 1px solid #eef2f7;
    }

    .nav-link {
        padding: 16px 0;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown-toggle::after {
        margin-left: auto;
        font-size: 13px;
    }

    .dropdown-menu {
        display: none;
        background: #f8fafc;
        border-left: 3px solid var(--brand-500);
        border-radius: 10px;
        margin: 0 0 12px 0;
        padding: 8px 0;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
        max-height: 52vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown.open > .dropdown-toggle {
        color: var(--brand);
    }

    .dropdown.open .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Mega-menu inside the mobile drawer — override the desktop absolute
       positioning (translateX(-50%) was clipping it outside the panel) */
    .dropdown-menu.mega-menu,
    .mega-menu.dropdown-menu {
        position: static;
        transform: none !important;
        left: auto;
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
    }

    .mega-menu .mega-cols {
        max-height: 52vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown-link {
        padding: 14px 18px;
        margin: 2px 10px;
        font-size: 0.95rem;
        border-radius: 8px;
        color: #334155;
    }

    .dropdown-link:hover,
    .dropdown-link:active {
        background: var(--brand);
        color: #fff;
        transform: translateX(2px);
    }
}

@media (max-width: 480px) {
    .rt-chatbot-window {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 90px;
        border-radius: 16px;
    }
}

/* Medium screens — keep header compact and responsive */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-brand { gap: 10px; padding: 8px 12px; }
    .logo { height: 56px; }
    .brand-text { font-size: 22px; }
    .brand-medal { font-size: 1rem; margin-left: 6px; }
    .nav-list { gap: 15px; }
    .nav-link { padding: 10px 14px; margin: 0 2px; font-size: 0.95rem; }
}

@media (min-width: 769px) and (max-width: 992px) {
    .nav-brand { gap: 8px; padding: 6px 10px; }
    .logo { height: 48px; }
    .brand-text { font-size: 20px; }
    .brand-medal { font-size: 0.95rem; margin-left: 4px; }
    .nav-list { gap: 10px; }
    .nav-link { padding: 8px 10px; margin: 0; font-size: 0.9rem; }
}

/* ============================================================
   Latest Projects Section
   ============================================================ */
.projects-section {
    padding: 100px 0;
    background: #ffffff;
}

.projects-region-title {
    font-size: 1.05rem;
    font-weight: 600;
    
    color: var(--brand-600);
    margin: 44px 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.projects-region-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--brand-600-rgb), 0.35), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.project-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-500-rgb), 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-flag {
    width: 34px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.project-country {
    font-size: 0.95rem;
    font-weight: 600;
    
    color: #1a202c;
}

/* Dark mode */
body.dark-mode .projects-section {
    background: #0f172a;
}

body.dark-mode .projects-region-title {
    color: var(--brand-300);
}

body.dark-mode .project-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .project-card:hover {
    border-color: rgba(var(--brand-500-rgb), 0.6);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-country {
    color: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }

    .projects-region-title {
        margin: 32px 0 14px;
        font-size: 0.95rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .project-card {
        padding: 16px 16px;
        gap: 10px;
    }

    .project-flag {
        font-size: 1.6rem;
    }

    .project-country {
        font-size: 0.82rem;
    }
}

/* ============================================================
   Subpages (SEO country & service pages)
   ============================================================ */
.subpage {
    padding-top: 72px;
    min-height: 60vh;
}

.subpage-hero {
    background: var(--brand);
    color: #ffffff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
}

.subpage-back {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.subpage-back:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateX(-3px);
}

@media (max-width: 600px) {
    .subpage-back {
        top: 14px;
        left: 14px;
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}

.subpage-hero .subpage-flag {
    width: 56px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    margin-bottom: 18px;
}

.subpage-hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.25;
}

.subpage-hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

.subpage-body {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.subpage-section {
    max-width: 860px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 14px;
    padding: 34px 38px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.subpage-section--wide {
    max-width: none;
    padding: 30px 34px 34px;
}

.subpage-section h2 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.subpage-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-800);
    margin: 20px 0 8px;
}

.subpage-section p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 12px;
}

.subpage-section ul,
.subpage-section ol {
    color: #475569;
    line-height: 1.8;
    padding-left: 22px;
    margin-bottom: 14px;
}

.subpage-section li {
    margin-bottom: 6px;
}

.sp-updated {
    font-size: 0.78rem;
    font-style: italic;
    color: #9ca3af;
    opacity: 0.6;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e8ecf1;
    text-align: center;
    letter-spacing: 0.01em;
}

body.dark-mode .sp-updated {
    color: #64748b;
    border-top-color: #334155;
}

/* Country approval steps — styled numbered list */
/* Vertical timeline for certification/process steps */
.sp-steps {
    list-style: none;
    counter-reset: sp-step;
    padding-left: 0 !important;
    margin: 22px 0;
    position: relative;
}

.sp-steps::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-700) 100%);
    opacity: 0.35;
}

.sp-steps li {
    counter-increment: sp-step;
    position: relative;
    padding: 14px 18px;
    margin: 0 0 14px 58px;
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 12px;
    line-height: 1.65;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-steps li:last-child {
    margin-bottom: 0;
}

.sp-steps li:hover {
    transform: translateX(2px);
    border-color: rgba(var(--brand-500-rgb), 0.45);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.sp-steps li::before {
    content: counter(sp-step);
    position: absolute;
    left: -58px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    z-index: 1;
}

.sp-steps li::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid #e6ebf5;
    border-right: 1px solid #e6ebf5;
    rotate: 45deg;
}

.sp-steps li strong {
    color: #1e293b;
}

@media (prefers-color-scheme: dark) {
    .sp-steps::before {
        opacity: 0.5;
    }

    .sp-steps li {
        background: #111c33;
        border-color: #2d3a52;
    }

    .sp-steps li::before {
        border-color: #111c33;
    }

    .sp-steps li::after {
        background: #111c33;
        border-color: #2d3a52;
    }

    .sp-steps li strong {
        color: #e2e8f0;
    }
}

/* Quick Summary — key/value fact list on country pages */
.sp-summary {
    list-style: none;
    padding-left: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.sp-summary li {
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    line-height: 1.6;
}

.sp-summary li strong {
    color: #1e293b;
}

@media (prefers-color-scheme: dark) {
    .sp-summary li {
        background: #172033;
        border-color: #2d3a52;
    }

    .sp-summary li strong {
        color: #e2e8f0;
    }
}

body.dark-mode .sp-summary li {
    background: #172033;
    border-color: #2d3a52;
}

body.dark-mode .sp-summary li strong {
    color: #e2e8f0;
}

.sp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.sp-fact {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1fb 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.sp-fact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.sp-fact-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
}

.sp-cta {
    text-align: center;
    background: var(--brand);
    color: #ffffff;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 14px;
    padding: 44px 38px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.sp-cta h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.sp-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 22px;
}

.sp-cta .btn {
    display: inline-block;
    background: #ffffff;
    color: var(--brand);
    font-weight: 600;
    padding: 13px 34px;
    border-radius: 30px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    margin: 0 6px;
}

.sp-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sp-cta .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

/* Labeled sub-groups (region / services) inside Other Country Guides:
   two region cards side by side, Services strip spanning full width. */
.sp-related {
    max-width: 860px;
    margin: 40px auto 0;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sp-related h2 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.sp-related > h2 {
    grid-column: 1 / -1;
}

.sp-related-group {
    background: #f8fafc;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 18px 18px 20px;
    text-align: left;
}

.sp-related-group--wide {
    grid-column: 1 / -1;
    text-align: center;
}

.sp-related-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-500);
}

.sp-related-group--wide .sp-related-label {
    justify-content: center;
}

.sp-related-group .sp-related-links {
    justify-content: flex-start;
}

.sp-related-group--wide .sp-related-links {
    justify-content: center;
}

.sp-related-sub {
    margin: -6px 0 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.sp-related-group--wide .sp-related-sub {
    text-align: center;
}

/* Arrow affordance inside guide pills — slides in on hover */
.sp-pill-arrow {
    margin-left: 2px;
    font-size: 0.68rem;
    color: var(--brand-200);
    transition: transform 0.2s ease, color 0.2s ease;
}

.sp-related-links a:hover .sp-pill-arrow {
    transform: translateX(3px);
    color: var(--brand);
}

@media (max-width: 720px) {
    .sp-related {
        grid-template-columns: 1fr;
    }
}

.sp-related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sp-related-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sp-related-links a:hover {
    border-color: var(--brand-500);
    color: var(--brand);
    background: linear-gradient(135deg, #fafbff 0%, #f1f4ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.sp-related-links img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* Latest regulatory update callout on country guides */
.sp-update {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-left: 4px solid var(--brand-400);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-top: 8px;
}

.sp-update p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
}

body.dark-mode .sp-update {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 100%);
    border-left-color: var(--brand-300);
}

body.dark-mode .sp-update p { color: #cbd5e1; }

/* ============================================================
   Regulatory News index — flag-banner card grid (rn-card)
   Mirrors .news-card-v2 layout on the homepage news section.
   ============================================================ */
.rn-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

.rn-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.06);
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease;
}

.rn-card:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.rn-card-flag {
    width: 150px;
    min-height: 120px;
    flex-shrink: 0;
    box-sizing: border-box;
    object-fit: contain;
    padding: 22px 26px;
    display: block;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-right: 1px solid #eef1f6;
}

.rn-card-body {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.rn-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
}

.rn-card-country {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.rn-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
}

.rn-card:hover .rn-card-title {
    color: var(--brand);
}

.rn-card-preview {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #64748b;
}

.rn-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
}

.rn-article-content p {
    margin: 0 0 16px;
    line-height: 1.75;
    color: #334155;
}

.rn-article-content h3 {
    margin: 22px 0 10px;
    font-size: 1.1rem;
    color: #1e293b;
}

.rn-article-content ul {
    margin: 0 0 16px;
    padding-left: 22px;
    line-height: 1.75;
    color: #334155;
}

@media (max-width: 720px) {
    .rn-card { flex-direction: column; }
    .rn-card-flag {
        width: 100%;
        height: 140px;
        min-height: 0;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid #eef1f6;
    }
}

/* Pagination controls below the news list */
.rn-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.rn-pager button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rn-pager button:hover:not(:disabled) {
    border-color: var(--brand-500);
    color: var(--brand);
}

.rn-pager button.is-active {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
    color: #ffffff;
    border-color: transparent;
}

.rn-pager button:disabled {
    opacity: 0.4;
    cursor: default;
}

body.dark-mode .rn-pager button {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

body.dark-mode .rn-pager button.is-active { color: #ffffff; }

body.dark-mode .rn-card,
body.dark-mode .rn-card-body { background: #0f172a; border-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .rn-card-title { color: #e2e8f0; }
body.dark-mode .rn-card-preview,
body.dark-mode .rn-card-meta { color: #94a3b8; }
body.dark-mode .rn-card-flag {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 100%);
    border-right-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .rn-article-content p,
body.dark-mode .rn-article-content ul { color: #cbd5e1; }
body.dark-mode .rn-article-content h3 { color: #e2e8f0; }
body.dark-mode .rn-article-meta { color: #94a3b8; }

.sp-breadcrumb {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
}

.sp-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

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

body.dark-mode .sp-breadcrumb {
    background: #1e293b;
    border-color: #2d3a52;
    color: #94a3b8;
}

body.dark-mode .subpage-section {
    background: #1e293b;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body.dark-mode .subpage-section h2 {
    color: #f1f5f9;
}

body.dark-mode .subpage-section h3 {
    color: var(--brand-200);
}

body.dark-mode .subpage-section p,
body.dark-mode .subpage-section ul,
body.dark-mode .subpage-section ol {
    color: #cbd5e1;
}

body.dark-mode .sp-fact {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .sp-fact-value {
    color: #e2e8f0;
}

body.dark-mode .sp-related-group {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .sp-related-label {
    color: var(--brand-200);
}

body.dark-mode .sp-related-links a {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .subpage-body {
    background: #0b1220;
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 50px 0 40px;
    }

    .subpage-hero h1 {
        font-size: 1.6rem;
    }

    .subpage-body {
        padding: 40px 0 60px;
    }

    .sp-breadcrumb {
        padding: 9px 14px;
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .subpage-section {
        padding: 24px 22px;
    }

    .sp-cta {
        padding: 34px 22px;
        margin: 0 16px;
    }
}

/* Globe flag markers — selected country highlight */
.globe-flagmk circle {
    transition: stroke 0.2s ease, stroke-width 0.2s ease, r 0.2s ease;
}

.globe-flagmk.sel circle {
    stroke: var(--brand-700);
    stroke-width: 2;
}

.globe-flagmk:hover circle {
    stroke: var(--brand-500);
    stroke-width: 1.6;
}

/* ============================================================
   Sigma-1 Illustrations (light / dark-mode aware)
   ============================================================ */
.sigma-illus {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.sigma-illus--dark { display: none; }
body.dark-mode .sigma-illus--light { display: none; }
body.dark-mode .sigma-illus--dark { display: block; }

/* Centered above a section title */
.sigma-illus--title {
    max-width: 170px;
    margin-bottom: 14px;
}
/* Subpage CTA banner */
.sigma-illus--cta {
    max-width: 150px;
    margin-bottom: 16px;
}
/* Contact details column */
.sigma-illus--contact {
    max-width: 190px;
    margin: 0 0 18px;
}
/* 404 page */
.sigma-illus--404 {
    max-width: 460px;
    margin-bottom: 26px;
}
@media (max-width: 640px) {
    .sigma-illus--title { max-width: 130px; }
    .sigma-illus--cta { max-width: 120px; }
}

/* ============================================================
   Professional responsive navbar — mobile side drawer
   ============================================================ */
body.nav-open { overflow: hidden; }

/* Anchor targets: offset for the fixed header */
section[id], div[id] { scroll-margin-top: 120px; }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
}
.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer head/foot exist in DOM but are hidden on desktop */
.nav-menu-head,
.nav-menu-foot { display: none; }

@media (max-width: 768px) {
    /* Compact top bar — drop redundant "Our Network" link */
    .header-top { padding: 6px 15px; }
    .header-top .network-link { display: none; }
    .header-top .email-link { font-size: 13px; }
    .header-top .social-links { gap: 10px; }
    .header-top .social-link { font-size: 18px; }

    /* Full-height right drawer (overrides the drop-down panel above) */
    .nav-menu {
        top: 0;
        right: 0;
        left: auto;
        width: min(340px, 85vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        border-radius: 0;
        box-shadow: -16px 0 48px rgba(15, 23, 42, 0.22);
        overflow: hidden;
    }
    .nav-menu.active { transform: translateX(0); }

    /* The drawer has its own close button — hide the hamburger X underneath */
    body.nav-open .hamburger {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .nav-menu-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 20px;
        border-bottom: 1px solid #eef2f7;
        background: rgba(var(--brand-rgb), 0.08);
        flex-shrink: 0;
    }
    .nav-menu-logo { height: 34px; width: auto; }
    .nav-menu-title {
        font-weight: 600;
        font-size: 1.05rem;
        background: var(--brand);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .nav-menu-close {
        margin-left: auto;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 10px;
        background: rgba(var(--brand-500-rgb), 0.12);
        color: var(--brand);
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, background 0.2s ease;
    }
    .nav-menu-close:hover { background: rgba(var(--brand-500-rgb), 0.22); }
    .nav-menu-close:active { transform: scale(0.92); }

    .nav-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 20px 20px;
    }
    .nav-item:last-child { border-bottom: none; }
    .nav-link { font-size: 0.98rem; }

    .nav-menu-foot {
        display: block;
        padding: 16px 20px 22px;
        border-top: 1px solid #eef2f7;
        flex-shrink: 0;
    }
    .nav-menu-quote {
        display: block;
        text-align: center;
        padding: 13px 18px;
        border-radius: 12px;
        background: var(--brand);
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    }
    .nav-menu-quote:active { transform: scale(0.98); }
    .nav-menu-socials {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
    }
    .nav-menu-socials a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        color: var(--brand);
        font-size: 1rem;
        text-decoration: none;
        transition: transform 0.2s ease, background 0.2s ease;
    }
    .nav-menu-socials a:hover { transform: translateY(-2px); background: #e2e8f0; }

    /* Dark mode drawer */
    body.dark-mode .nav-menu {
        background: #0f172a;
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
    }
    body.dark-mode .nav-menu-head { border-bottom-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .nav-menu-close { background: rgba(var(--brand-400-rgb), 0.2); color: var(--brand-200); }
    body.dark-mode .nav-link { color: #e2e8f0; }
    body.dark-mode .nav-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .dropdown-menu { background: #1e293b; }
    body.dark-mode .dropdown-link { color: #cbd5e1; }
    body.dark-mode .nav-menu-foot { border-top-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .nav-menu-socials a { background: #1e293b; color: var(--brand-200); }
}

@media (max-width: 480px) {
    .header-top .email-link { font-size: 12px; }
    .nav-menu { width: min(320px, 88vw); }
    .brand-text { font-size: 20px; }
    .logo { height: 46px; }
}
/* ============================================================================
   International Radio Type Approval — Interactive Globe (globe.js)
   ==========================================================================*/
.globe-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.globe-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.globe-list-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--brand-500);
    text-decoration: none;
    transition: color 0.2s ease;
}
.globe-list-link:hover { color: var(--brand-700); }

.globe-search {
    position: relative;
    width: 288px;
    max-width: 100%;
    margin: 14px auto 0;
}
.globe-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
}
.globe-search input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.globe-search input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(var(--brand-500-rgb), 0.15);
}
.globe-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    z-index: 50;
    max-height: 224px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.globe-dd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}
.globe-dd-item:last-child { border-bottom: none; }
.globe-dd-item:hover { background: #f1f5f9; }
.globe-dd-item b { font-weight: 500; color: #1e293b; }
.globe-dd-item span { font-size: 11px; color: var(--brand-500); }
.globe-dd-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #64748b;
}

.globe-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
}
@media (min-width: 1024px) {
    .globe-body { flex-direction: row; }
}

.globe-area {
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) { .globe-area { margin: 0; } }

#globe-svg {
    flex-shrink: 0;
    touch-action: none;
    max-width: 100%;
    height: auto;
    cursor: grab;
}
#globe-svg:active { cursor: grabbing; }
.globe-country { transition: fill 0.15s ease, opacity 0.15s ease; }

.globe-zoom {
    position: absolute;
    top: 10px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.globe-zoom button {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-500);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.globe-zoom button:hover { background: var(--brand-500); color: #fff; }

.globe-hint {
    text-align: center;
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 6px;
}

/* --- Info panel --- */
.globe-panel {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.globe-panel-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    animation: globeFadeUp 0.35s ease;
}
@keyframes globeFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.globe-panel-empty {
    padding: 32px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.globe-panel-empty a { color: var(--brand-500); }

.globe-panel-head {
    padding: 8px 20px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.globe-panel-flag .globe-flag {
    height: 32px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.globe-flag-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 16px;
}
.globe-panel-name {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin-top: 10px;
}
.globe-panel-region {
    font-size: 12px;
    color: var(--brand-500);
    margin-top: 2px;
}
.globe-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #64748b;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.globe-panel-link:hover { background: #f1f5f9; color: var(--brand-500); }

.globe-panel-rows { flex: 1; display: flex; flex-direction: column; }
.globe-panel-foot { padding: 14px 20px; border-top: 1px solid #f1f5f9; }
.globe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.globe-row:nth-child(even) { background: #f8fafc; }
.globe-row:last-child { border-bottom: none; }
.globe-row-label { font-size: 14px; color: #64748b; line-height: 1.4; }
.globe-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.globe-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}
.globe-dot.ok { background: #22c55e; }
.globe-dot.warn { background: #f59e0b; }

@media (max-width: 640px) {
    .globe-section { padding: 48px 0; }
    #globe-svg { width: 100%; }
    .globe-row { padding: 12px 16px; }
    .globe-panel-head { padding: 8px 16px 16px; }
}

/* --- Dark mode --- */
body.dark-mode .globe-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}
body.dark-mode .globe-search input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
body.dark-mode .globe-dropdown {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .globe-dd-item { border-bottom-color: #0f172a; }
body.dark-mode .globe-dd-item:hover { background: #0f172a; }
body.dark-mode .globe-dd-item b { color: #e2e8f0; }
body.dark-mode .globe-zoom button {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .globe-zoom button:hover { background: var(--brand-500); color: #fff; }
body.dark-mode .globe-panel-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .globe-panel-head {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .globe-panel-name { color: #f1f5f9; }
body.dark-mode .globe-panel-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}
body.dark-mode .globe-panel-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--brand-200); }
body.dark-mode .globe-panel-foot { border-top-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .globe-row { border-bottom-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .globe-row:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
body.dark-mode .globe-row-label { color: #94a3b8; }
body.dark-mode .globe-row-value { color: #e2e8f0; }
body.dark-mode .globe-panel-empty { color: #94a3b8; }

/* ── Cookie Consent Banner (GDPR / GTM Consent Mode) ───────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.97);
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.cookie-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 480px;
}
.cookie-inner .fa-cookie-bite { color: #f59e0b; margin-right: 6px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cookie-accept {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #ffffff;
}
.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}
.cookie-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}
.cookie-reject:hover { color: #e2e8f0; border-color: #94a3b8; }
@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* ============================================================
   Services section — closing call to action
   ============================================================ */
.service-card:hover {
    border-color: var(--acc-border);
}

.service-card .service-link {
    color: var(--acc-text);
}

.service-card .service-link:hover {
    color: var(--acc-2);
}

.services-cta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    border-radius: 16px;
    color: #fff;
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.services-cta p {
    max-width: 560px;
    margin: 0;
    color: #e2e8f0;
}

.services-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.services-cta .btn-secondary {
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   Knowledge Center (/knowledge-center/)
   ============================================================ */
.kc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}

.kc-toc a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-500);
    background: rgba(var(--brand-500-rgb), 0.1);
    border: 1px solid rgba(var(--brand-500-rgb), 0.25);
    transition: background 0.2s ease, color 0.2s ease;
}

.kc-toc a:hover {
    color: #fff;
    background: var(--brand-500);
}

/* Offset anchored guides so the fixed header does not cover their title */
.kc-guide {
    scroll-margin-top: 140px;
}

/* Direct answer shown first — AEO/GEO friendly "answer near the top" */
.kc-answer {
    padding: 14px 18px;
    font-size: 1.08rem;
    border-left: 4px solid var(--brand-500);
    border-radius: 0 10px 10px 0;
    background: rgba(var(--brand-500-rgb), 0.07);
}

.kc-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
}

.kc-related a {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-500);
}

.kc-related a:hover {
    color: var(--brand-700);
}

/* ============================================================
   Contact page (/contact/)
   ============================================================ */
.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 32px;
    align-items: start;
}

.contact-card {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(var(--brand-500-rgb), 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.contact-card h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-list i {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
}

.contact-list a {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--brand-500);
}

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.enquiry-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enquiry-form .field--full {
    grid-column: 1 / -1;
}

.enquiry-form label {
    font-size: 0.9rem;
    font-weight: 600;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid #d5d9e4;
    border-radius: 10px;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: 2px solid var(--brand-500);
    outline-offset: 1px;
    border-color: var(--brand-500);
}

.enquiry-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
}

.enquiry-consent input {
    width: auto;
    margin-top: 4px;
}

.enquiry-status {
    grid-column: 1 / -1;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 10px;
}

.enquiry-status.ok {
    color: #116b3a;
    background: #e7f8ef;
}

.enquiry-status.err {
    color: #9b1c1c;
    background: #fdecec;
}

body.dark-mode .contact-card {
    background: #1e293b;
    border-color: rgba(var(--brand-400-rgb), 0.25);
}

body.dark-mode .enquiry-form input,
body.dark-mode .enquiry-form select,
body.dark-mode .enquiry-form textarea {
    color: #e2e8f0;
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .kc-answer {
    color: #e2e8f0;
}

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

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

    .services-cta {
        padding: 22px 18px;
    }
}

/* ============================================================
   Type Approval directory (/type-approval/)
   Toolbar: region pill filters + search; directory table below.
   ============================================================ */
.ta-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 30px;
}

/* Region filter buttons — same pill style as the news filters */
.ta-region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ta-filter {
    padding: 9px 20px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-500);
    background: #fff;
    border: 1px solid rgba(var(--brand-500-rgb), 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-filter:hover {
    background: rgba(var(--brand-500-rgb), 0.08);
    border-color: var(--brand-500);
}

.ta-filter.active {
    color: #fff;
    background: var(--brand);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

/* Search box — grows up to 340px, full-width on narrow screens */
.ta-search {
    flex: 1 1 240px;
    max-width: 340px;
}

.ta-search input {
    width: 100%;
    padding: 10px 18px;
    font: inherit;
    font-size: 0.92rem;
    color: #1e293b;
    background: #fff;
    border: 1px solid #d5d9e4;
    border-radius: 999px;
}

.ta-search input:focus {
    outline: 2px solid var(--brand-500);
    outline-offset: 1px;
    border-color: var(--brand-500);
}

/* Region group titles — violet accent bar, lighter market count */
.ta-region-block + .ta-region-block {
    margin-top: 34px;
}

.ta-region-title {
    margin: 0 0 14px;
    padding-left: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
    border-left: 4px solid var(--brand-500);
}

.ta-region-title span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Directory table: card look, aligned cells, hover feedback */
.ta-table {
    width: 100%;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 12px;
    overflow: hidden;
}

.ta-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #eef1f6;
}

.ta-table td {
    padding: 10px 16px;
    font-size: 0.95rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.ta-table tbody tr {
    transition: background 0.15s ease;
}

.ta-table tbody tr:hover {
    background: #f7f5fe;
}

.ta-table tbody tr:last-child td {
    border-bottom: none;
}

/* Country cell: flag + name link */
.ta-country a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.ta-country a:hover {
    color: var(--brand-500);
}

.ta-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Authority column: quiet secondary text */
.ta-auth {
    color: #64748b;
    font-weight: 500;
}

/* Guide column: circular arrow button, fills on hover */
.ta-go {
    width: 60px;
    text-align: right;
}

.ta-go a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--brand-500);
    border: 1px solid rgba(var(--brand-500-rgb), 0.35);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ta-go a:hover {
    color: #fff;
    background: var(--brand);
    border-color: transparent;
}

/* Footnote under the tables */
.ta-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Dark mode */
body.dark-mode .ta-filter {
    color: var(--brand-200);
    background: #1e293b;
    border-color: rgba(var(--brand-400-rgb), 0.4);
}

body.dark-mode .ta-filter:hover {
    background: rgba(var(--brand-400-rgb), 0.15);
}

body.dark-mode .ta-search input {
    color: #e2e8f0;
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .ta-region-title {
    color: #e2e8f0;
}

body.dark-mode .ta-table {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ta-table thead th {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ta-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .ta-table tbody tr:hover {
    background: rgba(var(--brand-400-rgb), 0.12);
}

body.dark-mode .ta-country a {
    color: #e2e8f0;
}

body.dark-mode .ta-auth {
    color: #94a3b8;
}

body.dark-mode .ta-go a {
    color: var(--brand-200);
    border-color: rgba(var(--brand-400-rgb), 0.4);
}

/* Small screens: search full-width, hide the arrow column (name stays a link) */
@media (max-width: 600px) {
    .ta-search {
        max-width: none;
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .ta-table .ta-go,
    .ta-table thead th:last-child {
        display: none;
    }
}

/* ============================================================
   News — per-country filter chips (shown after region pick)
   ============================================================ */
.news-country-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.news-country-chips[hidden] {
    display: none;
}

.news-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-country-chip img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.news-country-chip:hover {
    border-color: var(--brand-400);
    color: var(--brand-600);
    transform: translateY(-1px);
}

.news-country-chip.active {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--brand-600-rgb), 0.3);
}

body.dark-mode .news-country-chip {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .news-country-chip.active {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff;
    border-color: transparent;
}

/* ============================================================
   Country subpage — hero news link
   ============================================================ */
.sp-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-700);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sp-news-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    color: var(--brand-600);
}

body.dark-mode .sp-news-link {
    background: rgba(30, 41, 59, 0.92);
    color: var(--brand-200);
}

/* ============================================================
   Tablet drawer — 769px to 1024px the desktop nav cannot fit
   9 links + brand, so the hamburger/drawer takes over.
   ============================================================ */
@media (min-width: 769px) and (max-width: 1280px) {
    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(340px, 85vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        background: #fff;
        border-radius: 0;
        box-shadow: -16px 0 48px rgba(15, 23, 42, 0.22);
        overflow: hidden;
        z-index: 1000;
    }

    .nav-menu.active { transform: translateX(0); }

    body.nav-open .hamburger {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .nav-menu-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 20px;
        border-bottom: 1px solid #eef2f7;
        background: rgba(var(--brand-rgb), 0.08);
        flex-shrink: 0;
    }

    .nav-menu-logo { height: 34px; width: auto; }

    .nav-menu-title {
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--brand);
    }

    .nav-menu-close {
        margin-left: auto;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 10px;
        background: rgba(var(--brand-rgb), 0.10);
        color: var(--brand);
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .nav-menu-close:hover { background: rgba(var(--brand-rgb), 0.18); }

    .nav-list {
        flex: 1;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 20px 20px;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eef2f7;
    }

    .nav-item:last-child { border-bottom: none; }

    .nav-link {
        padding: 16px 0;
        margin: 0;
        font-weight: 600;
        font-size: 1rem;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: normal;
    }

    .nav-link:hover {
        background: none;
        color: var(--brand);
        box-shadow: none;
        transform: none;
    }

    .dropdown-toggle::after {
        margin-left: auto;
        font-size: 13px;
    }

    .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8fafc;
        border-left: 3px solid var(--brand-500);
        border-radius: 10px;
        margin: 0 0 12px 0;
        padding: 8px 0;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
        max-height: 52vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown.open .dropdown-menu { display: block; }
    .dropdown.open > .dropdown-toggle { color: var(--brand); }
    .dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

    .dropdown-menu.mega-menu,
    .mega-menu.dropdown-menu {
        position: static;
        transform: none !important;
        left: auto;
        width: 100%;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
    }

    .mega-menu .mega-cols {
        max-height: 52vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown-link {
        padding: 14px 18px;
        margin: 2px 10px;
        font-size: 0.95rem;
        border-radius: 8px;
        color: #334155;
    }

    .nav-menu-foot {
        display: block;
        padding: 16px 20px 22px;
        border-top: 1px solid #eef2f7;
        flex-shrink: 0;
    }

    .nav-menu-quote {
        display: block;
        text-align: center;
        padding: 13px 18px;
        border-radius: 12px;
        background: var(--brand);
        color: #fff;
        font-weight: 600;
        text-decoration: none;
    }

    .nav-menu-socials {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
    }

    .nav-menu-socials a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        color: var(--brand);
        font-size: 1rem;
        text-decoration: none;
    }

    body.dark-mode .nav-menu {
        background: #0f172a;
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
    }

    body.dark-mode .nav-menu-head { border-bottom-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .nav-menu-close { background: rgba(var(--brand-400-rgb), 0.2); color: var(--brand-200); }
    body.dark-mode .nav-link { color: #e2e8f0; }
    body.dark-mode .nav-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .dropdown-menu { background: #1e293b; }
    body.dark-mode .dropdown-link { color: #cbd5e1; }
    body.dark-mode .nav-menu-foot { border-top-color: rgba(255, 255, 255, 0.08); }
    body.dark-mode .nav-menu-socials a { background: #1e293b; color: var(--brand-200); }
}

/* Large desktop — tighten nav so 9 links + brand fit inside the container */
@media (min-width: 1281px) and (max-width: 1500px) {
    .nav-list { gap: 14px; }
    .nav-link { padding: 10px 13px; margin: 0 1px; font-size: 0.95rem; }
    .nav-brand { padding: 8px 10px; }
}

/* ==========================================================================
   Design refresh (Nov 2026) — unified brand palette, header, footer, icons
   and responsive polish. Uses the tokens defined in :root.
   ========================================================================== */

body { color: var(--ink-700); }
::selection { background: rgba(var(--brand-rgb), 0.18); }
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(var(--brand-500-rgb), 0.45);
    outline-offset: 2px;
}

/* ---------- Buttons: one primary accent, one brand style ---------- */
.btn-primary,
.hero .hero-buttons .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover,
.hero .hero-buttons .btn-primary:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}
.btn-submit,
.nav-menu-quote {
    background: var(--brand-gradient) !important;
    border: none;
    color: #fff;
}

/* ---------- Homepage header: brand left, nav right (no overflow) ---------- */
@media (min-width: 769px) {
    .home-header .navbar {
        justify-content: space-between;
        gap: 24px;
    }
}
.home-header .navbar { padding: 14px 0; }
.home-header .logo {
    height: 52px;
    width: 52px;
    object-fit: contain;
    animation: none;
    filter: none;
}
.home-header .brand-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.home-header .nav-link { color: var(--ink-700); font-weight: 500; }
.home-header .nav-link:hover,
.home-header .nav-link.active { color: var(--brand); }
@media (min-width: 1281px) {
    .home-header .nav-list { gap: 26px; }
}
.header-top {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: 6px 20px;
    align-items: center;
}
.header-top .contact-info { flex-direction: row; gap: 22px; }
.header-top .email-link,
.header-top .network-link { color: var(--ink-700); font-weight: 600; font-size: 13px; }
.header-top .email-link i,
.header-top .network-link i { color: var(--brand); }
.header-top .social-links { align-items: center; }
.header-top .social-link { font-size: 18px; color: var(--ink-500); }
.header-top .social-link:hover { color: var(--brand); }

/* ---------- Subpage header (generated + hand-made pages) ---------- */
/* No backdrop-filter here: it would become the containing block of the fixed mobile drawer */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}
.site-header .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 12px 0;
    gap: 20px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}
.site-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    white-space: nowrap;
}
.site-header ul.nav-menu { gap: 2px; }
.site-header ul.nav-menu .nav-link {
    padding: 8px 14px;
    font-size: 0.95rem;
    color: var(--ink-700);
}
.site-header ul.nav-menu .nav-link:hover {
    color: var(--brand);
    background: var(--brand-50);
}
.site-header ul.nav-menu .nav-link.active {
    color: var(--brand);
    background: var(--brand-100);
    box-shadow: none;
}
.nav-item-cta { margin-left: 10px; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent-600); transform: translateY(-1px); color: #fff; }
.site-header .hamburger {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.site-header .hamburger span { background: var(--ink-800); }

@media (max-width: 1280px) {
    .site-header .navbar { justify-content: space-between; }
    .site-header ul.nav-menu { background: #fff; align-items: stretch; gap: 0; }
    .site-header ul.nav-menu .nav-link.active { box-shadow: none; }
    /* nav.js adds its own "Get a Quote" button to the drawer footer */
    .site-header .nav-item-cta { display: none; }
}
@media (max-width: 768px) {
    .site-header .navbar { padding: 8px 0; }
    .site-brand-logo { width: 38px; height: 38px; }
    .site-brand-text { font-size: 1.08rem; }
}

/* ---------- Subpage hero ---------- */
.subpage-hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(61, 99, 236, 0.45), transparent 60%),
        radial-gradient(900px 380px at 0% 120%, rgba(244, 124, 32, 0.12), transparent 60%),
        var(--brand-gradient);
}
.subpage-hero h1 { letter-spacing: -0.02em; }
.subpage-hero p { color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer: navy, used on all pages ---------- */
.footer {
    background: var(--brand-900);
    background-image: linear-gradient(180deg, #1f1650 0%, #140e36 100%);
    color: #cbd5e1;
}
.footer-section h4,
.site-footer h2 { color: #fff; }
.footer-section ul li a,
.footer-section p a { color: #c7c2e6; }
.footer-section ul li a:hover,
.footer-section p a:hover { color: #fff; }
.footer-section p i { color: var(--brand-300); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a9a4cc;
}

.site-footer { padding: 56px 0 22px; }
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-brand--footer .site-brand-text { color: #fff; }
.site-brand--footer .site-brand-logo {
    background: #fff;
    border-radius: 10px;
    padding: 3px;
}
.site-footer-brand p {
    margin: 16px 0 18px;
    color: #c7c2e6;
    font-size: 0.93rem;
    line-height: 1.65;
    max-width: 340px;
}
.site-footer-social { display: flex; gap: 10px; }
.site-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.site-footer-social a:hover { background: var(--brand-500); transform: translateY(-2px); }
.site-footer h2 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.93rem; }
.site-footer ul a { color: #c7c2e6; text-decoration: none; transition: color 0.2s ease; }
.site-footer ul a:hover { color: #fff; }
.site-footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #c7c2e6; }
.site-footer-contact i { color: var(--brand-300); width: 16px; margin-top: 4px; text-align: center; }
.site-footer-contact a { overflow-wrap: anywhere; }
.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
}
.site-footer .footer-bottom p { margin: 0; }
.site-footer-legal { display: flex; gap: 18px; }
.site-footer-legal a { color: #a9a4cc; text-decoration: none; }
.site-footer-legal a:hover { color: #fff; }
@media (max-width: 992px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .site-footer-brand,
    .site-footer-col:last-child { grid-column: 1 / -1; }
    .site-footer .footer-bottom { justify-content: center; text-align: center; }
}

/* Homepage footer: five columns (brand + 4 link columns) */
.site-footer--home .site-footer-grid {
    grid-template-columns: 1.35fr 0.85fr 1.05fr 1.15fr 1.2fr;
}
@media (max-width: 1200px) {
    .site-footer--home .site-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .site-footer--home .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .site-footer--home .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .site-footer--home .site-footer-col:nth-child(4) { grid-column: 1 / -1; }
}

/* Homepage footer grid: four balanced columns, two on phones */
.footer .footer-content {
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}
@media (max-width: 1200px) {
    .footer .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .footer .footer-section:first-child { grid-column: 1 / -1; }
}

/* ---------- Service cards: single brand accent ---------- */
.services-grid > a.service-card:nth-of-type(n) {
    --acc-1: var(--brand-600);
    --acc-2: var(--brand-blue);
    --acc-text: var(--brand-700);
    --acc-glow: rgba(var(--brand-rgb), 0.28);
    --acc-soft: rgba(var(--brand-rgb), 0.07);
    --acc-border: rgba(var(--brand-rgb), 0.22);
}
.service-card {
    border-color: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.service-card:hover { box-shadow: var(--shadow-lg); }

/* ---------- Benefit icons: consistent brand chips ---------- */
.benefit-card:nth-child(n) .benefit-icon { background: var(--brand-50); }
.benefit-card:nth-child(n) .benefit-icon i { color: var(--brand); }
.benefit-card:nth-child(n) .benefit-icon::before { background: var(--brand-gradient); }
.benefit-card:nth-child(n):hover .benefit-icon i { color: #fff; }
.benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 992px) {
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }
    .benefit-card {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        text-align: left;
        padding: 16px 4px;
        align-items: start;
    }
    .benefit-card .benefit-icon { grid-row: span 2; margin: 0; }
    .benefit-card h3 { margin: 4px 0 6px; font-size: 1.05rem; }
    .benefit-card p { margin: 0; }
}

/* ---------- Contact cards ---------- */
.contact-icon {
    background: var(--brand-gradient);
    color: #fff;
}
.contact-value { overflow-wrap: anywhere; }
@media (max-width: 992px) {
    .contact-details .sigma-illus--contact { display: none; }
}

/* ---------- Globe panel: let long values wrap on small screens ---------- */
@media (max-width: 768px) {
    .globe-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 16px;
    }
    .globe-row-value {
        white-space: normal;
        text-align: left;
        overflow-wrap: anywhere;
    }
}

/* ---------- Generic responsive safety nets ---------- */
img, video, iframe { max-width: 100%; }
.subpage table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 768px) {
    .header-top .contact-info { gap: 14px; }
    .section-title,
    .about-title,
    .contact-title,
    .quote-title { overflow-wrap: anywhere; }
}

/* ---------- Dark mode for new components ---------- */
body.dark-mode .site-header { background: #0f172a; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
body.dark-mode .site-brand-text,
body.dark-mode .home-header .brand-text { color: #f1f5f9; }
body.dark-mode .site-header ul.nav-menu .nav-link { color: #e2e8f0; }
body.dark-mode .site-header ul.nav-menu .nav-link.active,
body.dark-mode .site-header ul.nav-menu .nav-link:hover { color: #fff; background: rgba(var(--brand-400-rgb), 0.22); }
body.dark-mode .site-header .hamburger span { background: #e2e8f0; }
body.dark-mode .header-top { background: #0b1222; border-bottom-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .header-top .email-link,
body.dark-mode .header-top .network-link { color: #cbd5e1; }
.home-header.is-scrolled { background: rgba(255, 255, 255, 0.97); }
body.dark-mode .home-header { background: #0f172a; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
body.dark-mode .home-header.is-scrolled { background: rgba(15, 23, 42, 0.97); }
body.dark-mode .home-header .navbar { background: transparent; box-shadow: none; }
body.dark-mode .home-header .nav-link { color: #e2e8f0; }
body.dark-mode .home-header .nav-link:hover,
body.dark-mode .home-header .nav-link.active { color: var(--brand-200); }
body.dark-mode .home-header .hamburger span { background: #e2e8f0; }
body.dark-mode .nav-menu-title { color: var(--brand-200); }
body.dark-mode .home-header .logo,
body.dark-mode .site-header .site-brand-logo { background: #fff; border-radius: 10px; padding: 3px; }
body.dark-mode .benefit-card:nth-child(n) .benefit-icon { background: rgba(var(--brand-400-rgb), 0.16); }
body.dark-mode .benefit-card:nth-child(n) .benefit-icon i { color: var(--brand-200); }
@media (max-width: 1280px) {
    body.dark-mode .site-header ul.nav-menu { background: #0f172a; }
    body.dark-mode .site-header ul.nav-menu .nav-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
}
@media (max-width: 560px) {
    .footer .footer-section:last-child { grid-column: 1 / -1; }
    .contact-item { gap: 14px; padding-left: 14px; padding-right: 14px; }
    .contact-value { font-size: 0.92rem; letter-spacing: -0.01em; }
}
@media (max-width: 560px) {
    .footer .footer-section:nth-child(4) { grid-column: 1 / -1; }
    .footer .footer-section:nth-child(4) ul { columns: 2; column-gap: 20px; }
    .footer .footer-section:nth-child(4) ul li { break-inside: avoid; }
}
form[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
/* script.js injects `.navbar:hover { transform }`; a transform would become the
   containing block of the fixed mobile drawer and shift it down */
.home-header .navbar:hover,
.site-header .navbar:hover { transform: none; box-shadow: none; }
@media (max-width: 1280px) {
    .nav-menu { z-index: 1002; overflow-y: auto; overscroll-behavior: contain; }
}

/* ============================================================
   Company presentation video (click-to-play)
   ============================================================ */
.video-section {
    padding: 60px 0 40px;
    text-align: center;
}

.video-subtitle {
    max-width: 640px;
    margin: -14px auto 28px;
    color: #5b6472;
    font-size: 1.02rem;
}

.video-frame {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(63, 36, 152, 0.22);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c3ff2, #3f2498);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease;
    box-shadow: 0 12px 32px rgba(63, 36, 152, 0.45);
}

.video-play-btn i {
    margin-left: 6px;
}

.video-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 16px 40px rgba(63, 36, 152, 0.6);
}

.video-frame.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-frame.playing video {
    object-fit: contain;
}

@media (max-width: 640px) {
    .video-section { padding: 40px 0 28px; }
    .video-play-btn { width: 64px; height: 64px; font-size: 22px; }
}
