/**
 * Nipun India — visual polish layer (national + marketing pages)
 */

/* Smooth scroll & selection */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(245, 158, 11, 0.35);
    color: #002443;
}

/* Sticky header shadow */
.hp-header--enterprise {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 36, 67, 0.06);
    transition: box-shadow 0.25s ease;
}

.hp-header--enterprise.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 36, 67, 0.1);
}

/* Trust strip — subtle shine */
.hp-trust-strip {
    position: relative;
    overflow: hidden;
}

.hp-trust-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
    animation: hp-shine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hp-shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Hero polish */
.hp-page-hero--national {
    position: relative;
    overflow: hidden;
}

.hp-page-hero--national::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hp-page-hero--national .container {
    position: relative;
    z-index: 1;
}

.hp-page-hero--national h1 {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

/* Light kicker (homepage nationwide) */
.hp-kicker-light {
    color: #0f4c81 !important;
    background: #e0f2fe !important;
    display: inline-flex;
}

/* Stat cards — accent top bar */
.hp-stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.hp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 36, 67, 0.12);
}

.hp-stat-card strong {
    background: linear-gradient(135deg, #002443, #0f4c81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Module cards — refined */
.hp-module-card {
    border-left: 3px solid transparent;
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.hp-module-card:hover {
    border-left-color: #f59e0b;
}

.hp-module-card-icon {
    box-shadow: 0 4px 12px rgba(0, 36, 67, 0.2);
}

/* City / state links */
.hp-city-link {
    box-shadow: 0 1px 3px rgba(0, 36, 67, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.hp-city-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 36, 67, 0.08);
}

/* FAQ — smoother open */
.hp-faq-item {
    transition: box-shadow 0.2s;
}

.hp-faq-item[open] {
    box-shadow: 0 4px 16px rgba(0, 36, 67, 0.06);
    border-color: rgba(15, 76, 129, 0.15);
}

.hp-faq-item summary {
    transition: background 0.15s;
}

.hp-faq-item summary:hover {
    background: #f8fafc;
}

/* Compare table wrapper */
.hp-compare-wrap {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 36, 67, 0.08);
}

.hp-compare-table tbody tr:hover td {
    background: #f8fafc;
}

/* CTA block — premium */
.hp-page-cta {
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 36, 67, 0.2);
}

.hp-page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
}

.hp-page-cta h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.hp-page-cta a:not(.hp-btn) {
    color: #fde68a;
    font-weight: 700;
}

/* National links grid — homepage */
.hp-national-links a {
    position: relative;
    overflow: hidden;
}

.hp-national-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.hp-national-links a:hover::after {
    opacity: 1;
}

/* Section fade-in on load — sections only; cards use scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .hp-inner-page .hp-page-section {
        animation: hp-fade-up 0.55s ease both;
    }
}

@keyframes hp-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center actions */
.hp-section-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Ads — subtle frame */
.hp-ads-wrap {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed rgba(0, 36, 67, 0.1);
}

/* Breadcrumbs polish */
.hp-breadcrumbs {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Cert pills glow */
.hp-cert-pill {
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}

.hp-cert-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(253, 230, 138, 0.4);
}

