/* Integrated search experience for the public PANJI blog home. */

.panji-app .blog-home-hero {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.25rem);
    border: 1px solid rgba(46, 111, 149, 0.15);
    background:
        radial-gradient(circle at 88% 12%, rgba(181, 30, 42, 0.095), transparent 18rem),
        radial-gradient(circle at 70% 105%, rgba(46, 111, 149, 0.14), transparent 25rem),
        linear-gradient(132deg, #ffffff 0%, #f6fafc 56%, #eef6fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.panji-app .blog-home-hero::before {
    position: absolute;
    top: -7rem;
    right: -4rem;
    width: 19rem;
    height: 19rem;
    border: 1px solid rgba(46, 111, 149, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 2.6rem rgba(46, 111, 149, 0.025),
        0 0 0 5.2rem rgba(181, 30, 42, 0.018);
    content: "";
    pointer-events: none;
}

.panji-app .blog-home-hero::after {
    position: absolute;
    top: 0;
    right: clamp(1.25rem, 4vw, 3.5rem);
    left: clamp(1.25rem, 4vw, 3.5rem);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #2e6f95 0 76%, #b51e2a 76% 100%);
    content: "";
}

.panji-app .blog-home-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    display: grid;
    gap: clamp(1.65rem, 3vw, 2.4rem);
}

.panji-app .blog-home-hero__copy {
    width: min(100%, 59rem);
}

.panji-app .blog-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: #245f80;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    line-height: 1.2;
    text-transform: uppercase;
}

.panji-app .blog-home-hero__eyebrow > span {
    width: 1.55rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e6f95 0 72%, #b51e2a 72% 100%);
}

.panji-app .blog-home-hero__title {
    max-width: 22ch;
    margin: 0;
    color: #20262b;
    font-size: clamp(2rem, 4.2vw, 3.55rem);
    font-weight: 830;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.panji-app .blog-home-hero__description {
    max-width: 58rem;
    margin: 1rem 0 0;
    color: #5f6a73;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.75;
}

.panji-app .blog-hero-search {
    width: min(100%, 62rem);
    display: grid;
    gap: 0.62rem;
}

.panji-app .blog-hero-search__shell {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.48rem;
    border: 1px solid rgba(46, 111, 149, 0.19);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 1rem 2.4rem rgba(32, 36, 40, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.panji-app .blog-hero-search__field {
    min-width: 0;
    min-height: 3.25rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    padding: 0 0.92rem;
    border: 1px solid transparent;
    border-radius: 0.78rem;
    background: #f7fafc;
    color: #68747d;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.panji-app .blog-hero-search__field:focus-within {
    border-color: rgba(46, 111, 149, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(46, 111, 149, 0.12);
}

.panji-app .blog-hero-search__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    color: #2e6f95;
}

.panji-app .blog-hero-search__field input {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252a2f;
    font-size: 0.94rem;
    box-shadow: none;
}

.panji-app .blog-hero-search__field input::placeholder {
    color: #8d99a2;
    opacity: 1;
}

.panji-app .blog-hero-search__submit {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    padding: 0.72rem 1.18rem;
    border: 1px solid #245a78;
    border-radius: 0.78rem;
    background: linear-gradient(135deg, #397fa6, #245a78);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 760;
    white-space: nowrap;
    box-shadow: 0 0.55rem 1.25rem rgba(46, 111, 149, 0.2);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.panji-app .blog-hero-search__submit:hover,
.panji-app .blog-hero-search__submit:focus-visible {
    border-color: #1d4963;
    background: linear-gradient(135deg, #2e6f95, #1d4963);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.5rem rgba(46, 111, 149, 0.27);
    outline: none;
}

.panji-app .blog-hero-search__submit svg,
.panji-app .blog-hero-search__reset svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.panji-app .blog-hero-search__footer {
    min-height: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 1rem;
    padding-inline: 0.2rem;
}

.panji-app .blog-hero-search__help {
    margin: 0;
    color: #74808a;
    font-size: 0.74rem;
    line-height: 1.5;
}

.panji-app .blog-hero-search__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #941923;
    font-size: 0.74rem;
    font-weight: 730;
    text-decoration: none;
}

.panji-app .blog-hero-search__reset:hover,
.panji-app .blog-hero-search__reset:focus-visible {
    color: #6f1119;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    outline: none;
}

@media (max-width: 767.98px) {
    .panji-app .blog-home-hero {
        padding: 2rem 1.35rem;
    }

    .panji-app .blog-home-hero__title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .panji-app .blog-hero-search__shell {
        grid-template-columns: 1fr;
    }

    .panji-app .blog-hero-search__submit {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .panji-app .blog-home-hero {
        padding: 1.7rem 1rem 1.45rem;
        border-radius: 1rem !important;
    }

    .panji-app .blog-home-hero::before {
        width: 13rem;
        height: 13rem;
    }

    .panji-app .blog-home-hero__content {
        gap: 1.45rem;
    }

    .panji-app .blog-home-hero__description {
        font-size: 0.96rem;
        line-height: 1.68;
    }

    .panji-app .blog-hero-search__shell {
        padding: 0.38rem;
        border-radius: 0.9rem;
    }

    .panji-app .blog-hero-search__field,
    .panji-app .blog-hero-search__submit {
        min-height: 3rem;
        border-radius: 0.68rem;
    }

    .panji-app .blog-hero-search__field input {
        min-height: 2.75rem;
        font-size: 0.88rem;
    }

    .panji-app .blog-hero-search__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@supports not (backdrop-filter: blur(12px)) {
    .panji-app .blog-hero-search__shell {
        background: #ffffff;
    }
}

@media (forced-colors: active) {
    .panji-app .blog-home-hero,
    .panji-app .blog-hero-search__shell,
    .panji-app .blog-hero-search__field,
    .panji-app .blog-hero-search__submit {
        border: 1px solid CanvasText;
        forced-color-adjust: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panji-app .blog-hero-search__field,
    .panji-app .blog-hero-search__submit {
        transition: none;
    }
}
