/* ============================================================
   TEXAS PROCESS SERVERS ACADEMY — RENEWAL COURSE PAGE
   Page-scoped design; no global overrides or duplicate patches.
   ============================================================ */

/* HERO */
.tpsa-ed-hero {
    position: relative;
    min-height: 245px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.96) 42%, rgba(237,247,255,.72) 62%, rgba(237,247,255,.18) 100%), url("../images/slide3.jpg") right center / cover no-repeat;
    border-bottom: 1px solid #dce9f4;
}

    .tpsa-ed-hero::before {
        content: "";
        position: absolute;
        top: -170px;
        right: -90px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(7,137,249,.045);
        pointer-events: none;
    }

    .tpsa-ed-hero::after {
        content: "";
        position: absolute;
        right: 170px;
        bottom: -180px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        border: 1px solid rgba(7,137,249,.10);
        pointer-events: none;
    }

    .tpsa-ed-hero > .container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 1170px;
        margin-inline: auto;
        padding-inline: 15px;
    }

.tpsa-ed-intro {
    max-width: 850px;
    padding: 45px 0;
    animation: tpsaEdEnter .68s ease-out both;
}

.tpsa-ed-eyebrow {
    display: block;
    margin-bottom: 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #355d84;
}

.tpsa-ed-intro h1 {
    margin: 0 0 12px;
    font-size: 43px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.7px;
    color: #082e62;
}

.tpsa-ed-intro p {
    max-width: 720px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #35536f;
}

/* MAIN LAYOUT */
.tpsa-ed-section {
    padding: 52px 0 68px;
    background: linear-gradient(180deg,#fff 0%,#fff 74%,#f8fbfe 100%);
}

.tpsa-ed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(295px, 345px);
    gap: 30px;
    align-items: start;
}

/* CONTENT CARD */
.tpsa-ed-document {
    min-width: 0;
    padding: 0 34px 36px;
    overflow: hidden;
    border: 1px solid #dae7f3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(12,45,88,.065);
    transition: border-color .36s ease, box-shadow .36s ease;
    animation: tpsaEdEnter .72s ease-out .10s both;
}

    .tpsa-ed-document:hover {
        border-color: #a8cbeb;
        box-shadow: 0 22px 52px rgba(12,45,88,.12);
    }

.tpsa-ed-document-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 34px;
    margin: 0 -34px 28px;
    border-bottom: 1px solid #e2edf7;
    background: linear-gradient(115deg, #f0f8ff 0%, #f8fbff 54%, #fff 100%);
}

