/* ============================================================
   TEXAS PROCESS SERVERS ACADEMY | GETTING STARTED
   Page-specific styles. Matches the About / EDCourses design.
   No changes to global site.css or database content.
   ============================================================ */

/* PAGE HERO */
.tpsa-newbies-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #dce9f4;
    background:
        linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.96) 43%, rgba(237,247,255,.74) 65%, rgba(237,247,255,.20) 100%),
        url("../images/slide3.jpg") right center / cover no-repeat;
}

.tpsa-newbies-hero::before {
    content: "";
    position: absolute;
    top: -175px;
    right: -80px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: rgba(7,137,249,.045);
    pointer-events: none;
}

.tpsa-newbies-hero::after {
    content: "";
    position: absolute;
    right: 180px;
    bottom: -195px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(7,137,249,.1);
    border-radius: 50%;
    pointer-events: none;
}

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

.tpsa-newbies-hero > .container { z-index: 1; }

.tpsa-newbies-hero-content {
    max-width: 920px;
    padding: 48px 0;
    animation: tpsaNewbiesEnter .7s ease-out both;
}

.tpsa-newbies-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #355d84;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.tpsa-newbies-hero h1 {
    margin: 0 0 12px;
    color: #082e62;
    font-size: 43px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.7px;
}

.tpsa-newbies-hero p {
    max-width: 730px;
    margin: 0;
    color: #35536f;
    font-size: 17px;
    line-height: 1.65;
}

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

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

/* DATABASE CONTENT DOCUMENT */
.tpsa-newbies-document {
    min-width: 0;
    overflow: hidden;
    padding: 0 33px 35px;
    border: 1px solid #dbe8f4;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 14px 43px rgba(12,45,88,.065);
    transition: border-color .3s ease, box-shadow .3s ease;
    animation: tpsaNewbiesEnter .72s ease-out .1s both;
}

.tpsa-newbies-document:hover {
    border-color: #b6d4ee;
    box-shadow: 0 20px 50px rgba(12,45,88,.105);
}

.tpsa-newbies-document-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -33px 28px;
    padding: 25px 33px;
    border-bottom: 1px solid #e1edf8;
    background: linear-gradient(115deg, #ecf7ff 0%, #f8fbff 57%, #fff 100%);
}

.tpsa-newbies-document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border: 1px solid #c8e0f8;
    border-radius: 15px;
    background: linear-gradient(145deg, #e1f1ff, #d6eaff);
    color: #1374d5;
    font-size: 23px;
}

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

.tpsa-newbies-document-label {
    display: block;
    margin-bottom: 5px;
    color: #4373a0;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

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

/* Keep the database-provided HTML unchanged; style only its presentation. */
.tpsa-newbies-richtext {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #36526f;
    font-size: 16px;
    line-height: 1.78;
}

.tpsa-newbies-richtext > :first-child { margin-top: 0; }
.tpsa-newbies-richtext > :last-child { margin-bottom: 0; }

.tpsa-newbies-richtext p {
    margin: 0 0 18px;
    color: #36526f;
    font-size: 16px;
    line-height: 1.78;
}

.tpsa-newbies-richtext h1,
.tpsa-newbies-richtext h2,
.tpsa-newbies-richtext h3,
.tpsa-newbies-richtext h4 {
    margin: 27px 0 13px;
    color: #082e62;
    font-weight: 800;
    line-height: 1.3;
}

.tpsa-newbies-richtext h1 { font-size: 27px; }
.tpsa-newbies-richtext h2 { font-size: 23px; }
.tpsa-newbies-richtext h3 { font-size: 20px; }
.tpsa-newbies-richtext h4 { font-size: 17px; }

.tpsa-newbies-richtext ul,
.tpsa-newbies-richtext ol {
    margin: 12px 0 21px;
    padding-left: 25px;
    list-style-position: outside;
}

.tpsa-newbies-richtext li {
    margin-bottom: 10px;
    padding-left: 2px;
    line-height: 1.7;
}

.tpsa-newbies-richtext a {
    color: #086ed2;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(8,110,210,.3);
    text-underline-offset: 3px;
    transition: color .26s ease, text-decoration-color .26s ease;
}

.tpsa-newbies-richtext a:hover,
.tpsa-newbies-richtext a:focus-visible {
    color: #082e62;
    text-decoration-color: #082e62;
}

.tpsa-newbies-richtext img,
.tpsa-newbies-richtext video,
.tpsa-newbies-richtext iframe,
.tpsa-newbies-richtext svg {
    max-width: 100%;
    height: auto;
}

.tpsa-newbies-richtext iframe { aspect-ratio: 16 / 9; }

.tpsa-newbies-richtext table {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 20px 0 24px;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.tpsa-newbies-richtext th,
.tpsa-newbies-richtext td {
    padding: 11px 13px;
    border: 1px solid #dfeaf5;
    vertical-align: top;
    text-align: left;
}

.tpsa-newbies-richtext th {
    background: #eaf5ff;
    color: #163a67;
}

.tpsa-newbies-richtext blockquote {
    margin: 20px 0;
    padding: 15px 19px;
    border-left: 4px solid #398cf0;
    border-radius: 0 9px 9px 0;
    background: #f2f8ff;
}

.tpsa-newbies-richtext hr {
    height: 1px;
    margin: 25px 0;
    border: 0;
    background: #e1ebf6;
}

/* NEXT STEPS SIDEBAR */
.tpsa-newbies-sidebar {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 29px 25px 25px;
    border: 1px solid #d6e5f4;
    border-radius: 19px;
    background: linear-gradient(160deg, #f1f8ff 0%, #fff 65%);
    box-shadow: 0 13px 38px rgba(8,46,98,.065);
    transition: border-color .3s ease, box-shadow .3s ease;
    animation: tpsaNewbiesEnter .72s ease-out .2s both;
}

.tpsa-newbies-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0789f9, #69beff);
}

.tpsa-newbies-sidebar:hover {
    border-color: #b6d6f4;
    box-shadow: 0 20px 46px rgba(8,46,98,.1);
}

.tpsa-newbies-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border: 1px solid #cbe1f8;
    border-radius: 16px;
    background: #e5f2ff;
    color: #1678d9;
    font-size: 24px;
}

.tpsa-newbies-sidebar-label {
    display: block;
    margin-bottom: 9px;
    color: #4776a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

.tpsa-newbies-sidebar h2 {
    margin: 0 0 12px;
    color: #082e62;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.35px;
}

.tpsa-newbies-sidebar > p {
    margin: 0 0 20px;
    color: #4b6884;
    font-size: 14px;
    line-height: 1.7;
}

.tpsa-newbies-steps { display: grid; gap: 9px; }

.tpsa-newbies-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #e0ebf6;
    border-radius: 11px;
    background: rgba(255,255,255,.87);
    color: #284c70;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    transition: border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.tpsa-newbies-step:hover {
    border-color: #badcf9;
    background: #ebf6ff;
    box-shadow: 0 5px 15px rgba(20,112,205,.06);
}

.tpsa-newbies-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #e4f1ff;
    color: #1478d7;
    font-size: 15px;
}

