/* ==========================================================
   Homepage - full redesign
   Uses --brand-red (currently blue #185FA5) as primary,
   with a dedicated red "Today." accent.
   ========================================================== */

:root {
    --accent-today: #D22B2B; /* the red "Today." accent, matches the logo */
    --hp-ink: #1A2240;
    --hp-ink-soft: #64707E;
    --hp-border: #E7EBF3;
    --hp-bg-soft: #F6F8FC;
}

.accent-today { color: var(--accent-today); }

/* ---------- Hero ---------- */
.hp-hero { background: linear-gradient(180deg, #F4F8FE 0%, #FFFFFF 100%); padding: 40px 0 20px; }
.hp-hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hp-hero-left { flex: 1 1 440px; }
.hp-hero-left h1 { font-size: 44px; line-height: 1.15; color: var(--hp-ink); margin: 0 0 18px; font-weight: 800; }
.hp-hero-sub { font-size: 17px; color: var(--hp-ink-soft); line-height: 1.6; max-width: 460px; margin-bottom: 24px; }
.hp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hp-btn-lg { padding: 14px 26px; font-size: 15px; }
.hp-hero-social { display: flex; align-items: center; gap: 14px; }
.hp-avatars { display: flex; }
.hp-av {
    width: 40px; height: 40px; border-radius: 50%; background: var(--brand-red-tint);
    border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-left: -10px;
}
.hp-av:first-child { margin-left: 0; }
.hp-social-num { font-weight: 800; color: var(--hp-ink); font-size: 18px; }
.hp-social-label { font-size: 13px; color: var(--hp-ink-soft); }

.hp-hero-right { flex: 1 1 380px; display: flex; justify-content: center; }
.hp-hero-visual { position: relative; width: 100%; max-width: 460px; }
.hp-hero-svg { width: 100%; height: auto; display: block; }

/* Center SVG icons inside all circular/rounded icon chips */
.hp-stat-ic svg, .hp-cat-ic svg, .hp-step-ic svg, .hp-float-ic svg,
.hp-cta-ic svg, .hp-job-loc svg, .hp-job-bookmark svg { display: block; }
.hp-job-loc { display: flex; align-items: center; gap: 5px; }
.hp-float {
    position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
    box-shadow: 0 12px 30px rgba(20,30,60,0.12); display: flex; align-items: center; gap: 10px;
}
.hp-float-label { font-size: 11px; color: var(--hp-ink-soft); }
.hp-float-num { font-size: 22px; font-weight: 800; color: var(--hp-ink); }
.hp-float-num.sm { font-size: 17px; }
.hp-float-trend { font-size: 11px; color: #16A34A; font-weight: 700; }
.hp-float-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hp-float-jobs { top: 4px; right: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.hp-float-success { bottom: 60px; left: 0; }
.hp-float-companies { bottom: 40px; right: 6px; }

/* ---------- Search ---------- */
.hp-search {
    background: #fff; border: 1px solid var(--hp-border); border-radius: 16px;
    padding: 22px; box-shadow: 0 8px 30px rgba(20,30,60,0.06); margin-top: -6px;
}
.hp-search-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: end; }
.hp-search-field label { display: block; font-size: 12px; color: var(--hp-ink-soft); margin-bottom: 6px; font-weight: 600; }
.hp-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--hp-border); border-radius: 10px; padding: 0 12px; background: #fff; }
.hp-input .ic { color: var(--brand-red); font-size: 15px; }
.hp-input input, .hp-input select { border: none; outline: none; background: transparent; padding: 12px 0; flex: 1; font-size: 14px; width: 100%; font-family: inherit; }
.hp-search-btn { padding: 13px 26px; height: 46px; white-space: nowrap; }
.hp-popular { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-popular > span { font-size: 13px; color: var(--hp-ink-soft); font-weight: 600; }

/* ---------- Stats strip ---------- */
.hp-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border: 1px solid var(--hp-border); border-radius: 16px;
    padding: 6px; margin-top: 22px; box-shadow: 0 6px 24px rgba(20,30,60,0.05);
}
.hp-stat { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--hp-border); }
.hp-stat:last-child { border-right: none; }
.hp-stat-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.hp-stat-num { font-size: 24px; font-weight: 800; color: var(--hp-ink); line-height: 1.1; }
.hp-stat-label { font-size: 13px; color: var(--hp-ink-soft); }

/* ---------- Section shells ---------- */
.hp-section { margin-top: 46px; }
.hp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hp-section-head h2 { font-size: 24px; color: var(--hp-ink); margin: 0; font-weight: 800; }
.hp-viewall { color: var(--brand-red); font-weight: 600; font-size: 14px; }
.hp-center { text-align: center; font-size: 26px; color: var(--hp-ink); font-weight: 800; margin-bottom: 30px; }
.hp-panel { background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; }

/* ---------- Categories ---------- */
.hp-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hp-cat {
    background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; padding: 22px 16px;
    text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hp-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,30,60,0.08); }
