/*
 * ListKerala sitewide hero system
 * Shared visual language: clean white navigation, deep Kerala green, restrained
 * gold accents, flexible type and action rows. Loaded after legacy site styles
 * so older page-specific rules cannot force clipped hero titles.
 */

/* Shared header: airy, white, and steady across every route. */
.header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(19, 56, 39, .1);
}

.header-content {
    min-height: 76px;
    padding: .7rem 0;
}

.logo {
    height: 43px;
    max-width: min(190px, 38vw);
    object-fit: contain;
}

.nav {
    gap: clamp(.25rem, 2vw, 1.6rem);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 0;
    padding: .55rem .65rem;
    color: #2b3932;
}

.nav-link:hover,
.nav-item:hover .nav-link,
.nav-link.active {
    background: transparent;
    color: var(--kerala-green);
}

/* Interior pages, listings, detail pages, search and editorial templates. */
.highlight-hero {
    --kerala-green: #176345;
    --kerala-dark: #123f2e;
    --kerala-gold: #ffd318;
    --gradient: linear-gradient(112deg, #123f2e 0%, #174b36 63%, #205638 100%);
    isolation: isolate;
    min-height: 382px;
    padding: 1.4rem 0 3.6rem;
    background: var(--gradient);
}

.highlight-hero::after {
    z-index: -1;
    width: min(34rem, 65vw);
    height: min(34rem, 65vw);
    right: -13rem;
    bottom: -23rem;
    border-color: rgba(255,255,255,.1);
    box-shadow: 0 0 0 2.1rem rgba(255,255,255,.025), 0 0 0 4.3rem rgba(255,255,255,.02);
}

.highlight-hero > .container {
    position: relative;
    z-index: 1;
}

.highlight-breadcrumb {
    gap: .5rem;
    margin-bottom: clamp(2.3rem, 5vw, 3.6rem);
    font-size: .78rem;
}

.highlight-breadcrumb a {
    color: var(--kerala-gold);
}

.highlight-breadcrumb strong {
    color: rgba(255,255,255,.9);
    overflow-wrap: anywhere;
}

.highlight-hero-content {
    max-width: 920px;
}

.highlight-hero-content > div {
    min-width: 0;
}

.highlight-kicker {
    margin: 0 0 .65rem;
    color: var(--kerala-gold);
    font-size: .76rem;
    letter-spacing: .18em;
    line-height: 1.5;
}

.highlight-hero h1 {
    max-width: 100%;
    margin: 0 0 .8rem;
    font-size: clamp(2.1rem, 5.15vw, 3.65rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.inner-hero h1,
.inner-hero h1.inner-hero__title--wrap,
.resource-directory-page .inner-hero h1.inner-hero__title--wrap {
    white-space: normal;
    font-size: clamp(2.1rem, 5.15vw, 3.65rem);
}

.highlight-hero p {
    max-width: 760px;
    margin: 0 0 1.7rem;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.7vw, 1.13rem);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.highlight-actions {
    gap: .75rem;
}

.highlight-actions .btn,
.hero-buttons .btn,
.error-actions .btn {
    min-height: 49px;
    padding: .72rem 1.45rem;
    border: 1px solid var(--kerala-gold);
    border-radius: 999px;
    background: var(--kerala-gold);
    box-shadow: 0 5px 14px rgba(255,211,24,.18);
    color: #263b2e;
    font-weight: 700;
    text-align: center;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.highlight-actions .btn:hover,
.hero-buttons .btn:hover,
.error-actions .btn:hover {
    transform: translateY(-2px);
    background: #ffe04a;
}

.highlight-actions .btn-secondary,
.hero-buttons .btn-secondary,
.error-actions .btn-secondary {
    color: #fff;
    background: transparent;
    border-color: rgba(255,255,255,.9);
    box-shadow: none;
}

.highlight-actions .btn-secondary:hover,
.hero-buttons .btn-secondary:hover,
.error-actions .btn-secondary:hover {
    color: var(--kerala-dark);
    background: #fff;
}

/* Error view shares the same hero structure without changing its copy or links. */
.error-page {
    min-height: 74vh;
    padding: 0 0 4rem;
    display: block;
    background: var(--kerala-cream);
}

.error-page > .container {
    max-width: none;
    padding: 0;
}

.error-content {
    --kerala-dark: #123f2e;
    --kerala-gold: #ffd318;
    --gradient: linear-gradient(112deg, #123f2e 0%, #174b36 63%, #205638 100%);
    max-width: none;
    margin: 0;
    padding: 1.4rem max(20px, calc((100vw - 1240px) / 2)) 3.5rem;
    color: #fff;
    background: var(--gradient);
    text-align: left;
}

.error-breadcrumb {
    max-width: 1240px;
    margin: 0 auto 2.6rem;
}

.error-content > .highlight-kicker {
    display: block;
    max-width: 1240px;
    margin: 0 auto .55rem;
}

.error-code {
    max-width: 1240px;
    margin: 0 auto .35rem;
    color: var(--kerala-gold);
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.12;
    text-align: left;
}

.error-title,
.error-message,
.error-actions {
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.error-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
}

.error-message {
    max-width: 760px;
    margin-bottom: 1.6rem;
    color: rgba(255,255,255,.82);
}

.error-actions {
    justify-content: flex-start;
}

.error-suggestions {
    max-width: 1240px;
    margin: 2.5rem auto 0;
    border: 1px solid rgba(23,99,69,.12);
    border-radius: 16px;
}

@media (max-width: 640px) {
    .header-content {
        min-height: 66px;
    }

    .highlight-hero {
        min-height: 0;
        padding: 1.1rem 0 2.6rem;
    }

    .highlight-breadcrumb {
        margin-bottom: 2.1rem;
    }

    .highlight-hero h1,
    .inner-hero h1,
    .inner-hero h1.inner-hero__title--wrap,
    .resource-directory-page .inner-hero h1.inner-hero__title--wrap {
        font-size: clamp(1.95rem, 9vw, 2.55rem);
        line-height: 1.1;
        letter-spacing: -.03em;
    }

    .highlight-actions {
        align-items: stretch;
    }

    .highlight-actions .btn {
        flex: 1 1 100%;
    }

    .error-page > .container {
        padding: 0;
    }

    .error-content {
        padding: 1.1rem 20px 2.4rem;
    }

    .error-breadcrumb {
        margin-bottom: 2rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-suggestions {
        margin: 1.4rem 20px 0;
        padding: 1.3rem;
    }
}
