/* Inner marketing pages — matches homepage (Nipun India ERP) */

.hp-inner-page .hp-inner-main {
    min-height: 50vh;
}

.hp-page-hero {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(135deg, #002443 0%, #0a3d6e 55%, #0f4c81 100%);
    color: #fff;
}

.hp-page-hero .container {
    max-width: 52rem;
}

.hp-page-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.hp-page-hero h1 {
    margin: 0 0 1rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hp-page-hero-lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 42rem;
}

.hp-page-section {
    padding: 3.5rem 0;
}

.hp-page-section--alt {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.hp-page-section-head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.hp-page-section-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #002443;
}

.hp-page-section-head p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.72);
}

.hp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hp-service-card {
    padding: 1.5rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 36, 67, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 36, 67, 0.1);
}

.hp-service-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 1.25rem;
}

.hp-service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #002443;
}

.hp-service-card p {
    margin: 0;
    font-size: 0.9875rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.68);
}

.hp-about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hp-about-stat {
    padding: 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hp-about-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #002443;
}

.hp-about-stat span {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.62);
}

.hp-gallery-page .hp-gallery-grid {
    margin-top: 0;
}

/* ---- Schools / Colleges directory (4-column card grid) ---- */
.hp-centers-page {
    padding-top: 2.5rem;
}

.hp-centers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.15rem 1.35rem;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-sm);
}

.hp-centers-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0;
}

.hp-centers-filter-label {
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-sm);
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hp-centers-filter-label i {
    color: var(--hp-brand);
}

.hp-centers-select {
    min-width: 12rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
}

.hp-centers-count {
    margin: 0;
    font-size: var(--hp-text-sm);
    color: var(--hp-color-text-muted);
}

.hp-centers-count strong {
    font-size: var(--hp-text-lg);
    font-weight: var(--hp-weight-extrabold);
    color: var(--hp-navy);
}

.hp-centers-state {
    margin-bottom: 2.75rem;
}

.hp-centers-state:last-child {
    margin-bottom: 0;
}

.hp-centers-state-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--hp-brand-soft);
}

.hp-centers-state-head h2 {
    margin: 0;
    font-family: var(--hp-font-sans);
    font-size: var(--hp-text-xl);
    font-weight: var(--hp-weight-extrabold);
    color: var(--hp-navy);
    letter-spacing: var(--hp-tracking-tight);
}

.hp-centers-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.65rem;
    font-size: var(--hp-text-xs);
    font-weight: var(--hp-weight-bold);
    color: var(--hp-indigo-dark);
    background: var(--hp-brand-soft);
    border-radius: var(--hp-radius-pill);
}

.hp-centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.hp-center-box {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem 1.1rem 1.2rem;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-md);
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.22s var(--hp-ease, ease), box-shadow 0.22s ease, border-color 0.2s ease;
}

.hp-center-box:hover {
    transform: translateY(-4px);
    border-color: var(--hp-brand-border);
    box-shadow: var(--hp-shadow-card);
}

.hp-center-box-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hp-brand-soft) 0%, var(--hp-surface) 100%);
    color: var(--hp-indigo-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hp-center-box-title {
    margin: 0 0 0.5rem;
    font-family: var(--hp-font-sans);
    font-size: 1rem;
    font-weight: var(--hp-weight-bold);
    line-height: var(--hp-leading-tight);
    color: var(--hp-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-center-box-meta {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.hp-center-box-meta i {
    margin-top: 0.15rem;
    color: var(--hp-color-hover-accent);
    flex-shrink: 0;
}

.hp-center-box-address {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--hp-color-text-subtle);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hp-center-box-phone {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-indigo-dark);
    text-decoration: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hp-border);
    transition: color 0.2s ease;
}

.hp-center-box-phone:hover {
    color: var(--hp-color-hover-accent);
}

.hp-centers-empty {
    text-align: center;
}

.hp-centers-empty p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .hp-centers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hp-centers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-centers-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-centers-count {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hp-centers-grid {
        grid-template-columns: 1fr;
    }

    .hp-centers-select {
        width: 100%;
    }
}

.hp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.hp-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-contact-block {
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hp-contact-block h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #002443;
}

.hp-contact-form .input-group {
    margin-bottom: 1rem;
}

.hp-contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.hp-contact-form input,
.hp-contact-form select,
.hp-contact-form textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.hp-contact-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.hp-alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
}

.hp-alert--ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.hp-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.hp-page-cta {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #002443, #0a3d6e);
    border-radius: 16px;
    color: #fff;
}

.hp-page-cta h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.hp-page-cta p {
    margin: 0 0 1.25rem;
    opacity: 0.9;
}

.hp-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ---- Enterprise header (top SaaS / ed-tech pattern) ---- */
.hp-header--enterprise {
    background: rgba(255, 255, 255, 0.92);
}

.hp-header--enterprise .hp-header-inner {
    min-height: var(--hp-header-h);
}

.hp-nav--enterprise {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 0.35rem 1.25rem;
    min-width: 0;
}

.hp-nav-primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.15rem;
}

