:root {
    --aj-navy: #0e1c3f;
    --aj-blue: #1d4ed8;
    --aj-blue-dark: #1e3a8a;
    --aj-gold: #e0a106;
    --aj-ink: #142033;
    --aj-muted: #5c6b80;
    --aj-line: #e6edf5;
    --aj-surface: #f5f7fb;
    --aj-shadow: 0 12px 32px rgba(14, 28, 63, 0.08);
}

body {
    color: var(--aj-ink);
    background: #fff;
}

.header-padding {
    display: none;
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: auto;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--aj-line);
    box-shadow: 0 1px 0 rgba(14, 28, 63, 0.03);
}

header.site-header .site-logo img {
    display: block;
    height: 54px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

header.site-header .navbar .nav-link {
    color: var(--aj-navy);
    font-size: 15px;
    font-weight: 600;
}

header.site-header .navbar .nav-link.active,
header.site-header .navbar .nav-link:hover {
    color: var(--aj-blue);
}

header.site-header .btn-primary,
.btn-primary {
    background: var(--aj-blue);
    border-color: var(--aj-blue);
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
}

header.site-header .btn-primary:hover,
.btn-primary:hover {
    background: var(--aj-blue-dark);
    border-color: var(--aj-blue-dark);
}

header.site-header .btn-secondary {
    background: #fff;
    color: var(--aj-navy) !important;
    border: 1px solid var(--aj-line);
    border-radius: 10px;
}

header.site-header .btn-secondary:hover,
header.site-header .btn-secondary:focus,
header.site-header .btn-secondary:active {
    background: var(--aj-navy);
    color: #fff !important;
    border-color: var(--aj-navy);
}

.aj-hero {
    position: relative;
    padding: 72px 0 36px;
    background: var(--aj-navy) center / cover no-repeat;
    color: #fff;
}

.aj-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 18, 42, 0.88), rgba(29, 78, 216, 0.55));
}

.aj-hero .container {
    position: relative;
    z-index: 1;
}

.aj-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(224, 161, 6, 0.18);
    color: #ffe08a;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aj-hero h1 {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 700;
}

.aj-hero .aj-lead {
    max-width: 640px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.aj-search {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--aj-shadow);
}

.aj-search label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 12px;
    color: var(--aj-muted);
}

.aj-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--aj-ink);
    font-size: 15px;
}

.aj-search button {
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    background: var(--aj-blue);
    color: #fff;
    font-weight: 700;
}

.aj-search button:hover {
    background: var(--aj-blue-dark);
}

.aj-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
}

.aj-hero-actions a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.aj-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.aj-stat {
    padding: 18px 16px;
    background: #fff;
    color: var(--aj-ink);
    border-radius: 16px;
    box-shadow: var(--aj-shadow);
}

.aj-stat strong {
    display: block;
    color: var(--aj-navy);
    font-size: 28px;
    line-height: 1.1;
}

.aj-stat span {
    color: var(--aj-muted);
    font-size: 14px;
}

.section-heading h2,
.home-page .section-heading h2 {
    color: var(--aj-navy) !important;
    background: transparent !important;
    font-weight: 700;
}

.home-page .popular-job-categories-section,
.home-page .latest-job-section,
.home-page .recent-blog-section,
.home-page .notice-section {
    background: var(--aj-surface);
}

.home-page .latest-job-section.bg-gray,
.home-page .recent-blog-section.bg-gray {
    background: #fff;
}

.job-categories-card .card,
.job-card .card,
.blog-card .card,
.latest-job-left {
    border: 1px solid var(--aj-line) !important;
    border-radius: 16px !important;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.job-categories-card .card:hover,
.job-card .card:hover,
.blog-card .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aj-shadow);
}

.job-card .card-img,
.job-categories-card .card-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--aj-surface);
}

