/* ==========================================================================
   Aquarix Marine — Crisp Modern Light Theme Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --aq-primary: #0284c7;
    --aq-primary-hover: #0369a1;
    --aq-cyan: #00b4d8;
    --aq-dark-text: #071324;
    /* Deep Abyss Navy */
    --aq-slate-text: #334155;
    /* High-contrast readable slate */
    --aq-muted-text: #64748b;
    --aq-bg-page: #f8fafc;
    --aq-bg-card: #ffffff;
    --aq-border: #e2e8f0;
    --aq-border-hover: #93c5fd;
    --aq-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --aq-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --aq-radius-sm: 6px;
    --aq-radius-md: 10px;
    --aq-radius-lg: 16px;
    --aq-shadow: 0 2px 10px rgba(7, 19, 36, 0.04);
    --aq-shadow-lg: 0 10px 30px rgba(2, 132, 199, 0.08);
}

/* Hardware Font Smoothing Engine (Flexport-Grade Precision Sharpness) */
html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Base */
body {
    font-family: var(--aq-font-body);
    color: var(--aq-slate-text);
    background-color: var(--aq-bg-page);
    overflow-x: hidden;
    letter-spacing: -0.011em;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.aq-heading {
    font-family: var(--aq-font-heading);
    font-weight: 700;
    color: var(--aq-dark-text);
    letter-spacing: -0.03em;
    /* Tight architectural tracking */
    line-height: 1.25;
}

/* Razor-Sharp Modern Maritime Brand Mark */
.aq-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none !important;
}

.aq-brand-monogram {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #071324 0%, #0369a1 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aq-brand-logo:hover .aq-brand-monogram {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
}

