/* =========================================================
   ACERBIC SYNERGY — EXECUTIVE CORPORATE DESIGN
   Theme: Emerald Teal, Deep Navy & Warm Gold
   Colors:
   - Primary Emerald: #0d7a66
   - Bright Emerald:  #0f9f85
   - Dark Emerald:    #084c40
   - Light Emerald:   #e6f4f1
   - Warm Gold:       #d97706
   - Light Gold BG:   #fffbe6
   - Dark Navy:       #071426
   - Soft Gray BG:    #f8fafc
========================================================= */

:root {
    --sv-navy: #0f172a;
    --sv-teal: #0d7a66;
    --primary-emerald: #0d7a66;
    --bright-emerald: #10b981;
    --dark-emerald: #084c40;
    --light-emerald-bg: #e6f4f1;
    --warm-gold: #10b981;
    --accent-gold: #047857;
    --light-gold-bg: #f8fafc;
    --dark-navy: #000000;
    --navy-card: #0a0a0a;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --soft-gray-bg: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(13, 122, 102, 0.15);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #0f172a; background-color: #ffffff;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 95px 0;
}

/* TOP UTILITY BAR */
.top-bar {
    background-color: #0b1a2d;
    color: #94a3b8;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-icon {
    color: var(--bright-emerald);
}