.tpsa-newbies-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 51px;
    margin-top: 23px;
    padding: 13px 17px;
    border: 1px solid #187ee8;
    border-radius: 10px;
    background: #187ee8;
    box-shadow: 0 8px 19px rgba(7,121,231,.18);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.tpsa-newbies-cta:hover,
.tpsa-newbies-cta:focus-visible {
    border-color: #075eb8;
    background: #075eb8;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(7,94,184,.23);
}

.tpsa-newbies-cta:focus-visible,
.tpsa-newbies-help a:focus-visible {
    outline: 2px solid #1678df;
    outline-offset: 3px;
}

.tpsa-newbies-help {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 21px;
    padding: 16px 14px;
    border: 1px solid #dcebf9;
    border-radius: 12px;
    background: #edf6ff;
}

.tpsa-newbies-help-icon {
    flex: 0 0 20px;
    margin-top: 3px;
    color: #1480df;
    font-size: 19px;
}

.tpsa-newbies-help strong {
    display: block;
    margin-bottom: 5px;
    color: #173b65;
    font-size: 13px;
    font-weight: 800;
}

.tpsa-newbies-help p {
    margin: 0 0 7px;
    color: #486580;
    font-size: 13px;
    line-height: 1.6;
}

.tpsa-newbies-help a {
    color: #0866bf;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color .26s ease;
}

.tpsa-newbies-help a:hover { color: #082e62; }

/* Full-page, staggered, gentle initial-load animation. */
@keyframes tpsaNewbiesEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .tpsa-newbies-hero { min-height: 218px; }
    .tpsa-newbies-hero-content { padding: 40px 0; }
    .tpsa-newbies-hero h1 { font-size: 37px; }
    .tpsa-newbies-section { padding: 42px 0 55px; }
    .tpsa-newbies-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
    .tpsa-newbies-hero {
        min-height: 200px;
        background:
            linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.97) 57%, rgba(237,247,255,.8) 100%),
            url("../images/slide1.jpg") 68% center / cover no-repeat;
    }
    .tpsa-newbies-hero > .container,
    .tpsa-newbies-section > .container { padding-right: 20px; padding-left: 20px; }
    .tpsa-newbies-hero-content { padding: 34px 0; }
    .tpsa-newbies-hero h1 { font-size: 32px; }
    .tpsa-newbies-hero p { font-size: 15px; line-height: 1.6; }
    .tpsa-newbies-section { padding: 34px 0 45px; }
    .tpsa-newbies-document { padding: 0 23px 27px; border-radius: 16px; }
    .tpsa-newbies-document-header { margin: 0 -23px 23px; padding: 21px 23px; }
    .tpsa-newbies-document-heading h2 { font-size: 22px; }
    .tpsa-newbies-richtext,
    .tpsa-newbies-richtext p,
    .tpsa-newbies-richtext li { font-size: 15px; line-height: 1.7; }
    .tpsa-newbies-sidebar { padding: 25px 23px 23px; }
}

@media (max-width: 480px) {
    .tpsa-newbies-hero { min-height: 185px; }
    .tpsa-newbies-hero-content { padding: 29px 0; }
    .tpsa-newbies-eyebrow { font-size: 12px; }
    .tpsa-newbies-hero h1 { font-size: 29px; line-height: 1.17; }
    .tpsa-newbies-document { padding: 0 18px 23px; }
    .tpsa-newbies-document-header { gap: 12px; margin: 0 -18px 21px; padding: 19px 18px; }
    .tpsa-newbies-document-icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 20px; }
    .tpsa-newbies-document-heading h2 { font-size: 20px; }
    .tpsa-newbies-document-label { font-size: 10px; letter-spacing: 1.3px; }
    .tpsa-newbies-sidebar { padding: 24px 20px 20px; }
    .tpsa-newbies-sidebar h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-newbies-hero-content,
    .tpsa-newbies-document,
    .tpsa-newbies-sidebar { animation: none; }
    .tpsa-newbies-document,
    .tpsa-newbies-sidebar,
    .tpsa-newbies-step,
    .tpsa-newbies-cta,
    .tpsa-newbies-help a,
    .tpsa-newbies-richtext a { transition: none; }
}
