/* ============================================================
   TEXAS PROCESS SERVERS ACADEMY | CERTIFICATION
   Page-specific CSS only. No global overrides or duplicate patches.
   Uses the website's existing font and About-page hero imagery.
   ============================================================ */

/* HERO */
.tpsa-sc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #dbe8f5;
    background: linear-gradient(90deg, rgba(246,251,255,.99) 0%, rgba(232,245,255,.97) 41%, rgba(233,245,255,.75) 65%, rgba(235,247,255,.20) 100%), url('../images/slide3.jpg') right center / cover no-repeat;
}

    .tpsa-sc-hero > .container,
    .tpsa-sc-section > .container {
        position: relative;
        width: 100%;
        max-width: 1170px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }

.tpsa-sc-hero-inner {
    max-width: 820px;
    padding: 47px 0 49px;
    animation: tpsaScEnter .72s ease-out both;
}

.tpsa-sc-breadcrumb {
    display: block;
    margin-bottom: 13px;
    color: #3b5c7d;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

    .tpsa-sc-breadcrumb span {
        display: inline-block;
        margin: 0 5px;
        color: #87a6c3;
    }

.tpsa-sc-hero h1 {
    margin: 0 0 13px;
    color: #082e62;
    font-size: 43px;
    line-height: 1.16;
    letter-spacing: -.85px;
    font-weight: 800;
}

.tpsa-sc-hero p {
    max-width: 710px;
    margin: 0;
    color: #36526e;
    font-size: 17px;
    line-height: 1.7;
}

/* MAIN LAYOUT */
.tpsa-sc-section {
    padding: 54px 0 72px;
    background: linear-gradient(180deg, #fff 0%, #fff 70%, #f8fbff 100%);
}

.tpsa-sc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 332px);
    align-items: start;
    gap: 28px;
}

/* CMS DOCUMENT CARD */
.tpsa-sc-document {
    min-width: 0;
    padding: 0 33px 26px;
    overflow: hidden;
    border: 1px solid #dce8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 37px rgba(14,48,90,.065);
    transition: box-shadow .3s ease, border-color .3s ease;
    animation: tpsaScEnter .72s ease-out .10s both;
}

    .tpsa-sc-document:hover {
        border-color: #bfd9f2;
        box-shadow: 0 17px 44px rgba(14,48,90,.092);
    }

.tpsa-sc-document-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -33px 18px;
    padding: 25px 33px;
    border-bottom: 1px solid #dfebf7;
    background: linear-gradient(110deg, #eaf6ff 0%, #f5faff 65%, #fff 100%);
}

.tpsa-sc-document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 15px;
    border: 1px solid #c9e2fa;
    background: #e0f1ff;
    color: #147ad5;
    font-size: 23px;
}

.tpsa-sc-document-heading {
    min-width: 0;
}

.tpsa-sc-document-label {
    display: block;
    margin-bottom: 5px;
    color: #557a9d;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 1.8px;
    font-weight: 800;
    text-transform: uppercase;
}

.tpsa-sc-document-heading h2 {
    margin: 0;
    color: #082e62;
    font-size: 25px;
    line-height: 1.24;
    letter-spacing: -.4px;
    font-weight: 800;
}