.top-divider {
    opacity: 0.3;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-consult-badge {
    color: var(--accent-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-link {
    color: #ffffff;
    background-color: var(--primary-emerald);
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.top-bar-link:hover {
    background-color: var(--bright-emerald);
}

.top-socials {
    display: flex;
    gap: 12px;
    margin-left: 8px;
}

.top-socials a {
    color: #94a3b8;
}

.top-socials a:hover {
    color: var(--bright-emerald);
}

/* MAIN NAVBAR */
#navbar-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar { background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-container {
    width: 100%;
    max-width: none;
    padding-inline: 12px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 65px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title-wrap {
    display: inline-flex;
    align-items: flex-start;
    position: relative;
}

.brand-title-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.0;
}

.brand-line-top { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: #000000;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.brand-line-bottom { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: #000000;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.brand-tm { font-size: 8px; font-weight: 800; color: #000000;
    margin-left: 2px;
    line-height: 1;
    transform: translateY(-2px);
}

.footer-text-white {
    color: #ffffff !important;
}

.footer-tm-white {
    color: var(--accent-gold) !important;
}

.company-tagline { font-size: 10px; font-weight: 700; color: var(--accent-gold);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

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

.nav-links a { font-weight: 600; font-size: 14px; color: #0f172a;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { color: #047857; }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-emerald);
    border-radius: 2px;
}

.nav-arrow {
    font-size: 10px;
    margin-left: 2px;
}

.header-phone-box { background-color: var(--accent-gold); color: #000000; font-weight: 800; text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.header-phone-box:hover {
    opacity: 0.85;
}

.phone-icon-wrap {
    font-size: 20px;
    color: var(--accent-gold);
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark-navy);
    cursor: pointer;
}

/* HERO BANNER */
.hero-banner {
    position: relative;
    background: #071426;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(135deg, #071426 0%, #0c233c 60%, #0d4248 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: top left, center center;
    padding: 75px 0;
    color: #ffffff;
    overflow: hidden;
}

.banner-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.banner-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-left {
    max-width: 650px;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.gold-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.breadcrumb a {
    color: #ffffff;
}

.breadcrumb a:hover {
    color: var(--bright-emerald);
}

.breadcrumb-sep {
    font-size: 10px;
    opacity: 0.6;
}

.breadcrumb .active {
    color: var(--accent-gold);
}

.banner-right-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px;
    border-radius: 12px;
}

.hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gold-icon {
    font-size: 32px;
    color: var(--accent-gold);
}

.stat-pill-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.stat-pill-lbl {
    font-size: 12px;
    color: #94a3b8;
}

/* ABOUT SECTION */
.about-section {
    background-color: #ffffff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-photo-column {
    position: relative;
}

.photo-wrapper {
    position: relative;
    border-radius: 12px;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.badge-overlay {
    position: absolute;
    bottom: -24px;
    left: 24px;
    background-color: #ffffff;
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 5px solid var(--primary-emerald);
    z-index: 5;
}

.badge-icon {
    width: 46px;
    height: 46px;
    background-color: var(--light-emerald-bg);
    color: var(--primary-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1;
}

.badge-plus {
    color: var(--warm-gold);
}

.badge-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Content Column */
.section-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tag-line-bar {
    width: 4px;
    height: 18px;
    background-color: var(--primary-emerald);
    border-radius: 2px;
}

.tag-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-paragraph {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-emerald);
    margin-bottom: 16px;
}

.about-subparagraph {
    font-size: 14px;
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.7;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.highlight-item {
    background-color: var(--soft-gray-bg);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    gap: 14px;
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: var(--bright-emerald);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hl-icon {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: var(--primary-emerald);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.hl-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 4px;
}

.hl-content p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-emerald { background-color: var(--primary-emerald); color: #000000;
}

.btn-emerald:hover {
    background-color: var(--dark-emerald);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #cbd5e1;
    color: var(--dark-navy);
}

.btn-outline:hover {
    border-color: var(--primary-emerald);
    color: var(--primary-emerald);
}

/* MISSION & VISION CARDS + STATS SECTION */
.mission-vision-wrapper {
    position: relative;
    background-color: #ffffff;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: -60px;
    position: relative;
    z-index: 10;
}

.mv-card {
    padding: 38px;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.card-pill-tag {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: var(--light-emerald-bg);
    color: var(--primary-emerald);
}

.gold-pill {
    background-color: var(--light-gold-bg);
    color: var(--warm-gold);
}

.card-mission {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    border-top: 5px solid var(--primary-emerald);
}

.card-vision {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--dark-emerald) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.mv-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.mv-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

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

.gold-icon-wrap {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
}

.mv-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
}

.card-mission .mv-card-title {
    color: var(--dark-navy);
}

.card-vision .mv-card-title {
    color: #ffffff;
}

.mv-card-text {
    font-size: 14px;
    line-height: 1.7;
}

.card-mission .mv-card-text {
    color: #475569;
}

.card-vision .mv-card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* DARK STATS SECTION */
.stats-section {
    background: #071426;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(135deg, #071426 0%, #0c233c 60%, #0d4248 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: top left, center center;
    padding-top: 130px;
    padding-bottom: 75px;
    color: #ffffff;
}

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

.stat-card {
    background-color: var(--navy-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-emerald);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.stat-icon-wrap {
    font-size: 30px;
    color: var(--bright-emerald);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-star {
    color: var(--accent-gold);
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ACCORDION & FEATURE SECTION */
.accordion-section {
    background-color: #ffffff;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 45px;
}

.vertical-accent-line {
    width: 4px;
    height: 52px;
    background-color: var(--primary-emerald);
    border-radius: 2px;
}

.sub-heading-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-emerald);
    letter-spacing: 1px;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--dark-navy);
}

.accordion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.accordion-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background-color: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-navy);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.acc-head-icon {
    color: var(--primary-emerald);
    margin-right: 8px;
}

.accordion-item.active .accordion-header {
    background-color: var(--primary-emerald);
    color: #ffffff;
}

.accordion-item.active .acc-head-icon {
    color: var(--accent-gold);
}

.acc-icon {
    font-size: 13px;
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.accordion-item.active .accordion-body {
    padding: 24px;
    max-height: 500px;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.list-check {
    color: var(--primary-emerald);
    font-size: 16px;
    margin-top: 2px;
}

.accordion-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.values-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background-color: var(--light-emerald-bg);
    color: var(--primary-emerald);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

/* Accordion Photo Column */
.accordion-photo-column {
    position: relative;
}

.accordion-photo-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.acc-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.acc-overlay-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 22px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid var(--accent-gold);
}

.overlay-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.overlay-icon {
    font-size: 26px;
    color: var(--primary-emerald);
}

.overlay-card-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--dark-navy);
}

.overlay-card-sub {
    font-size: 12px;
    color: #64748b;
}

.overlay-card-btn {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-emerald);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.overlay-card-btn:hover {
    color: var(--dark-emerald);
    gap: 12px;
}

/* VIDEO CTA BANNER */
.video-cta-section {
    position: relative;
    background: linear-gradient(rgba(7, 20, 38, 0.9), rgba(7, 20, 38, 0.9)), url('images/collaboration.png') center/cover no-repeat;
    padding: 105px 0;
    color: #ffffff;
    text-align: center;
}

.video-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 750px;
}

.cta-glow-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.video-cta-heading {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
}

.video-cta-subtext {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.btn-emerald-solid {
    background-color: var(--primary-emerald);
    color: #ffffff;
}

.btn-emerald-solid:hover {
    background-color: var(--bright-emerald);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 34px;
    font-size: 15px;
}

/* FOOTER */
.footer {
    background: #071426;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(135deg, #071426 0%, #0c233c 60%, #0d4248 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: top left, center center;
    color: #94a3b8;
    padding-top: 70px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 16px;
}

.footer-text {
    font-size: 13px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--bright-emerald);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--bright-emerald);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .banner-container,
    .about-container,
    .accordion-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .banner-right-card {
        margin-top: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        margin-bottom: -40px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .header-phone-box {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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



.header-phone-box:hover { opacity: 0.85; }


.core-val-card:hover { transform: translateY(-15px); z-index: 20; position: relative; }


/* =========================================================
   HOMEPAGE SPECIFIC STYLES (DATANEX LAYOUT)
========================================================= */

/* Hero Section Homepage */
.home-hero {
    background: #071426;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #071426 0%, #0c233c 60%, #0d4248 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: top left, center center;
    color: #ffffff;
    padding: 120px 0 150px 0;
    position: relative;
    overflow: hidden;
}

.diag-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    pointer-events: none;
}
.glow-top-right {
    top: -200px;
    right: -100px;
    background: #047857;
}
.glow-bottom-left {
    bottom: -200px;
    left: -100px;
    background: #10b981;
}
.home-hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.home-hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.home-hero-subtitle { font-size: 22px; color: #cbd5e1; max-width: 850px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Why Choose Us (Invented) */
.why-us-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: #000000;
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.why-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-gold);
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.why-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.why-title { font-family: var(--font-heading); font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}
.why-desc { font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

/* Our Services (Homepage) */
.home-services-section {
    background: #071426;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(135deg, #071426 0%, #0c233c 60%, #0d4248 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: top left, center center;
    padding: 100px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.home-service-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    
}

.home-service-card:hover {
    border-color: #047857;
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}
.hs-icon {
    font-size: 32px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.hs-title { font-family: var(--font-heading); font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}
.hs-desc { font-size: 16px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 25px;
}
.hs-link { color: var(--accent-gold); font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Google Review Slider */
.reviews-section {
    background-color: #f1f5f9;
    padding: 100px 0;
    color: #000000;
    overflow: hidden;
}
.slider-container {
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
    padding: 0 40px;
}
.slider-track-wrap {
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.review-slide { width: 400px; flex: 0 0 400px;
    padding: 0 15px;
    box-sizing: border-box;
}
.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.reviewer-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    font-family: var(--font-heading);
}
.reviewer-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.reviewer-info span {
    font-size: 12px;
    color: #64748b;
}
.review-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 15px;
}
.review-text { font-size: 16px;
    color: #334155;
    line-height: 1.6;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000000;
    z-index: 10;
    transition: all 0.2s ease;
}
.slider-nav:hover {
    background: var(--accent-gold);
}
.slider-prev { left: -10px; }
.slider-next { right: -10px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .review-slide { width: 350px; flex: 0 0 350px; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .home-hero-title { font-size: 44px; }
}
@media (max-width: 768px) {
    .review-slide { width: 320px; flex: 0 0 320px; }
    .why-us-grid { grid-template-columns: 1fr; }
    .slider-container { padding: 0 10px; }
    .slider-prev { left: 0px; }
    .slider-next { right: 0px; }
    .home-hero-title { font-size: 36px; }
}

/* Contact Footer */
.home-contact-section {
    background-color: #ffffff;
    padding: 120px 0;
    color: #000000;
    border-top: 1px solid #e2e8f0;
}
.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-left-content {
    text-align: left;
}
.contact-left-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.contact-left-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 40px;
}
.whatsapp-btn {
    background-color: var(--accent-gold);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 800;
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-btn:hover {
    transform: translateY(-2px);
}
.contact-form-box {
    background-color: var(--accent-gold);
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 8px;
}
.form-input-white {
    background-color: #f8fafc;
    border: none;
    padding: 16px 20px;
    color: #334155;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    border-radius: 4px;
}
textarea.form-input-white {
    resize: vertical;
    min-height: 140px;
}
.form-send-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}
.form-send-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
    .contact-split-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-box { padding: 30px; }
    .contact-left-heading { font-size: 38px; }
}

/* Generic Slide-Up Animation Utility */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-up.slide-up-active {
    opacity: 1;
    transform: translateY(0);
}
.submit-btn {
    background-color: var(--accent-gold);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    border: none;
    padding: 20px 40px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translateY(-2px);
    background-color: #065f46;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* HRD Corp Section */
.hrd-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.hrd-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    line-height: 1.4;
}
.hrd-highlight {
    color: #ea580c; /* Reference image used an orange color for HRD */
}
.hrd-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}
@media (max-width: 768px) {
    .hrd-title { font-size: 28px; }
    .hrd-image { max-width: 90%; }
}

/* WHATSAPP WIDGET */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.wa-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #1e293b;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.wa-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
}
.wa-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.wa-button:hover {
    transform: scale(1.05);
}
.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.wa-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wa-popup-header {
    background-color: #25D366;
    padding: 20px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.wa-popup-header i {
    font-size: 2rem;
}
.wa-popup-header-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.wa-popup-header-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}
.wa-popup-body {
    padding: 20px;
}
.wa-popup-body > p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0;
    margin-bottom: 15px;
}
.wa-contact-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 3px solid #25D366;
    transition: background 0.2s;
}
.wa-contact-card:hover {
    background: #f1f5f9;
}
.wa-avatar {
    width: 40px;
    height: 40px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}
.wa-contact-info h5 {
    margin: 0 0 3px 0;
    color: #1e293b;
    font-size: 1rem;
}
.wa-contact-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8rem;
}
.wa-contact-card .fa-whatsapp {
    margin-left: auto;
    color: #25D366;
    font-size: 1.2rem;
}


