/********** Job Portal CSS **********/
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --light: #f8fafc;
    --dark: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.10);
    --card: #ffffff;
    --soft: #eef2ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: #1e293b;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease-out, visibility 0s linear .35s;
    z-index: 99999;
}

    #spinner.show {
        transition: opacity .35s ease-out, visibility 0s linear 0s;
        visibility: visible;
        opacity: 1;
    }

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all .25s ease;
    border-radius: 14px;
}

    .btn:focus {
        box-shadow: none !important;
    }

    .btn.btn-primary {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

        .btn.btn-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
        }

    .btn.btn-secondary {
        background: var(--secondary);
        border-color: var(--secondary);
        color: #fff;
    }

        .btn.btn-secondary:hover {
            filter: brightness(0.95);
        }

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

    .btn-outline-primary:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 14px;
}

.btn-square {
    width: 40px;
    height: 40px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

/* Navbar */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 6px;
    transition: .25s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light {
    background: rgba(255,255,255,0.94) !important;
    backdrop-filter: blur(12px);
}

    .navbar-light.sticky-top {
        top: -100px;
        transition: .35s ease;
    }

    .navbar-light .navbar-brand,
    .navbar-light a.btn {
        height: 35px;
        font-size:16px;
    }

    .navbar-light .navbar-brand {
        padding: 0;
    }

        .navbar-light .navbar-brand img {
            max-height: 58px;
            width: auto;
            object-fit: contain;
        }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 16px;
        padding: 22px 0;
        color: #334155;
        font-size: 15px;
        font-weight: 600;
        text-transform: none;
        outline: none;
    }

        .navbar-light .navbar-nav .nav-link:hover,
        .navbar-light .navbar-nav .nav-link.active {
            color: var(--primary);
        }

        .navbar-light .navbar-nav .nav-link i {
            margin-right: 6px;
        }

    .navbar-light .navbar-nav {
        align-items: center;
    }

    .navbar-light .dropdown-menu {
        border: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(15,23,42,0.12);
        border-radius: 16px;
        padding: 10px;
        overflow: hidden;
    }

    .navbar-light .dropdown-item {
        border-radius: 10px;
        padding: 10px 14px;
        font-weight: 500;
        color: #334155;
    }

        .navbar-light .dropdown-item:hover {
            background: #eff6ff;
            color: var(--primary);
        }

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: translateY(12px);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav {
        border-top: 1px solid #e2e8f0;
        margin-top: 10px;
        padding-top: 10px;
        align-items: flex-start;
    }

        .navbar-light .navbar-nav .nav-link {
            margin-right: 0;
            padding: 12px 0;
        }

    .navbar-light .navbar-brand,
    .navbar-light a.btn {
        height: auto;
    }
}

/* Top Bar / Job Portal Header */
.site-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
    font-size: 13px;
}

    .site-topbar a {
        color: #fff;
    }

        .site-topbar a:hover {
            color: #dbeafe;
        }

/* Hero / Slider */
.job-hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15,23,42,0.82), rgba(37,99,235,0.70)), url('../img/hero-bg.jpg') center center / cover no-repeat;
}

    .job-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 35%);
        pointer-events: none;
    }

    .job-hero .container {
        position: relative;
        z-index: 2;
    }

.job-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.16;
}

.job-hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-title {
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    max-width: 760px;
    letter-spacing: -0.03em;
}

.hero-text {
    color: rgba(255,255,255,0.86);
    font-size: 1.02rem;
    max-width: 620px;
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat {
    min-width: 135px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    color: #fff;
}

    .hero-stat h4 {
        margin: 0;
        font-weight: 800;
        font-size: 1.45rem;
        color: #fff;
    }

    .hero-stat span {
        font-size: .9rem;
        color: rgba(255,255,255,0.82);
    }

.hero-search-card {
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 20px 50px rgba(15,23,42,0.16);
    backdrop-filter: blur(12px);
}

.hero-select {
    height: 54px !important;
    border-radius: 14px !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    background-color: #f8fafc !important;
}

.hero-btn {
    height: 54px;
    border-radius: 14px;
    font-weight: 700;
    background: var(--dark);
    border-color: var(--dark);
}

    .hero-btn:hover {
        background: #111827;
        border-color: #111827;
    }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .hero-tags span {
        padding: 9px 13px;
        background: #f1f5f9;
        color: #334155;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
    }

/* Header Carousel fallback if used */
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 12px solid var(--primary);
}

    .header-carousel .container::before,
    .header-carousel .container::after,
    .page-header .container::before,
    .page-header .container::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 90px;
        height: 12px;
        background: var(--primary);
    }

    .header-carousel .container::after,
    .page-header .container::after {
        top: 100%;
        margin-top: -12px;
    }

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin: 7px 0;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        background: rgba(15,23,42,0.25);
        border: 1px solid rgba(255,255,255,0.75);
        border-radius: 14px;
        font-size: 22px;
        transition: .25s;
        backdrop-filter: blur(10px);
    }

        .header-carousel .owl-nav .owl-prev:hover,
        .header-carousel .owl-nav .owl-next:hover {
            background: var(--primary);
            border-color: var(--primary);
        }

