
/* =========================================
   AGENCY CONNECT - PROFESSIONAL FRONTEND
   Theme: Light Blue, White & Black
========================================= */

:root {
    --bg-main: #f5f9fd;
    --white: #ffffff;
    --primary-blue: #1674b8;
    --primary-dark: #10578d;
    --light-blue: #eaf5ff;
    --dark: #111827;
    --text-muted: #64748b;
    --border-color: #e2eaf2;
    --card-shadow: 0 8px 30px rgba(20, 55, 90, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    transition: all 0.25s ease;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* =========================================
   NAVBAR
========================================= */

.navbar-custom {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 3px 18px rgba(20, 55, 90, 0.05);
    min-height: 82px;
}

.navbar-custom .navbar-brand {
    margin-right: 20px;
}

.brand-logo-box {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(20, 55, 90, 0.06);
}

.brand-logo-box img {
    display: block;
    object-fit: contain;
}

.navbar-custom .navbar-brand .fs-5 {
    color: var(--dark) !important;
    font-weight: 800;
}

.navbar-custom .navbar-brand .text-primary {
    color: var(--primary-blue) !important;
}

.navbar-custom .navbar-nav {
    align-items: center;
}

.navbar-custom .nav-link {
    color: #475569 !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 12px !important;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.text-primary {
    color: var(--primary-blue) !important;
}

.navbar-custom .nav-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 12px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 10px;
    transition: width 0.25s ease;
}

.navbar-custom .nav-link:hover::after {
    width: calc(100% - 24px);
}

.navbar-custom .navbar-toggler {
    border: 1px solid var(--border-color) !important;
    background: #f8fbff;
    padding: 8px 10px;
}

.navbar-custom .navbar-toggler-icon {
    filter: brightness(0.3);
}

.navbar-custom .btn {
    padding: 10px 22px !important;
    font-size: 0.85rem;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    position: relative;
    margin-top: 65px;
    padding: 85px 0 75px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(22, 116, 184, 0.12),
            transparent 35%
        ),
        linear-gradient(135deg, #eff7ff 0%, #ffffff 65%, #f0f8ff 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -180px;
    border: 45px solid rgba(22, 116, 184, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .badge {
    background: #dceeff !important;
    color: var(--primary-blue) !important;
    border: 1px solid #c8e4fa;
    font-size: 0.75rem !important;
    padding: 10px 16px !important;
}

.hero-section h1 {
    color: var(--dark);
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    line-height: 1.18 !important;
    font-weight: 800;
    letter-spacing: -1.8px !important;
}

.hero-section h1 .text-primary {
    color: var(--primary-blue) !important;
}

.hero-section p {
    color: var(--text-muted) !important;
    line-height: 1.9;
    font-size: 1rem !important;
}


/* =========================================
   JOB SEARCH BOX
========================================= */

.search-box-custom {
    display: block;
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #dce7f1;
    border-radius: 15px;
    padding: 14px !important;
    box-shadow: 0 12px 35px rgba(25, 75, 115, 0.10);
}

.search-box-custom .row {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box-custom .input-group {
    display: flex;
    width: 100%;
    min-width: 0;
}

.search-box-custom .input-group-text {
    color: var(--primary-blue) !important;
    background: #ffffff !important;
    border-color: #ced8e2;
}

.search-box-custom input {
    width: 100%;
    min-width: 0;
    height: 45px;
    color: var(--dark) !important;
    background: #ffffff !important;
    font-size: 0.88rem;
}

.search-box-custom input::placeholder {
    color: #94a3b8 !important;
}

.search-box-custom input:focus {
    box-shadow: none !important;
    border-color: var(--primary-blue);
}

.search-box-custom .btn {
    display: block;
    width: 100%;
    min-height: 45px;
    white-space: nowrap;
    border-radius: 10px !important;
}

@media (max-width: 767.98px) {
    .search-box-custom .row {
        display: block;
    }

    .search-box-custom .row > div {
        margin-bottom: 10px;
    }
}

/* =========================================
   CAREER MATCH CARD
========================================= */

.hero-section .position-relative.bg-white {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dfebf5 !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 55px rgba(30, 75, 115, 0.12) !important;
    padding: 35px !important;
    transition: transform 0.3s ease;
}

.hero-section .position-relative.bg-white:hover {
    transform: translateY(-5px);
}

.hero-section .rounded-circle {
    background: #e2f1ff !important;
    color: var(--primary-blue) !important;
}

.hero-section .progress {
    background: #e5edf5;
    border-radius: 30px;
}

.hero-section .bg-light {
    background: #f5f9fd !important;
    border: 1px solid #edf2f7;
}

/* =========================================
   STATISTICS SECTION
========================================= */

.stats-section {
    background: #ffffff;
    padding: 34px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-section h3 {
    color: var(--primary-blue) !important;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px !important;
}

.stats-section span {
    color: var(--text-muted) !important;
    font-size: 0.86rem !important;
}

.stats-section .border-end-md {
    border-color: var(--border-color) !important;
}

/* =========================================
   LATEST JOBS SECTION
========================================= */

#jobs {
    padding-top: 30px !important;
    padding-bottom: 45px !important;
}

#jobs h2 {
    color: var(--dark) !important;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.7px;
}

#jobs .row.mb-4 p {
    color: var(--text-muted) !important;
    font-size: 0.92rem;
}

#jobs .row.mb-4 > .col-md-4 a {
    color: var(--primary-blue) !important;
}

.card-job {
    position: relative;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    padding: 25px !important;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
    overflow: hidden;
}

.card-job::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-job:hover {
    transform: translateY(-6px);
    border-color: #b9d9f1 !important;
    box-shadow: 0 18px 40px rgba(22, 75, 120, 0.12);
}

.card-job:hover::before {
    transform: scaleX(1);
}

.card-job h5 {
    color: var(--dark) !important;
    font-size: 1rem !important;
    line-height: 1.5;
}

.card-job small {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

.job-icon-box {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: #eaf5ff;
    color: var(--primary-blue);
    border: 1px solid #d7eafa;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-job .badge.bg-light {
    background: #f6f9fc !important;
    color: #475569 !important;
    border-color: #e1e8f0 !important;
    font-weight: 500;
}

.card-job p {
    color: var(--text-muted) !important;
    line-height: 1.8;
}

.card-job .border-top {
    border-color: var(--border-color) !important;
}

.card-job .btn-outline-primary {
    border-radius: 30px !important;
    font-size: 0.78rem;
    padding: 8px 15px !important;
    white-space: nowrap;
}

.card-job .text-success {
    color: #15803d !important;
}

/* Empty jobs state */
#jobs .card:not(.card-job) {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}

/* =========================================
   FOOTER
========================================= */

footer {
    background: #111827 !important;
    color: #cbd5e1 !important;
    border-top: 4px solid var(--primary-blue) !important;
    padding-top: 60px !important;
    padding-bottom: 25px !important;
}

footer .navbar-brand .text-white {
    color: #ffffff !important;
}

footer .brand-logo-box {
    background: #ffffff !important;
    box-shadow: none;
}

footer p.text-muted {
    color: #aab7c8 !important;
    line-height: 1.9;
}

footer h6 {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px !important;
}

footer ul li a {
    color: #b8c5d5 !important;
    font-size: 0.84rem;
}

footer ul li a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

footer .d-flex.gap-3 a {
    color: #cbd5e1 !important;
    transition: all 0.25s ease;
}

footer .d-flex.gap-3 a:hover {
    color: #60b5f2 !important;
    transform: translateY(-3px);
}

footer hr {
    border-color: #64748b !important;
    opacity: 0.35;
}

footer .small.text-muted {
    color: #aab7c8 !important;
}

footer .text-primary {
    color: #60b5f2 !important;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (min-width: 992px) {
    .hero-section {
        padding-top: 95px;
        padding-bottom: 85px;
    }

    .navbar-custom .navbar-nav {
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .navbar-custom .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid var(--border-color);
        margin-top: 12px;
        padding: 12px 8px 8px;
    }

    .navbar-custom .navbar-nav {
        align-items: stretch;
        gap: 3px !important;
    }

    .navbar-custom .nav-link {
        padding: 10px 12px !important;
        border-radius: 8px;
    }

    .navbar-custom .nav-link:hover {
        background: #f0f7ff;
    }

    .navbar-custom .nav-link::after {
        display: none;
    }

    .navbar-custom .d-flex.align-items-center.gap-2 {
        padding: 10px 0 5px;
    }

    .hero-section {
        padding: 65px 0 55px;
    }

    .hero-section h1 {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .search-box-custom {
        flex-wrap: wrap;
    }

    .search-box-custom .input-group {
        flex: 1 1 40%;
    }

    .search-box-custom .vr {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        margin-top: 65px;
        padding: 48px 0 45px;
    }

    .hero-section h1 {
        font-size: 2.35rem;
        letter-spacing: -1.2px !important;
    }

    .hero-section p {
        font-size: 0.94rem !important;
    }

    .search-box-custom {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 14px !important;
    }

    .search-box-custom .input-group {
        flex: 1 1 auto;
        width: 100%;
        padding: 0 5px !important;
        margin-top: 0 !important;
    }

    .search-box-custom .input-group input {
        height: 44px;
    }

    .search-box-custom .btn {
        width: 100%;
        margin-top: 5px !important;
    }

    .stats-section {
        padding: 28px 0;
    }

    .stats-section h3 {
        font-size: 1.65rem;
    }

    .stats-section .border-end-md {
        border-right: 0 !important;
    }

    #jobs {
        margin-top: 30px !important;
        padding-top: 10px !important;
    }

    #jobs .row.mb-4 {
        align-items: flex-start !important;
    }

    .card-job {
        padding: 22px !important;
    }

    footer {
        padding-top: 42px !important;
    }
}

@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .navbar-custom .navbar-brand .fs-5 {
        font-size: 1rem !important;
    }

    .navbar-custom .brand-logo-box {
        width: 38px;
        height: 38px;
    }

    .navbar-custom .d-flex.align-items-center.gap-2 .btn {
        padding: 8px 15px !important;
    }
}


