* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #0B132B;
    background: #F8FAFC
}

h1,
h2,
h3,
h4 {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    margin: 0
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: min(1600px, calc(100% - 64px));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #081226;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: visible;
}

.nav-wrap {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 30px
}

.brand img {
    display: block;
    width: auto;
    height: 72px;
    max-width: 350px;
    object-fit: contain;
    object-position: left center
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 600
}

.nav a {
    opacity: .9
}

.nav a:hover,
.nav .active {
    color: #fff
}

.nav .active {
    border-bottom: 2px solid #9E1B32;
    padding-bottom: 7px
}

.nav-cta {
    background: #9E1B32;
    padding: 11px 22px;
    border-radius: 5px !important;
    border: 1px solid #b92a43
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px
}

.hero {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 25%, rgba(158, 27, 50, .08), transparent 45%), linear-gradient(120deg, #FFFFFF 0%, #F8FAFC 55%, #EDF2F7 100%);
    pointer-events: none;
}

.hero-jobs-portal {
    padding: 36px 0 48px 0;
}

.hero-grid {
    min-height: 480px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    padding: 10px 0;
    z-index: 2;
}

.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(158, 27, 50, 0.08);
    color: #9E1B32;
    border: 1px solid rgba(158, 27, 50, 0.18);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #9E1B32;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(158, 27, 50, 0.2);
}

.hero-main-title {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: #081226;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.hero-main-title span {
    color: #9E1B32;
}

.hero-text {
    max-width: 640px;
    line-height: 1.65;
    font-size: clamp(15px, 1.3vw, 17px);
    color: #475569;
    margin: 0 0 24px 0;
}

/* Dual Tracks (Job Seeker & Employer) */
.hero-dual-tracks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hero-track-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(8, 18, 38, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 18, 38, 0.08);
}

.track-jobseeker {
    border-left: 4px solid #9E1B32;
}

.track-employer {
    border-left: 4px solid #081226;
}

.track-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.track-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #081226;
    line-height: 1.3;
}

.track-info span {
    display: block;
    font-size: 12px;
    color: #64748B;
    margin-top: 2px;
}

.track-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-track-primary {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-navy {
    background: #081226;
    color: #FFFFFF;
    border: 1px solid #081226;
}

.btn-navy:hover {
    background: #112244;
    border-color: #112244;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.hero-micro-link {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-micro-link:hover {
    color: #9E1B32;
    text-decoration: underline;
}

/* Compact Hero Search Area */
.hero-search-wrapper {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(8, 18, 38, 0.06);
}

.hero-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-field-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0 14px;
    height: 46px;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-field-group:focus-within {
    border-color: #9E1B32;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(158, 27, 50, 0.1);
}

.search-field-group.field-query {
    flex: 1 1 55%;
}

.search-field-group.field-location {
    flex: 0 1 150px;
}

.field-icon {
    font-size: 15px;
    margin-right: 8px;
    color: #64748B;
    flex-shrink: 0;
}

.search-field-group input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: #0F172A;
    outline: none;
}

.search-field-group input::placeholder {
    color: #94A3B8;
}

.btn-search-hero {
    height: 46px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    background-color: #9E1B32;
    color: #FFFFFF;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-search-hero:hover {
    background-color: #b92a43;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(158, 27, 50, 0.3);
}

.hero-popular-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 12px;
    font-weight: 700;
    color: #081226;
    white-space: nowrap;
}

.tags-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 11.5px;
    font-weight: 500;
    color: #334155;
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: #9E1B32;
    color: #FFFFFF;
    border-color: #9E1B32;
}

/* Right Side Photo Card */
.hero-visual-photo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-image-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(8, 18, 38, 0.12);
    border: 3px solid #FFFFFF;
    width: 100%;
    max-width: 540px;
    height: 420px;
    background: #081226;
}

.hero-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-image-card:hover .hero-main-photo {
    transform: scale(1.02);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 38, 0.1) 0%, rgba(8, 18, 38, 0.65) 100%);
    pointer-events: none;
}

.hero-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge-text strong {
    display: block;
    font-size: 13.5px;
    color: #081226;
    font-weight: 800;
}

.badge-text span {
    display: block;
    font-size: 11.5px;
    color: #64748B;
}

.badge-chip {
    background: #9E1B32;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ==========================================================================
   Departments Section
   ========================================================================== */
.departments-section {
    padding: 70px 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EDF2F7;
}

.section-header-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px auto;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #9E1B32;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    color: #081226;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 15px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dept-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(8, 18, 38, 0.09);
    border-color: rgba(158, 27, 50, 0.3);
}

.dept-card-img {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #081226;
}

