/* Home page restyle, loaded last. No new content: same sections, a cleaner and more current look.
   Big confident type, lots of white space, hairline borders instead of heavy shadows, one accent colour. */

/* ---- Hero: clean white, big type, pill search ---- */
.home-page .hero {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(66, 116, 217, .14), transparent 70%),
        #fff !important;
    min-height: 0 !important;
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px) !important;
}
.home-page .hero-title {
    font-size: clamp(2.5rem, 5.6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
}
.home-page .hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #52627f; max-width: 32em; }

.home-page .hero-search {
    border-radius: 999px !important;
    padding: 8px !important;
    background: #fff;
    border: 1px solid #d9e3f5;
    box-shadow: 0 1px 2px rgba(33, 62, 128, .06), 0 20px 40px -24px rgba(33, 62, 128, .4);
}
.home-page .hero-search .btn { border-radius: 999px !important; padding-inline: 28px; }
.home-page .hero-popular a { border-radius: 999px; background: #f1f5fc; border-color: transparent; }
.home-page .hero-popular a:hover { background: #e3ecfb; }

.home-page .hero-account {
    border-radius: 28px;
    border: 1px solid #e1e9f7;
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(33, 62, 128, .35);
}

/* ---- Rhythm: generous, even section spacing ---- */
.home-page .section { padding-block: clamp(56px, 7vw, 104px); }
.home-page .section-title h2,
.home-page .home-jobs-head h2,
.home-page .home-companies-head h2,
.home-page .home-blog-head h2,
.home-page .home-why-title {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    letter-spacing: -.04em;
    line-height: 1.1;
}
.home-page .eyebrow { letter-spacing: .14em; color: #4274d9; }

/* ---- Role / city chips ---- */
.home-page .home-role-chip {
    border-radius: 999px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #dbe5f6;
    box-shadow: none;
    transition: background .18s, border-color .18s, transform .18s;
}
.home-page .home-role-chip:hover { background: #f1f6ff; border-color: #4274d9; transform: translateY(-1px); }

/* ---- Cards: hairline border, soft lift on hover ---- */
.home-page .home-company-card,
.home-page .hjob-card,
.home-page .home-jobs-grid > * {
    border-radius: 22px;
    border: 1px solid #e1e9f7;
    box-shadow: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-page .home-company-card:hover,
.home-page .hjob-card:hover,
.home-page .home-jobs-grid > *:hover {
    transform: translateY(-3px);
    border-color: #b9cdf0;
    box-shadow: 0 24px 48px -30px rgba(33, 62, 128, .5);
}

/* ---- Why cards: tinted bento tiles ---- */
.home-page .home-why-card {
    border-radius: 24px;
    border: 0;
    box-shadow: none;
    padding: 28px 24px;
    transition: transform .22s ease;
}
.home-page .home-why-card:nth-child(1) { background: #eaf1fd; }
.home-page .home-why-card:nth-child(2) { background: #fdeef6; }
.home-page .home-why-card:nth-child(3) { background: #e8f8f0; }
.home-page .home-why-card:nth-child(4) { background: #fff4e1; }
.home-page .home-why-card:hover { transform: translateY(-3px); }
.home-page .home-why-icon { background: #fff; border-radius: 16px; width: 48px; height: 48px; box-shadow: 0 8px 16px -10px rgba(33, 62, 128, .5); }

/* ---- CV band and closing CTA: deep navy blocks ---- */
.home-page .home-cv-band {
    border-radius: 32px;
    border: 0;
    background: radial-gradient(520px 260px at 90% 0%, rgba(69, 214, 154, .22), transparent 70%), linear-gradient(135deg, #1b2f6e, #2d51a8);
    box-shadow: none;
}
.home-page .home-cv-band h2,
.home-page .home-cv-band p,
.home-page .home-cv-band .eyebrow,
.home-page .home-cv-band .muted { color: #fff !important; }
.home-page .home-cv-band p { opacity: .85; }
.home-page .home-cv-band .btn { background: #fff !important; color: #1b2f6e !important; box-shadow: none !important; border-radius: 999px; }

.home-page .home-cta-band {
    background: radial-gradient(60% 140% at 90% 0%, rgba(69, 214, 154, .2), transparent 60%), linear-gradient(120deg, #162a63, #2d51a8);
}
.home-page .home-cta-band .btn { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .home-page * { transition: none !important; }
}

/* ---- Dark theme ---- */
body.theme-dark .home-page .hero { background: radial-gradient(900px 420px at 85% -10%, rgba(66, 116, 217, .22), transparent 70%), #0d1330 !important; }
body.theme-dark .home-page .hero-search,
body.theme-dark .home-page .hero-account,
body.theme-dark .home-page .home-role-chip,
body.theme-dark .home-page .home-company-card,
body.theme-dark .home-page .hjob-card { background: #141c42; border-color: #243063; }
body.theme-dark .home-page .hero .lead { color: #aebbd6; }
body.theme-dark .home-page .home-why-card { background: #141c42 !important; }
body.theme-dark .home-page .home-why-icon { background: #1b2754; }

@media (max-width: 760px) {
    .home-page .hero-search { border-radius: 24px !important; }
    .home-page .section { padding-block: 44px; }
}

/* Eyebrows inside the navy blocks need to stay readable */
.home-page .home-cv-band .eyebrow,
.home-page .home-cta-band .eyebrow { color: #9fc0f5 !important; background: transparent !important; -webkit-text-fill-color: #9fc0f5; }

/* ---- Featured jobs: tinted band so the white cards stand out, roomier cards ---- */
.home-page .home-featured-jobs {
    background:
        radial-gradient(circle at 1px 1px, rgba(66, 116, 217, .16) 1px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(180deg, #eaf1fd 0%, #f4f8fe 100%) !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding-top: clamp(56px, 7vw, 96px) !important;
    padding-bottom: clamp(56px, 7vw, 96px) !important;
}
.home-page .home-jobs-grid { gap: 22px; }
.home-page .hjob-card { padding: 24px; gap: 18px; background: #fff; }
.home-page .hjob-logo { width: 52px; height: 52px; border-radius: 16px; }
.home-page .hjob-title { font-size: 1.12rem; letter-spacing: -.015em; }
.home-page .hjob-meta { padding-top: 14px; border-top: 1px dashed #dbe5f6; }
.home-page .hjob-salary, .home-page .hjob-pay { font-size: 1.02rem; }
.home-page .home-jobs-viewall {
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cfdcf3;
}
body.theme-dark .home-page .home-featured-jobs {
    background: radial-gradient(circle at 1px 1px, rgba(147, 180, 233, .12) 1px, transparent 0) 0 0 / 22px 22px, #0b1330 !important;
}
body.theme-dark .home-page .hjob-card { background: #101a3d; }
body.theme-dark .home-page .home-jobs-viewall { background: #141c42; border-color: #243063; }

/* Stronger band: navy behind the white cards */
.home-page .home-featured-jobs {
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .10) 1px, transparent 0) 0 0 / 22px 22px,
        radial-gradient(700px 320px at 90% 0%, rgba(69, 214, 154, .16), transparent 70%),
        linear-gradient(160deg, #162a63 0%, #2d51a8 100%) !important;
}
.home-page .home-featured-jobs .home-jobs-head h2,
.home-page .home-featured-jobs .home-jobs-head p { color: #fff !important; }
.home-page .home-featured-jobs .home-jobs-head-copy p:last-child { color: rgba(255, 255, 255, .78) !important; }
.home-page .home-featured-jobs .eyebrow { background: rgba(255, 255, 255, .14) !important; color: #d6e4fb !important; }
.home-page .home-featured-jobs .home-jobs-viewall { background: #fff; color: #1b2f6e; border-color: #fff; }
.home-page .home-featured-jobs .hjob-card { border-color: transparent; box-shadow: 0 24px 48px -28px rgba(8, 18, 54, .7); }
.home-page .home-featured-jobs .hjob-card:hover { border-color: #fff; }
.home-page .home-featured-jobs .eyebrow { -webkit-text-fill-color: #d6e4fb !important; background-image: none !important; }

/* Footer credit */
.footer .footer-heart { color: #e11d48; }
.footer .footer-credit a { color: inherit; text-decoration: none; }
.footer .footer-credit a:hover { text-decoration: underline; }

/* Footer bottom row: lighter and tidier. Quiet copyright, a soft pill for the credit, location on the end. */
.footer .footer-bottom { padding-top: 22px; gap: 14px; }
.footer .footer-bottom .tiny { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: #4b5d7e; }
.footer .footer-bottom .footer-credit {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); border: 1px solid rgba(66, 116, 217, .2);
    box-shadow: 0 1px 2px rgba(31, 52, 112, .06);
    color: #1f3470; font-weight: 600;
}
.footer .footer-credit a { color: inherit; font-weight: 700; }
.footer .footer-credit .footer-heart { font-size: 13px; animation: footer-beat 2.4s ease-in-out infinite; }
.footer .footer-bottom > .tiny:last-child { font-weight: 700; color: #1f3470; }
@keyframes footer-beat { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.22); } 80% { transform: scale(1); } 90% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .footer .footer-credit .footer-heart { animation: none; } }
body.theme-dark .footer .footer-bottom .tiny { color: #9fb0d4; }
body.theme-dark .footer .footer-bottom .footer-credit { background: rgba(255, 255, 255, .07); border-color: rgba(147, 180, 233, .22); box-shadow: none; color: #dbe6fb; }
body.theme-dark .footer .footer-bottom > .tiny:last-child { color: #dbe6fb; }