.page-header {
    background: linear-gradient(rgba(15,23,42,.55), rgba(15,23,42,.55)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
    }

        .header-carousel .owl-carousel-item img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .header-carousel .owl-carousel-item p {
            font-size: 14px !important;
            font-weight: 400 !important;
        }

        .header-carousel .owl-carousel-item h1 {
            font-size: 28px;
            font-weight: 700;
        }

    .hero-search-card {
        padding: 20px;
        border-radius: 22px;
    }

    .job-hero {
        min-height: auto;
        padding: 70px 0 40px;
    }
}

/* Section headings */
.section-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(37,99,235,0.10);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .25px;
}

.section-head h1,
.section-head h2,
.section-head h3,
.section-head h4,
.section-head h5 {
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* About */
.about-bg {
    background-image: radial-gradient(circle at center, rgba(37, 99, 235, 0.16) 1px, transparent 1px);
    background-size: 14px 14px;
}

.bg-soft {
    background: #f8fafc;
}

.about-visual {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.about-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-weight: 600;
    color: #334155;
}

    .about-point i {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(37,99,235,0.10);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }

/* Category */
.cat-item {
    display: block;
    height: 100%;
    background: var(--card);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    border: 1px solid transparent;
    transition: all .25s ease;
    color: inherit;
}

    .cat-item:hover {
        transform: translateY(-6px);
        border-color: rgba(37,99,235,.18);
        box-shadow: 0 18px 34px rgba(15,23,42,.10);
    }

.job-cat-card {
    border-radius: 22px;
    padding: 22px !important;
}

.cat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.10);
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 16px;
}

.cat-item h6 {
    font-weight: 700;
    color: var(--dark);
}

.cat-item p {
    color: var(--muted);
}

/* Job Listing */
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}

.job-item,
.job-item-modern {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    transition: all .25s ease;
}

    .job-item:hover,
    .job-item-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(15,23,42,.08);
        border-color: rgba(37,99,235,.18);
    }

.job-item-modern {
    padding: 24px;
}

.job-logo-wrap {
    flex-shrink: 0;
}

.job-logo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    background: #fff;
    padding: 6px;
}

.job-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: .95rem;
}

    .job-meta-item i {
        color: var(--primary);
    }

.job-heart {
    border-radius: 14px;
    width: 46px;
    height: 46px;
}

.job-apply-btn {
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
}

.browse-more-btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 12px 22px;
}

/* Testimonial */
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .35s;
}

.testimonial-item-modern,
.testimonial-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

    .testimonial-carousel .owl-item.center .testimonial-item * {
        color: #FFFFFF !important;
    }

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    transition: .25s;
}

    .testimonial-carousel .owl-dot.active {
        background: var(--dark);
        border-color: var(--primary);
    }

.testimonial-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

    .footer .btn.btn-social {
        margin-right: 6px;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 12px;
        transition: .25s;
        background: rgba(255,255,255,0.04);
    }

        .footer .btn.btn-social:hover {
            background: rgba(255,255,255,0.10);
            color: #fff;
            border-color: rgba(255,255,255,0.28);
        }

    .footer .btn.btn-link {
        display: block;
        margin-bottom: 7px;
        padding: 0;
        text-align: left;
        font-size: 15px;
        font-weight: 500;
        text-transform: none;
        color: #cbd5e1;
        transition: .25s;
    }

        .footer .btn.btn-link::before {
            position: relative;
            content: "\f105";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-right: 10px;
            color: var(--primary);
        }

        .footer .btn.btn-link:hover {
            color: #fff;
            letter-spacing: .3px;
            box-shadow: none;
        }

    .footer .form-control {
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.04);
        color: #fff;
        border-radius: 14px;
        box-shadow: none !important;
    }

        .footer .form-control::placeholder {
            color: #94a3b8;
        }

    .footer .copyright {
        padding: 22px 0;
        font-size: 14px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

        .footer .copyright a {
            color: #fff;
        }

    .footer .footer-menu a {
        margin-right: 15px;
        padding-right: 15px;
        border-right: 1px solid rgba(255, 255, 255, .1);
    }

        .footer .footer-menu a:last-child {
            margin-right: 0;
            padding-right: 0;
            border-right: none;
        }

/* Custom controls */
.custom_input {
    height: 52px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

    .custom_input:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.10) !important;
    }

.check_btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
}

    .check_btn:hover {
        background: var(--primary-dark);
        color: #fff;
    }

/* Utility */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(15,23,42,.08) !important;
}

/* Validation */
.field-validation-error,
.validation-summary-errors {
    color: var(--danger);
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stat {
        width: 100%;
    }

    .job-logo {
        width: 72px;
        height: 72px;
    }

    .about-img {
        height: 180px;
    }

    .job-meta {
        gap: 8px 12px;
    }

    .footer .btn.btn-social {
        margin-bottom: 8px;
    }
}