.hp-cat-ic { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.hp-cat-name { font-weight: 700; color: var(--hp-ink); font-size: 15px; }
.hp-cat-count { font-size: 12.5px; color: var(--hp-ink-soft); margin-top: 3px; }

/* ---------- Featured jobs ---------- */
.hp-jobs { background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; overflow: hidden; }
.hp-job {
    display: grid; grid-template-columns: 44px 2fr 1.3fr 1fr 1.2fr 0.8fr 30px;
    align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--hp-border);
    text-decoration: none;
}
.hp-job:last-child { border-bottom: none; }
.hp-job:hover { background: var(--hp-bg-soft); }
.hp-job-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-red-tint); color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.hp-job-title { font-weight: 700; color: var(--hp-ink); font-size: 15px; }
.hp-job-co { font-size: 13px; color: var(--hp-ink-soft); }
.hp-job-loc, .hp-job-time { font-size: 13px; color: var(--hp-ink-soft); }
.hp-job-type { font-size: 13px; color: #16A34A; font-weight: 600; }
.hp-job-salary { font-size: 13.5px; color: var(--hp-ink); font-weight: 600; }
.hp-job-bookmark { font-size: 18px; color: var(--hp-ink-soft); text-align: center; }

/* ---------- How it works ---------- */
.hp-steps { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hp-step { flex: 1 1 180px; max-width: 220px; text-align: center; }
.hp-step-ic { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.hp-step-t { font-weight: 700; color: var(--hp-ink); font-size: 16px; margin-bottom: 6px; }
.hp-step-s { font-size: 13.5px; color: var(--hp-ink-soft); line-height: 1.55; }
.hp-step-arrow { color: var(--hp-ink-soft); font-size: 22px; align-self: center; padding-top: 20px; }

/* ---------- Trusted ---------- */
.hp-trusted { background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 24px 30px; }
.hp-trusted-label { font-size: 13px; color: var(--hp-ink-soft); font-weight: 600; margin-bottom: 16px; }
.hp-trusted-logos { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hp-trusted-logos span { font-size: 22px; font-weight: 800; color: #9AA6B5; letter-spacing: 0.5px; }
.hp-trusted-logo-img { max-height: 34px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .2s, opacity .2s; }
.hp-trusted-logo-img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- CTA banner ---------- */
.hp-cta {
    background: linear-gradient(120deg, #0C447C, #185FA5); border-radius: 18px;
    padding: 30px 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hp-cta-ic { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,0.15); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.hp-cta-text { flex: 1; min-width: 240px; }
.hp-cta-t { font-size: 22px; font-weight: 800; color: #fff; }
.hp-cta-s { font-size: 14.5px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.hp-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hp-cta-btn-white { background: #fff; color: var(--brand-red-dark); padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.hp-cta-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; }

/* ---------- Testimonials ---------- */
.hp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-testimonial { background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 24px; }
.hp-stars { color: #F59E0B; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.hp-quote { font-size: 14.5px; color: var(--hp-ink); line-height: 1.7; margin-bottom: 18px; }
.hp-tuser { display: flex; align-items: center; gap: 12px; }
.hp-tav { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-red-tint); color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hp-tname { font-weight: 700; color: var(--hp-ink); font-size: 14px; }
.hp-trole { font-size: 12.5px; color: var(--hp-ink-soft); }

/* ---------- Footer ---------- */
.hp-footer { background: #0B1B36; color: #C7D0DE; margin-top: 60px; padding: 46px 0 24px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 30px; }
.hp-footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.logo-icon-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent-today); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.hp-footer-tag { font-size: 13.5px; color: #8A97AB; line-height: 1.6; margin: 16px 0; max-width: 260px; }
.hp-footer-social { display: flex; gap: 10px; }
.hp-footer-social a, .hp-footer-social span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #C7D0DE; font-size: 13px; font-weight: 700; }
.hp-footer-social a:hover { background: var(--brand-red); color: #fff; }
.hp-footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.hp-footer-col a { display: block; color: #8A97AB; font-size: 14px; margin-bottom: 11px; }
.hp-footer-col a:hover { color: #fff; }
.hp-footer-news p { font-size: 13.5px; color: #8A97AB; line-height: 1.6; margin-bottom: 14px; }
.hp-news-form { display: flex; gap: 8px; }
.hp-news-form input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 11px 14px; color: #fff; font-size: 13px; }
.hp-news-form input::placeholder { color: #6B7688; }
.hp-news-form button { background: var(--brand-red); color: #fff; border: none; border-radius: 8px; width: 44px; cursor: pointer; font-size: 16px; }
.hp-footer-copy { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 34px; padding-top: 22px; text-align: center; font-size: 13px; color: #6B7688; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hp-hero-left h1 { font-size: 34px; }
    .hp-search-form { grid-template-columns: 1fr; }
    .hp-stats { grid-template-columns: 1fr 1fr; }
    .hp-stat:nth-child(2) { border-right: none; }
    .hp-cats { grid-template-columns: 1fr 1fr 1fr; }
    .hp-job { grid-template-columns: 40px 1fr auto; grid-row-gap: 4px; }
    .hp-job-loc, .hp-job-type, .hp-job-salary, .hp-job-time { grid-column: 2 / 4; font-size: 12px; }
    .hp-job-bookmark { display: none; }
    .hp-steps { flex-direction: column; align-items: center; }
    .hp-step-arrow { transform: rotate(90deg); padding: 0; }
    .hp-step { max-width: none; }
    .hp-testimonials { grid-template-columns: 1fr; }
    .hp-footer-grid { grid-template-columns: 1fr 1fr; }
    .hp-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .hp-cats { grid-template-columns: 1fr 1fr; }
    .hp-stats { grid-template-columns: 1fr; }
    .hp-stat { border-right: none; border-bottom: 1px solid var(--hp-border); }
    .hp-footer-grid { grid-template-columns: 1fr; }
}
