/* ==========================================================================
   HOMEPAGE REDESIGN (home.html only — everything is scoped under .home-v2)
   Layout language: dark hero + search bar, quick-link tiles, sections with
   an eyebrow pill / big title / actions row, alternating section surfaces,
   and flat white cards with a bordered footer row.
   Palette: idrissimart purple (#4b315e) + orange (#ff6001) on slate neutrals.
   ========================================================================== */

.home-v2 {
    --hv-brand: #4b315e;
    --hv-brand-hover: #3a2449;
    --hv-brand-text: #4b315e;
    --hv-brand-soft: #f3eef7;
    --hv-brand-line: #ddd0e8;
    --hv-accent: #ff6001;
    --hv-accent-hover: #e65600;
    --hv-accent-text: #d14f00;
    --hv-accent-soft: #fff1e8;
    --hv-accent-line: #ffd4b8;
    --hv-success: #059669;
    --hv-success-soft: #ecfdf5;

    --hv-ink: #0f172a;
    --hv-text: #334155;
    --hv-muted: #64748b;
    --hv-faint: #94a3b8;
    --hv-page: #f8fafc;
    --hv-surface: #ffffff;
    --hv-surface-2: #f8fafc;
    --hv-chip: #f1f5f9;
    --hv-line: #e2e8f0;
    --hv-line-soft: #f1f5f9;
    --hv-dark: #1e1029;          /* "slate-900" role, tinted with the brand purple */
    --hv-dark-hover: var(--hv-accent);

    --hv-radius: 16px;
    --hv-radius-sm: 10px;
    --hv-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
    --hv-shadow-md: 0 10px 28px -12px rgba(75, 49, 94, .28), 0 4px 10px -6px rgba(15, 23, 42, .08);

    background: var(--hv-page);
    color: var(--hv-text);
}

[data-theme='dark'] .home-v2,
[data-bs-theme='dark'] .home-v2 {
    --hv-brand: #6b4c7a;
    --hv-brand-hover: #7d5b8e;
    --hv-brand-text: #c9a7eb;
    --hv-brand-soft: rgba(196, 163, 224, .1);
    --hv-brand-line: rgba(196, 163, 224, .25);
    --hv-accent-text: #ff8c42;
    --hv-accent-soft: rgba(255, 96, 1, .12);
    --hv-accent-line: rgba(255, 96, 1, .35);
    --hv-success: #34d399;
    --hv-success-soft: rgba(16, 185, 129, .12);

    --hv-ink: #f1f5f9;
    --hv-text: #cbd5e1;
    --hv-muted: #94a3b8;
    --hv-faint: #64748b;
    --hv-page: #141217;
    --hv-surface: #1f1c24;
    --hv-surface-2: #19171d;
    --hv-chip: #2a2631;
    --hv-line: #2f2b36;
    --hv-line-soft: #29252f;
    --hv-dark: #ff6001;
    --hv-dark-hover: #e65600;
    --hv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --hv-shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .7);
}

/* ==========================================================================
   1. HERO
   Dark brand stage with soft glows; each slide is a split layout (copy on
   the start side, the slide image shown whole in a framed card on the end
   side), followed by slider controls and a glass search panel.
   ========================================================================== */
.home-v2 .hx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 !important;
    padding: 36px 0 32px !important;
    color: #fff;
    background: linear-gradient(160deg, #2a1639 0%, #1e1029 52%, #150b1d 100%);
}
.home-v2 .hx-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-v2 .hx-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.home-v2 .hx-glow--a {
    width: 520px; height: 520px;
    inset-block-start: -220px; inset-inline-start: -140px;
    background: rgba(255, 96, 1, .28);
}
.home-v2 .hx-glow--b {
    width: 600px; height: 600px;
    inset-block-end: -300px; inset-inline-end: -160px;
    background: rgba(140, 92, 178, .35);
}
.home-v2 .hx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* The swiper itself runs LTR (dir="ltr" in the template; each slide sets
   the page direction back) because Swiper's fade offsets are miscomputed
   under RTL and push slides sideways. The padding / negative margin keeps
   the image frame's shadow from being clipped by overflow:hidden.
   width:auto / width:100% undo style.css's global .swiper { width:100% } and
   .swiper-slide { width:auto }: the first over-constrains the negative
   margins (box shifts sideways under RTL), the second lets an uninitialised
   single slide grow to its content's width and clip the copy off-screen. */
.home-v2 .hx-swiper { width: auto; padding: 40px; margin: -40px; }
.home-v2 .hx-swiper .swiper-wrapper { align-items: stretch; }
.home-v2 .hx-swiper .swiper-slide { width: 100%; height: auto !important; }

.home-v2 .hx-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 48px;
    min-height: 0;
}
.home-v2 .hx-slide--text-only { grid-template-columns: minmax(0, 1fr); text-align: center; }
.home-v2 .hx-slide--text-only .hx-copy { max-width: 780px; margin-inline: auto; align-items: center; }
.home-v2 .hx-slide--text-only .hx-actions { justify-content: center; }

/* Copy column */
.home-v2 .hx-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: start;
}
.home-v2 .hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    padding: .4rem 1rem .4rem .85rem;
    border-radius: 999px;
    background: rgba(255, 96, 1, .12);
    border: 1px solid rgba(255, 177, 132, .3);
    color: #ffc29d;
    font-size: .8rem;
    font-weight: 800;
}
.home-v2 .hx-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hv-accent);
    box-shadow: 0 0 0 4px rgba(255, 96, 1, .22);
    animation: hxPulse 2.4s ease-in-out infinite;
}
.home-v2 .hx-title {
    margin: 0 0 .6rem;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
    background: linear-gradient(180deg, #ffffff 30%, #eadcf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-v2 .hx-subtitle {
    margin: 0 0 .6rem;
    color: #ffb184;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 800;
    line-height: 1.6;
}
.home-v2 .hx-description {
    max-width: 580px;
    margin: 0 0 1.1rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid rgba(255, 96, 1, .55);
    color: rgba(226, 232, 240, .82);
    font-size: 1rem;
    line-height: 1.8;
}
.home-v2 .hx-subtitle *,
.home-v2 .hx-description * { color: inherit !important; font-size: inherit; }
.home-v2 .hx-subtitle > :last-child,
.home-v2 .hx-description > :last-child { margin-bottom: 0; }
.home-v2 .hx-description p { margin: 0 0 .5rem; }
.home-v2 .hx-description ul { margin: 0; padding-inline-start: 1.2rem; }
.home-v2 .hx-subtitle + .hx-actions { margin-top: .75rem; }

.home-v2 .hx-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.home-v2 .hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 46px;
    margin: 0;
    padding: .7rem 1.4rem;
    border-radius: 14px;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-v2 .hx-btn--primary {
    border: 0;
    background: linear-gradient(135deg, #ff7a2b 0%, #ff6001 55%, #e65600 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px -12px rgba(255, 96, 1, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.home-v2 .hx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(255, 96, 1, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.home-v2 .hx-btn--ghost {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
    color: #fff !important;
}
.home-v2 .hx-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.home-v2 .hx-btn--primary::before { display: none; }

/* Media column: the slide image is shown whole (contain) over a blurred
   copy of itself, so any aspect ratio fills the frame cleanly. */
.home-v2 .hx-media { position: relative; min-width: 0; }
/* Tint glow drawn as a soft radial gradient (no filter blur, which the
   swiper's overflow:hidden would cut into a hard-edged box). */
.home-v2 .hx-media::before {
    content: '';
    position: absolute;
    inset: -8%;
    z-index: 0;
    background: radial-gradient(closest-side, var(--hx-tint, #4b315e), transparent);
    opacity: .6;
}
.home-v2 .hx-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 26px;
    background: #1a0f22;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, .035),
        0 24px 36px -24px rgba(0, 0, 0, .8);
}
.home-v2 .hx-frame-blur {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.2);
    opacity: .55;
}
.home-v2 .hx-frame-link { position: absolute; inset: 0; display: block; }
.home-v2 .hx-frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important; /* beats style.css's global .swiper-slide img { cover } */
    margin: 0 !important;
    border-radius: 0 !important;
}
.home-v2 .hx-swiper .swiper-slide:hover .hx-frame-img { transform: none !important; }

/* Entrance motion on the active slide */
.home-v2 .hx-swiper .swiper-slide-active .hx-copy > * { animation: hxUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.home-v2 .hx-swiper .swiper-slide-active .hx-copy > :nth-child(2) { animation-delay: .08s; }
.home-v2 .hx-swiper .swiper-slide-active .hx-copy > :nth-child(3) { animation-delay: .16s; }
.home-v2 .hx-swiper .swiper-slide-active .hx-copy > :nth-child(4) { animation-delay: .24s; }
.home-v2 .hx-swiper .swiper-slide-active .hx-copy > :nth-child(5) { animation-delay: .32s; }
.home-v2 .hx-swiper .swiper-slide-active .hx-frame { animation: hxZoom .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hxZoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hxPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 96, 1, 0); } }
@media (prefers-reduced-motion: reduce) {
    .home-v2 .hx-hero *, .home-v2 .hx-hero *::before { animation: none !important; transition: none !important; }
}