/* Database HTML: presentation only; do not change the underlying content. */
.tpsa-sc-richtext {
    min-width: 0;
    max-width: 100%;
    color: #35516e;
    font-size: 15.5px;
    line-height: 1.62;
    overflow-wrap: break-word;
}

    .tpsa-sc-richtext > :first-child {
        margin-top: 0;
    }

    .tpsa-sc-richtext > :last-child {
        margin-bottom: 0;
    }

    .tpsa-sc-richtext p {
        margin: 0 0 11px !important;
        padding: 0 !important;
        color: #35516e;
        font-size: 15.5px !important;
        line-height: 1.62 !important;
        letter-spacing: 0;
        text-align: left;
        overflow-wrap: break-word;
    }


        /* Legacy CMS formatting can contain blank paragraphs, repeated breaks,
   inline margins, and inline link styles. These rules affect display only. */
        .tpsa-sc-richtext p:empty,
        .tpsa-sc-richtext div:empty,
        .tpsa-sc-richtext p:has(> br:only-child),
        .tpsa-sc-richtext p:has(> span:only-child:empty) {
            display: none;
        }

        .tpsa-sc-richtext > br,
        .tpsa-sc-richtext br + br,
        .tpsa-sc-richtext p + br {
            display: none;
        }

    .tpsa-sc-richtext > div {
        margin-top: 0 !important;
        margin-bottom: 11px !important;
    }

    .tpsa-sc-richtext a *,
    .tpsa-sc-richtext a[style] {
        color: inherit !important;
        text-decoration: none !important;
    }

    .tpsa-sc-richtext p[align="center"],
    .tpsa-sc-richtext p[style*="center"] {
        text-align: left !important;
    }

    .tpsa-sc-richtext strong,
    .tpsa-sc-richtext b {
        color: #183f69;
        font-weight: 750;
    }

    .tpsa-sc-richtext h1,
    .tpsa-sc-richtext h2,
    .tpsa-sc-richtext h3,
    .tpsa-sc-richtext h4,
    .tpsa-sc-richtext h5 {
        margin: 18px 0 8px !important;
        color: #082e62;
        font-weight: 800;
        line-height: 1.35;
    }

    .tpsa-sc-richtext h1 {
        font-size: 27px;
    }

    .tpsa-sc-richtext h2 {
        font-size: 24px;
    }

    .tpsa-sc-richtext h3 {
        font-size: 21px;
    }

    .tpsa-sc-richtext h4 {
        font-size: 18px;
    }

    .tpsa-sc-richtext h5 {
        font-size: 16px;
    }

    .tpsa-sc-richtext ul,
    .tpsa-sc-richtext ol {
        margin: 8px 0 12px !important;
        padding-left: 25px;
        list-style-position: outside;
    }

    .tpsa-sc-richtext li {
        margin: 0 0 5px !important;
        padding-left: 2px;
        color: #35516e;
        line-height: 1.65;
    }

        .tpsa-sc-richtext li::marker {
            color: #2987e5;
        }

    .tpsa-sc-richtext a {
        color: #096bc9 !important;
        font-weight: 700;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(9,107,201,.34);
        text-underline-offset: 3px;
        transition: color .25s ease, border-bottom-color .25s ease;
    }

        .tpsa-sc-richtext a:hover,
        .tpsa-sc-richtext a:focus-visible {
            color: #082e62;
            border-bottom-color: #082e62;
        }

    .tpsa-sc-richtext img,
    .tpsa-sc-richtext video {
        max-width: 100%;
        height: auto;
        border-radius: 9px;
    }

    .tpsa-sc-richtext iframe {
        max-width: 100%;
        border: 0;
        border-radius: 9px;
    }

    .tpsa-sc-richtext table {
        width: 100%;
        max-width: 100%;
        margin: 19px 0;
        border-collapse: collapse;
        font-size: 14px;
    }

    .tpsa-sc-richtext th,
    .tpsa-sc-richtext td {
        padding: 11px 12px;
        border: 1px solid #dce8f4;
        text-align: left;
        vertical-align: top;
        overflow-wrap: anywhere;
    }

    .tpsa-sc-richtext th {
        background: #eaf6ff;
        color: #082e62;
        font-weight: 800;
    }

    .tpsa-sc-richtext hr {
        height: 1px;
        margin: 19px 0;
        border: 0;
        background: #dce7f3;
    }

    .tpsa-sc-richtext blockquote {
        margin: 22px 0;
        padding: 16px 20px;
        border-left: 4px solid #2384e8;
        border-radius: 0 10px 10px 0;
        background: #f0f8ff;
        color: #264c73;
    }

/* SIDEBAR */
.tpsa-sc-sidebar {
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid #d7e6f4;
    border-radius: 19px;
    background: linear-gradient(155deg, #f0f8ff 0%, #fff 52%, #fff 100%);
    box-shadow: 0 12px 38px rgba(14,48,90,.07);
    overflow: hidden;
    animation: tpsaScEnter .76s ease-out .20s both;
}

    .tpsa-sc-sidebar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #1989f8, #76bfff);
    }

.tpsa-sc-sidebar-top {
    position: relative;
}

.tpsa-sc-sidebar-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 21px;
    border: 1px solid #cfe5fa;
    border-radius: 16px;
    background: #e4f2ff;
    color: #1c79d3;
    font-size: 23px;
}

.tpsa-sc-sidebar-label {
    display: block;
    margin-bottom: 7px;
    color: #4e7295;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 800;
}

.tpsa-sc-sidebar h2 {
    margin: 0 0 10px;
    color: #082e62;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.35px;
}

.tpsa-sc-sidebar-top p {
    margin: 0;
    color: #59728d;
    font-size: 14px;
    line-height: 1.65;
}

.tpsa-sc-steps {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.tpsa-sc-step {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #e1ebf6;
    border-radius: 11px;
    background: rgba(255,255,255,.88);
    transition: border-color .27s ease, background-color .27s ease, box-shadow .27s ease;
}

    .tpsa-sc-step:hover {
        border-color: #bbdaf5;
        background: #f8fcff;
        box-shadow: 0 5px 15px rgba(8,46,98,.055);
    }

.tpsa-sc-step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 10px;
    background: #e7f4ff;
    color: #207ddd;
    font-size: 15px;
}

.tpsa-sc-step div {
    min-width: 0;
}

.tpsa-sc-step strong {
    display: block;
    color: #133c69;
    font-size: 13px;
    line-height: 1.43;
    font-weight: 800;
}

