/*
Theme Name: Werken bij thema
Theme URI: https://g3marketing.nl
Description: Premium WordPress thema volledig geoptimaliseerd voor recruitment, branch-specifieke onepagers en een naadloze kandidaatervaring.
Author: Gerco Kempkes (G3 Marketing)
Author URI: https://g3marketing.nl
Version: 3.10.1
Text Domain: npg-theme

Release Notes 3.10.1:
- Added page-level controls to hide fixed page elements.
- Added per-section controls for intro, image/text, process cards and CTA.
- Added per-builder-block visibility controls.

Release Notes 3.10.0:
- Made the Producten/diensten builder grid render as a visible styled section.
- Added fallback product cards when no vestiging product data exists yet.
- Added a frontend fallback for saved product grid builder blocks.

Release Notes 3.9.9:
- Homepage hero uses the existing Homepage Hero background setting again.
- Added editable page hero and image-block image URL fields.
- Hid automatic product grids unless explicitly enabled or added as a builder block.
- Added extra recruitment builder blocks and improved page-wide styling.

Release Notes 3.9.8:
- Restored always-visible header navigation with a fallback menu.
- Added editable fixed page elements for banner intro, image/text block, process cards and CTA.
- Improved homepage hero visibility and frontend section styling.

Release Notes 3.9.7:
- Builder sections now auto-append after page content as a fallback.
- Added duplicate render guard and frontend builder text styling.

Release Notes 3.9.6:
- Restored safe page builder metabox for all pages.
- Builder blocks now render on fixed templates including Over ons and Sollicitatiestatus.

Release Notes 3.9.5:
- Restored frontend polish for header, hero buttons and search overlay.
- Search overlay is hidden by default and opens via the header search button.

Release Notes 3.9.4:
- Stable production build based on the working activation-safe core.
- Restored frontend builder section rendering.
- Restored safe dynamic color/layout CSS variables.
- Kept risky legacy admin/menu hooks disabled.

Release Notes 3.9.3:
- Safe activation build with optional heavy hooks disabled for diagnostics.

Release Notes 3.9.2:
- Extra activation hardening for strict/older hosting environments.
- Removed non-essential inline script enqueue during theme load.
- Replaced shorthand fallback operators with explicit checks.

Release Notes 3.9.1:
- Fixed upload/activation stability on stricter WordPress/PHP setups.
- Added compatibility for two-argument theme option defaults.
- Replaced PHP 7-only null coalescing syntax in theme templates.
- Registered inline frontend JavaScript on a proper script handle.

Release Notes 3.9.0:
- Phase 19: Advanced Menu & Email Placeholders
- Prioritized Group links in header.
- Added branch dropdown display option.
- Implemented dynamic email placeholder system ({naam_kandidaat}, etc).
- Added placeholder documentation to admin dashboard.

Release Notes 3.8.0:
- Phase 18: UX Refinements & Menu Fixes
- Removed search bar from header.
- Reduced Hero heights for better above-the-fold visibility.
- Improved contrast and spacing in "Waarom" section.
- Fixed branch menu logic and mobile shortcut visibility.
- Premium Track & Trace dashboard overhaul.

Release Notes 3.6.0:
- Toegevoegd: Branch shortcuts in de header met '|' scheiding.
- Toegevoegd: Granulaire hero button hover effecten (wit/blauw interchange).
- Toegevoegd: Centraal beheer voor "Waarom NPG" en "Wie is de Groep" pagina's.
- Verbeterd: Hero uitlijning gelijk aan start logo.
- Verbeterd: Theme options merge-logica voorkomt dataverlies bij opslaan.
- Verbeterd: Werken bij Builder nu ondersteund op alle pagina's.
- Toegevoegd: "Sterke Merken" weergave-instellingen (Raster/Lijst) in het dashboard.
- Verbeterd: Hero alignment opties (Links-uitgelijnd met logo, Midden, Rechts).
- Verbeterd: Twee-button systeem in de Hero met volledige kleur- en hover-controle.
- Opgelost: Kritieke syntax fout in functions.php verholpen.
- Opgelost: Redundante Customizer menu-items verwijderd voor een schonere interface.
*/