/* FIX: Agency Connect Navbar */
nav.navbar-custom {
    background: #ffffff !important;
    color: #111827 !important;
    min-height: 82px;
    z-index: 1030;
}

nav.navbar-custom .container {
    max-width: 1200px;
}

nav.navbar-custom .brand-logo-box {
    width: 44px !important;
    height: 44px !important;
    overflow: hidden;
    flex-shrink: 0;
}

nav.navbar-custom .brand-logo-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

nav.navbar-custom .navbar-brand,
nav.navbar-custom .navbar-brand .fs-5 {
    color: #111827 !important;
}

nav.navbar-custom .nav-link {
    color: #475569 !important;
}

nav.navbar-custom .nav-link:hover,
nav.navbar-custom .nav-link.text-primary {
    color: #1674b8 !important;
}

/* FIX: Main page background and text */
body {
    background: #f5f9fd !important;
    color: #111827;
}

.hero-section {
    background: linear-gradient(
        135deg,
        #eff7ff 0%,
        #ffffff 65%,
        #f0f8ff 100%
    ) !important;
}

@media (max-width: 991.98px) {
    nav.navbar-custom .navbar-collapse {
        background: #ffffff !important;
    }
}

.logo-box img,
.logo img,
.site-logo,
.navbar-brand img,
.brand img {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    object-fit: contain !important;
    display: block;
}

.logo-box,
.logo,
.navbar-brand,
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}