.dept-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.dept-card:hover .dept-card-img img {
    transform: scale(1.05);
}

.dept-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.dept-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #081226;
    margin: 0 0 6px 0;
}

.dept-card-body p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.dept-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #9E1B32;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.dept-card:hover .dept-card-link {
    gap: 8px;
}

/* ==========================================================================
   Latest Jobs Section
   ========================================================================== */
.latest-jobs-section {
    padding: 70px 0;
    background: #F8FAFC;
    border-bottom: 1px solid #EDF2F7;
}

.latest-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.home-job-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(8, 18, 38, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.home-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 18, 38, 0.08);
    border-color: #9E1B32;
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.job-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #081226;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.job-card-company {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.job-card-dept-tag {
    background: rgba(158, 27, 50, 0.08);
    color: #9E1B32;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 14px;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.job-card-date {
    font-size: 11.5px;
    color: #94A3B8;
}

.job-card-cta {
    font-size: 12.5px;
    font-weight: 700;
    color: #9E1B32;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-center-cta {
    text-align: center;
}

/* ==========================================================================
   Job Seeker & Employer Split Section
   ========================================================================== */
.portal-roles-section {
    padding: 70px 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EDF2F7;
}

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

.role-split-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(8, 18, 38, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.role-split-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(8, 18, 38, 0.08);
}

.role-card-photo {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #081226;
}

.role-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.role-card-content {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.role-card-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #081226;
    margin: 0 0 8px 0;
}

.role-card-content p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.role-points-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.role-point-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #081226;
}

.role-point-item span {
    color: #10B981;
    font-weight: 800;
}

.role-cta-btn {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
}

/* ==========================================================================
   Automation & Planning Overview Section
   ========================================================================== */
.services-overview-section {
    padding: 70px 0;
    background: #F8FAFC;
    border-bottom: 1px solid #EDF2F7;
}

.services-showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.services-photo-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(8, 18, 38, 0.08);
    border: 2px solid #FFFFFF;
    background: #081226;
    height: 380px;
}

.services-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-content-wrap h2 {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    color: #081226;
    margin: 0 0 10px 0;
}

.services-content-wrap p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.services-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.service-feature-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.service-feature-item strong {
    display: block;
    font-size: 13.5px;
    color: #081226;
    margin-bottom: 4px;
}