/* ========================================================= */
/* MOBILE RESPONSIVENESS (Max Width 992px & 768px)           */
/* ========================================================= */

@media (max-width: 992px) {
    /* Navbar Mobile Menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        text-align: left;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1.1rem;
    }
    .nav-dropdown {
        width: 100%;
    }
    .dropdown-trigger {
        padding: 15px 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border-bottom: 1px solid #f1f5f9;
        padding-left: 20px;
        background-color: #f8fafc !important;
    }
    
    /* Hide the booking button on very small screens or make it smaller */
    .submit-btn {
        padding: 10px 15px !important;
    }
    .submit-btn span {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    /* Global Typography Reductions */
    h1 { font-size: clamp(2rem, 8vw, 2.5rem) !important; line-height: 1.2 !important; }
    h2 { font-size: clamp(1.8rem, 6vw, 2.2rem) !important; line-height: 1.2 !important; }
    h3 { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; line-height: 1.3 !important; }
    
    /* Global Paddings & Layouts */
    section {
        padding: 60px 0 !important;
    }
    
    /* Ensure side-by-side grids stack vertically */
    .contact-split-grid,
    .split-form-grid,
    .services-hero-content,
    .hrd-section .container,
    .about-container,
    .banner-container,
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Form Adjustments */
    .contact-form-box {
        padding: 25px !important;
    }
    .form-input-white {
        padding: 14px 15px !important;
    }
    
    /* Buttons */
    .whatsapp-btn, .form-send-btn, .submit-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Mobile header/navbar elements */
    .submit-btn {
        display: none !important; /* Hide booking btn on mobile to save header space */
    }
    .logo-text {
        transform: scale(0.85);
        transform-origin: left center;
    }
    
    /* Hide WA Tooltip on Mobile */
    .wa-tooltip {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Hard reset to prevent any horizontal scrolling/bouncing */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Fix about page right side padding */
    .about-right-side {
        padding-left: 0 !important;
        min-width: 100% !important;
    }
    
    /* Fix the colorful core values columns in about.html */
    .core-values-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .core-val-card {
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px !important;
        clip-path: none !important; /* Remove the arrow shape on mobile */
        border-radius: 12px !important; /* Restore normal rounded corners */
    }
}

@media (max-width: 768px) {
    /* Fix Career Form card padding */
    .form-card {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }
    
    /* Fix HR News Image Carousel overlapping text */
    .hero-content {
        z-index: 9999 !important;
    }

    /* Make the booking button genuinely cute and compact on mobile */
    a.submit-btn, .submit-btn {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        padding: 5px 8px !important;
        gap: 6px !important;
        margin-right: 5px;
        align-items: center !important;
    }
    
    /* Hide the word 'Consultation' on mobile to save space */
    a.submit-btn div span:nth-child(2) {
        display: none !important;
    }
    
    /* Shrink the 'Booking HR' text */
    a.submit-btn div span:nth-child(1) {
        font-size: 9px !important;
        letter-spacing: 0 !important;
    }
    
    /* Shrink the calendar icon slightly */
    a.submit-btn i {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    /* Allow Operational Partners logos to wrap on mobile only */
    .partners-logo-container {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
    .partners-logo-container img {
        width: 120px !important;
        height: auto !important;
        object-fit: contain !important;
        flex: none !important;
    }
}

@media (max-width: 768px) {
    /* Make navbar sticky/fixed on mobile */
    #navbar-placeholder {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99999 !important;
        background-color: #ffffff;
    }
    
    /* Push body down so content doesn't hide under the fixed navbar */
    body {
        padding-top: 85px !important;
    }
}

@media (max-width: 768px) {
    /* Shrink the HRD Corp & IASSC logos on mobile */
    .hrd-corps-section img {
        max-width: 120px !important;
    }
    
    /* Make sure the container gap is tighter so they fit nicely side by side */
    .hrd-corps-section div[style*="display: flex"] {
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    /* Allow the HR diagnostic table to be swipeable horizontally instead of being cut off */
    .dashboard-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-radius: 8px;
    }
    .dashboard-table {
        min-width: 600px; /* Force the table to maintain its shape, enabling horizontal scrolling */
    }
}

/* Keep navbar endpoints anchored to the viewport, including zoomed layouts. */
.navbar-container > .logo-box,
.navbar-container > .submit-btn {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .navbar-container > .logo-box { order: 1; margin-right: auto; }
    .navbar-container > .mobile-menu-btn { order: 2; }
    .navbar-container > .submit-btn { order: 3; margin-right: 0; }
}

@media (max-width: 600px) {
    .navbar-container .company-tagline { display: none; }
    .navbar-container .nav-logo { height: 45px !important; }
    .navbar-container .logo-box { gap: 6px; }
    .navbar-container .logo-text { transform: none; }
    .navbar-container .brand-line-top,
    .navbar-container .brand-line-bottom { font-size: 12px; }
}
/* Switch to the menu before zoomed desktop links crowd the two endpoints. */
@media (max-width: 1100px) {
    .navbar-container > .logo-box { order: 1; margin-right: auto; }
    .navbar-container > .mobile-menu-btn { display: block; order: 2; }
    .navbar-container > .submit-btn { order: 3; margin-right: 0; }
    .navbar-container .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 10px 16px rgba(15, 23, 42, 0.08);
    }
    .navbar-container .nav-links.active { display: flex; }
    .navbar-container .nav-links > a,
    .navbar-container .nav-links .dropdown-trigger {
        display: flex;
        padding: 12px 16px;
        border-radius: 8px;
    }
    .navbar-container .nav-links > a:hover,
    .navbar-container .nav-links .dropdown-trigger:hover { background: #f1f5f9; color: #0c233c; }
}


/* ========================================================= */
/* NAVBAR v2 — navy sliding highlight, animated dropdown     */
/* ========================================================= */
.navbar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    transition: box-shadow 300ms ease, background-color 300ms ease;
}
.navbar.is-scrolled {
    background-color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 10px 30px -12px rgba(7, 20, 38, 0.25);
}
/* Thin brand line that fills in as the page scrolls */
.nav-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #0c233c, #0d7a66 60%, #10b981);
    transform: scaleX(var(--nav-progress, 0));
    transform-origin: left center;
    pointer-events: none;
}
.navbar-container { transition: height 300ms ease; }
.navbar.is-scrolled .navbar-container { height: 72px; }
.navbar .nav-logo { transition: height 300ms ease, transform 300ms ease; }
.navbar.is-scrolled .nav-logo { height: 54px !important; }
.navbar .logo-box:hover .nav-logo { transform: rotate(-6deg) scale(1.04); }

/* Call-to-action button */
.navbar .nav-cta {
    position: relative;
    overflow: hidden;
    background-color: #0c233c;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.navbar .nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 600ms ease;
}
.navbar .nav-cta:hover {
    background-color: #0d7a66;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(13, 122, 102, 0.6) !important;
}
.navbar .nav-cta:hover::before { left: 130%; }
.navbar .nav-cta i { transition: transform 300ms ease; }
.navbar .nav-cta:hover i { transform: rotate(-10deg) scale(1.15); }

/* Dropdown (all sizes) */
.navbar .dropdown-content {
    background: #ffffff;
    border-radius: 12px;
}
.navbar .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, padding-left 180ms ease;
}
.navbar .dropdown-content a i {
    width: 18px;
    color: #0d7a66;
    text-align: center;
}
.navbar .dropdown-content a:hover,
.navbar .dropdown-content a:focus-visible,
.navbar .dropdown-content a.active {
    background: #f1f5f9;
    color: #0c233c;
    padding-left: 18px;
}
.navbar .nav-arrow { transition: transform 250ms ease; }

