/* Unified page hero — works in both site and app-base layouts */
.page-hero {
    position: relative;
    background-color: #1a4d2e;
    color: #fff;
    overflow: hidden;
}

.page-hero-bg,
.page-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    background: linear-gradient(
        to right,
        rgba(20, 70, 40, 0.9),
        rgba(35, 100, 55, 0.8),
        rgba(50, 130, 70, 0.6)
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .page-hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-hero-content {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.page-hero-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .page-hero-hindi {
        font-size: 1rem;
    }
}

.page-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
    .page-hero-title {
        font-size: 3rem;
    }
}

.page-hero-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 42rem;
    line-height: 1.625;
}

.page-hero-search {
    margin-top: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 0.5rem;
}

.page-hero-search input {
    flex: 1;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.page-hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero-search input:focus {
    border-color: #F5A623;
}

.page-hero-search button {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: #F5A623;
    color: #1a2e1a;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* Compact hero variant — smaller title/subtitle */
.page-hero-compact .page-hero-title {
    font-size: 1.875rem;
}

.page-hero-compact .page-hero-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .page-hero-compact .page-hero-title {
        font-size: 2.5rem;
    }

    .page-hero-compact .page-hero-subtitle {
        font-size: 1.125rem;
        margin-top: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE COMPACT HERO OVERRIDES (<640px)
   Shrinks the default large hero so actual content starts sooner.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    .page-hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-hero-title {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .page-hero-subtitle {
        font-size: 0.9375rem;
        margin-top: 0.5rem;
        line-height: 1.5;
    }

    .page-hero-search {
        margin-top: 1.25rem;
    }

    .page-hero-search input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .page-hero-search button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