.service-feature-item span {
    display: block;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.btn-primary {
    background: #9E1B32;
    color: #fff;
    border: 1px solid #9E1B32;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #b92a43;
    border-color: #b92a43;
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    border: 1px solid #9E1B32;
    color: #9E1B32;
    background: #fff;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #9E1B32;
    color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .hero-image-card {
        max-width: 100%;
        height: 340px;
    }

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

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

    .services-photo-wrap {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-jobs-portal {
        padding: 24px 0 36px 0;
    }

    .hero-dual-tracks {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-field-group.field-query,
    .search-field-group.field-location,
    .btn-search-hero {
        width: 100%;
        flex: auto;
    }

    .track-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-track-primary {
        width: 100%;
        justify-content: center;
    }

    .hero-micro-link {
        text-align: center;
        padding-top: 4px;
    }

    .tags-list {
        gap: 6px;
    }

    .tag-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .dept-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .latest-jobs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    .role-points-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .role-cta-btn {
        width: 100%;
        text-align: center;
    }

    .services-feature-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-track-card,
    .dept-card,
    .home-job-card,
    .role-split-card,
    .btn-search-hero,
    .tag-pill,
    .btn-track-primary,
    .hero-main-photo,
    .dept-card-img img {
        transition: none !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-track-card,
    .showcase-item,
    .btn-search-hero,
    .tag-pill,
    .btn-track-primary {
        transition: none !important;
        transform: none !important;
    }
}

.dashboard {
    position: absolute;
    right: 6%;
    top: 100px;
    width: 235px;
    height: 145px;
    background: #0e1b36;
    border: 1px solid #61708d;
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .3)
}

.dash-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px
}

.dash-top span {
    color: #9E1B32
}

.chart {
    height: 76px;
    margin-top: 12px;
    display: flex;
    align-items: flex-end;
    gap: 9px;
    border-bottom: 1px solid #506079
}

.chart i {
    display: block;
    width: 18px;
    background: #9E1B32;
    border-radius: 3px 3px 0 0
}

.chart i:nth-child(1) {
    height: 25%
}

.chart i:nth-child(2) {
    height: 45%
}

.chart i:nth-child(3) {
    height: 38%
}

.chart i:nth-child(4) {
    height: 68%
}

.chart i:nth-child(5) {
    height: 52%
}

.chart i:nth-child(6) {
    height: 88%
}

.dash-cards {
    display: flex;
    gap: 5px;
    margin-top: 8px
}

.dash-cards span {
    font-size: 7px;
    background: #182744;
    padding: 4px 6px;
    border-radius: 3px
}

.scissors {
    position: absolute;
    right: 26%;
    bottom: 38px;
    font-size: 62px;
    color: #fff;
    transform: rotate(-18deg)
}

.thread {
    position: absolute;
    height: 2px;
    background: #9E1B32;
    width: 170px;
    transform: rotate(-22deg)
}

.thread-1 {
    right: 0;
    top: 55px
}

.thread-2 {
    right: 40px;
    top: 75px
}

.quick {
    background: #fff;
    border-bottom: 1px solid #e2e8f0
}

.quick-grid {
    display: grid;
    grid-template-columns: 120px repeat(4, 1fr);
    gap: 20px;
    padding: 14px 0
}

.quick-title {
    font-size: 16px;
    line-height: 1.15;
    padding: 10px 0
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
    transition: .2s
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: #9E1B32
}

.quick-card .icon {
    font-size: 25px;
    color: #800020
}

.quick-card span:nth-child(2) {
    flex: 1
}

.quick-card b,
.quick-card small {
    display: block
}

.quick-card small {
    font-size: 10px;
    color: #64748b;
    line-height: 1.35;
    margin-top: 4px
}

.quick-card em {
    font-size: 24px;
    color: #9E1B32;
    font-style: normal
}

.capabilities {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0
}

.capability-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.8fr 1.8fr 1.7fr;
    gap: 20px
}

.cap-intro {
    padding-right: 20px;
    border-right: 1px solid #e2e8f0
}

.cap-intro h2 {
    font-size: 23px;
    line-height: 1.15
}

.cap-intro h2 span {
    color: #800020
}

.cap-intro p:not(.section-kicker) {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5
}

.text-btn {
    display: inline-block;
    background: #9E1B32;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700
}

.cap-group {
    padding: 0 15px;
    border-right: 1px solid #e2e8f0
}

.cap-group:last-child {
    border: 0
}

.cap-group h3 {
    text-align: center;
    color: #800020;
    font-size: 13px;
    margin-bottom: 15px
}

.cap-group:nth-child(3) h3 {
    color: #0B132B
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px
}

.mini-grid div {
    text-align: center;
    font-size: 20px;
    color: #0B132B
}

.mini-grid small {
    display: block;
    font-size: 8px;
    line-height: 1.2;
    color: #334155;
    margin-top: 6px
}

.content-section {
    padding: 25px 0
}

.three-panels {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 1.05fr;
    gap: 18px
}

.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04)
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.panel-head h2 {
    font-size: 15px
}

.panel-head a {
    font-size: 9px
}

.news-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7
}

