/* Shared page hero inspired by the About design */
:root {
    --hero-primary: #0c2f86;
    --hero-primary-dark: #0a1f63;
    --hero-accent: #9aa3b5;
}

.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hero-primary-dark), var(--hero-primary));
    color: #fff;
    padding: 155px 0 140px;
    min-height: 520px;
    overflow: hidden;
}

.page-hero.has-image {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.34)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    padding: 155px 0 140px;
    min-height: 520px;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-hero .hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.16;
}

.page-hero.has-image .hero-background {
    opacity: 0;
}

.page-hero.has-image .badge-modern {
    background: rgba(0, 0, 0, 0.26);
    border-color: rgba(255, 255, 255, 0.28);
}

.page-hero.has-image .hero-title {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.page-hero.has-image .hero-lead {
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero.has-image .feature-item {
    background: rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.25);
}

.page-hero .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(35px);
    animation: pageHeroFloat 18s ease-in-out infinite;
}

.page-hero .shape-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -110px;
}

.page-hero .shape-2 {
    width: 320px;
    height: 320px;
    bottom: -90px;
    left: -80px;
    animation-delay: 3s;
}

.page-hero .shape-3 {
    width: 260px;
    height: 260px;
    top: 46%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes pageHeroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -28px) scale(1.05); }
    66% { transform: translate(-22px, 22px) scale(0.97); }
}

.page-hero .hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-content {
    text-align: center;
    max-width: 880px;
}

.page-hero .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.page-hero .badge-modern i {
    font-size: 16px;
    color: var(--hero-accent);
}

.page-hero .hero-title {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.82) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .hero-title-rich {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.25;
    font-weight: 900;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.page-hero .hero-title-rich p,
.page-hero .hero-title-rich ul,
.page-hero .hero-title-rich ol {
    margin: 0 0 12px;
}

.page-hero .hero-title-rich *,
.page-hero .hero-lead-rich * {
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.page-hero .hero-title-rich h1,
.page-hero .hero-title-rich h2,
.page-hero .hero-title-rich h3,
.page-hero .hero-title-rich h4 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    margin: 0 0 12px;
}

.page-hero .hero-title-rich ul,
.page-hero .hero-title-rich ol {
    display: inline-block;
    text-align: right;
    padding-inline-start: 22px;
}

.page-hero .hero-lead {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 22px;
    max-width: 720px;
}

.page-hero .hero-lead-rich {
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.96);
    margin: 0 auto 22px;
    max-width: 760px;
}

.page-hero .hero-lead-rich p,
.page-hero .hero-lead-rich ul,
.page-hero .hero-lead-rich ol,
.page-hero .hero-lead-rich blockquote {
    margin: 0 0 14px;
}

.page-hero .hero-lead-rich h1,
.page-hero .hero-lead-rich h2,
.page-hero .hero-lead-rich h3 {
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 14px;
    font-weight: 800;
}

.page-hero .hero-lead-rich a {
    color: #dbeafe;
    text-decoration: underline;
}

.page-hero .hero-lead-rich ul,
.page-hero .hero-lead-rich ol {
    display: inline-block;
    text-align: right;
    padding-inline-start: 22px;
}

.page-hero .hero-features {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-hero .feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-hero .feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.page-hero .feature-item i {
    color: var(--hero-accent);
    font-size: 16px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 100px;
        min-height: 420px;
    }

    .page-hero.has-image {
        padding: 120px 0 100px;
        min-height: 420px;
    }

    .page-hero .hero-title {
        font-size: clamp(26px, 7vw, 34px);
    }

    .page-hero .hero-title-rich h1 {
        font-size: inherit;
    }

    .page-hero .hero-title-rich h2 {
        font-size: inherit;
    }

    .page-hero .hero-title-rich h3,
    .page-hero .hero-title-rich p,
    .page-hero .hero-title-rich li {
        font-size: inherit;
    }

    .page-hero .hero-lead {
        font-size: 15px;
    }

    .page-hero .hero-lead-rich {
        font-size: 16px;
    }
}