/* Slider controls: arrows, 01 / 08 counter, segmented progress */
.home-v2 .hx-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}
.home-v2 .hx-nav {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}
.home-v2 .hx-nav:hover { background: var(--hv-accent); border-color: var(--hv-accent); }
.home-v2 .hx-counter {
    flex: none;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: .95rem;
    color: rgba(255, 255, 255, .5);
    direction: ltr;
}
.home-v2 .hx-counter-current { color: #fff; font-size: 1.15rem; }
.home-v2 .hx-counter-sep { margin: 0 .2rem; }
.home-v2 .hx-progress.swiper-pagination {
    position: static !important;
    display: flex;
    flex: 1;
    gap: 6px;
    max-width: 320px;
    width: auto !important;
    transform: none !important;
}
.home-v2 .hx-progress .swiper-pagination-bullet {
    flex: 1;
    height: 4px;
    width: auto;
    margin: 0 !important;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    opacity: 1;
    transition: background-color .3s ease;
}
.home-v2 .hx-progress .swiper-pagination-bullet-active { background: var(--hv-accent); }

/* Search panel */
.home-v2 .hx-search {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 18px auto 0;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.home-v2 .hx-search-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.home-v2 .hx-search-tabs::-webkit-scrollbar { display: none; }
.home-v2 .hx-search-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.home-v2 .hx-search-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.home-v2 .hx-search-tab.is-active { background: #fff; color: var(--hv-brand); }
.home-v2 .hx-search-tab.is-active i { color: var(--hv-accent); }
.home-v2 .hx-search-row {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
}
.home-v2 .hx-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    margin: 0;
    padding: 0 1rem;
    border-radius: 12px;
    background: #f8fafc;
}
.home-v2 .hx-search-field:focus-within { box-shadow: 0 0 0 2px rgba(255, 96, 1, .45); }
.home-v2 .hx-search-field i { color: #94a3b8; font-size: 1.05rem; }
.home-v2 .hx-search-field input {
    flex: 1;
    min-width: 0;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1.02rem;
}
.home-v2 .hx-search-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    border-radius: 12px;
    padding: 0 2.25rem;
    background: var(--hv-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    transition: background-color .2s ease;
}
.home-v2 .hx-search-btn:hover { background: var(--hv-accent-hover); }

[data-theme='dark'] .home-v2 .hx-search-row { background: #1f1c24; }
[data-theme='dark'] .home-v2 .hx-search-field { background: #2a2631; }
[data-theme='dark'] .home-v2 .hx-search-field input { color: #f1f5f9; }

/* Shared eyebrow pill (used by inner-page heroes, see section 14) */
.home-v2 .hv2-hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 96, 1, .18);
    border: 1px solid rgba(255, 96, 1, .35);
    color: #ffb184;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

@media (max-width: 991.98px) {
    .home-v2 .hx-hero { padding: 20px 0 20px !important; }
    .home-v2 .hx-slide { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; }
    .home-v2 .hx-media { order: -1; width: 100%; max-width: 320px; margin-inline: auto; }
    .home-v2 .hx-copy { align-items: center; text-align: center; }
    .home-v2 .hx-description { margin-inline: auto; padding-inline-start: 0; border-inline-start: 0; }
    .home-v2 .hx-actions { justify-content: center; }
    .home-v2 .hx-controls { justify-content: center; margin-top: 8px; }
    .home-v2 .hx-search { margin-top: 14px; }
}

@media (max-width: 767.98px) {
    /* No pagination dots on mobile; arrows + counter (and swipe) remain. */
    .home-v2 .hx-progress.swiper-pagination { display: none !important; }
    .home-v2 .hx-frame { border-radius: 20px; }
    .home-v2 .hx-eyebrow { font-size: .7rem; margin-bottom: .6rem; }
    .home-v2 .hx-title { font-size: 1.55rem; }
    .home-v2 .hx-description { font-size: .9rem; margin-bottom: .9rem; }
    .home-v2 .hx-search-tabs { padding-bottom: 6px; justify-content: flex-start; }
    .home-v2 .hx-btn { min-height: 42px; padding: .6rem 1.15rem; font-size: .9rem; }
    .home-v2 .hx-search { padding: 8px; border-radius: 18px; }
    .home-v2 .hx-search-tab { padding: .45rem .8rem; font-size: .8rem; }
    .home-v2 .hx-search-field input { height: 48px; font-size: .9rem; }
    .home-v2 .hx-search-btn { padding: 0 1rem; }
    .home-v2 .hx-search-btn span { display: none; }
}

/* ==========================================================================
   2. QUICK LINK TILES
   ========================================================================== */
.home-v2 .hv2-quicklinks {
    background: var(--hv-surface);
    border-bottom: 1px solid var(--hv-line);
    padding: 1.5rem 0;
}
.home-v2 .hv2-quicklinks-track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-v2 .hv2-quicklinks-track::-webkit-scrollbar { display: none; }
@media (min-width: 992px) {
    .home-v2 .hv2-quicklinks-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}
.home-v2 .hv2-quicklink {
    --tone: var(--hv-brand);
    --tone-text: var(--hv-brand-text);
    --tone-soft: var(--hv-brand-soft);
    flex: 0 0 9.5rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1rem .75rem;
    border-radius: var(--hv-radius);
    background: var(--hv-surface-2);
    border: 1px solid var(--hv-line-soft);
    text-align: center;
    text-decoration: none;
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.home-v2 .hv2-quicklink-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tone-soft);
    color: var(--tone-text);
    font-size: 1rem;
    transition: background-color .3s ease, color .3s ease;
}
.home-v2 .hv2-quicklink-label { font-size: .875rem; font-weight: 800; color: var(--hv-ink); }
.home-v2 .hv2-quicklink:hover { border-color: var(--tone); background: var(--tone-soft); transform: translateY(-2px); }
.home-v2 .hv2-quicklink:hover .hv2-quicklink-icon { background: var(--tone); color: #fff; }

/* Tones reuse the colors each section already has elsewhere on the site */
.home-v2 .hv2-tone-accent  { --tone: var(--hv-accent); --tone-text: var(--hv-accent-text); --tone-soft: var(--hv-accent-soft); }
.home-v2 .hv2-tone-jobs    { --tone: #176b5b; --tone-text: #176b5b; --tone-soft: #e8f4f1; }
.home-v2 .hv2-tone-academy { --tone: #0284c7; --tone-text: #0284c7; --tone-soft: #e0f2fe; }
.home-v2 .hv2-tone-tube    { --tone: #e63946; --tone-text: #d62839; --tone-soft: #fdecee; }
[data-theme='dark'] .home-v2 .hv2-tone-jobs    { --tone-text: #1db59a; --tone-soft: rgba(29, 181, 154, .12); }
[data-theme='dark'] .home-v2 .hv2-tone-academy { --tone-text: #38bdf8; --tone-soft: rgba(56, 189, 248, .12); }
[data-theme='dark'] .home-v2 .hv2-tone-tube    { --tone-text: #ff4d5e; --tone-soft: rgba(230, 57, 70, .14); }

/* ==========================================================================
   3. SECTIONS + HEADERS
   ========================================================================== */
.home-v2 .hv2-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    margin: 0 !important;
    background: var(--hv-page);
}
.home-v2 .hv2-section--alt {
    background: var(--hv-surface) !important;
    border-top: 1px solid var(--hv-line);
    border-bottom: 1px solid var(--hv-line);
}
.home-v2 .hv2-section .container,
.home-v2 .hv2-quicklinks .container { max-width: 1320px; }
@media (max-width: 767.98px) {
    .home-v2 .hv2-section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

.home-v2 .hv2-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}
.home-v2 .hv2-head-text { min-width: 0; flex: 1 1 320px; }
.home-v2 .hv2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    background: var(--hv-brand-soft);
    color: var(--hv-brand-text);
    font-size: .75rem;
    font-weight: 800;
}
.home-v2 .hv2-eyebrow i { font-size: .7rem; }
.home-v2 .hv2-eyebrow--accent { background: var(--hv-accent-soft); color: var(--hv-accent-text); }
.home-v2 .hv2-title {
    margin: .5rem 0 0;
    color: var(--hv-ink) !important;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 900;
    line-height: 1.35;
}
.home-v2 .hv2-sub {
    margin: .3rem 0 0;
    color: var(--hv-muted) !important;
    font-size: .9rem;
    line-height: 1.7;
}
.home-v2 .hv2-sub p { margin: 0; }
.home-v2 .hv2-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}
/* Mobile: title/subtitle on one side, buttons stacked on the other (one row);
   tab switchers (.hv2-segmented) drop to a full-width row underneath. */
@media (max-width: 767.98px) {
    .home-v2 .hv2-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .4rem .75rem;
        margin-bottom: 1.25rem;
    }
    .home-v2 .hv2-head-text { grid-column: 1; grid-row: 1 / span 2; }
    .home-v2 .hv2-head .hv2-actions { display: contents; }
    .home-v2 .hv2-head .hv2-actions > .hv2-btn {
        grid-column: 2;
        flex: none;
        max-width: 8.5rem;
        padding: .45rem .7rem;
        font-size: .7rem;
        white-space: normal;
        text-align: center;
    }
    .home-v2 .hv2-head .hv2-segmented { grid-column: 1 / -1; grid-row: 3; margin-top: .4rem; }
    .home-v2 .hv2-title { font-size: 1.15rem; }
    .home-v2 .hv2-sub { font-size: .8rem; line-height: 1.6; }
}

/* ---- Buttons ---- */
.home-v2 .hv2-btn {
    position: relative;
    z-index: 2;   /* stays clickable above a card's .stretched-link */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--hv-radius-sm);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.home-v2 .hv2-btn:hover { transform: translateY(-1px); }
.home-v2 .hv2-btn--sm { padding: .5rem .9rem; font-size: .75rem; }
.home-v2 .hv2-btn--dark { background: var(--hv-dark); color: #fff !important; box-shadow: var(--hv-shadow-sm); }
.home-v2 .hv2-btn--dark:hover { background: var(--hv-dark-hover); }
.home-v2 .hv2-btn--brand { background: var(--hv-brand); color: #fff !important; box-shadow: 0 6px 14px -8px rgba(75, 49, 94, .8); }
.home-v2 .hv2-btn--brand:hover { background: var(--hv-brand-hover); }
.home-v2 .hv2-btn--accent { background: var(--hv-accent); color: #fff !important; box-shadow: 0 6px 14px -8px rgba(255, 96, 1, .9); }
.home-v2 .hv2-btn--accent:hover { background: var(--hv-accent-hover); }
.home-v2 .hv2-btn--soft { background: var(--hv-brand-soft); border-color: var(--hv-brand-line); color: var(--hv-brand-text) !important; }
.home-v2 .hv2-btn--soft:hover { background: var(--hv-brand); border-color: var(--hv-brand); color: #fff !important; }
.home-v2 .hv2-btn--soft-accent { background: var(--hv-accent-soft); border-color: var(--hv-accent-line); color: var(--hv-accent-text) !important; }
.home-v2 .hv2-btn--soft-accent:hover { background: var(--hv-accent); border-color: var(--hv-accent); color: #fff !important; }
@media (max-width: 767.98px) {
    .home-v2 .hv2-actions > .hv2-btn { flex: 1 1 auto; }
}

.home-v2 .hv2-btn--ghost { background: var(--hv-surface); border-color: var(--hv-line); color: var(--hv-text) !important; }
.home-v2 .hv2-btn--ghost:hover { background: var(--hv-chip); }
.home-v2 .hv2-btn--lg { padding: .8rem 1.5rem; font-size: .8rem; border-radius: 12px; }

/* ---- Segmented tabs (ads / academy / about) ---- */
.home-v2 .hv2-segmented {
    display: inline-flex;
    gap: .25rem;
    max-width: 100%;
    padding: .3rem;
    border: 1px solid var(--hv-line);
    border-radius: 12px;
    background: var(--hv-chip);
    overflow-x: auto;
    scrollbar-width: none;
}
.home-v2 .hv2-segmented::-webkit-scrollbar { display: none; }
.home-v2 .hv2-segmented > button {
    flex-shrink: 0;
    padding: .5rem 1.1rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--hv-text);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.home-v2 .hv2-segmented > button:hover { color: var(--hv-brand-text); }
.home-v2 .hv2-segmented > button:focus-visible { outline: 2px solid var(--hv-accent); outline-offset: 1px; }
.home-v2 .hv2-segmented > button.is-active {
    background: var(--hv-accent);
    color: #fff;
    box-shadow: 0 4px 10px -4px rgba(255, 96, 1, .7);
}
@media (max-width: 767.98px) {
    .home-v2 .hv2-segmented { display: flex; width: 100%; }
    .home-v2 .hv2-segmented > button { flex: 1 0 auto; }
}

.home-v2 [hidden] { display: none !important; }
.home-v2 .home-hub-pane:not([hidden]),
.home-v2 [data-home-ac-pane]:not([hidden]) { animation: hv2Fade .25s ease; }
@keyframes hv2Fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   4. LAYOUTS: horizontal scroller, empty state
   ========================================================================== */
.home-v2 .hv2-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: .5rem .25rem 1rem;
    margin: -.5rem -.25rem 0;
}
.home-v2 .hv2-scroller::-webkit-scrollbar { display: none; }
.home-v2 .hv2-scroller > * { flex: 0 0 280px; scroll-snap-align: start; }

.home-v2 .hv2-empty {
    padding: 2.5rem 1rem;
    border: 1px dashed var(--hv-line);
    border-radius: var(--hv-radius);
    background: var(--hv-surface);
    text-align: center;
}
.home-v2 .hv2-empty > i { font-size: 2.2rem; color: var(--hv-faint); margin-bottom: .75rem; }
.home-v2 .hv2-empty h3 { margin: 0 0 .35rem; color: var(--hv-ink); font-size: 1.05rem; font-weight: 800; }
.home-v2 .hv2-empty p { margin: 0 0 1rem; color: var(--hv-muted); font-size: .85rem; }
.home-v2 .hv2-empty .hv2-btn { margin-top: .5rem; }
.home-v2 .hv2-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* ==========================================================================
   5. CATEGORY HUB (section tabs + circle categories)
   ========================================================================== */
.home-v2 .cat-hub-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.home-v2 .cat-hub-tabs::-webkit-scrollbar { display: none; }
.home-v2 .cat-hub-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-block: .45rem;
    padding-inline: .45rem 1rem;
    border: 1px solid var(--hv-line);
    border-radius: 12px;
    background: var(--hv-surface);
    color: var(--hv-text);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.home-v2 .cat-hub-tab:hover { border-color: var(--hv-brand-line); color: var(--hv-brand-text); }
.home-v2 .cat-hub-tab-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hv-brand-soft);
    color: var(--hv-brand-text);
    font-size: .75rem;
}
.home-v2 .cat-hub-tab-count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--hv-chip);
    color: var(--hv-muted);
    font-size: .7rem;
    line-height: 20px;
    text-align: center;
}
.home-v2 .cat-hub-tab.is-active {
    background: var(--hv-brand);
    border-color: var(--hv-brand);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(75, 49, 94, .8);
}
.home-v2 .cat-hub-tab.is-active .cat-hub-tab-icon,
.home-v2 .cat-hub-tab.is-active .cat-hub-tab-count { background: rgba(255, 255, 255, .16); color: #fff; }

.home-v2 .cat-hub-body {
    padding: 1.1rem .75rem;
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow-sm);
}
.home-v2 .cat-hub-body .swiper { transition: opacity .2s ease, transform .2s ease; padding-top: 8px; }
.home-v2 .cat-hub-body.is-switching .swiper { opacity: 0; transform: translateY(6px); }
.home-v2 .cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 4px 2px;
    text-align: center;
    text-decoration: none;
}
.home-v2 .cat-circle-icon-wrap { position: relative; }
.home-v2 .cat-circle-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hv-brand-soft);
    color: var(--hv-brand-text);
    font-size: 1.25rem;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.home-v2 .cat-circle-item:hover .cat-circle-icon { background: var(--hv-brand); color: #fff; transform: translateY(-3px); }
.home-v2 .cat-circle-item--service .cat-circle-icon { background: var(--hv-accent-soft); color: var(--hv-accent-text); }
.home-v2 .cat-circle-item--service:hover .cat-circle-icon { background: var(--hv-accent); color: #fff; }
.home-v2 .cat-circle-badge {
    position: absolute;
    top: -8px;
    inset-inline-end: -10px;
    padding: 0 7px;
    border: 2px solid var(--hv-surface);
    border-radius: 999px;
    background: var(--hv-accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    line-height: 18px;
    white-space: nowrap;
}
.home-v2 .cat-circle-name {
    max-width: 80px;
    color: var(--hv-ink);
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}
.home-v2 .cat-circle-item:hover .cat-circle-name { color: var(--hv-brand-text); }
@media (max-width: 575.98px) {
    .home-v2 .cat-circle-icon { width: 52px; height: 52px; font-size: 1.1rem; }
    .home-v2 .cat-circle-name { font-size: .68rem; max-width: 62px; }
}

/* ==========================================================================
   6. CARD SHELL (.hv2-card) — shared by every homepage card
   ========================================================================== */
.home-v2 .hv2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow-sm);
    overflow: hidden;
    cursor: pointer;
    text-align: start;
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.home-v2 .hv2-card:hover { box-shadow: var(--hv-shadow-md); transform: translateY(-3px); }
.home-v2 .hv2-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.25rem 1.25rem 1rem;
}
.home-v2 .hv2-kicker { color: var(--hv-accent-text); font-size: .72rem; font-weight: 800; }
.home-v2 .hv2-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-v2 .hv2-card-title a { color: var(--hv-ink); text-decoration: none; }
.home-v2 .hv2-card-title a:hover { color: var(--hv-brand-text); }
.home-v2 .hv2-card-desc {
    margin: 0;
    color: var(--hv-muted);
    font-size: .78rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-v2 .hv2-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: auto;
    color: var(--hv-faint);
    font-size: .72rem;
}
.home-v2 .hv2-card-meta i { color: var(--hv-accent-text); margin-inline-end: .2rem; }

.home-v2 .hv2-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0 1.25rem;
    padding: 1rem 0 1.2rem;
    border-top: 1px solid var(--hv-line);
}
.home-v2 .hv2-foot-meta { display: inline-flex; align-items: center; gap: .35rem; color: var(--hv-faint); font-size: .7rem; font-weight: 600; }
.home-v2 .hv2-dot { opacity: .6; }
.home-v2 .hv2-foot-actions { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.home-v2 .hv2-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .75rem; font-weight: 800; }
.home-v2 .hv2-status--ok { color: var(--hv-success); }

/* Mobile: keep the card footer's data and actions on a single row */
@media (max-width: 767.98px) {
    .home-v2 .hv2-card-foot { flex-wrap: nowrap; gap: .5rem; margin: 0 1rem; padding: .8rem 0 .95rem; }
    .home-v2 .hv2-card-foot > :first-child { min-width: 0; flex: 1 1 auto; }
    .home-v2 .hv2-foot-meta { flex-wrap: wrap; gap: .25rem; font-size: .66rem; }
    .home-v2 .hv2-card-foot .hv2-price { font-size: .95rem; gap: .2rem; }
    .home-v2 .hv2-card-foot .hv2-price--text { font-size: .78rem; }
    .home-v2 .hv2-foot-actions { flex-shrink: 0; gap: .3rem; }
    .home-v2 .hv2-card-foot .hv2-icon-btn { width: 30px; height: 30px; }
    .home-v2 .hv2-card-foot .hv2-btn--sm { flex-shrink: 0; max-width: 9rem; padding: .45rem .7rem; font-size: .7rem; white-space: normal; text-align: center; }
}

.home-v2 .hv2-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .3rem; color: var(--hv-accent-text); font-size: 1.05rem; font-weight: 900; }
.home-v2 .hv2-price small { color: var(--hv-muted); font-size: .7rem; font-weight: 700; }
.home-v2 .hv2-price del { color: var(--hv-faint); font-size: .72rem; font-weight: 600; }
.home-v2 .hv2-price--text { font-size: .85rem; }
.home-v2 .hv2-price--free { color: var(--hv-success); }
.home-v2 .hv2-negotiable {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--hv-success-soft);
    color: var(--hv-success);
    font-size: .65rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

/* Grey info panel with icon rows (jobs, projects, courses) */
.home-v2 .hv2-infobox {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: auto;
    padding: .8rem;
    border-radius: 12px;
    background: var(--hv-surface-2);
    border: 1px solid var(--hv-line-soft);
    color: var(--hv-text);
    font-size: .75rem;
}
.home-v2 .hv2-infobox > div { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.home-v2 .hv2-infobox > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .hv2-infobox i { width: 1rem; flex-shrink: 0; text-align: center; color: var(--hv-brand-text); }
.home-v2 .hv2-infobox--accent i { color: var(--hv-accent-text); }

.home-v2 .hv2-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 70%;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: var(--hv-brand-soft);
    border: 1px solid var(--hv-brand-line);
    color: var(--hv-brand-text);
    font-size: .72rem;
    font-weight: 800;
}
.home-v2 .hv2-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .hv2-pill--accent { background: var(--hv-accent-soft); border-color: var(--hv-accent-line); color: var(--hv-accent-text); }

.home-v2 .hv2-icon-btn {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--hv-line);
    border-radius: 9px;
    background: var(--hv-surface);
    color: var(--hv-muted);
    font-size: .75rem;
    transition: all .2s ease;
}
.home-v2 .hv2-icon-btn:hover { background: var(--hv-brand); border-color: var(--hv-brand); color: #fff; }

/* ---- Media (image area of ad + course cards) ---- */
.home-v2 .hv2-media {
    position: relative;
    height: 208px;
    flex-shrink: 0;
    background: var(--hv-chip);
    overflow: hidden;
}
.home-v2 .hv2-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-v2 .hv2-card:hover .hv2-media > img { transform: scale(1.05); }
.home-v2 .hv2-media-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hv-faint);
    font-size: 2.4rem;
}
.home-v2 .hv2-media-empty img { max-width: 45%; max-height: 40%; opacity: .45; object-fit: contain; }
.home-v2 .hv2-media-badges {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.home-v2 .hv2-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--hv-brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.home-v2 .hv2-badge--accent { background: var(--hv-accent); }
.home-v2 .hv2-badge--danger { background: #dc2626; }
.home-v2 .hv2-media-actions {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}
.home-v2 .hv2-card:hover .hv2-media-actions,
.home-v2 .hv2-media-actions:focus-within,
.home-v2 .hv2-media-actions:has(.active, .saved) { opacity: 1; transform: none; }
@media (hover: none) { .home-v2 .hv2-media-actions { opacity: 1; transform: none; } }
.home-v2 .hv2-round-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #334155;
    font-size: .8rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    transition: background-color .2s ease, color .2s ease;
}
.home-v2 .hv2-round-btn:hover { background: var(--hv-accent); color: #fff; }
.home-v2 .hv2-round-btn.active,
.home-v2 .hv2-round-btn.saved { color: #e11d48; }
.home-v2 .hv2-round-btn.active:hover,
.home-v2 .hv2-round-btn.saved:hover { color: #fff; }
.home-v2 .hv2-media-video {
    position: absolute;
    bottom: .75rem;
    inset-inline-start: .75rem;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, .75);
    color: #fff;
    font-size: .7rem;
}
.home-v2 .hv2-media-sold {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .05em;
}
.home-v2 .hv2-media-discount {
    position: absolute;
    bottom: .75rem;
    inset-inline-end: .75rem;
    z-index: 2;
    padding: .2rem .55rem;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

/* ---- Ad card states ---- */
.home-v2 .hv2-ad-card.is-highlighted { border-color: var(--hv-accent-line); box-shadow: 0 0 0 1px var(--hv-accent-line), var(--hv-shadow-sm); }
.home-v2 .hv2-ad-card.is-urgent { border-color: #fecaca; }

/* ---- Service request (projects) card ---- */
.home-v2 .hv2-svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.home-v2 .hv2-svc-time { flex-shrink: 0; color: var(--hv-faint); font-size: .72rem; white-space: nowrap; }
.home-v2 .hv2-svc-time i { margin-inline-end: .2rem; }
.home-v2 .hv2-svc-card .hv2-card-body { padding-top: 1.4rem; }
.home-v2 .hv2-svc-card .hv2-card-desc { -webkit-line-clamp: 3; }
.home-v2 .hv2-svc-card:hover { border-color: var(--hv-accent-line); }
.home-v2 .hv2-user-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}
.home-v2 .hv2-user-badge--owner   { background: var(--hv-brand-soft); color: var(--hv-brand-text); }
.home-v2 .hv2-user-badge--awarded { background: var(--hv-success-soft); color: var(--hv-success); }
.home-v2 .hv2-user-badge--offered { background: var(--hv-accent-soft); color: var(--hv-accent-text); }

/* ---- Job card ---- */
.home-v2 .hv2-job-card { border-width: 2px; border-color: var(--hv-brand-soft); }
.home-v2 .hv2-job-card:hover { border-color: var(--hv-brand-line); }
.home-v2 .hv2-job-card .hv2-card-body { padding-top: 2rem; gap: .8rem; }
.home-v2 .hv2-job-card .hv2-card-desc { -webkit-line-clamp: 3; }
.home-v2 .hv2-ribbon {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    z-index: 2;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: .3rem .8rem;
    border-end-start-radius: 12px;
    background: var(--hv-brand);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
}
.home-v2 .hv2-job-head { display: flex; align-items: center; gap: .75rem; }
.home-v2 .hv2-job-head-text { min-width: 0; }
.home-v2 .hv2-job-head .hv2-card-title { font-size: 1rem; }
.home-v2 .hv2-job-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--hv-chip);
    border: 1px solid var(--hv-line);
    color: var(--hv-brand-text);
    font-size: 1.1rem;
    overflow: hidden;
}
.home-v2 .hv2-job-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .hv2-job-company { display: inline-flex; align-items: center; gap: .3rem; color: var(--hv-muted); font-size: .75rem; }
.home-v2 .hv2-job-company i { color: var(--hv-success); font-size: .7rem; }
.home-v2 .hv2-job-card.is-applied .hv2-ribbon { background: var(--hv-success); }

/* ---- Course card ---- */
.home-v2 .hv2-rating { margin-inline-start: auto; color: #d97706; font-weight: 800; }
.home-v2 .hv2-rating small { color: var(--hv-faint); font-weight: 600; }

/* ---- Job-seeker (profile) card ---- */
.home-v2 .hv2-person-card {
    align-items: center;
    padding: 1.4rem 1.25rem 0;
    background: var(--hv-surface-2);
    text-align: center;
    cursor: default;
}
.home-v2 .hv2-person-avatar { position: relative; width: 92px; height: 92px; margin-bottom: .9rem; }
.home-v2 .hv2-person-avatar img,
.home-v2 .hv2-person-avatar > span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--hv-accent);
    border-radius: 50%;
    background: var(--hv-brand-soft);
    color: var(--hv-brand-text);
    font-size: 2rem;
    font-weight: 900;
    object-fit: cover;
    box-shadow: var(--hv-shadow-sm);
}
.home-v2 .hv2-person-verified {
    position: absolute;
    bottom: 2px;
    inset-inline-end: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hv-surface);
    border-radius: 50%;
    background: var(--hv-success);
    color: #fff;
    font-size: .6rem;
}
.home-v2 .hv2-person-name { margin: 0; color: var(--hv-ink); font-size: 1rem; font-weight: 800; }
.home-v2 .hv2-person-title { margin-top: .15rem; color: var(--hv-accent-text); font-size: .76rem; font-weight: 700; }
.home-v2 .hv2-person-bio {
    margin: .75rem 0 0;
    color: var(--hv-muted);
    font-size: .76rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-v2 .hv2-person-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; margin-top: .6rem; color: var(--hv-faint); font-size: .7rem; }
.home-v2 .hv2-person-meta i { color: var(--hv-brand-text); margin-inline-end: .2rem; }
.home-v2 .hv2-person-foot {
    display: flex;
    gap: .5rem;
    width: 100%;
    margin-top: auto;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--hv-line);
}
.home-v2 .hv2-person-card .hv2-person-meta { margin-bottom: 1rem; }
.home-v2 .hv2-person-foot .hv2-btn { flex: 1; }

/* ==========================================================================
   7. CALL-TO-ACTION BANNER (orange)
   ========================================================================== */
.home-v2 .hv2-cta-wrap { padding: 1.5rem 0; background: var(--hv-page); }
.home-v2 .hv2-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.6rem 2rem;
    border-radius: var(--hv-radius);
    background: var(--hv-accent);
    color: #1e1029;
    box-shadow: 0 10px 24px -12px rgba(255, 96, 1, .8);
}
.home-v2 .hv2-cta-text { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.home-v2 .hv2-cta-text > i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    font-size: 1.5rem;
    color: #ffffff;
}
.home-v2 .hv2-cta h3 { margin: 0; color: #ffffff; font-size: 1.2rem; font-weight: 900; line-height: 1.5; }
.home-v2 .hv2-cta p { margin: .25rem 0 0; color: rgba(255, 255, 255, .92); font-size: .88rem; }
/* Brand indigo button (#4b315e) on the orange banner */
.home-v2 .hv2-cta .hv2-btn--dark {
    flex: none;
    background: #4b315e;
    color: #fff !important;
    box-shadow: 0 10px 20px -10px rgba(75, 49, 94, .9);
}
.home-v2 .hv2-cta .hv2-btn--dark:hover { background: #3a2449; }
@media (max-width: 767.98px) {
    .home-v2 .hv2-cta { flex-direction: column; text-align: center; padding: 1.4rem 1.1rem; }
    .home-v2 .hv2-cta-text { flex-direction: column; }
    .home-v2 .hv2-cta .hv2-btn { width: 100%; }
}

/* ==========================================================================
   8. TUBE + BLOG (two columns)
   ========================================================================== */
.home-v2 .hv2-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.home-v2 .hv2-media-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 991.98px) { .home-v2 .hv2-media-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.home-v2 .hv2-media-col { min-width: 0; }
.home-v2 .hv2-minihead h3 { min-width: 0; }
.home-v2 .hv2-minihead-links { flex-shrink: 0; }
.home-v2 .hv2-minihead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.home-v2 .hv2-minihead h3 { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--hv-ink); font-size: 1.2rem; font-weight: 900; }
.home-v2 .hv2-minihead-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--hv-accent-soft);
    color: var(--hv-accent-text);
    font-size: .85rem;
}
.home-v2 .hv2-minihead-icon--tube { background: #fdecee; color: #dc2626; }
[data-theme='dark'] .home-v2 .hv2-minihead-icon--tube { background: rgba(220, 38, 38, .15); color: #f87171; }
.home-v2 .hv2-minihead-links { display: flex; gap: 1rem; }
.home-v2 .hv2-minihead-links a { color: var(--hv-accent-text); font-size: .75rem; font-weight: 800; text-decoration: none; }
.home-v2 .hv2-minihead-links a:hover { text-decoration: underline; }

.home-v2 .hv2-video {
    border-radius: var(--hv-radius);
    background: #1e1029;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--hv-shadow-md);
}
.home-v2 .hv2-video-thumb {
    position: relative;
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b1a38;
    overflow: hidden;
}
.home-v2 .hv2-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .5s ease; }
.home-v2 .hv2-video-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.home-v2 .hv2-video:hover .hv2-video-thumb img { transform: scale(1.05); }
.home-v2 .hv2-video-play {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
    transition: transform .25s ease;
}
.home-v2 .hv2-video-play i { margin-inline-start: 4px; }
.home-v2 .hv2-video:hover .hv2-video-play { transform: scale(1.1); }
.home-v2 .hv2-video-duration,
.home-v2 .hv2-video-cat {
    position: absolute;
    z-index: 2;
    padding: .2rem .6rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
}
.home-v2 .hv2-video-duration { bottom: .75rem; inset-inline-start: .75rem; background: rgba(0, 0, 0, .8); color: #fff; }
.home-v2 .hv2-video-cat { top: .75rem; inset-inline-start: .75rem; border-radius: 999px; background: var(--hv-accent); color: #fff; }
.home-v2 .hv2-video-body { padding: 1rem 1.1rem 1.1rem; }
.home-v2 .hv2-video-body h4 { margin: 0 0 .3rem; color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.5; }
.home-v2 .hv2-video-body p { margin: 0; color: #94a3b8; font-size: .76rem; line-height: 1.7; }
.home-v2 .hv2-video-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .7rem; color: #94a3b8; font-size: .72rem; }
.home-v2 .hv2-video-meta i { margin-inline-end: .2rem; }

.home-v2 .hv2-post-list { display: flex; flex-direction: column; gap: 1rem; }
.home-v2 .hv2-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--hv-line);
    border-radius: 12px;
    background: var(--hv-surface-2);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}
.home-v2 .hv2-post:hover { border-color: var(--hv-accent); background: var(--hv-surface); }
.home-v2 .hv2-post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hv-chip);
    color: var(--hv-faint);
    overflow: hidden;
}
.home-v2 .hv2-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .hv2-post-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.home-v2 .hv2-post-text strong {
    color: var(--hv-ink);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-v2 .hv2-post-excerpt {
    color: var(--hv-muted);
    font-size: .74rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   9. WHY US / STATS
   ========================================================================== */
.home-v2 .hv2-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.home-v2 .hv2-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 767.98px) {
    .home-v2 .hv2-feature-grid,
    .home-v2 .hv2-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
.home-v2 .hv2-feature,
.home-v2 .hv2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    height: 100%;
    padding: 1.4rem 1rem;
    border: 1px solid var(--hv-line);
    border-radius: var(--hv-radius);
    background: var(--hv-surface);
    box-shadow: var(--hv-shadow-sm);
    text-align: center;
    transition: box-shadow .3s ease, transform .3s ease;
}
.home-v2 .hv2-feature:hover,
.home-v2 .hv2-stat:hover { box-shadow: var(--hv-shadow-md); transform: translateY(-3px); }
.home-v2 .hv2-feature-icon,
.home-v2 .hv2-stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--hv-accent-soft);
    color: var(--hv-accent-text);
    font-size: 1.15rem;
    transition: background-color .25s ease, color .25s ease;
}
.home-v2 .hv2-feature:hover .hv2-feature-icon,
.home-v2 .hv2-stat:hover .hv2-stat-icon { background: var(--hv-accent); color: #fff; }
.home-v2 .hv2-feature h3 { margin: .25rem 0 0; color: var(--hv-ink); font-size: .95rem; font-weight: 800; }
.home-v2 .hv2-feature p { margin: 0; color: var(--hv-muted); font-size: .78rem; line-height: 1.7; }
.home-v2 .hv2-stat-number { color: var(--hv-brand-text); font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.home-v2 .hv2-stat-label { margin: 0; color: var(--hv-ink); font-size: .88rem; font-weight: 800; }
.home-v2 .hv2-stat-sub { margin: 0; color: var(--hv-muted); font-size: .75rem; }

/* ==========================================================================
   10. BANNER ROWS between sections
   ========================================================================== */
.home-v2 .home-banner-row { padding: 1.5rem 0; background: var(--hv-page); }
.home-v2 .home-banner-row .container { display: flex; justify-content: center; align-items: center; }
.home-v2 .home-banner-row .paid-banner-root,
.home-v2 .home-banner-row > .container > * { width: 100%; max-width: 970px; }
.home-v2 .simple-home-banner-wrap { width: 100%; max-width: 970px; margin: 0 auto; }
.home-v2 .simple-home-banner-link { display: block; }
.home-v2 .simple-home-banner-img { display: block; width: 100%; height: auto; border-radius: var(--hv-radius); }

/* ==========================================================================
   11. TUBE VIDEO MODAL (player opened from the featured video)
   ========================================================================== */
.home-v2 { --tube-red: #ff6001; }
.home-v2 .tube-modal-publisher {
  padding: .5rem 1rem 0;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
.home-v2 .tube-modal-publisher i { color: var(--tube-red); margin-inline-end: .35rem; }
/* ── MODAL ── */
.home-v2 .tube-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.home-v2 .tube-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.home-v2 .tube-modal {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  width: 100%; max-width: 860px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  transform: scale(.92);
  transition: transform .3s ease;
  position: relative;
}
.home-v2 .tube-modal-overlay.open .tube-modal { transform: scale(1); }
.home-v2 .tube-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: #111;
  gap: .75rem;
}
.home-v2 .tube-modal-title {
  font-size: .95rem; font-weight: 700; color: #fff;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-v2 .tube-modal-close {
  background: rgba(255,255,255,.12); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.home-v2 .tube-modal-close:hover { background: var(--tube-red); }
.home-v2 .tube-video-wrap {
  position: relative; aspect-ratio: 16/9;
  background: #000;
}
.tube-video-wrap iframe,
.home-v2 .tube-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.home-v2 .tube-modal-desc {
  padding: .75rem 1rem;
  background: #111; color: rgba(255,255,255,.7);
  font-size: .85rem; line-height: 1.6;
  max-height: 100px; overflow-y: auto;
}

/* ── SHARE ROW ── */
.home-v2 .tube-share-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: #181818; border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.home-v2 .tube-share-label {
  color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.home-v2 .tube-share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-v2 .tube-share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff !important; font-size: .95rem; text-decoration: none;
  transition: transform .2s ease;
  border: none; cursor: pointer;
}
.home-v2 .tube-share-btn:hover { transform: translateY(-2px) scale(1.05); }
.home-v2 .tube-share-btn.whatsapp { background: #25D366; }
.home-v2 .tube-share-btn.facebook { background: #1877F2; }
.home-v2 .tube-share-btn.twitter { background: #000000; }
.home-v2 .tube-share-btn.telegram { background: #2AABEE; }
.home-v2 .tube-share-btn.copy-link { background: #6b7280; }

/* ── MODAL BELOW-PLAYER SCROLL AREA ── */
.home-v2 .tube-modal-below {
  max-height: 42vh;
  overflow-y: auto;
  background: #181818;
}

/* ── LIKE ── */
.home-v2 .tube-like-row { padding: .75rem 1rem 0; }
.home-v2 .tube-like-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .2s ease;
}
.home-v2 .tube-like-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.home-v2 .tube-like-btn i { color: rgba(255,255,255,.6); }
.home-v2 .tube-like-btn.liked { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.home-v2 .tube-like-btn.liked i { color: #ef4444; }
.home-v2 .tube-like-login { opacity: .85; }

/* ── COMMENTS ── */
.home-v2 .tube-comments { padding: 1rem; }
.home-v2 .tube-comments-title {
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 700;
  margin-bottom: .6rem; display: flex; align-items: center; gap: 6px;
}
.home-v2 .tube-comment-form { display: flex; gap: 8px; margin-bottom: 1rem; }
.home-v2 .tube-comment-input {
  flex: 1; resize: none; border-radius: 10px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #fff; padding: .5rem .75rem; font-size: .85rem;
}
.home-v2 .tube-comment-input:focus { outline: none; border-color: var(--tube-red); }
.home-v2 .tube-comment-input::placeholder { color: rgba(255,255,255,.4); }
.home-v2 .tube-comment-submit {
  border: none; border-radius: 10px; padding: 0 1rem;
  background: var(--tube-red); color: #fff; cursor: pointer;
}
.home-v2 .tube-comment-login { font-size: .82rem; margin-bottom: 1rem; }
.home-v2 .tube-comment-login a { color: var(--tube-red); }

.home-v2 .tube-comments-list { display: flex; flex-direction: column; gap: .75rem; }
.home-v2 .tube-comment-item { display: flex; gap: 10px; }
.home-v2 .tube-comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
  overflow: hidden;
}
.home-v2 .tube-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .tube-comment-body { flex: 1; min-width: 0; }
.home-v2 .tube-comment-header { display: flex; align-items: center; gap: 8px; }
.home-v2 .tube-comment-author { color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 700; }
.home-v2 .tube-comment-date { color: rgba(255,255,255,.4); font-size: .72rem; }
.home-v2 .tube-comment-text { color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.5; word-break: break-word; margin: .15rem 0 0; text-align: start; unicode-bidi: plaintext; }
.home-v2 .tube-comment-delete {
  margin-inline-start: auto;
  background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer; font-size: .75rem;
  padding: 2px;
}
.home-v2 .tube-comment-delete:hover { color: #ef4444; }
.home-v2 .tube-comments-empty { color: rgba(255,255,255,.4); font-size: .82rem; text-align: center; padding: .5rem 0; }

/* ==========================================================================
   12. CAROUSELS (Swiper) — every card row on the homepage (no arrows/dots)
   ========================================================================== */
.home-v2 .hv2-swiper { padding: .25rem .25rem 1rem; margin: -.25rem; }
.home-v2 .hv2-swiper .swiper-slide { height: auto; }
/* Course card: duration chip on the image */
.home-v2 .hv2-media-chip {
    position: absolute;
    bottom: .75rem;
    inset-inline-start: .75rem;
    z-index: 2;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .75);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}
.home-v2 .hv2-course-card .hv2-card-meta i { color: var(--hv-brand-text); }
.home-v2 .hv2-course-card .hv2-rating,
.home-v2 .hv2-course-card .hv2-rating i { color: #d97706; margin-inline-start: 0; }

/* Course card embedded outside the homepage (academy pages): the wrapper only
   provides the .home-v2 scope/tokens and fills its grid or slide cell. */
.home-v2.hv2-embed { display: flex; flex-direction: column; height: 100%; background: transparent; color: inherit; }
.home-v2.hv2-embed > .hv2-card { flex: 1; }

/* A .home-v2 scope placed on another page's own container (e.g. the
   /content/tube/ grid): tokens only, no page background. */
.home-v2.hv2-scope { background: transparent; color: inherit; }
/* Video cards in a grid: 16:9 thumbnails and equal-height cards */
.home-v2.hv2-scope .hv2-video { display: flex; flex-direction: column; height: 100%; }
.home-v2.hv2-scope .hv2-video-thumb { height: auto; aspect-ratio: 16 / 9; }
.home-v2.hv2-scope .hv2-video-play { width: 54px; height: 54px; font-size: 1.15rem; }
.home-v2.hv2-scope .hv2-video-body { flex: 1; display: flex; flex-direction: column; }
.home-v2.hv2-scope .hv2-video-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-v2.hv2-scope .hv2-video-meta { margin-top: auto; padding-top: .7rem; }

/* ==========================================================================
   13. TOOLS FOR ENGINEERS (CustomPages show_above_features)
   Soft brand-tinted band in light mode; plain dark surface in dark mode —
   colours come from the --hv-* tokens, so both themes follow automatically.
   ========================================================================== */
.home-v2 .hv2-tools {
    background:
        radial-gradient(circle at 12% 0%, var(--hv-accent-soft), transparent 45%),
        radial-gradient(circle at 88% 100%, var(--hv-brand-soft), transparent 50%),
        var(--hv-surface-2) !important;
    border-top: 1px solid var(--hv-line);
    border-bottom: 1px solid var(--hv-line);
    color: var(--hv-text);
}
.home-v2 .hv2-tools-head { max-width: 640px; margin: 0 auto 2.25rem; text-align: center; }
.home-v2 .hv2-tools .hv2-title { color: var(--hv-ink) !important; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.home-v2 .hv2-tools .hv2-sub { color: var(--hv-muted) !important; }
.home-v2 .hv2-tools .hv2-eyebrow--accent { background: var(--hv-accent-soft); color: var(--hv-accent-text); }
.home-v2 .hv2-tools-hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--hv-faint); font-size: .7rem; }
.home-v2 .hv2-tool {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--hv-line);
    border-radius: var(--hv-radius);
    background: var(--hv-surface);
    box-shadow: var(--hv-shadow-sm);
    color: var(--hv-text);
    text-decoration: none;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.home-v2 .hv2-tool:hover { border-color: var(--hv-accent-line); box-shadow: var(--hv-shadow-md); transform: translateY(-4px); color: var(--hv-text); }
.home-v2 .hv2-tool-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: var(--hv-accent-soft);
    color: var(--hv-accent-text);
    font-size: 1.15rem;
    overflow: hidden;
}
.home-v2 .hv2-tool-icon img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .hv2-tool .hv2-kicker { color: var(--hv-accent-text); font-size: .7rem; }
.home-v2 .hv2-tool h3 { margin: .25rem 0 .5rem; color: var(--hv-ink); font-size: 1.2rem; font-weight: 900; line-height: 1.4; }
.home-v2 .hv2-tool p { margin: 0 0 1.25rem; color: var(--hv-muted); font-size: .78rem; line-height: 1.8; }
.home-v2 .hv2-tool-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--hv-line);
    color: var(--hv-brand-text);
    font-size: .78rem;
    font-weight: 800;
}
.home-v2 .hv2-tool-foot i { transition: transform .3s ease, color .3s ease; }
.home-v2 .hv2-tool:hover .hv2-tool-foot { color: var(--hv-accent-text); }
.home-v2 .hv2-tool:hover .hv2-tool-foot i { color: var(--hv-accent); transform: translateX(-4px); }
[dir='ltr'] .home-v2 .hv2-tool:hover .hv2-tool-foot i { transform: translateX(4px); }

/* ==========================================================================
   14. INNER PAGES built on the homepage system (e.g. /jobs/candidates/)
   ========================================================================== */
.home-v2 .hv2-page-hero {
    padding: 3.5rem 0 4.5rem;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 96, 1, .3), transparent 45%),
        linear-gradient(135deg, #4b315e 0%, #1e1029 100%);
}
.home-v2 .hv2-page-hero h1 { margin: 0 0 .75rem; color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 900; }
.home-v2 .hv2-page-hero p { max-width: 680px; margin: 0 auto 1.5rem; color: #cbd5e1; font-size: .95rem; line-height: 1.9; }
.home-v2 .hv2-page-hero .hv2-hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; }
.home-v2 .hv2-page-hero-actions { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.home-v2 .hv2-page-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.home-v2 .hv2-page-hero-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.home-v2 .hv2-page-hero-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.home-v2 .hv2-page-hero-links a.is-active { background: #fff; border-color: #fff; color: var(--hv-brand); }
.home-v2 .hv2-page-body { padding-top: 0 !important; }

/* Filter card (overlaps the hero) */
.home-v2 .hv2-filter {
    position: relative;
    z-index: 2;
    margin-top: -2.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--hv-line);
    border-radius: var(--hv-radius);
    background: var(--hv-surface);
    box-shadow: var(--hv-shadow-md);
}
.home-v2 .hv2-filter input:not([type='checkbox']),
.home-v2 .hv2-filter select {
    width: 100%;
    height: 44px;
    padding: 0 .85rem;
    border: 1px solid var(--hv-line);
    border-radius: 10px;
    background: var(--hv-surface-2);
    color: var(--hv-ink);
    font-family: inherit;
    font-size: .85rem;
    outline: 0;
}
.home-v2 .hv2-filter input:focus,
.home-v2 .hv2-filter select:focus { border-color: var(--hv-accent); box-shadow: 0 0 0 3px rgba(255, 96, 1, .15); }
.home-v2 .hv2-filter select:disabled { opacity: .6; }
.home-v2 .hv2-filter-main { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; gap: .6rem; }
.home-v2 .hv2-filter-search { position: relative; display: block; margin: 0; }
.home-v2 .hv2-filter-search i { position: absolute; top: 50%; inset-inline-start: .9rem; transform: translateY(-50%); color: var(--hv-faint); }
.home-v2 .hv2-filter .hv2-filter-search input { padding-inline-start: 2.4rem; }
.home-v2 .hv2-filter-main .hv2-btn { height: 44px; padding-inline: 1.4rem; }
.home-v2 .hv2-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .75rem;
    padding: .2rem 0;
    border: 0;
    background: none;
    color: var(--hv-brand-text);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 800;
}
.home-v2 .hv2-filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hv-accent); }
.home-v2 .hv2-filter-chevron { font-size: .7rem; transition: transform .2s ease; }
.home-v2 .hv2-filter-toggle[aria-expanded='true'] .hv2-filter-chevron { transform: rotate(180deg); }
.home-v2 .hv2-filter-more { display: none; margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--hv-line); }
.home-v2 .hv2-filter-more.open { display: block; }
.home-v2 .hv2-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.home-v2 .hv2-filter-grid label { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.home-v2 .hv2-filter-grid label > span { color: var(--hv-muted); font-size: .72rem; font-weight: 800; }
.home-v2 .hv2-filter-grid input:not([type='checkbox']),
.home-v2 .hv2-filter-grid select { height: 40px; }
.home-v2 .hv2-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.home-v2 .hv2-filter-chips-label { margin-inline-end: .2rem; color: var(--hv-muted); font-size: .72rem; font-weight: 800; }
.home-v2 .hv2-filter-chips-label:not(:first-child) { margin-inline-start: .75rem; }
.home-v2 .hv2-chip {
    padding: .25rem .7rem;
    border: 1px solid var(--hv-line);
    border-radius: 999px;
    background: var(--hv-surface);
    color: var(--hv-text);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}
.home-v2 .hv2-chip:hover { border-color: var(--hv-accent-line); color: var(--hv-accent-text); }
.home-v2 .hv2-chip.is-active { background: var(--hv-accent-soft); border-color: var(--hv-accent); color: var(--hv-accent-text); }
.home-v2 .hv2-filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.home-v2 .hv2-filter-foot-actions { display: flex; gap: .5rem; }
.home-v2 .hv2-check { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--hv-text); font-size: .8rem; font-weight: 700; cursor: pointer; }
.home-v2 .hv2-check input { width: 17px; height: 17px; accent-color: var(--hv-accent); }
@media (max-width: 991.98px) {
    .home-v2 .hv2-filter-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-v2 .hv2-filter-search { grid-column: 1 / -1; }
    .home-v2 .hv2-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .home-v2 .hv2-filter-main { grid-template-columns: 1fr 1fr; }
    .home-v2 .hv2-filter-main .hv2-btn { grid-column: 1 / -1; }
    .home-v2 .hv2-filter-grid { grid-template-columns: 1fr; }
}

/* Results */
.home-v2 .hv2-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.home-v2 .hv2-results-bar strong { color: var(--hv-ink); font-size: .95rem; font-weight: 900; }
.home-v2 .hv2-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1199.98px) { .home-v2 .hv2-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .home-v2 .hv2-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 575.98px)  { .home-v2 .hv2-card-grid { grid-template-columns: 1fr; } }