/* Feature list compact variant */
.hp-feature-ul li {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-feature-ul li:hover {
    border-color: rgba(15, 76, 129, 0.2);
    box-shadow: 0 2px 8px rgba(0, 36, 67, 0.05);
}

/* Inner page spacing */
.hp-inner-page .hp-page-section {
    padding: 4rem 0;
}

.hp-inner-page .hp-page-section-head {
    text-align: center;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.hp-inner-page .hp-page-section-head h2 {
    font-family: 'Source Serif 4', Georgia, serif;
}

/* Mobile nav polish */
@media (max-width: 991px) {
    .hp-nav--enterprise.is-open {
        box-shadow: 0 12px 40px rgba(0, 36, 67, 0.15);
    }
}

@media (max-width: 640px) {
    .hp-page-hero--national {
        padding: 3rem 0 2.5rem;
    }

    .hp-national-links {
        grid-template-columns: 1fr 1fr;
    }

    .hp-page-cta {
        padding: 2rem 1.25rem;
    }

    .hp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-hero-actions .hp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hero action buttons */
.hp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hp-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hp-btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fde68a;
    color: #fde68a;
    transform: translateY(-1px);
}

/* Contact form polish */
.hp-contact-block {
    transition: box-shadow 0.2s, transform 0.2s;
}

.hp-contact-block:hover {
    box-shadow: 0 6px 20px rgba(0, 36, 67, 0.08);
    transform: translateY(-2px);
}

.hp-contact-form input:focus,
.hp-contact-form select:focus,
.hp-contact-form textarea:focus {
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
    outline: none;
}

.hp-contact-form button[type="submit"] {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
}

/* Service cards — gradient icon on hover */
.hp-service-card {
    border-top: 3px solid transparent;
    transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
    border-radius: 16px;
}

.hp-service-card:hover {
    border-top-color: #f59e0b;
}

.hp-service-card-icon {
    transition: background 0.2s, color 0.2s;
}

.hp-service-card:hover .hp-service-card-icon {
    background: linear-gradient(135deg, #002443, #0f4c81);
    color: #fde68a;
}

/* Footer polish */
.hp-footer-site {
    border-top: 3px solid #f59e0b;
}

.hp-footer-site-heading {
    position: relative;
    padding-bottom: 0.5rem;
}

.hp-footer-site-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2rem;
    height: 2px;
    background: #f59e0b;
}

.hp-footer-site-col a {
    transition: color 0.15s, padding-left 0.15s;
}

.hp-footer-site-col a:hover {
    color: #f59e0b;
    padding-left: 0.25rem;
}

/* Floating action buttons */
.hp-fab {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Back to top */
.hp-back-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.25rem;
    z-index: 900;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #002443;
    color: #fde68a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
    box-shadow: 0 4px 16px rgba(0, 36, 67, 0.25);
}

.hp-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-back-top:hover {
    background: #0f4c81;
}

/* Standard page hero (contact etc.) gets national glow */
.hp-inner-page .hp-page-hero:not(.hp-page-hero--national) {
    position: relative;
    overflow: hidden;
}

/* Timeline — about page */
.hp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    max-width: 720px;
}

.hp-timeline li {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 36, 67, 0.08);
    box-shadow: 0 2px 12px rgba(0, 36, 67, 0.04);
    line-height: 1.6;
    color: #334155;
}

.hp-timeline li::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.hp-timeline li strong {
    display: block;
    color: #002443;
    margin-bottom: 0.25rem;
}

/* Gallery page polish */
.hp-gallery-page .hp-gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-gallery-page .hp-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 36, 67, 0.12);
}

.hp-gallery-page .hp-gallery-item img {
    transition: transform 0.4s ease;
}

.hp-gallery-page .hp-gallery-item:hover img {
    transform: scale(1.03);
}

/* Homepage SEO content block */
.hp-seo-content-body {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.75;
    color: #334155;
    font-size: 1.05rem;
}

.hp-seo-content-body p {
    margin-bottom: 1.25rem;
}

.hp-seo-content-body a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-hero-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* HTML sitemap */
.hp-sitemap-group {
    margin-bottom: 2.5rem;
}

.hp-sitemap-group h2 {
    font-size: 1.25rem;
    color: #002443;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
}

.hp-sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.hp-sitemap-list--cols {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.hp-sitemap-list a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 500;
}

.hp-sitemap-list a:hover {
    color: #d97706;
    text-decoration: underline;
}

.hp-seo-hub {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

/* Blog articles */
.hp-blog-meta {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.hp-blog-body {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.75;
    color: #334155;
}

.hp-blog-body h2 {
    color: #002443;
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
}

.hp-blog-body p,
.hp-blog-body li {
    margin-bottom: 1rem;
}

.hp-blog-body a {
    color: #0f4c81;
    font-weight: 600;
}

.hp-blog-callout {
    background: #f8fafc;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.hp-blog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 36, 67, 0.08);
}

.hp-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.hp-alert--ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.hp-alert--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer SEO mega links */
.hp-footer-seo-mega {
    background: #002443;
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.hp-footer-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.hp-footer-seo-mega h4 {
    color: #f59e0b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hp-footer-seo-mega ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-footer-seo-mega li {
    margin-bottom: 0.4rem;
}

.hp-footer-seo-mega a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.hp-footer-seo-mega a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Alumni showcase cards */
.hp-alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hp-alumni-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 36, 67, 0.08);
    box-shadow: 0 4px 20px rgba(0, 36, 67, 0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-alumni-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 36, 67, 0.12);
}

.hp-alumni-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0f4c81;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.hp-alumni-card h2 {
    margin: 0;
    font-size: 1.125rem;
    color: #002443;
}

.hp-alumni-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.hp-alumni-role {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.875rem;
    margin: 0;
}

.hp-alumni-story {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Login portal role cards */
.hp-login-portal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.hp-login-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 36, 67, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 36, 67, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border-left: 4px solid transparent;
}

.hp-login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 36, 67, 0.12);
    border-left-color: #f59e0b;
}

.hp-login-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #002443, #0f4c81);
    color: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hp-login-card h3 {
    margin: 0;
    font-size: 1.0625rem;
    color: #002443;
}

