/* ===========================================================
   Section Intros
   Layout, positioning, and typography for every section
   intro (.page-header) across Product, Solutions, How It
   Works, and Security pages — plus the mobile-only
   #mobile-security-header-text paragraph.

   Desktop rules first; mobile rules in @media (max-width: 768px).
   =========================================================== */

/* --- Base section intro --- */
.page-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2rem auto; /* Ensures the block itself is centered */
    color: #002868;
}

.page-header h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.6;
}

/* --- Product page intro tightening --- */
#product-page .page-header {
    margin-bottom: 0.2rem;
}

/* --- Security page intro: absolutely positioned over the shield stack --- */
.security-wrapper .page-header {
    text-align: center;
    z-index: 100;
    position: absolute;
    top: 5vh;
    width: 100%;
    padding: 0 2rem;
}

.security-wrapper .page-header p {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 600px;
    margin: 0.5rem auto 0;
}


/* ===========================================================
   Mobile overrides
   =========================================================== */
@media (max-width: 768px) {
    .page-header p {
        font-size: 1.1rem;
    }

    #product-page .page-header {
        margin-bottom: 1rem !important;
    }

    #how-it-works-page .page-header {
        margin: 0 0 1rem 0;
    }
    #how-it-works-page .page-header p {
        margin: 0;
    }

    /* Hide the desktop animate-text paragraph on the security page; use the dedicated mobile paragraph instead. */
    #security-page .page-header p.animate-text {
        display: none;
    }

    #mobile-security-header-text {
        position: absolute;
        top: 125px;
        left: 10px;
        width: calc(100% - 20px);
        text-align: center;
        font-size: 0.8rem;
        font-weight: 300;
        z-index: 200;
        color: #002868;
    }

    /* Pull the security intro out of its desktop absolute positioning and into flex flow on mobile. */
    #security-page .page-header {
        position: static;
        flex-shrink: 0;
        margin-bottom: 1rem;
    }

    #security-page .page-header p {
        font-size: 1.1rem;
        font-weight: 600;
    }
}