@media (min-width: 1101px) {
    .navbar-container .nav-links {
        position: relative;
        gap: 4px;
        padding: 0;
        background: transparent;
        border: 0;
    }
    /* The sliding navy pill */
    .nav-indicator {
        position: absolute;
        top: 50%;
        left: 0;
        height: 42px;
        width: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #0c233c 0%, #0d4248 100%);
        box-shadow: 0 8px 18px -8px rgba(7, 20, 38, 0.55);
        transform: translate(var(--ind-x, 0), -50%);
        opacity: 0;
        z-index: 0;
        pointer-events: none;
        transition: transform 550ms cubic-bezier(0.25, 0.8, 0.25, 1),
                    width 550ms cubic-bezier(0.25, 0.8, 0.25, 1),
                    opacity 300ms ease;
    }
    .nav-indicator.is-visible { opacity: 1; }

    .navbar-container .nav-links > a,
    .navbar-container .nav-links .dropdown-trigger {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 11px clamp(12px, 1.1vw, 20px);
        border-radius: 999px;
        font-size: clamp(13px, 0.95vw, 15px);
        line-height: 1.25;
        color: #334155;
        background: transparent;
        transition: color 300ms ease;
        /* staggered entrance */
        opacity: 0;
        animation: nav-link-in 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: calc(var(--i, 0) * 70ms + 120ms);
    }
    .navbar-container .nav-links > a:hover,
    .navbar-container .nav-links a.active { color: #0c233c; background: transparent; }
    /* turn white once the pill has mostly arrived, not before */
    .navbar-container .nav-links a.is-lit { color: #ffffff; transition-delay: 220ms; }
    .navbar-container .nav-links a.active::after {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        bottom: 3px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #10b981;
        transform: translateX(-50%);
    }
    .navbar-container .nav-links a.is-lit::after { background: #34d399; }
    .navbar-container .nav-links a:focus-visible {
        outline: 2px solid #0d7a66;
        outline-offset: 2px;
    }

    .navbar .dropdown-content {
        display: block !important;
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        min-width: 240px;
        padding: 8px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 24px 48px -16px rgba(7, 20, 38, 0.3) !important;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 10px) scale(0.97);
        transform-origin: top center;
        /* closing: wait a moment so the menu doesn't vanish if the cursor slips off */
        transition: opacity 250ms ease 200ms, transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 200ms, visibility 0s linear 500ms;
        z-index: 20 !important;
    }
    /* invisible bridge so the menu doesn't close in the gap */
    .navbar .dropdown-content::before {
        content: '';
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }
    .navbar .nav-dropdown:hover .dropdown-content,
    .navbar .nav-dropdown:focus-within .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0) scale(1);
        /* opening: small delay so passing over HR Hub doesn't pop it open */
        transition: opacity 300ms ease 120ms, transform 350ms cubic-bezier(0.22, 1, 0.36, 1) 120ms, visibility 0s linear 120ms;
    }
    .navbar .nav-dropdown:hover .nav-arrow,
    .navbar .nav-dropdown:focus-within .nav-arrow { transform: rotate(180deg); }
}