.aq-brand-text {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.aq-brand-title {
    font-family: var(--aq-font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #071324;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
    margin: 0;
}

.aq-brand-title span {
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #0284c7;
}

/* Brand Variant Styles for Comparison */
/* Variant 1: Title Case + Micro Ocean Pill */
.aq-brand-pill-marine {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Variant 2: Stacked (Aquarix large, marine sub-tracked below) */
.aq-brand-stacked {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.aq-brand-stacked .brand-name {
    font-family: var(--aq-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #071324;
    line-height: 1.1;
}

.aq-brand-stacked .brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0284c7;
    margin-top: 2px;
}

/* Variant 3: Clean Title Case Inline */
.aq-brand-titlecase {
    font-family: var(--aq-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #071324;
}

.aq-brand-titlecase span {
    color: #0284c7;
    font-weight: 600;
}

/* Variant 4: All-Lowercase Tech (Flexport Style) */
.aq-brand-lowercase {
    font-family: var(--aq-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #071324;
}

.aq-brand-lowercase span {
    color: #0284c7;
    font-weight: 500;
}

/* Variant 5: Modern Dot Separator */
.aq-brand-dot {
    color: #94a3b8;
    margin: 0 4px;
    font-weight: 400;
}

/* Modern Rotating Announcement Ticker Bar (Light Branded) */
.aq-top-bar {
    background: #f8fafc;
    color: #475569;
    font-size: 0.81rem;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1070;
}

.aq-ticker-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 24px;
    position: relative;
    width: 100%;
}

.aq-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.aq-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: aqPulseDot 1.8s infinite;
}

@keyframes aqPulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.aq-ticker-slider {
    position: relative;
    max-width: 880px;
    width: 100%;
    height: 24px;
    overflow: hidden;
}

.aq-ticker-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.aq-ticker-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.aq-ticker-tag {
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;
    text-transform: uppercase;
}

.aq-ticker-tag.tag-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.aq-ticker-tag.tag-primary {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.aq-ticker-tag.tag-info {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border: 1px solid #ddd6fe !important;
}

.aq-ticker-tag.tag-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.aq-ticker-msg {
    color: #334155;
    font-weight: 500;
}

.aq-ticker-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    padding: 1px 6px;
    border-radius: 4px;
}

.aq-ticker-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.aq-ticker-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.aq-ticker-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
    transition: all 0.2s ease;
}

.aq-ticker-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Mobile Announcement Ticker: Smooth Right-to-Left Continuous Scrolling (Marquee) */
@media (max-width: 767.98px) {
    .aq-top-bar {
        padding: 5px 0;
        font-size: 0.76rem;
        overflow: hidden;
    }

    .aq-ticker-container {
        display: flex;
        align-items: center;
        width: 100%;
        overflow: hidden;
        padding: 0;
        gap: 8px;
        position: relative;
    }

    .aq-pulse-badge {
        font-size: 0.62rem;
        padding: 2px 7px;
        flex-shrink: 0;
        z-index: 10;
        background: #ecfdf5;
        box-shadow: 6px 0 10px rgba(255, 255, 255, 0.98);
    }

    .aq-ticker-slider {
        position: relative;
        flex: 1;
        width: 100%;
        height: 22px;
        overflow: hidden;
    }

    .aq-ticker-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: max-content !important;
        max-width: none !important;
        height: 22px;
        display: none !important;
        align-items: center;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(100vw);
    }

    .aq-ticker-slide.active {
        display: flex !important;
        animation: aqTickerMarquee 18s linear infinite;
    }

    .aq-ticker-slider:hover .aq-ticker-slide,
    .aq-ticker-slider:active .aq-ticker-slide {
        animation-play-state: paused;
    }

    .aq-ticker-msg {
        max-width: none !important;
        font-size: 0.76rem;
        color: #1e293b;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .aq-ticker-tag {
        font-size: 0.64rem;
        padding: 1px 6px;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .aq-ticker-link {
        font-size: 0.76rem;
        padding: 1px 6px;
        white-space: nowrap !important;
    }

    .aq-ticker-controls {
        display: none !important;
    }
}

@keyframes aqTickerMarquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   Master Portal Tabs Header Bar (3-Column Precision Centered Layout)
   ========================================================================== */
.aq-master-portal-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1060;
}

.aq-topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 52px;
    padding: 6px 0;
}

.aq-topbar-left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.aq-topbar-brand-mark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.aq-topbar-brand-mark:hover {
    transform: translateY(-1px) scale(1.05);
    opacity: 0.85;
}

.aq-topbar-center {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aq-topbar-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.aq-topbar-brand-text {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.aq-topbar-brand-text:hover {
    opacity: 0.85;
}

.aq-topbar-brand-text .aq-brand-title {
    font-family: var(--aq-font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #071324;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    line-height: 1;
    margin: 0;
}

.aq-topbar-brand-text .aq-brand-title span {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #0284c7;
}

.aq-master-tabs {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.aq-master-tabs::-webkit-scrollbar {
    display: none;
}

.aq-master-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
}

.aq-master-tab:hover {
    color: #071324;
    background: #f1f5f9;
    border-color: transparent;
}

.aq-master-tab:active {
    transform: scale(0.98);
}

/* Modern Unified Active Tab (Zero dated pastel shading, no blurry colored drop shadows) */
.aq-master-tab.active-candidate,
.aq-master-tab.active-employer,
.aq-master-tab.active-voices,
.aq-master-tab.active-jobs,
.aq-master-tab.active-news,
.aq-master-tab.active {
    color: #ffffff !important;
    background: #071324 !important;
    border-color: #071324 !important;
    font-weight: 600;
    box-shadow: none !important;
}

.aq-master-tab.active-candidate:hover,
.aq-master-tab.active-employer:hover,
.aq-master-tab.active-voices:hover,
.aq-master-tab.active-jobs:hover,
.aq-master-tab.active-news:hover,
.aq-master-tab.active:hover {
    color: #ffffff !important;
    background: #0f172a !important;
    border-color: #0f172a !important;
}

/* Filter Chips for Submenus & Lists */
.filter-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
}

.filter-chip:hover {
    background: #f1f5f9;
    color: #071324;
    border-color: #94a3b8;
}

.filter-chip.active {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
    font-weight: 700;
}

.filter-chip.active:hover {
    background: #bae6fd !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}

/* Single-Line News Filter Pills on Mobile */
@media (max-width: 767.98px) {
    #navFilterChipsContainer {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 5px !important;
        width: auto !important;
        padding: 4px 0 !important;
    }

    #navFilterChipsContainer .filter-chip {
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        width: auto !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 20px !important;
        gap: 3px !important;
    }
}

/* Responsive adjustment for tablets & mobile (4-Item Equal-Width Segmented Control) */
@media (max-width: 991.98px) {
    .aq-topbar-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        min-height: auto;
    }
    .aq-topbar-left {
        order: 1;
    }
    .aq-topbar-right {
        order: 2;
    }
    .aq-topbar-center {
        order: 3;
        width: 100%;
        padding-top: 2px;
        padding-bottom: 2px;
        overflow: visible;
    }
    .aq-master-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        background: #f1f5f9;
        padding: 3px;
        border-radius: 9px;
        gap: 2px;
        border: 1px solid #e2e8f0;
        overflow: visible;
    }
    .aq-master-tab {
        width: 100%;
        padding: 6px 2px;
        font-size: 0.74rem;
        font-weight: 600;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
        white-space: nowrap;
    }
}