:root {
    --npg-blue: #0A192F;
    --npg-blue-light: #0077B6;
    --npg-navy: #020C1F;
    /* Very dark blue suitable for backgrounds */
    --npg-green: #39b54a;
    --npg-text-main: #2D3748;
    --npg-text-secondary: #4A5568;
    --npg-gray-light: #F7FAFC;
    --npg-gray-medium: #E2E8F0;
    --npg-white: #ffffff;
    --npg-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --npg-shadow-hover: 0 15px 40px rgba(0, 31, 77, 0.1);
    --npg-transition: all 0.3s ease;
}

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

/* Global Menu Bullet Removal */
nav ul, 
.menu, 
.sub-menu, 
.nav-links, 
.main-nav-links,
.header-branch-shortcuts,
.footer-menu,
.footer-links-list,
.footer-branches-list,
.widget_nav_menu ul {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0;
}

nav ul li,
.menu li,
.footer-links-list li,
.footer-branches-list li {
    list-style: none !important;
    list-style-type: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--npg-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: var(--npg-white);
    scroll-behavior: smooth;
}

p {
    margin-bottom: 20px;
}

.container {
    max-width: var(--npg-site-width, 1300px);
    margin: 0 auto;
    padding: 0 30px;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--npg-navy);
}

.text-green {
    color: var(--npg-green) !important;
}

.text-light-blue {
    color: var(--npg-blue-light) !important;
}

/* --- Buttons --- */
.btn-primary,
.btn-submit {
    background: var(--npg-blue);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: var(--npg-transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--npg-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 119, 182, 0.2);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: var(--npg-transition);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--npg-navy) !important;
}

/* --- Layout --- */
.site-header {
    background: var(--npg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.is-branch-page .site-header {
    background: var(--npg-white); /* Force white as per user request */
}

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

.site-logo img, .logo {
    height: auto;
    max-height: 50px;
    transition: var(--npg-transition);
}

/* --- Navigation --- */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--npg-menu-color);
    font-family: var(--npg-font-menu);
    font-size: var(--npg-menu-size);
    font-weight: var(--npg-menu-weight);
    transition: var(--npg-transition);
}

.nav-links a:hover, 
.nav-links .current-menu-item a {
    color: var(--npg-menu-active);
}

.header-branch-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.branch-sep {
    color: #ddd;
    font-weight: 300;
    pointer-events: none;
}

.branch-sep.big-sep {
    color: var(--npg-green);
    font-weight: 600;
    font-size: 20px;
    margin: 0 5px;
}

.header-branch-shortcuts {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-branch-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.1s;
}

.header-branch-link:hover {
    /* Color managed by functions.php dynamic CSS */
}

/* Branch Dropdown Styles */
.npg-branch-dropdown {
    position: relative;
    display: inline-block;
}

.branch-dropdown-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.branch-dropdown-toggle:hover {
    background: #ffffff;
    border-color: var(--npg-green);
    box-shadow: 0 4px 20px rgba(57, 181, 74, 0.12);
    transform: translateY(-1px);
}

/* Premium Arrow */
.npg-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: all 0.3s ease;
    margin-top: -4px;
}

.npg-branch-dropdown:hover .npg-arrow {
    transform: rotate(225deg);
    border-color: #39b54a;
    margin-top: 4px;
}

.npg-branch-dropdown:hover .branch-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.branch-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 42, 153, 0.1);
    border: 1px solid rgba(0, 42, 153, 0.05);
    padding: 15px 0;
    margin-top: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Arrow indicator for dropdown menu */
.branch-dropdown-content::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.branch-dropdown-content a {
    display: block;
    padding: 14px 28px;
    text-decoration: none;
    color: var(--npg-navy);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    text-align: left;
    border-left: 4px solid transparent;
}

.branch-dropdown-content a:hover {
    background: #f8fafc;
    color: var(--npg-dropdown-hover, var(--npg-green));
    padding-left: 32px;
    border-left-color: var(--npg-dropdown-hover, var(--npg-green));
}

/* Visibility Control based on Mode */
.header-branch-section.display-shortcuts .npg-branch-dropdown {
    display: none;
}

.header-branch-section.display-dropdown .header-branch-shortcuts {
    display: none;
}

@media (max-width: 1024px) {
    .header-branch-section { display: none; }
}

/* --- Features & Helpers --- */