.hp-login-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.hp-login-card-cta {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0f4c81;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hp-login-card:hover .hp-login-card-cta {
    color: #d97706;
}

/* Form inputs on marketing pages (shared) */
.hp-form-grid .input-group label,
.hp-inner-page .input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #002443;
}

.hp-form-grid input,
.hp-form-grid select,
.hp-form-grid textarea,
.hp-inner-page .input-group input,
.hp-inner-page .input-group select,
.hp-inner-page .input-group textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-form-grid input:focus,
.hp-form-grid select:focus,
.hp-form-grid textarea:focus,
.hp-inner-page .input-group input:focus,
.hp-inner-page .input-group select:focus,
.hp-inner-page .input-group textarea:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.hp-form-grid textarea,
.hp-inner-page .input-group textarea {
    min-height: 6rem;
    resize: vertical;
}

.ut-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════
   Polish v9 — premium finish
   ═══════════════════════════════════════════════════════════ */

/* Subtle page canvas */
.hp-inner-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(15, 76, 129, 0.06), transparent 60%),
        #fff;
}

.hp-inner-page .hp-inner-main {
    padding-bottom: 1rem;
}

/* Breadcrumb bar */
.hp-inner-page .hp-breadcrumbs {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(0, 36, 67, 0.06);
    backdrop-filter: blur(8px);
}

.hp-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

.hp-breadcrumbs-item a {
    color: #0f4c81;
    text-decoration: none;
    transition: color 0.15s;
}

.hp-breadcrumbs-item a:hover {
    color: #d97706;
    text-decoration: underline;
}

.hp-breadcrumbs-item span {
    color: #64748b;
}

.hp-breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.35rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Section headings — gold rule */
.hp-inner-page .hp-page-section-head h2 {
    position: relative;
    padding-bottom: 0.65rem;
}

.hp-inner-page .hp-page-section-head h2::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.65rem auto 0;
    background: linear-gradient(90deg, #f59e0b, #fde68a);
    border-radius: 2px;
}

/* Primary buttons — depth + shine */
.hp-btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 36, 67, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 36, 67, 0.28);
    filter: brightness(1.05);
}

.hp-btn-primary:active {
    transform: translateY(0);
}

.hp-btn-outline-nav {
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.hp-btn-outline-nav:hover {
    transform: translateY(-1px);
}

/* Page card — forms */
.hp-page-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

.hp-page-card:hover {
    box-shadow: 0 16px 48px rgba(0, 36, 67, 0.1);
}

/* National badge — subtle glow */
.hp-national-badge {
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

/* Hero mesh overlay */
.hp-page-hero--national::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.08), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.06), transparent 35%);
    pointer-events: none;
}

/* Ticker ribbon */
.hp-ticker {
    background: linear-gradient(90deg, #001a33, #002443 50%, #001a33);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.hp-ticker-marquee {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Nav active indicator */
.hp-nav-link-top.is-active {
    color: #0f4c81 !important;
    position: relative;
}

.hp-nav-link-top.is-active::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #fde68a);
    border-radius: 1px;
}

/* Scroll reveal cards */
@media (prefers-reduced-motion: no-preference) {
    .hp-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--hp-reveal-delay, 0s),
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--hp-reveal-delay, 0s);
    }

    .hp-reveal.hp-in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Service / login cards — lift */
.hp-service-card,
.hp-login-card,
.hp-alumni-card {
    will-change: transform;
}

.hp-service-card:hover,
.hp-login-card:hover,
.hp-alumni-card:hover {
    transform: translateY(-5px);
}

/* Stat row stagger when in view */
.hp-stats-row .hp-stat-card.hp-in-view:nth-child(2) { transition-delay: 0.05s; }
.hp-stats-row .hp-stat-card.hp-in-view:nth-child(3) { transition-delay: 0.1s; }
.hp-stats-row .hp-stat-card.hp-in-view:nth-child(4) { transition-delay: 0.15s; }
.hp-stats-row .hp-stat-card.hp-in-view:nth-child(5) { transition-delay: 0.2s; }

/* Partners — pause on hover */
.hp-partners-scroll-wrap:hover .hp-partners-scroll {
    animation-play-state: paused;
}

/* Demo form focus ring (homepage) */
.hp-modern .demo-form:focus-within {
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

/* Alerts — icon spacing */
.hp-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.5;
}

/* Compare + module polish */
.hp-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 36, 67, 0.1);
}

/* Focus visible — keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Utility pages match brand */
.ut-card {
    transition: box-shadow 0.3s;
}

.ut-card:hover {
    box-shadow: 0 12px 40px rgba(0, 36, 67, 0.12);
}