.tpsa-sc-step small {
    display: block;
    margin-top: 2px;
    color: #6b839b;
    font-size: 11px;
    line-height: 1.4;
}

.tpsa-sc-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 17px;
    border: 1px solid #0579e9;
    border-radius: 9px;
    background: #087dec;
    box-shadow: 0 8px 20px rgba(8,125,236,.19);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    transition: background-color .27s ease, box-shadow .27s ease, border-color .27s ease;
}

    .tpsa-sc-primary-link:hover,
    .tpsa-sc-primary-link:focus-visible {
        border-color: #075eb6;
        background: #075eb6;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(8,93,181,.22);
    }

    .tpsa-sc-primary-link:focus-visible,
    .tpsa-sc-related a:focus-visible,
    .tpsa-sc-support a:focus-visible {
        outline: 2px solid #1687ee;
        outline-offset: 3px;
    }

.tpsa-sc-related {
    display: grid;
    gap: 8px;
    margin: 16px 0 19px;
}

    .tpsa-sc-related a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 11px;
        border: 1px solid #e2ebf5;
        border-radius: 9px;
        background: #fff;
        color: #244d76 !important;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 700;
        text-decoration: none !important;
        transition: border-color .25s ease, background-color .25s ease;
    }

        .tpsa-sc-related a:hover {
            border-color: #bfdbf7;
            background: #f2f9ff;
        }

        .tpsa-sc-related a .fa:first-child {
            color: #2284e5;
        }

        .tpsa-sc-related a span {
            flex: 1;
        }

        .tpsa-sc-related a .fa:last-child {
            color: #7a9bb8;
        }

.tpsa-sc-support {
    display: flex;
    gap: 11px;
    padding: 15px 13px;
    border: 1px solid #d9e9f8;
    border-radius: 12px;
    background: #eaf5ff;
}

.tpsa-sc-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #167ee0;
    color: #fff;
    font-size: 15px;
}

.tpsa-sc-support div {
    min-width: 0;
}

.tpsa-sc-support strong {
    display: block;
    color: #123c69;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.tpsa-sc-support p {
    margin: 5px 0 8px;
    color: #4d6d8b;
    font-size: 12px;
    line-height: 1.6;
}

.tpsa-sc-support a {
    color: #086bd1 !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

    .tpsa-sc-support a:hover {
        color: #082e62 !important;
    }

/* ABOUT-STYLE INITIAL LOAD ANIMATION */
@keyframes tpsaScEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLETS */
@media (max-width: 991px) {
    .tpsa-sc-hero {
        min-height: 220px;
    }

        .tpsa-sc-hero h1 {
            font-size: 36px;
        }

    .tpsa-sc-section {
        padding: 36px 0 54px;
    }

    .tpsa-sc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .tpsa-sc-sidebar {
        padding: 25px 23px;
    }

    .tpsa-sc-sidebar-icon {
        margin-bottom: 13px;
    }

    .tpsa-sc-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tpsa-sc-step {
        align-items: flex-start;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .tpsa-sc-hero {
        min-height: 215px;
        background-image: linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(235,247,255,.95) 73%, rgba(236,247,255,.78) 100%), url('../images/slide1.jpg');
        background-position: right center;
    }

    .tpsa-sc-hero-inner {
        padding: 38px 0 39px;
    }

    .tpsa-sc-hero h1 {
        font-size: 31px;
        line-height: 1.18;
    }

    .tpsa-sc-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .tpsa-sc-section {
        padding: 28px 0 45px;
    }

    .tpsa-sc-document {
        padding: 0 20px 25px;
        border-radius: 15px;
    }

    .tpsa-sc-document-header {
        margin: 0 -20px 17px;
        padding: 19px 20px;
        gap: 12px;
    }

    .tpsa-sc-document-icon {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
        font-size: 19px;
        border-radius: 12px;
    }

    .tpsa-sc-document-heading h2 {
        font-size: 21px;
    }

    .tpsa-sc-richtext, .tpsa-sc-richtext p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .tpsa-sc-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .tpsa-sc-breadcrumb {
        font-size: 12px;
    }

    .tpsa-sc-hero h1 {
        font-size: 28px;
        letter-spacing: -.4px;
    }

    .tpsa-sc-document-heading h2 {
        font-size: 19px;
    }

    .tpsa-sc-sidebar {
        padding: 23px 19px;
        border-radius: 15px;
    }

        .tpsa-sc-sidebar h2 {
            font-size: 22px;
        }

    .tpsa-sc-document-label, .tpsa-sc-sidebar-label {
        letter-spacing: 1.25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-sc-hero-inner,
    .tpsa-sc-document,
    .tpsa-sc-sidebar {
        animation: none !important;
    }

    .tpsa-sc-document,
    .tpsa-sc-primary-link,
    .tpsa-sc-related a,
    .tpsa-sc-step {
        transition: none !important;
    }
}
