/* ── Home Hero ────────────────────────────────────────────────── */

.home-hero {
    position: relative;
    background: #1a003e;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

/* .home-hero {
    position: relative;
    overflow: hidden;
    background-image: url('bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a003e;
} */

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 0, 62, 0.2);
    z-index: 0;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 96px;
    padding-bottom: 96px;
    min-height: 635px;
    display: flex;
    align-items: center;
    padding-left: 32px;
    padding-right: 32px;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 720px;
}

/* ── Headline + title ─────────────────────────────────────────── */

.home-hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-hero-headline {
    margin: 0;
    color: var(--wp--preset--color--yellow);
    font-size: 18px;
    font-weight: 300;
    line-height: 24px;
}

.home-hero-title {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

/* ── Description ──────────────────────────────────────────────── */

.home-hero-desc-wrap {
    border-left: 4px solid var(--wp--preset--color--yellow);
    padding-left: 24px;
}

.home-hero-desc {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
}

/* ── Search ───────────────────────────────────────────────────── */

.home-hero-search-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-hero-search {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--wp--preset--color--neutral-50);
    border-radius: 4px;
    padding: 16px 24px;
    box-shadow: 0 0 12.5px 5px rgba(26, 26, 37, 0.1);
}

.home-hero-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--wp--preset--color--dark);
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    padding: 0;
}

.home-hero-search-input::placeholder {
    color: var(--wp--preset--color--dark);
}

/* remove browser native search clear button */
.home-hero-search-input::-webkit-search-cancel-button {
    display: none;
}

.home-hero-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* ── Tags ─────────────────────────────────────────────────────── */

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--wp--preset--color--neutral-300);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--wp--preset--color--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s;
}

.home-hero-tag strong {
    font-weight: 700;
}

.home-hero-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

/* ── Admin bar fix: handled via body padding reduction in init_styles.php ── */

/* ── Mobile ≤767px ────────────────────────────────────────────── */

@media (max-width:1199px) {
    .home-hero-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .home-hero-inner {
        padding-top: 56px;
        padding-bottom: 56px;
        min-height: unset;
        align-items: flex-start;
    }

    .home-hero-content {
        gap: 28px;
        max-width: 100%;
    }

    .home-hero-title {
        font-size: 40px;
        letter-spacing: -0.02em;
    }

    .home-hero-desc {
        font-size: 16px;
        line-height: 24px;
    }

    .home-hero-tags {
        gap: 8px;
    }

    .home-hero-tag {
        white-space: nowrap;
    }
}