.home-v2 .hv2-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.home-v2 .hv2-pagination a,
.home-v2 .hv2-pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;
    border: 1px solid var(--hv-line);
    border-radius: 10px;
    background: var(--hv-surface);
    color: var(--hv-text);
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}
.home-v2 .hv2-pagination a:hover { border-color: var(--hv-accent); color: var(--hv-accent-text); }
.home-v2 .hv2-pagination .is-active { background: var(--hv-accent); border-color: var(--hv-accent); color: #fff; }

/* Candidate card extras: featured ribbon + bookmark */
.home-v2 .hv2-ribbon--accent { background: var(--hv-accent); inset-inline-end: auto; inset-inline-start: 0; border-end-start-radius: 0; border-end-end-radius: 12px; }
.home-v2 .hv2-person-card.is-featured { border-color: var(--hv-accent-line); }
.home-v2 .hv2-person-save { position: absolute; top: .75rem; inset-inline-end: .75rem; }

/* ---- Ad card: publisher, custom fields, service tags, rating ---- */
.home-v2 .hv2-ad-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 38px; }
/* Publisher avatar: gradient ring (accent → brand) with the verified/company badge pinned to its corner */
.home-v2 .hv2-ad-publisher {
    --hv2-avatar: 38px;            /* outer size, ring included */
    position: relative;
    flex: 0 0 var(--hv2-avatar);
    box-sizing: border-box;
    width: var(--hv2-avatar);
    height: var(--hv2-avatar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hv-accent) 0%, var(--hv-brand) 100%);
    box-shadow: 0 4px 10px -4px rgba(75, 49, 94, .45);
    line-height: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-v2 .hv2-card:hover .hv2-ad-publisher { transform: scale(1.06); box-shadow: 0 6px 14px -4px rgba(255, 96, 1, .45); }