/* Sea Jobs Card & Broadcast Styles */
.aq-job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--aq-radius-md);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.aq-job-card:hover {
    border-color: #0284c7;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
    transform: translateY(-2px);
}

.aq-job-urgent {
    border-left: 4px solid #ef4444;
}

.aq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.aq-btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
}

.aq-btn-whatsapp:hover {
    background: #1ebc57;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.aq-btn-phone {
    background: #f1f5f9;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
}

.aq-btn-phone:hover {
    background: #e2e8f0;
}

.aq-btn-email {
    background: #e0f2fe;
    color: #0284c7 !important;
    border: 1px solid #bae6fd;
}

.aq-btn-email:hover {
    background: #bae6fd;
}

/* Visibility isolation by body[data-persona] attribute (with robust defaults) */
/* Default / Candidate Persona */
body:not([data-persona="employer"]) .nav-item-employer,
body:not([data-persona="employer"]) .employer-only,
body:not([data-persona="employer"]) #topBarEmployer,
body:not([data-persona="employer"]) #heroContentEmployer,
body:not([data-persona="employer"]) #employerPageSections,
body[data-persona="candidate"] .nav-item-employer,
body[data-persona="candidate"] .employer-only,
body[data-persona="candidate"] #topBarEmployer,
body[data-persona="candidate"] #heroContentEmployer,
body[data-persona="candidate"] #employerPageSections {
    display: none !important;
}

body:not([data-persona="employer"]) .nav-item-candidate,
body:not([data-persona="employer"]) .candidate-only,
body:not([data-persona="employer"]) #heroContentCandidate,
body:not([data-persona="employer"]) #candidatePageSections,
body[data-persona="candidate"] .nav-item-candidate,
body[data-persona="candidate"] .candidate-only,
body[data-persona="candidate"] #heroContentCandidate,
body[data-persona="candidate"] #candidatePageSections {
    display: block !important;
}

body:not([data-persona="employer"]) ul.navbar-nav>li.nav-item-candidate,
body[data-persona="candidate"] ul.navbar-nav>li.nav-item-candidate {
    display: list-item !important;
}

/* Employer / Shipping Companies Persona */
body[data-persona="employer"] .nav-item-candidate,
body[data-persona="employer"] .candidate-only,
body[data-persona="employer"] #heroContentCandidate,
body[data-persona="employer"] #candidatePageSections {
    display: none !important;
}

body[data-persona="employer"] .nav-item-employer,
body[data-persona="employer"] .employer-only,
body[data-persona="employer"] #heroContentEmployer,
body[data-persona="employer"] #employerPageSections {
    display: block !important;
}

body[data-persona="employer"] ul.navbar-nav>li.nav-item-employer {
    display: list-item !important;
}

/* Modern Sticky Header */
.aq-navbar-wrapper {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid var(--aq-border);
    transition: all 0.3s ease;
}