.tpsa-ed-document-icon {
    display: flex;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbe1fa;
    border-radius: 15px;
    background: linear-gradient(145deg, #e1f1ff, #d5eaff);
    color: #126bc7;
    font-size: 22px;
}

.tpsa-ed-document-heading {
    min-width: 0;
}

.tpsa-ed-document-label {
    display: block;
    margin-bottom: 5px;
    color: #4475a5;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tpsa-ed-document-heading h2 {
    margin: 0;
    color: #082e62;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.3px;
}

/* Existing DB-generated markup is retained within #divCC. */
.tpsa-ed-richtext {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #37526c;
    font-size: 16px;
    line-height: 1.78;
}

    .tpsa-ed-richtext > :first-child {
        margin-top: 0;
    }

    .tpsa-ed-richtext > :last-child {
        margin-bottom: 0;
    }

    .tpsa-ed-richtext p {
        margin: 0 0 19px;
        font-size: 16px;
        line-height: 1.78;
        color: #37526c;
    }

    .tpsa-ed-richtext h1,
    .tpsa-ed-richtext h2,
    .tpsa-ed-richtext h3,
    .tpsa-ed-richtext h4 {
        margin: 28px 0 13px;
        line-height: 1.3;
        font-weight: 800;
        color: #082e62;
    }

    .tpsa-ed-richtext h1 {
        font-size: 26px;
    }

    .tpsa-ed-richtext h2 {
        font-size: 23px;
    }

    .tpsa-ed-richtext h3 {
        font-size: 20px;
    }

    .tpsa-ed-richtext h4 {
        font-size: 17px;
    }

    .tpsa-ed-richtext ul,
    .tpsa-ed-richtext ol {
        margin: 12px 0 20px;
        padding-left: 24px;
        list-style-position: outside;
    }

    .tpsa-ed-richtext li {
        margin-bottom: 10px;
        padding-left: 2px;
        line-height: 1.72;
    }

    .tpsa-ed-richtext a {
        color: #086ed2;
        font-weight: 700;
        text-decoration: underline;
        text-decoration-color: rgba(8,110,210,.32);
        text-underline-offset: 3px;
        transition: color .26s ease, text-decoration-color .26s ease;
    }

        .tpsa-ed-richtext a:hover,
        .tpsa-ed-richtext a:focus-visible {
            color: #082e62;
            text-decoration-color: #082e62;
        }

    .tpsa-ed-richtext img,
    .tpsa-ed-richtext video,
    .tpsa-ed-richtext iframe {
        max-width: 100%;
        height: auto;
    }

    .tpsa-ed-richtext table {
        display: block;
        max-width: 100%;
        width: max-content;
        overflow-x: auto;
        border-collapse: separate;
        border-spacing: 0;
        margin: 20px 0 25px;
        border-radius: 10px;
        font-size: 14px;
    }

    .tpsa-ed-richtext th,
    .tpsa-ed-richtext td {
        padding: 11px 13px;
        border: 1px solid #dfeaf5;
        vertical-align: top;
        text-align: left;
    }

    .tpsa-ed-richtext th {
        background: #eaf5ff;
        color: #143966;
    }

    .tpsa-ed-richtext blockquote {
        margin: 20px 0;
        padding: 14px 20px;
        border-left: 4px solid #3a8bf0;
        border-radius: 0 8px 8px 0;
        background: #f2f8ff;
    }

/* ENROLLMENT SIDEBAR */
.tpsa-ed-sidebar {
    position: relative;
    min-width: 0;
    padding: 29px 26px 25px;
    overflow: hidden;
    border: 1px solid #d5e5f5;
    border-radius: 19px;
    background: linear-gradient(155deg,#fff 0%,#f8fbff 65%,#f2f8ff 100%);
    box-shadow: 0 14px 39px rgba(8,46,98,.075);
    transition: border-color .36s ease, box-shadow .36s ease;
    animation: tpsaEdEnter .72s ease-out .19s both;
}

    .tpsa-ed-sidebar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(180deg,#0789f9,#66bdf9);
    }

    .tpsa-ed-sidebar:hover {
        border-color: #a9cef2;
        box-shadow: 0 21px 47px rgba(8,46,98,.13);
    }

.tpsa-ed-help-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbe3f9;
    border-radius: 15px;
    background: #e7f3ff;
    color: #1377dc;
    font-size: 23px;
    transition: color .30s ease, background-color .30s ease, border-color .30s ease;
}

.tpsa-ed-sidebar:hover .tpsa-ed-help-icon {
    color: #fff;
    background: #1477d6;
    border-color: #1477d6;
}

.tpsa-ed-sidebar-label {
    display: block;
    margin-bottom: 9px;
    color: #54728f;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.tpsa-ed-sidebar h2 {
    margin: 0 0 13px;
    color: #082e62;
    font-size: 23px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.35px;
}

.tpsa-ed-sidebar > p {
    margin: 0 0 22px;
    color: #587392;
    font-size: 14px;
    line-height: 1.7;
}

.tpsa-ed-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    padding: 11px 12px;
    border: 1px solid #e1edf8;
    border-radius: 11px;
    background: rgba(255,255,255,.82);
    color: #264764;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    transition: border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}

    .tpsa-ed-step:hover {
        border-color: #b9dcfc;
        background: #eaf5ff;
        box-shadow: 0 5px 15px rgba(20,112,205,.075);
    }

.tpsa-ed-step-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #e4f1ff;
    color: #1376d6;
    font-size: 15px;
}