/* --- Hero Home --- */
.hero-home {
    padding: 160px 0;
    background: var(--npg-navy);
    /* Fallback */
    background: linear-gradient(135deg, rgba(2, 12, 31, 0.95) 0%, rgba(0, 31, 77, 0.9) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    text-align: left;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    color: var(--npg-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 900;
    display: block;
    margin-bottom: 25px;
}

.hero-home h1 {
    font-size: 64px;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 25px;
}

.hero-home p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #fff;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- Global Page Hero --- */
.page-hero, .hero-home {
    padding: 160px 0 100px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before, .hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero .container, .hero-home .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 64px;
    color: #fff;
    margin: 15px 0 20px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-tagline {
    color: var(--npg-green);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
}

/* --- Group & Why Section --- */
.group-content {
    padding: 100px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.why-content h2, .group-content h2 {
    color: var(--npg-blue);
    font-size: 42px;
    margin-bottom: 20px;
}

.why-image, .why-img-bg {
    height: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sub-card {
    background: var(--npg-gray-light);
    padding: 40px;
    border-radius: 20px;
    transition: var(--npg-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
}

.sub-card-link:hover .sub-card {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--npg-transition);
}

.product-img {
    height: 200px;
    width: 100%;
    position: relative;
}

.product-branch-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--npg-green);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

/* --- Brands Showcase --- */
.brand-showcase {
    padding: 120px 0;
    background: var(--npg-white);
}

.brand-showcase-header {
    text-align: center;
    margin-bottom: 80px;
}

.brand-showcase-title {
    font-size: 48px;
    margin-bottom: 15px;
}

.brand-showcase-desc {
    color: var(--npg-text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1300px;
    /* Center the grid blocks nicely */
    margin: 0 auto;
}

.brand-link {
    text-decoration: none;
}

.brand-card {
    background: var(--npg-white);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--npg-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--npg-shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--npg-shadow-hover);
    border-color: rgba(0, 119, 182, 0.1);
}

.brand-logo-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-logo-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    color: var(--npg-navy);
    font-size: 20px;
    font-weight: 800;
}

/* --- Home Vacancies --- */
.home-vacancies {
    padding: 100px 0;
    background: var(--npg-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-header-left {
    flex: 1;
}

.section-header-right {
    flex: 1;
    text-align: right;
}

.section-tag {
    color: var(--npg-green);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    margin: 0;
}

.section-desc {
    color: var(--npg-text-secondary);
    font-size: 18px;
    margin: 0;
    align-self: flex-end;
}

/* Vacancy Cards generated by shortcode */
.npg-vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.npg-vacancy-card {
    background: var(--npg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--npg-shadow-soft);
    transition: var(--npg-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.npg-vacancy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--npg-shadow-hover);
}

.card-image {
    height: 200px;
    background: var(--npg-gray-light);
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--npg-transition);
}

.npg-vacancy-card:hover .card-image img {
    transform: scale(1.05);
}

.npg-vacancy-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-labels {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.npg-branch-label {
    background-color: var(--npg-label-bg, #E6F0FA) !important;
    color: var(--npg-label-text, var(--npg-primary, #002a99)) !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.npg-custom-label {
    background: var(--npg-green);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.npg-vacancy-card h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: var(--npg-navy);
}

.card-meta {
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--npg-text-secondary);
    font-size: 14px;
    display: flex;
    gap: 15px;
}

.card-meta i {
    color: var(--npg-grid-icon, var(--npg-text-secondary));
    opacity: 0.8;
}

.npg-vacancy-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: auto;
    background: var(--npg-grid-btn, var(--npg-blue));
    border: 1px solid var(--npg-grid-btn, var(--npg-blue));
}

.npg-vacancy-card .btn-primary:hover {
    background: var(--npg-grid-btn-hover, var(--npg-blue-light));
    border-color: var(--npg-grid-btn-hover, var(--npg-blue-light));
}

/* --- Why NPG --- */
.why-npg {
    padding: 120px 0;
    background: var(--npg-navy);
    color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.why-image-wrapper {
    position: relative;
}

.why-img-bg {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.why-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--npg-green);
    color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(57, 181, 74, 0.4);
}

.why-badge-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.why-badge-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.why-content h2 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 20px;
}

.why-content p.lead {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 50px;
    color: #fff;
}

.why-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.why-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* If user enters raw text with checkmark or uses the actual list structure */
.why-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    background: rgba(57, 181, 74, 0.1);
    color: var(--npg-green);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
}

.feature-text h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    background: #020815;
    /* Even darker navy for footer */
    color: #fff;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 25px;
    filter: brightness(1.2);
    transition: var(--npg-transition);
}

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

.footer-text {
    max-width: 400px;
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--npg-transition);
}

.footer-menu a:hover {
    color: var(--npg-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-home h1 {
        font-size: 48px;
    }

    .hero-home {
        padding: 120px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-badge {
        right: 20px;
    }

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-header-right {
        text-align: left;
    }

    .brand-grid,
    .npg-vacancy-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline-white {
        width: 100%;
        text-align: center;
    }
}

/* --- Enhanced Application Form (Premium UI) --- */
.npg-app-form {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 42, 153, 0.08);
    max-width: 800px;
    margin: 40px auto;
}

.npg-app-form .form-group {
    margin-bottom: 25px;
}

.npg-app-form .form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--npg-navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.npg-app-form .form-group input,
.npg-app-form .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--npg-transition);
    background: #fcfcfc;
}

.npg-app-form .form-group input:focus,
.npg-app-form .form-group textarea:focus {
    border-color: var(--npg-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(57, 181, 74, 0.05);
    outline: none;
}

/* File Upload Logic */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: var(--npg-transition);
    background: #fafafa;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--npg-green);
    background: #f0fff4;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    display: block;
    margin-bottom: 15px;
}

.npg-app-form .btn-submit {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    justify-content: center;
    margin-top: 10px;
}

/* --- Vacancy Overrides & Grid --- */
.npg-branch-label i {
    margin-right: 6px;
    color: var(--npg-blue-light);
}

.npg-vacancy-card.is-filled {
    opacity: 0.8;
}

.npg-vacancy-card.is-filled .card-image {
    filter: grayscale(1);
    opacity: 0.6;
}

.meta-item i {
    font-size: 14px;
    color: var(--npg-green);
}

.no-results {
    font-weight: 700;
    color: var(--npg-text-secondary);
    background: #f8f9fa;
    border: 1px dashed #ddd;
}

/* --- Product Grid & Cards --- */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-img {
    height: 220px;
    position: relative;
}

.product-info {
    padding: 30px;
}

.product-info h4 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--npg-blue);
}