@keyframes nav-link-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile / tablet menu panel */
@media (max-width: 1100px) {
    .nav-indicator { display: none; }
    .navbar .dropdown-content { display: none; }
    .navbar .nav-dropdown.is-open .dropdown-content { display: block !important; }
    .navbar .nav-dropdown.is-open .nav-arrow { transform: rotate(180deg); }
    .navbar-container .nav-links.active { animation: nav-panel-in 280ms cubic-bezier(0.22, 1, 0.36, 1); }
    .navbar-container .nav-links.active > a,
    .navbar-container .nav-links.active > .nav-dropdown {
        opacity: 0;
        animation: nav-link-in 380ms ease forwards;
        animation-delay: calc(var(--i, 0) * 50ms + 60ms);
    }
    .navbar-container .nav-links a.active { color: #0d7a66; background: #f1f5f9; }
    .mobile-menu-btn i { transition: transform 300ms ease; }
    .mobile-menu-btn.is-open i { transform: rotate(90deg); }
}
@keyframes nav-panel-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .navbar *, .navbar *::before, .navbar *::after {
        animation: none !important;
        transition: none !important;
    }
    .navbar-container .nav-links > a,
    .navbar-container .nav-links .dropdown-trigger,
    .navbar-container .nav-links > .nav-dropdown { opacity: 1 !important; }
}