.tpsa-ed-enroll {
    display: flex;
    width: 100%;
    min-height: 51px;
    margin-top: 23px;
    padding: 13px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #187eec;
    border-radius: 10px;
    background: #187eec;
    color: #fff !important;
    box-shadow: 0 8px 19px rgba(7,121,231,.18);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .32s ease, border-color .32s ease, box-shadow .32s ease;
}

    .tpsa-ed-enroll:hover,
    .tpsa-ed-enroll:focus-visible {
        background: #075eb8;
        border-color: #075eb8;
        color: #fff !important;
        box-shadow: 0 13px 28px rgba(7,94,184,.25);
    }

    .tpsa-ed-enroll:focus-visible,
    .tpsa-ed-support a:focus-visible {
        outline: 2px solid #1678df;
        outline-offset: 3px;
    }

.tpsa-ed-support {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 21px;
    padding: 15px 14px;
    border: 1px solid #dcebf9;
    border-radius: 12px;
    background: #edf6ff;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

    .tpsa-ed-support:hover {
        background: #e3f1ff;
        border-color: #b8d9f8;
        box-shadow: 0 5px 15px rgba(20,112,205,.065);
    }

    .tpsa-ed-support > .fa {
        margin-top: 3px;
        color: #1683e8;
        font-size: 18px;
    }

    .tpsa-ed-support p {
        margin: 0 0 6px;
        color: #35536f;
        font-size: 13px;
        line-height: 1.55;
    }

    .tpsa-ed-support a {
        color: #0866bf;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        transition: color .26s ease;
    }

        .tpsa-ed-support a:hover {
            color: #082e62;
        }

/* Gentle Terms-style entrance, without hover movement. */
@keyframes tpsaEdEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .tpsa-ed-hero {
        min-height: 220px;
    }

    .tpsa-ed-intro {
        padding: 40px 0;
    }

        .tpsa-ed-intro h1 {
            font-size: 38px;
        }

    .tpsa-ed-section {
        padding: 42px 0 55px;
    }

    .tpsa-ed-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .tpsa-ed-hero {
        min-height: 200px;
        background: linear-gradient(90deg,rgba(244,250,255,.99) 0%,rgba(232,245,255,.97) 58%,rgba(237,247,255,.78) 100%), url("../images/slide1.jpg") 68% center / cover no-repeat;
    }

        .tpsa-ed-hero > .container {
            padding-inline: 20px;
        }

    .tpsa-ed-intro {
        padding: 34px 0;
    }

        .tpsa-ed-intro h1 {
            font-size: 34px;
        }

        .tpsa-ed-intro p {
            font-size: 15px;
            line-height: 1.6;
        }

    .tpsa-ed-section {
        padding: 34px 0 45px;
    }

    .tpsa-ed-document {
        padding: 0 23px 26px;
        border-radius: 16px;
    }

    .tpsa-ed-document-header {
        padding: 22px 23px;
        margin: 0 -23px 22px;
    }

    .tpsa-ed-document-heading h2 {
        font-size: 22px;
    }

    .tpsa-ed-richtext, .tpsa-ed-richtext p, .tpsa-ed-richtext li {
        font-size: 15px;
        line-height: 1.7;
    }

    .tpsa-ed-sidebar {
        padding: 26px 23px 23px;
    }
}

@media (max-width: 480px) {
    .tpsa-ed-hero {
        min-height: 185px;
    }

    .tpsa-ed-intro {
        padding: 30px 0;
    }

    .tpsa-ed-eyebrow {
        font-size: 12px;
    }

    .tpsa-ed-intro h1 {
        font-size: 30px;
        line-height: 1.16;
    }

    .tpsa-ed-document {
        padding: 0 18px 23px;
    }

    .tpsa-ed-document-header {
        gap: 12px;
        padding: 20px 18px;
        margin: 0 -18px 21px;
    }

    .tpsa-ed-document-icon {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 19px;
    }

    .tpsa-ed-document-heading h2 {
        font-size: 20px;
    }

    .tpsa-ed-sidebar {
        padding: 24px 20px 20px;
    }

        .tpsa-ed-sidebar h2 {
            font-size: 22px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-ed-intro, .tpsa-ed-document, .tpsa-ed-sidebar {
        animation: none;
    }

    .tpsa-ed-document, .tpsa-ed-sidebar, .tpsa-ed-help-icon,
    .tpsa-ed-step, .tpsa-ed-enroll, .tpsa-ed-support, .tpsa-ed-support a,
    .tpsa-ed-richtext a {
        transition: none;
    }
}