/* The avatar fills the ring exactly (overrides the tag's inline 28px size) */
.home-v2 .hv2-ad-publisher .hv2-ad-avatar {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    max-width: none;
    margin: 0;
    border-radius: 50% !important;
    border: 2px solid var(--hv-surface);
    background: var(--hv-chip);
    object-fit: cover;
    object-position: center;
    font-size: .75rem !important;
}
.home-v2 .hv2-ad-verified {
    position: absolute;
    bottom: -2px;
    inset-inline-end: -2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hv-surface);
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    font-size: .45rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
}
.home-v2 .hv2-ad-verified--company { background: var(--hv-brand); }
.home-v2 .hv2-ad-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.home-v2 .hv2-ad-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
    padding: .2rem .55rem;
    border-radius: 8px;
    background: var(--hv-chip);
    color: var(--hv-text);
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-v2 .hv2-ad-tag i { color: var(--hv-brand-text); font-size: .62rem; }
.home-v2 .hv2-ad-tag-label { color: var(--hv-muted); font-weight: 600; }
.home-v2 .hv2-ad-tag--ok { background: var(--hv-success-soft); color: var(--hv-success); }
.home-v2 .hv2-ad-tag--ok i { color: var(--hv-success); }
.home-v2 .hv2-ad-tag--brand { background: var(--hv-brand-soft); color: var(--hv-brand-text); }
.home-v2 .hv2-ad-rating,
.home-v2 .hv2-ad-rating i { color: #d97706 !important; font-weight: 800; }
.home-v2 .hv2-ad-rating small { color: var(--hv-faint); font-weight: 600; }

/* Candidate card: availability pill */
.home-v2 .hv2-person-avail {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: 1rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--hv-chip);
    color: var(--hv-muted);
    font-size: .68rem;
    font-weight: 800;
}
.home-v2 .hv2-person-avail i { font-size: .4rem; }
.home-v2 .hv2-person-avail--immediate { background: var(--hv-success-soft); color: var(--hv-success); }
.home-v2 .hv2-person-card .hv2-person-meta { margin-bottom: .6rem; }

/* Course card: instructor row (photo, name, course rating) */
.home-v2 .hv2-course-instructor{display:flex;align-items:center;gap:.5rem;margin:.35rem 0 .5rem;font-size:.85rem;font-weight:700}
.home-v2 .hv2-course-instructor img,.home-v2 .hv2-course-instructor .hv2-course-instructor-img,.home-v2 .hv2-course-instructor-ph{width:30px !important;height:30px !important;min-width:30px !important;max-width:30px !important;min-height:30px !important;max-height:30px !important;border-radius:50% !important;object-fit:cover !important;flex-shrink:0 !important}
.home-v2 .hv2-course-instructor-ph{display:inline-flex;align-items:center;justify-content:center;background:rgba(75,49,94,.1);color:var(--primary-color,#4b315e);font-size:.8rem}
.home-v2 .hv2-course-instructor-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