.hero-section {
    background: linear-gradient(180deg, #eef3fb, #fff) !important;
}

.hero-section h1 {
    color: var(--aj-navy);
    font-weight: 700;
}

footer.site-footer {
    background: var(--aj-navy) !important;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 56px;
}

footer.site-footer .footer-logo img {
    height: 54px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}

footer.site-footer h3,
footer.site-footer .text-secondary {
    color: #fff !important;
}

footer.site-footer a,
footer.site-footer .text-gray,
footer.site-footer p {
    color: rgba(255, 255, 255, 0.74) !important;
}

footer.site-footer a:hover {
    color: #fff !important;
}

footer.site-footer .email {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

footer.site-footer .email input {
    background: transparent;
    color: #fff;
}

footer.site-footer .email input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

footer.site-footer .social-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

footer.site-footer .copy-right {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

header.site-header .site-logo {
    display: block;
    max-width: 100%;
}

header.site-header .navbar-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid var(--aj-line) !important;
    border-radius: 12px;
}

.aj-search label,
.aj-search button {
    min-height: 48px;
}

.login-page form,
.register-page form,
.apply-job-page form,
.contactus-page .contact-us,
.latest-job-left,
.find-job {
    background: #fff !important;
    border: 1px solid var(--aj-line);
    border-radius: 20px;
    box-shadow: var(--aj-shadow);
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 12px !important;
    border-color: var(--aj-line);
    font-size: 16px;
}

.find-job input,
.latest-job-left input,
.latest-job-left select,
.chosen-container {
    width: 100%;
    max-width: 100%;
}

.find-job input {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--aj-line);
    border-radius: 12px;
    background: var(--aj-surface);
    font-size: 16px;
}

.job-categories-card .card,
.job-card .card,
.job-categories-card .card .col-9,
.job-card .card-body {
    min-width: 0;
}

.job-categories-card .card {
    gap: 12px;
}

.job-categories-card .card .col-9 {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

.job-categories-card .card-title {
    font-size: 16px;
    line-height: 1.35;
}

.job-categories-card .card-title,
.job-card .card-title,
.card-title {
    overflow-wrap: anywhere;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.aj-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-bottom: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--aj-navy);
    color: #fff;
    font-weight: 700;
}

footer.site-footer .email input {
    flex: 1;
    min-width: 0;
    width: auto;
}

footer.site-footer a,
footer.site-footer p {
    overflow-wrap: anywhere;
}

.slick-slider,
.slider-test-section,
.carousel {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1199px) {
    header.site-header .navbar .nav-item .nav-link {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 991px) {
    header.site-header .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--aj-line);
        border-radius: 16px;
        box-shadow: var(--aj-shadow);
        z-index: 1040;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }

    header.site-header .navbar-nav,
    header.site-header .header-btn-grp,
    header.site-header .header-btn-grp .navbar-nav {
        align-items: stretch !important;
        width: 100%;
        margin: 0;
    }

    header.site-header .navbar .nav-item .nav-link,
    header.site-header .btn-primary,
    header.site-header .btn-secondary {
        display: block;
        width: 100%;
        margin: 0 0 6px;
        padding: 12px 14px !important;
        text-align: left;
    }

    header.site-header .submenu {
        position: static !important;
        display: block !important;
        width: 100%;
        min-width: 0;
        margin: -2px 0 8px;
        padding: 0 0 4px 8px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
    }

    header.site-header .submenu .nav-link {
        color: var(--aj-muted) !important;
        font-weight: 500;
        background: transparent;
        border: 0;
    }

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

    .hero-section {
        padding-top: 28px !important;
        padding-bottom: 8px !important;
    }

    .hero-section .mb-md-5,
    .hero-section .mb-sm-4,
    .hero-section .pb-md-5,
    .hero-section .pb-4 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .latest-job-section .latest-job-left {
        display: block;
        max-height: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        border-width: 0;
        box-shadow: none;
    }

    .latest-job-section .latest-job-left.is-open {
        max-height: none;
        margin-bottom: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        overflow: visible;
        border-width: 1px;
        box-shadow: var(--aj-shadow);
    }

    .latest-job-left .chosen-container,
    .latest-job-left .irs {
        width: 100% !important;
    }

    .latest-job-left > .form-group > label {
        display: block;
    }

    .aj-filter-toggle {
        display: flex;
    }

    .py-100 {
        padding-top: 28px !important;
        padding-bottom: 48px !important;
    }

    .py-60,
    .py-80 {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
}

@media (max-width: 767px) {
    .aj-search {
        grid-template-columns: 1fr;
    }

    .aj-search label {
        background: var(--aj-surface);
        border-radius: 12px;
    }

    .aj-search button {
        width: 100%;
    }

    .aj-hero {
        padding: 36px 0 24px;
    }

    .aj-hero .aj-lead {
        font-size: 16px;
    }

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

    .aj-hero-actions a {
        text-align: center;
    }

    header.site-header .site-logo img {
        height: 42px;
        max-height: 42px;
    }

    .login-page .hero-desc .desc,
    .job-details-page .hero-desc .desc,
    .login-page form .btn,
    .register-page form .btn,
    .apply-job-page form .btn,
    .job-details-page .hero-desc .btn {
        width: 100%;
    }

    .job-details-page .hero-desc .desc {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    footer.site-footer .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }

    footer.site-footer .row > :first-child,
    footer.site-footer .row > :last-child,
    footer.site-footer .copy-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    .aj-stats {
        grid-template-columns: 1fr;
    }
}