.aq-navbar-wrapper .navbar {
    min-height: 56px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Calculator & Tool Navigation Pills */
.aq-calc-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.aq-calc-nav-pill:hover,
.aq-calc-nav-pill.active {
    background: #0284c7;
    color: #ffffff !important;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.aq-calc-nav-pill:hover i,
.aq-calc-nav-pill.active i {
    color: #ffffff !important;
}

/* Modern Segmented Control Persona Switcher */
.aq-persona-switch-wrap {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.aq-persona-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--aq-font-heading);
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.aq-persona-btn:hover {
    color: var(--aq-dark-text);
}

.aq-persona-btn.active-candidate {
    background: #ffffff;
    color: #0284c7 !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2);
    border: 1px solid #bae6fd;
}

.aq-persona-btn.active-employer {
    background: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
    border: 1px solid #94a3b8;
}

.aq-navbar-wrapper .nav-item,
.aq-navbar-wrapper .nav-item:hover,
.aq-navbar-wrapper .nav-item.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.aq-nav-link {
    font-family: var(--aq-font-heading);
    font-weight: 500;
    font-size: 0.90rem;
    color: #475569 !important;
    padding: 8px 13px !important;
    transition: color 0.15s ease, background-color 0.15s ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none !important;
    background: transparent !important;
}

.aq-nav-link i {
    font-size: 0.95rem;
    color: #0284c7;
    margin-right: 6px;
    transition: color 0.15s ease, opacity 0.15s ease;
    opacity: 0.85;
}

.aq-nav-link:hover {
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

.aq-nav-link:hover i {
    opacity: 1;
    color: #0284c7;
}

.aq-nav-link.active {
    color: #0284c7 !important;
    background: #e0f2fe !important;
    font-weight: 600;
}

.aq-nav-link.active i {
    opacity: 1;
    color: #0284c7;
}

.nav-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: 4px;
    text-transform: uppercase;
}

.aq-btn-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #0284c7 100%);
    color: #ffffff !important;
    font-family: var(--aq-font-heading);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.aq-btn-gradient:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    color: #ffffff !important;
}

.aq-btn-outline {
    border: 1.5px solid #0284c7;
    color: #0284c7 !important;
    font-family: var(--aq-font-heading);
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 22px;
    background: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aq-btn-outline:hover {
    background: #f0f9ff;
    border-color: #0369a1;
    color: #0369a1 !important;
    transform: translateY(-2px);
}

/* Modern Unified Page Hero & Banner Section (Corporate Services, Post Jobs, About Us, Contact) */
.aq-hero-section,
.aq-page-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    min-height: 204px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 0;
    box-sizing: border-box;
}

.aq-hero-section .container,
.aq-page-banner .container {
    width: 100%;
}

.aq-hero-badge {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.aq-hero-title,
.aq-page-banner .page-title {
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.aq-hero-title span,
.aq-page-banner .page-title span {
    color: #0284c7;
}

.aq-hero-lead,
.aq-page-banner .page-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 780px;
}

.text-center .aq-hero-lead,
.aq-hero-lead.mx-auto,
.text-center .page-lead,
.page-lead.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Hero Quick Action Cards (Light Mode) */
.aq-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 35px;
}

.aq-quick-card {
    background: #ffffff;
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    padding: 18px 20px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.aq-quick-card:hover {
    background: #ffffff;
    border-color: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
    color: #0f172a;
}

.aq-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #0284c7;
    flex-shrink: 0;
}

.aq-quick-card:hover .aq-quick-icon {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Feature Cards & Boxes */
.aq-card {
    background: #ffffff;
    border-radius: var(--aq-radius-md);
    border: 1px solid var(--aq-border);
    box-shadow: var(--aq-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.aq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aq-shadow-lg);
    border-color: var(--aq-border-hover);
}

/* Calculator Widget Component */
.aq-calc-box {
    background: #ffffff;
    border-radius: var(--aq-radius-lg);
    border: 1px solid var(--aq-border);
    box-shadow: var(--aq-shadow);
    padding: 35px;
}

.calc-card {
    background: #ffffff;
    border-radius: var(--aq-radius-lg);
    border: 1px solid var(--aq-border);
    box-shadow: var(--aq-shadow);
}

/* Light Result Panel */
.aq-result-panel {
    background: #f8fafc;
    border-radius: var(--aq-radius-md);
    padding: 28px;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}

.aq-result-number {
    font-family: var(--aq-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1;
}

/* Badges & Tags */
.aq-tag-deck {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.aq-tag-engine {
    background: #fef3c7;
    color: #b45309;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.aq-tag-b2b {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Ecosystem Feeder Banner (Clean Light Gradient) */
.aq-feeder-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
    border-radius: var(--aq-radius-lg);
    padding: 40px;
    color: #0f172a;
    border: 1.5px solid #bae6fd;
    box-shadow: var(--aq-shadow);
}

/* Light Footer */
.aq-footer {
    background: #ffffff;
    color: #475569;
    border-top: 1px solid var(--aq-border);
}

.aq-footer h5 {
    color: #0f172a;
}

.aq-footer a {
    color: #64748b;
    transition: color 0.2s;
}

.aq-footer a:hover {
    color: var(--aq-primary);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .aq-hero-title {
        font-size: 2.3rem;
    }

    .aq-calc-box {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .aq-hero-section,
    .aq-page-banner {
        min-height: 148px !important;
        padding: 22px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .aq-hero-section .container,
    .aq-page-banner .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .aq-hero-title,
    .aq-page-banner .page-title,
    .aq-page-banner h1 {
        display: block !important;
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
        text-align: center !important;
        letter-spacing: -0.02em !important;
    }

    .aq-hero-lead,
    .aq-page-banner .page-lead,
    .aq-page-banner p.lead {
        display: block !important;
        font-size: 0.84rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        color: #475569 !important;
    }

    .aq-hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .aq-calc-nav-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .calc-card {
        padding: 1.25rem !important;
        border-radius: 14px;
    }

    /* Sub-mode switcher wrapping on mobile */
    .btn-group.shadow-sm.rounded-pill {
        flex-wrap: wrap;
        border-radius: 12px !important;
        width: 100%;
    }

    .btn-group.shadow-sm.rounded-pill .btn {
        flex: 1 1 100%;
        margin-bottom: 3px;
        border-radius: 8px !important;
    }

    /* Mobile Table & Metric font scaling */
    .aq-result-number {
        font-size: 1.8rem;
    }
}

/* STCW 2010 Interactive Hour Blocks */
.stcw-hour-btn {
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.stcw-hour-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* STCW 2010 Interactive Hour Blocks */
.stcw-grid {
    display: grid !important;
    grid-template-columns: repeat(24, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
    overflow: visible !important;
}

.stcw-hour-btn {
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 40px !important;
    padding: 1px 0 !important;
    border-radius: 4px !important;
}

.stcw-hour-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.stcw-hour-btn:active {
    transform: scale(0.95);
}

.stcw-hour-rest {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.stcw-hour-work {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.stcw-hour-violation {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* STCW Calendar System */
.stcw-cal-weekdays {
    grid-template-columns: repeat(7, 1fr);
    font-weight: 700;
    color: #64748b;
    font-size: 0.75rem;
}

.stcw-cal-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px !important;
}

.stcw-cal-cell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 3px;
    min-height: 38px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.stcw-cal-cell:hover {
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15);
    background: #f8fafc;
}

.stcw-cal-cell.other-month {
    opacity: 0.3;
    background: #f1f5f9;
    cursor: not-allowed;
}

.stcw-cal-cell.is-today {
    border-color: #0284c7;
    border-width: 2px;
}

.stcw-cal-cell .stcw-day-num {
    font-size: 0.72rem;
    line-height: 1;
}

.stcw-cal-cell.is-today .stcw-day-num {
    background: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.stcw-cal-cell.active-date {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.stcw-cal-cell.active-date .stcw-day-num {
    color: #ffffff !important;
    font-weight: 800;
}

.stcw-cal-cell.active-date .stcw-day-rest-pill {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.stcw-status-dot {
    width: 6px;
    height: 6px;
    margin-right: 3px;
}

.stcw-day-rest-pill {
    font-size: 0.6rem;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.2;
}

.stcw-day-rest-pill.compliant {
    background: #dcfce7;
    color: #15803d;
}

.stcw-day-rest-pill.exception {
    background: #fef08a !important;
    color: #854d0e !important;
    border: 1px solid #eab308 !important;
    font-weight: 700;
}

.stcw-day-rest-pill.deficient {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
}

.stcw-day-rest-pill.empty {
    background: #f1f5f9;
    color: #94a3b8;
}

#stcwCalMonthSelect,
#stcwCalYearSelect {
    background-image: none !important;
    padding-right: 0.5rem !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
}

@media (max-width: 767px) {
    .stcw-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }

    .stcw-hour-btn {
        height: 36px !important;
    }

    .stcw-cal-cell {
        min-height: 42px;
        padding: 3px 2px;
    }

    .stcw-day-rest-pill {
        font-size: 0.58rem;
        padding: 0 2px;
    }
}

/* ==========================================================================
   High-Contrast Universal Badges & Pills (Crisp Readability & Contrast)
   ========================================================================== */
.badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--aq-font-heading), 'Outfit', sans-serif;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    line-height: 1.35;
}

.bg-primary-subtle,
.badge-primary-soft {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.bg-success-subtle,
.badge-success-soft {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.bg-danger-subtle,
.badge-danger-soft {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.bg-info-subtle,
.badge-info-soft {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

.bg-warning-subtle,
.badge-warning-soft {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.badge.bg-light,
.badge-light-soft {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.badge.bg-white {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.badge.bg-success.bg-opacity-10,
.badge.bg-success.bg-opacity-25 {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.badge.bg-primary.bg-opacity-10,
.badge.bg-primary.bg-opacity-25 {
    background-color: #e0f2fe !important;
    color: #075985 !important;
    border: 1px solid #7dd3fc !important;
}

.badge.bg-info.bg-opacity-10,
.badge.bg-info.bg-opacity-25 {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}

/* Sea Jobs Live Pill Badge & Filter Card Responsive */
.sea-jobs-live-pill {
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.sea-jobs-live-pill-wrap {
    background: #f8fafc;
    border: 1px solid #e0f2fe;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.06);
}

/* Custom Attached Dropdown Component */
.aq-custom-select {
    position: relative;
    width: 100%;
}

.aq-custom-select-btn {
    width: 100%;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.90rem;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-align: left;
    outline: none;
    user-select: none;
}

.aq-custom-select-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.aq-custom-select.is-open {
    z-index: 99999;
}

.aq-custom-select.is-open .aq-custom-select-btn {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}

.aq-custom-select-btn .aq-select-chevron {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.aq-custom-select.is-open .aq-select-chevron {
    transform: rotate(180deg);
    color: #0284c7;
}

.aq-custom-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(7, 19, 36, 0.16);
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999999;
    padding: 4px;
    display: none;
    box-sizing: border-box;
}

.aq-custom-select.is-open .aq-custom-select-menu {
    display: block;
}

.aq-custom-select-optgroup-label {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 6px 10px 2px 10px;
    letter-spacing: 0.5px;
}

.aq-custom-select-option {
    padding: 7px 10px;
    font-size: 0.88rem;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.aq-custom-select-option:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.aq-custom-select-option.is-selected {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

@media (max-width: 767px) {
    .sea-jobs-live-pill {
        font-size: 0.73rem !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
        white-space: normal !important;
        text-align: center;
    }

    .sea-jobs-live-pill-wrap {
        padding: 4px 10px !important;
        max-width: 98% !important;
        margin: 0 auto;
    }
}

/* Sea Jobs Filter Drawer & Toggle Button */
.aq-filter-toggle-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.aq-filter-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.aq-filter-toggle-btn:focus,
.aq-filter-toggle-btn:active {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    outline: none;
}

.aq-filter-drawer {
    overflow: visible;
    animation: aqFadeSlideDown 0.22s ease-out;
}

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