/* Mobile polish */
@media (max-width: 640px) {
    .hp-back-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .hp-inner-page .hp-breadcrumbs {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Polish v10 — logo, skip link, homepage sections, social
   ═══════════════════════════════════════════════════════════ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: #002443;
    color: #fde68a;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

.hp-logo-mark {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-logo:hover .hp-logo-mark {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.hp-btn-nav-signup {
    box-shadow: 0 2px 10px rgba(0, 36, 67, 0.15);
}

.hp-btn-nav-signup:hover {
    box-shadow: 0 6px 20px rgba(0, 36, 67, 0.22);
}

/* Homepage section heads */
.hp-modern .section-head .kicker {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f4c81;
    background: linear-gradient(135deg, #e0f2fe, #fef3c7);
    border-radius: 999px;
}

.hp-modern .section-head h2 {
    letter-spacing: -0.02em;
}

/* Cert pills row */
.hp-cert-row {
    gap: 0.65rem;
}

.hp-cert-pill {
    font-size: 0.8125rem;
    font-weight: 700;
}

/* National links grid — icon bounce */
.hp-national-links a i {
    transition: transform 0.2s;
}

.hp-national-links a:hover i {
    transform: scale(1.15);
}

/* FAQ summary chevron — legacy pages without .hp-faq-chevron */
.hp-faq-item:not(:has(.hp-faq-chevron)) summary::after {
    content: '+';
    float: right;
    font-weight: 800;
    color: #de3163;
    transition: transform 0.2s;
}

.hp-faq-item:not(:has(.hp-faq-chevron))[open] summary::after {
    content: '−';
}

/* Compare table header sticky feel */
.hp-compare-table thead th {
    background: linear-gradient(180deg, #002443, #0f4c81);
    color: #fff;
    font-weight: 700;
}

/* Footer social icons */
.hp-footer-site-social a {
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.hp-footer-site-social a:hover {
    transform: translateY(-3px);
}

/* Gallery overlay text */
.hp-gallery-page .hp-gallery-item {
    border-radius: 14px;
    overflow: hidden;
}

/* Loading shimmer for lazy images */
@media (prefers-reduced-motion: no-preference) {
    .hp-resource-card-media img[loading="lazy"],
    .hp-gallery-item img[loading="lazy"] {
        background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
        background-size: 200% 100%;
    }
}

/* Inner page CTA buttons row */
.hp-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Smooth anchor scroll offset for sticky header */
html {
    scroll-padding-top: 6.5rem;
}

/* Brand loop micro-links on SEO hub */
.hp-brand-loop {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #64748b;
}

.hp-brand-loop a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 600;
}

.hp-brand-loop a:hover {
    text-decoration: underline;
    color: #002443;
}

.hp-brand-te {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 36, 67, 0.04);
    border-radius: 10px;
    border-left: 3px solid #f59e0b;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.hp-brand-te a {
    font-weight: 700;
    color: #0f4c81;
}

/* Homepage authority rail — exact-match internal links above fold */
.hp-authority-rail {
    background: linear-gradient(90deg, #002443, #0f4c81);
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.hp-authority-rail-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    padding: 0.55rem 0;
    font-size: 0.8125rem;
}

.hp-authority-rail-label {
    color: #fde68a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.hp-authority-rail a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.hp-authority-rail a:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: underline;
}

.hp-sitemap-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 520px;
    margin: 1rem auto 0;
}

.hp-sitemap-search input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 36, 67, 0.15);
    border-radius: 10px;
    font-size: 0.9375rem;
}

.hp-sitemap-search-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.hp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile sticky demo / call bar — inner marketing pages */
.hp-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .hp-inner-page .hp-sticky-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(0, 36, 67, 0.1);
        box-shadow: 0 -8px 24px rgba(0, 36, 67, 0.08);
        backdrop-filter: blur(8px);
    }

    .hp-inner-page .hp-sticky-cta__btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.75rem 0.5rem;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 700;
        text-decoration: none;
        transition: transform 0.15s ease;
    }

    .hp-inner-page .hp-sticky-cta__demo {
        background: linear-gradient(135deg, #002443, #0f4c81);
        color: #fde68a;
    }

    .hp-inner-page .hp-sticky-cta__call {
        background: #f8fafc;
        color: #002443;
        border: 1px solid rgba(0, 36, 67, 0.12);
    }

    .hp-inner-page .hp-sticky-cta__btn:active {
        transform: scale(0.98);
    }

    .hp-inner-page .hp-site-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Compare table — stack on small screens */
@media (max-width: 640px) {
    .hp-compare-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hp-compare-table table {
        min-width: 520px;
    }
}

/* Print — hide chrome */
@media print {
    .hp-ticker,
    .hp-back-top,
    .hp-fab,
    .hp-nav-toggle,
    .hp-sticky-cta {
        display: none !important;
    }
}