.hp-nav--enterprise .hp-nav-link-top {
    position: relative;
    padding: 0.5rem 0.7rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-semibold);
    letter-spacing: var(--hp-tracking-wide);
    color: var(--hp-color-text);
    text-decoration: none;
    border-radius: var(--hp-radius-pill);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.hp-nav--enterprise .hp-nav-link-top::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--hp-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s var(--hp-ease, ease);
}

.hp-nav--enterprise .hp-nav-link-top:hover {
    color: var(--hp-indigo-dark);
    background: rgba(49, 112, 222, 0.06);
}

.hp-nav--enterprise .hp-nav-link-top:hover::after,
.hp-nav--enterprise .hp-nav-link-top.is-active::after {
    transform: scaleX(1);
}

.hp-nav--enterprise .hp-nav-link-top.is-active {
    color: var(--hp-indigo-dark);
    font-weight: var(--hp-weight-bold);
}

.hp-nav-utility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-left: 1rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--hp-border);
}

.hp-btn-nav-login {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-semibold);
    color: var(--hp-color-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--hp-radius-pill);
}

.hp-btn-nav-login:hover {
    color: var(--hp-indigo-dark) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.hp-btn-nav-signup {
    min-height: 2.5rem;
    padding: 0 1.25rem;
    font-family: var(--hp-font-sans);
    font-size: 0.9375rem;
    font-weight: var(--hp-weight-bold);
    letter-spacing: var(--hp-tracking-wide);
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-mid) 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 36, 67, 0.22);
}

.hp-btn-nav-signup:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

@media (min-width: 1280px) {
    .hp-nav--enterprise .hp-nav-link-top {
        font-size: 1rem;
        padding: 0.55rem 0.85rem;
    }
}

@media (max-width: 1199px) {
    .hp-nav--enterprise .hp-nav-link-top {
        font-size: 0.875rem;
        padding: 0.45rem 0.55rem;
    }
}

@media (max-width: 900px) {
    .hp-contact-grid {
        grid-template-columns: 1fr;
    }

    .hp-nav--enterprise {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hp-nav-primary {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hp-nav--enterprise .hp-nav-link-top {
        width: 100%;
        text-align: left;
        font-size: var(--hp-text-base);
        padding: 0.75rem 1rem;
    }

    .hp-nav--enterprise .hp-nav-link-top::after {
        display: none;
    }

    .hp-nav-utility {
        flex-direction: column;
        width: 100%;
        margin: 0.75rem 0 0;
        padding: 0.75rem 0 0;
        border-left: none;
        border-top: 1px solid var(--hp-border);
    }

    .hp-btn-nav-login,
    .hp-btn-nav-signup {
        width: 100%;
        min-height: 2.75rem;
        justify-content: center;
    }
}

/* Form layout (franchise, contact) */
.hp-page-card {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 36, 67, 0.06);
}

.hp-form-grid {
    display: grid;
    gap: 1rem;
}

.hp-form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.hp-form-grid .hp-span-2 {
    grid-column: 1 / -1;
}

.hp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Legal / long text */
.hp-page-prose {
    max-width: 48rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.78);
}

.hp-page-prose h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: #002443;
}

.hp-page-prose h2:first-child {
    margin-top: 0;
}

.hp-page-prose h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.hp-page-prose p,
.hp-page-prose ul {
    margin: 0 0 1rem;
}

.hp-page-prose ul {
    padding-left: 1.35rem;
}

.hp-page-prose li {
    margin-bottom: 0.35rem;
}

.hp-page-prose .hp-legal-updated {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.hp-breadcrumb {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.hp-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.35rem;
    color: #94a3b8;
}

.hp-breadcrumb a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.hp-breadcrumb a:hover {
    color: var(--hp-color-hover-accent);
    text-decoration: underline;
}

.hp-page-prose a:hover {
    color: var(--hp-color-hover-accent);
}

.hp-gallery-credit a:hover {
    color: var(--hp-color-hover-accent);
}

@media (max-width: 640px) {
    .hp-form-grid--2 {
        grid-template-columns: 1fr;
    }
}