.news-thumb {
    width: 78px;
    height: 45px;
    border-radius: 5px;
    background: linear-gradient(135deg, #cbd5e1, #800020);
    flex: none
}

.news-item b {
    font-size: 9px;
    line-height: 1.3;
    display: block
}

.news-item small {
    font-size: 8px;
    color: #94a3b8
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px
}

th,
td {
    text-align: left;
    padding: 7px 5px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap
}

th {
    font-size: 8px;
    background: #f8fafc
}

.up {
    color: #15803d
}

.down {
    color: #dc2626
}

.note {
    font-size: 7px;
    color: #94a3b8
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.service {
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 5px
}

.service b {
    font-size: 9px
}

.service small {
    display: block;
    font-size: 7px;
    color: #64748b;
    margin-top: 3px
}

.cta {
    padding: 0 0 25px
}

.cta-inner {
    background: linear-gradient(90deg, #800020, #a51034);
    color: #fff;
    border-radius: 8px;
    padding: 17px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cta h2 {
    font-size: 19px
}

.cta p {
    margin: 4px 0 0;
    font-size: 10px;
    opacity: .9
}

footer {
    background: #071328;
    color: #fff;
    padding: 25px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1fr 1.15fr;
    gap: 28px;
    padding-bottom: 22px
}

.footer-brand img {
    display: block;
    width: auto;
    height: 72px;
    max-width: 350px;
    object-fit: contain;
    object-position: left
}

.footer-grid h4 {
    font-size: 11px;
    margin-bottom: 11px
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: #cbd5e1;
    font-size: 9px;
    line-height: 1.7;
    margin: 0
}

.footer-brand p {
    max-width: 260px;
    margin-top: 8px
}

.socials {
    display: flex;
    gap: 7px;
    margin-top: 10px
}

.socials span {
    border: 1px solid #475569;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9px
}

.newsletter {
    display: flex;
    margin-top: 10px
}

.newsletter input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 9px;
    border-radius: 4px 0 0 4px
}

.newsletter button {
    width: 42px;
    border: 0;
    background: #9E1B32;
    color: #fff;
    border-radius: 0 4px 4px 0
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 10px max(24px, calc((100% - 1380px)/2));
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #94a3b8
}

@media(max-width:1100px) {
    .nav {
        gap: 16px
    }

    .brand img {
        height: 60px
    }

    .hero h1 {
        font-size: 34px
    }

    .capability-grid {
        grid-template-columns: 1fr 1fr
    }

    .cap-intro {
        border: 0
    }

    .three-panels {
        grid-template-columns: 1fr
    }

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

@media(max-width:800px) {
    .container {
        width: min(100% - 28px, 680px)
    }

    .nav {
        display: none;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 88px;
        background: #081226;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0 0 10px 10px
    }

    .nav.open {
        display: flex
    }

    .menu-toggle {
        display: block
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 38px 0 24px
    }

    .hero h1 {
        font-size: 34px
    }

    .hero-visual {
        min-height: 290px
    }

    .stats {
        gap: 18px;
        flex-wrap: wrap
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr
    }

    .quick-title {
        grid-column: 1/-1
    }

    .capability-grid {
        grid-template-columns: 1fr
    }

    .cap-intro,
    .cap-group {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 0
    }

    .mini-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

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

@media(max-width:500px) {
    .brand img {
        height: 50px
    }

    .hero h1 {
        font-size: 28px
    }

    .hero-text {
        font-size: 13px
    }

    .hero-visual {
        min-height: 240px
    }

    .machine {
        left: 14%;
        top: 55px;
        width: 180px;
        height: 100px
    }

    .dashboard {
        right: 3%;
        top: 85px;
        width: 170px;
        height: 110px
    }

    .scissors {
        right: 18%;
        bottom: 20px;
        font-size: 42px
    }

    .quick-grid {
        grid-template-columns: 1fr
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 6px
    }

    .nav-cta {
        width: 100%;
        text-align: center
    }

    .hero-actions {
        flex-wrap: wrap
    }
}

.mini-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 12px !important
}

.mini-grid div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 11px !important
}

.mini-grid small {
    font-size: 9px !important;
    margin-top: 4px !important;
    font-weight: 500 !important
}

.mini-grid div span {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #800020;
    background: #f8fafc;
    transition: all .2s ease;
    margin-bottom: 4px
}

.mini-grid div:hover span {
    border-color: #9E1B32;
    background: #9E1B32;
    color: #fff
}

.brand {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-right: 30px
}

.brand::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1000px;
    right: 20px;
    background: #fff;
    z-index: -1
}

.brand::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -10px;
    width: 30px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -1
}

/* ==========================================================================
   AUTHENTICATED USER NAVBAR DROPDOWN & SETTINGS
   ========================================================================== */

.dg-user-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 105;
}

.dg-user-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 5px 14px 5px 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dg-user-pill-btn:hover,
.dg-user-dropdown-wrap.active .dg-user-pill-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dg-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9E1B32, #c92a4a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(158, 27, 50, 0.35);
    flex-shrink: 0;
}

.dg-user-name {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.dg-chevron-icon {
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.dg-user-dropdown-wrap.active .dg-chevron-icon {
    transform: rotate(180deg);
}

/* User Menu Dropdown Panel */
.dg-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #0d172e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-user-dropdown-wrap.active .dg-user-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dg-user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.dg-user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9E1B32, #c92a4a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(158, 27, 50, 0.4);
    flex-shrink: 0;
}

.dg-user-menu-info {
    min-width: 0;
    flex: 1;
}

.dg-user-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.dg-user-menu-email {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 1px;
}

.dg-user-menu-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 5px;
}

.dg-user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dg-user-menu-links {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dg-user-menu-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #e2e8f0 !important;
    text-decoration: none;
    opacity: 1 !important;
    border: none !important;
    transition: all 0.15s ease;
}

.dg-user-menu-item svg {
    color: #94a3b8;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.dg-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff !important;
}

.dg-user-menu-item:hover svg {
    color: #f43f5e;
}

.dg-user-menu-footer {
    padding: 4px 8px;
}

.dg-user-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    background: none;
    border: none;
    color: #fda4af;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dg-user-logout-btn svg {
    color: #f43f5e;
    flex-shrink: 0;
}

.dg-user-logout-btn:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #ffe4e6;
}

@media (max-width: 800px) {
    .dg-user-dropdown-wrap {
        width: 100%;
        margin-top: 8px;
    }
    .dg-user-pill-btn {
        width: 100%;
        justify-content: space-between;
    }
    .dg-user-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }
}