.product-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--npg-text-secondary);
}

.product-branch-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--npg-blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
}

/* --- Safe Restored Frontend Polish (v3.9.5) --- */
.site-header {
    background: var(--npg-header-bg, #fff);
}

.container-header {
    min-height: 72px;
}

.hero-content-wrap {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-home .hero-content-wrap {
    align-items: center;
    text-align: center;
}

.page-hero-title,
.hero-home h1 {
    color: var(--npg-hero-title-color, #fff);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 24px;
}

.page-hero-subtitle,
.hero-home p {
    color: var(--npg-hero-text-color, rgba(255, 255, 255, 0.88));
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.55;
    max-width: 980px;
    margin: 0 auto 26px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.npg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.npg-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.npg-btn-1 {
    background: var(--npg-primary, #002a99);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 42, 153, 0.24);
}

.npg-btn-1:hover {
    background: var(--npg-blue-light, #0077B6);
    color: #fff !important;
}

.npg-btn-2 {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
}

.npg-btn-2:hover {
    background: #fff;
    color: var(--npg-navy, #020C1F) !important;
}

.header-search-toggle {
    display: inline-flex;
}

#npg-header-search-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: var(--npg-menu-color, #020C1F);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

#npg-header-search-btn:hover {
    color: var(--npg-primary, #002a99);
    border-color: rgba(0, 42, 153, 0.25);
    box-shadow: 0 10px 22px rgba(0, 42, 153, 0.08);
}

.npg-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 12, 31, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.npg-search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.npg-search-close {
    position: absolute;
    top: 32px;
    right: 36px;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.npg-search-inner {
    width: min(820px, calc(100% - 40px));
    text-align: center;
}

.npg-search-inner .search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.18);
    padding-bottom: 16px;
}

.npg-search-inner input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
}

.npg-search-inner input[type="search"]::placeholder {
    color: rgba(255,255,255,0.56);
}

.npg-search-inner .search-submit {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: var(--npg-accent, #39b54a);
    color: #fff;
    cursor: pointer;
}

.search-suggestions {
    margin-top: 28px;
}

.search-suggestions p {
    color: rgba(255,255,255,0.62);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.suggestion-chips a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 8px 18px;
}

.suggestion-chips a:hover {
    background: var(--npg-primary, #002a99);
}

.npg-builder-section {
    background: #fff;
}

.npg-builder-section .container {
    max-width: var(--npg-site-width, 1300px);
}

.builder-text-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--npg-text-secondary, #4A5568);
}

.builder-text-content h2,
.builder-text-content h3 {
    color: var(--npg-navy, #020C1F);
}

/* --- Fixed Page Elements (v3.9.8) --- */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: flex-end;
}

.main-nav-links,
.npg-fallback-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav-links li {
    list-style: none;
    margin: 0;
}

.main-nav-links a,
.npg-fallback-menu a {
    color: var(--npg-menu-color, #020C1F);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

.main-nav-links a:hover,
.npg-fallback-menu a:hover {
    color: var(--npg-menu-active, var(--npg-primary, #002a99));
}

.page-hero,
.hero-home {
    min-height: 560px;
    padding: 150px 0 110px;
    background:
        linear-gradient(135deg, rgba(2, 12, 31, 0.9) 0%, rgba(0, 42, 153, 0.78) 100%),
        url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&q=80&w=1800") center/cover;
}

.page-hero::before,
.hero-home::before {
    background: radial-gradient(circle at 20% 20%, rgba(57, 181, 74, 0.18), transparent 34%);
}

.hero-container {
    width: 100%;
}

.page-hero-tagline {
    color: var(--npg-tagline-color, var(--npg-green));
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 8px 16px;
}

.text-green {
    color: var(--npg-green);
}

.npg-fixed-page-elements {
    background: #fff;
    padding: 90px 0;
}

.npg-page-intro {
    max-width: 880px;
    margin: 0 auto 70px;
    text-align: center;
}

.npg-page-intro h2 {
    margin: 18px 0 20px;
    color: var(--npg-navy, #020C1F);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
}

.npg-page-intro-text {
    color: var(--npg-text-secondary, #4A5568);
    font-size: 19px;
    line-height: 1.75;
}

.npg-image-text-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin: 0 0 70px;
}

.npg-image-text-media {
    min-height: 440px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 54px rgba(2, 12, 31, 0.12);
}

.npg-image-text-content h2 {
    color: var(--npg-navy, #020C1F);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
    margin: 0 0 20px;
}

.npg-image-text-content p {
    color: var(--npg-text-secondary, #4A5568);
    font-size: 18px;
    line-height: 1.8;
}

.npg-process-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 70px;
}

.npg-process-card {
    background: var(--npg-gray-light, #F7FAFC);
    border: 1px solid var(--npg-gray-medium, #E2E8F0);
    border-radius: 8px;
    padding: 34px;
}

.npg-process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--npg-primary, #002a99);
    color: #fff;
    font-weight: 900;
    margin-bottom: 22px;
}

.npg-process-card h3 {
    margin: 0 0 12px;
    color: var(--npg-navy, #020C1F);
    font-size: 24px;
}

.npg-process-card p {
    margin: 0;
    color: var(--npg-text-secondary, #4A5568);
    line-height: 1.7;
}

.npg-page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, var(--npg-navy, #020C1F), var(--npg-primary, #002a99));
    color: #fff;
    border-radius: 8px;
    padding: 44px 50px;
}

.npg-page-cta h2 {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 42px);
}

.npg-page-cta p {
    margin: 0;
    color: rgba(255,255,255,0.84);
    font-size: 18px;
}

.npg-page-cta .npg-btn {
    flex: 0 0 auto;
    background: #fff;
    color: var(--npg-primary, #002a99) !important;
}

/* --- Page Polish & Recruitment Blocks (v3.9.9) --- */
.npg-page-content-wrap {
    margin-top: -34px;
    position: relative;
    z-index: 10;
}

.npg-page-content-card {
    background: #fff;
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 18px 54px rgba(10, 25, 47, 0.06);
    line-height: 1.8;
    color: var(--npg-text-secondary, #4A5568);
    font-size: 17px;
}

.npg-page-content-card p:first-child {
    margin-top: 0;
}

.npg-page-content-card p:last-child {
    margin-bottom: 0;
}

.group-content .company-grid {
    align-items: stretch;
}

.sub-card {
    border-radius: 8px;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(0, 42, 153, 0.08);
    box-shadow: 0 12px 34px rgba(2, 12, 31, 0.04);
}

.sub-card h4 {
    color: var(--npg-navy, #020C1F);
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.sub-card p {
    color: var(--npg-text-secondary, #4A5568);
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.sub-card .read-more,
.sub-card-link span {
    color: var(--npg-primary, #002a99) !important;
    font-weight: 900;
    text-decoration: none;
}

.brand-card,
.product-card,
.npg-tool-card,
.npg-flow-steps > div,
.npg-faq-list details {
    border-radius: 8px;
}

.npg-tool-section {
    padding: 70px 0;
}

.npg-tool-section-head {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.npg-tool-section-head h2 {
    margin: 16px 0 0;
    color: var(--npg-navy, #020C1F);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.npg-tool-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.npg-tool-card {
    background: var(--npg-gray-light, #F7FAFC);
    border: 1px solid var(--npg-gray-medium, #E2E8F0);
    padding: 32px;
}

.npg-tool-card span {
    color: var(--npg-green, #39b54a);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.npg-tool-card h3 {
    color: var(--npg-navy, #020C1F);
    font-size: 24px;
    margin: 16px 0 12px;
}

.npg-tool-card p {
    margin: 0;
    color: var(--npg-text-secondary, #4A5568);
    line-height: 1.7;
}

.npg-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.npg-flow-steps > div {
    background: #fff;
    border: 1px solid rgba(0, 42, 153, 0.1);
    box-shadow: 0 12px 34px rgba(2, 12, 31, 0.04);
    padding: 28px;
}

.npg-flow-steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--npg-primary, #002a99);
    color: #fff;
}

.npg-flow-steps h3 {
    color: var(--npg-navy, #020C1F);
    margin: 18px 0 8px;
}

.npg-flow-steps p {
    margin: 0;
    color: var(--npg-text-secondary, #4A5568);
    line-height: 1.65;
}

.npg-faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.npg-faq-list details {
    background: #fff;
    border: 1px solid rgba(0, 42, 153, 0.1);
    box-shadow: 0 10px 28px rgba(2, 12, 31, 0.04);
    padding: 22px 26px;
}

.npg-faq-list summary {
    cursor: pointer;
    color: var(--npg-navy, #020C1F);
    font-weight: 900;
    font-size: 19px;
}

.npg-faq-list p {
    color: var(--npg-text-secondary, #4A5568);
    line-height: 1.7;
    margin: 14px 0 0;
}

.npg-vacancy-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--npg-navy, #020C1F), var(--npg-primary, #002a99));
    border-radius: 8px;
    padding: 44px;
    color: #fff;
}

.npg-vacancy-cta h2 {
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 12px 0;
}

.npg-vacancy-cta p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 18px;
}

.npg-vacancy-cta .section-tag {
    color: var(--npg-green, #39b54a);
}

.npg-vacancy-cta .npg-btn {
    flex: 0 0 auto;
    background: #fff;
    color: var(--npg-primary, #002a99) !important;
}

@media (max-width: 768px) {
    .container-header {
        min-height: 64px;
    }

    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav-links,
    .npg-fallback-menu {
        width: 100%;
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .page-hero,
    .hero-home {
        min-height: 460px;
        padding: 110px 0 80px;
    }

    .hero-buttons {
        width: 100%;
    }

    .npg-btn {
        width: 100%;
    }

    .npg-fixed-page-elements {
        padding: 60px 0;
    }

    .npg-image-text-block,
    .npg-process-cards {
        grid-template-columns: 1fr;
    }

    .npg-image-text-media {
        min-height: 300px;
    }

    .npg-page-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 26px;
    }

    .npg-page-content-card {
        padding: 30px 24px;
    }

    .company-grid,
    .brand-grid,
    .npg-tool-card-grid,
    .npg-flow-steps {
        grid-template-columns: 1fr !important;
    }

    .npg-vacancy-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 26px;
    }
}
