.service-rich-content li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 109, 17, 0.12);
    color: #3B6D11;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

.service-rich-content hr {
    border: 0 !important;
    height: 1px !important;
    background: #dbe7f3 !important;
    margin: 3rem 0 !important;
}

.service-pro-sidebar {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 2rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: sticky !important;
    top: 2rem !important;
}

.service-pro-sidebar h2 {
    position: relative;
    margin: 0 0 1.5rem !important;
    padding-left: 1rem !important;
    color: #124a84 !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.service-pro-sidebar h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 4px;
    height: 30px;
    border-radius: 999px;
    background: #185FA5;
}

.service-pro-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.9rem !important;
}

.service-pro-sidebar a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.1rem !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

.service-pro-sidebar a::after {
    content: "→";
    color: #185FA5;
    font-weight: 900;
}

.service-pro-sidebar a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateX(4px);
}

.service-pro-sidebar a:hover::after {
    color: #ffffff;
}

@media (max-width: 900px) {
    .service-detail-content {
        padding: 3rem 0 4rem !important;
    }

    .service-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .service-pro-card {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .service-pro-sidebar {
        position: static !important;
        padding: 1.5rem !important;
    }
}

/* =========================================================
   PROJECTS SECTION DESIGN POLISH ONLY
========================================================= */

.home-projects-section,
.portfolio-section,
.projects-section {
    background: #f5f7fb !important;
    padding: 4rem 0 !important;
}

.home-projects-section .container,
.portfolio-section .container,
.projects-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-projects-header,
.portfolio-section-header,
.projects-section-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.home-projects-header .section-kicker,
.portfolio-section-header .section-kicker,
.projects-section-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.home-projects-header h2,
.portfolio-section-header h2,
.projects-section-header h2 {
    color: #124a84 !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
    margin: 0.9rem 0 1rem !important;
}

.home-projects-header p,
.portfolio-section-header p,
.projects-section-header p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.home-projects-grid,
.portfolio-grid,
.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

.home-project-card,
.portfolio-card,
.project-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    transition: all 0.22s ease !important;
}

.home-project-card:nth-child(2),
.portfolio-card:nth-child(2),
.project-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.home-project-card:nth-child(3),
.portfolio-card:nth-child(3),
.project-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.home-project-card:hover,
.portfolio-card:hover,
.project-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.home-project-card img,
.portfolio-card img,
.project-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-bottom: 1px solid #dbe7f3 !important;
    background: #f1f5f9 !important;
    transition: transform 0.25s ease !important;
}

.home-project-card:hover img,
.portfolio-card:hover img,
.project-card:hover img {
    transform: scale(1.03) !important;
}

.home-project-card-content,
.portfolio-card-content,
.project-card-content {
    padding: 1.6rem !important;
}

.home-project-card h3,
.portfolio-card h3,
.project-card h3 {
    color: #124a84 !important;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    margin: 0 0 0.8rem !important;
}

.home-project-card p,
.portfolio-card p,
.project-card p {
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1.2rem !important;
}

.home-project-card .portfolio-card-action,
.portfolio-card .portfolio-card-action,
.project-card .portfolio-card-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    color: #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.home-project-card .portfolio-card-action::after,
.portfolio-card .portfolio-card-action::after,
.project-card .portfolio-card-action::after {
    content: "→" !important;
    color: #185FA5 !important;
    transition: transform 0.2s ease !important;
}

.home-project-card .portfolio-card-action:hover,
.portfolio-card .portfolio-card-action:hover,
.project-card .portfolio-card-action:hover {
    color: #124a84 !important;
}

.home-project-card .portfolio-card-action:hover::after,
.portfolio-card .portfolio-card-action:hover::after,
.project-card .portfolio-card-action:hover::after {
    transform: translateX(4px) !important;
}

@media (min-width: 1000px) {
    .home-projects-grid.featured-layout,
    .portfolio-grid.featured-layout,
    .projects-grid.featured-layout {
        grid-template-columns: 1.2fr 1fr 1fr !important;
    }
}

@media (max-width: 1000px) {
    .home-projects-grid,
    .portfolio-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .home-projects-grid,
    .portfolio-grid,
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    .home-project-card img,
    .portfolio-card img,
    .project-card img {
        height: 200px !important;
    }
}

/* =========================================================
   FINAL WCAG CONTRAST FIX FOR LEARN MORE BUTTONS
========================================================= */

.learn-more-btn,
a.learn-more-btn,
a[aria-label="Learn More"],
a[title="Learn More"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 150px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    cursor: pointer !important;
}

.learn-more-btn:hover,
a.learn-more-btn:hover,
a[aria-label="Learn More"]:hover,
a[title="Learn More"]:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
    text-decoration: none !important;
}

.learn-more-btn:focus,
a.learn-more-btn:focus,
a[aria-label="Learn More"]:focus,
a[title="Learn More"]:focus {
    outline: 4px solid rgba(24, 95, 165, 0.28) !important;
    outline-offset: 3px !important;
}

/* =========================================================
   FINAL SEARCH BUTTON CONTRAST FIX
========================================================= */

.hero-clean-search button,
.professional-search-form button,
.search-form button,
button[type="submit"] {
    background: #BA7517 !important;
    color: #ffffff !important;
    border: 2px solid #BA7517 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    filter: none !important;
}

.hero-clean-search button:hover,
.professional-search-form button:hover,
.search-form button:hover,
button[type="submit"]:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
}

/* =========================================================
   FINAL LEARN MORE BUTTON CONTRAST FIX
========================================================= */

.learn-more-btn,
a.learn-more-btn,
.home-section .learn-more-btn,
.home-about-section .learn-more-btn,
.home-products-section .learn-more-btn,
.service-card .learn-more-btn,
.feature-card .learn-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 150px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.learn-more-btn:hover,
a.learn-more-btn:hover,
.home-section .learn-more-btn:hover,
.home-about-section .learn-more-btn:hover,
.home-products-section .learn-more-btn:hover,
.service-card .learn-more-btn:hover,
.feature-card .learn-more-btn:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
    transform: translateY(-2px) !important;
}

.learn-more-btn:focus,
a.learn-more-btn:focus {
    outline: 4px solid rgba(24, 95, 165, 0.22) !important;
    outline-offset: 3px !important;
}

.dark-section .learn-more-btn,
.home-hero .learn-more-btn,
.service-detail-hero .learn-more-btn,
.section-dark .learn-more-btn {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.dark-section .learn-more-btn:hover,
.home-hero .learn-more-btn:hover,
.service-detail-hero .learn-more-btn:hover,
.section-dark .learn-more-btn:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

/* =========================================================
   FINAL HOME PRODUCTS CARDS TWEAKS
========================================================= */

.home-products-grid,
.products-grid,
.home-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
    gap: 1.3rem !important;
    align-items: stretch !important;
}

.home-product-card {
    padding: 1.7rem !important;
    border-radius: 26px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
}

.home-product-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.home-product-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.home-product-card:nth-child(4) {
    border-top-color: #124a84 !important;
}

.home-product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.home-product-card:nth-child(1):hover {
    border-color: #185FA5 !important;
}

.home-product-card:nth-child(2):hover {
    border-color: #3B6D11 !important;
}

.home-product-card:nth-child(3):hover {
    border-color: #BA7517 !important;
}

.home-product-card:nth-child(4):hover {
    border-color: #124a84 !important;
}

.home-product-card h3 {
    color: #124a84 !important;
    font-size: 1.22rem !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
    margin-bottom: 0.8rem !important;
}

.home-product-card p {
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.home-product-card img,
.home-product-card .service-card-img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    margin-bottom: 1.4rem !important;
    border: 1px solid #dbe7f3 !important;
}

@media (max-width: 1200px) {
    .home-products-grid,
    .products-grid,
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .home-products-grid,
    .products-grid,
    .home-product-grid {
        grid-template-columns: 1fr !important;
    }

    .home-product-card {
        padding: 1.5rem !important;
    }

    .home-product-card img,
    .home-product-card .service-card-img {
        height: 180px !important;
    }
}

/* =========================================================
   FINAL VISIBLE STATS GAP
========================================================= */

.home-hero + .home-stats-section,
.hero-section + .home-stats-section,
.home-healthline-section + .home-stats-section,
.home-stats-section {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}

.home-stats-card {
    margin-top: 0.85rem !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
}

@media (max-width: 900px) {
    .home-stats-card {
        margin-top: 0.6rem !important;
    }
}

/* =========================================================
   FINAL PROFESSIONAL STATS SPACING
========================================================= */

.home-hero + .home-stats-section,
.hero-section + .home-stats-section,
.home-healthline-section + .home-stats-section,
.home-stats-section {
    margin-top: 0 !important;
    padding-top: 1.25rem !important;
}

.home-stats-section {
    padding-bottom: 2.5rem !important;
}

.home-stats-card {
    margin-top: 0 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .home-stats-section {
        padding-top: 1rem !important;
    }
}

/* =========================================================
   About Us Page Design
========================================================= */

.about-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%);
    color: #ffffff;
    padding: 5.5rem 0 6rem;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 4rem;
    align-items: center;
}

.about-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.about-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.about-hero .section-kicker {
    color: #ffffff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
}

.about-hero h1 {
    margin: 1rem 0 1.2rem;
    color: #ffffff;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.about-hero-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    line-height: 1.75;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    min-width: 160px;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.about-btn-primary {
    background: #ffffff;
    color: #124a84;
    border: 2px solid #ffffff;
}

.about-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.about-btn-primary:hover {
    background: #BA7517;
    color: #ffffff;
    border-color: #BA7517;
}

.about-btn-secondary:hover {
    background: #ffffff;
    color: #124a84;
}

.about-hero-card {
    background: #ffffff;
    color: #1f2937;
    border-radius: 30px;
    padding: 2.4rem;
    box-shadow: 0 30px 80px rgba(18, 74, 132, 0.3);
}

.about-card-label {
    display: block;
    color: #BA7517;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.about-hero-card strong {
    display: block;
    color: #124a84;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
}

.about-hero-card p {
    color: #5f6f82;
    line-height: 1.7;
    margin: 0;
}

.about-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.8rem;
}

.about-mini-stats div {
    background: #f7f9fc;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    padding: 1rem;
}

.about-mini-stats span {
    display: block;
    color: #185FA5;
    font-weight: 900;
    font-size: 1.2rem;
}

.about-mini-stats p {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.about-content-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(24, 95, 165, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 4.5rem 0 5.5rem;
}

.about-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    align-items: start;
}

.about-main-card,
.about-side-card {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.1);
}

.about-main-card {
    padding: 3.2rem;
    position: relative;
    overflow: hidden;
}

.about-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

/* =========================================================
   Guided Service Finder
========================================================= */

.guided-finder-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
    border: 1px solid #dbe7f3;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(18, 74, 132, 0.10);
}

.guided-finder-head {
    margin-bottom: 1.25rem;
}

.guided-finder-head h2 {
    margin: 0.35rem 0 0.55rem;
    color: #124a84;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: -0.03em;
}

.guided-finder-head p {
    margin: 0;
    color: #5f6f82;
}

.guided-finder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.guided-finder-card {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 10px 24px rgba(24, 95, 165, 0.08);
}

.guided-finder-card h3 {
    margin: 0 0 0.45rem;
    color: #1f2937;
    font-size: 1.05rem;
}

.guided-finder-card p {
    margin: 0 0 0.85rem;
    color: #5f6f82;
    font-size: 0.95rem;
    line-height: 1.55;
}

.guided-finder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    background: #185FA5;
    color: #ffffff;
    border: 1px solid #185FA5;
}

.guided-finder-btn:hover {
    background: #124a84;
    border-color: #124a84;
}

.guided-finder-card:nth-child(2) .guided-finder-btn {
    background: #3B6D11;
    border-color: #3B6D11;
}

.guided-finder-card:nth-child(2) .guided-finder-btn:hover {
    background: #124a84;
    border-color: #124a84;
}

.guided-finder-card:nth-child(3) .guided-finder-btn {
    background: #BA7517;
    border-color: #BA7517;
}

.guided-finder-card:nth-child(3) .guided-finder-btn:hover {
    background: #124a84;
    border-color: #124a84;
}

@media (max-width: 1080px) {
    .guided-finder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .guided-finder-section {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .guided-finder-grid {
        grid-template-columns: 1fr;
    }
}

.section-kicker.blue {
    color: #185FA5;
}

.about-rich-content h2 {
    position: relative;
    margin: 1.2rem 0 1.2rem;
    padding-left: 1.2rem;
    color: #124a84;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.about-rich-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 5px;
    height: 36px;
    border-radius: 999px;
    background: #185FA5;
}

.about-rich-content p {
    max-width: 820px;
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

.about-rich-content .btn,
.about-rich-content .btn-primary,
.about-rich-content a.btn-primary,
.about-rich-content a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    min-width: 170px;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
    overflow: visible;
    text-indent: 0;
    opacity: 1;
    font-size: 1rem;
}

.about-rich-content a.btn-primary {
    background: #185FA5;
    border: 2px solid #185FA5;
}

.about-rich-content a.btn-primary:hover {
    background: #BA7517;
    border-color: #BA7517;
    color: #ffffff;
}

.about-rich-content a.btn:not(.btn-primary) {
    background: #f7f9fc;
    border: 2px solid #dbe7f3;
    color: #124a84;
}

.about-side-card {
    padding: 1.8rem;
    position: sticky;
    top: 2rem;
}

.about-side-card h2 {
    margin: 0 0 1.4rem;
    color: #124a84;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.about-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.about-side-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    background: #f7f9fc;
    border: 1px solid #dbe7f3;
    border-radius: 15px;
    color: #124a84;
    text-decoration: none;
    font-weight: 900;
}

.about-side-card a::after {
    content: "→";
    color: #185FA5;
}

.about-side-card a:hover {
    background: #185FA5;
    color: #ffffff;
    border-color: #185FA5;
}

.about-side-card a:hover::after {
    color: #ffffff;
}

@media (max-width: 900px) {
    .about-hero-grid,
    .about-content-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 4rem 0 4.5rem;
    }

    .about-main-card {
        padding: 2rem;
    }

    .about-side-card {
        position: static;
    }

    .about-actions a {
        width: 100%;
    }
}

.about-hero {
    position: relative !important;
    overflow: hidden !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.96) 0%, rgba(18, 74, 132, 0.9) 48%, rgba(24, 95, 165, 0.55) 100%),
        url("/images/about-hero.jpg") right center / cover no-repeat !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(18, 74, 132, 0.9), rgba(24, 95, 165, 0.35));
    z-index: 0;
    pointer-events: none;
}

.about-hero .container,
.about-hero-grid {
    position: relative !important;
    z-index: 2 !important;
}

.about-breadcrumb {
    color: rgba(255, 255, 255, 0.9) !important;
}

.about-breadcrumb a,
.about-breadcrumb span {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

.about-hero .section-kicker {
    color: #ffffff !important;
    opacity: 1 !important;
}

.about-hero .section-kicker::before {
    background: #ffffff !important;
}

.about-hero h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}

.about-hero p,
.about-hero-text {
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.about-btn-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.about-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
}

.about-btn-secondary:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #ffffff !important;
}

.about-btn-primary:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

.about-hero-card {
    position: relative !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #1f2937 !important;
    border-radius: 30px !important;
    padding: 2.4rem !important;
    box-shadow: 0 30px 80px rgba(18, 74, 132, 0.32) !important;
}

.about-hero-card p {
    color: #5f6f82 !important;
}

.about-hero-card strong {
    color: #124a84 !important;
}

.about-card-label {
    color: #BA7517 !important;
}

.about-mini-stats span {
    color: #185FA5 !important;
}

.about-mini-stats p,
.about-hero-card p {
    color: #5f6f82 !important;
}

@media (max-width: 900px) {
    .about-hero {
        background:
            linear-gradient(180deg, rgba(18, 74, 132, 0.96), rgba(24, 95, 165, 0.88)),
            url("/images/about-hero.jpg") center / cover no-repeat !important;
        padding: 4.5rem 0 5rem !important;
    }
}

.about-content-section {
    background:
        radial-gradient(circle at 10% 12%, rgba(24, 95, 165, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%) !important;
    padding: 4.5rem 0 5.5rem !important;
}

.about-content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 2rem !important;
    align-items: start !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.about-main-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 32px !important;
    padding: 3.3rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: relative !important;
    overflow: hidden !important;
}

.about-main-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

.about-main-card .section-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.about-main-card .section-kicker::before {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: #185FA5;
}

.about-rich-content {
    color: #1f2937 !important;
}

.about-rich-content h2 {
    position: relative;
    margin: 0 0 1.3rem !important;
    padding-left: 1.2rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 3vw, 2.8rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.about-rich-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 5px;
    height: 36px;
    border-radius: 999px;
    background: #185FA5;
}

.about-rich-content p {
    max-width: 850px !important;
    color: #1f2937 !important;
    font-size: 1.08rem !important;
    line-height: 1.9 !important;
    margin: 0 0 1.6rem !important;
}

.about-rich-content p:first-of-type {
    font-size: 1.14rem !important;
    color: #124a84 !important;
    font-weight: 700 !important;
}

.about-rich-content p + p {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(219, 231, 243, 0.75);
}

.about-rich-content strong {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.about-rich-content a,
.about-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 190px !important;
    margin-top: 1rem !important;
    padding: 0 1.6rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem !important;
    text-indent: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.about-rich-content a:hover,
.about-story-btn:hover {
    background: #BA7517 !important;
    border-color: #BA7517 !important;
    color: #ffffff !important;
}

.about-side-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 1.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: sticky !important;
    top: 2rem !important;
}

.about-side-card h2 {
    margin: 0 0 1.4rem !important;
    color: #124a84 !important;
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.about-side-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.9rem !important;
}

.about-side-card a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.1rem !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

.about-side-card a::after {
    content: "→";
    color: #185FA5;
    font-weight: 900;
}

.about-side-card a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateX(4px);
}

.about-side-card a:hover::after {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .about-content-grid {
        grid-template-columns: 1fr !important;
    }

    .about-main-card {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .about-side-card {
        position: static !important;
    }

    .about-rich-content a,
    .about-story-btn {
        width: 100% !important;
    }
}

.service-detail-hero {
    position: relative !important;
    overflow: hidden !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.96) 0%, rgba(18, 74, 132, 0.9) 45%, rgba(24, 95, 165, 0.72) 100%),
        url("/images/health-service-hero.jpg") right center / cover no-repeat !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.service-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(18, 74, 132, 0.88), rgba(24, 95, 165, 0.56));
    z-index: 0;
}

.service-detail-hero .container {
    position: relative;
    z-index: 2;
}

.service-detail-copy h1,
.service-detail-copy p,
.service-detail-copy .section-kicker,
.service-breadcrumb,
.service-breadcrumb a,
.service-breadcrumb span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.service-hero-card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 30px !important;
    padding: 2.6rem !important;
    box-shadow: 0 30px 80px rgba(18, 74, 132, 0.32) !important;
}

.service-hero-card h2 {
    color: #124a84 !important;
}

.service-highlight-list li {
    color: #1f2937 !important;
}

.service-highlight-list li {
    display: grid !important;
    gap: 0.25rem !important;
    padding-left: 2.4rem !important;
}

.service-highlight-list li strong {
    display: block !important;
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.service-highlight-list li span {
    display: block !important;
    color: #5f6f82 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

.service-detail-copy h1 {
    max-width: 820px !important;
}

.service-detail-excerpt {
    max-width: 780px !important;
}

@media (max-width: 900px) {
    .service-detail-hero {
        background:
            linear-gradient(180deg, rgba(18, 74, 132, 0.96), rgba(24, 95, 165, 0.88)),
            url("/images/health-service-hero.jpg") center / cover no-repeat !important;
        padding: 4.5rem 0 5rem !important;
    }
}

.service-content-grid {
    align-items: start !important;
    gap: 2rem !important;
}

.service-side-card {
    padding: 1.85rem !important;
    align-self: start;
}

.service-side-card h2 {
    margin-bottom: 1rem;
}

.service-side-card a {
    padding: 0.88rem 1rem;
}

@media (max-width: 900px) {
    .service-main-card {
        padding: 1.5rem !important;
    }

    .service-side-card {
        padding: 1.5rem !important;
    }
}

.service-detail-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%);
    color: #ffffff;
    padding: 5rem 0 6rem;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 3rem;
    align-items: center;
}

.service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.service-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.service-detail-copy .section-kicker {
    color: #ffffff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
}

.service-detail-copy h1 {
    margin: 1rem 0 1.2rem;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: #ffffff;
}

.service-detail-excerpt {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.75;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.service-btn-light {
    background: #ffffff;
    color: #124a84;
}

.service-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.service-hero-card {
    background: #ffffff;
    color: #1f2937;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.25);
}

.service-hero-card h2 {
    margin: 0 0 1rem;
    color: #124a84;
    font-size: 1.5rem;
}

.service-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.service-highlight-list li {
    padding-left: 1.8rem;
    position: relative;
    color: #5f6f82;
    line-height: 1.6;
    font-weight: 700;
}

.service-highlight-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #3B6D11;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.55rem;
}

.service-detail-content {
    background: #f7f9fc;
    padding: 4rem 0 5rem;
}

.service-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.service-main-card,
.service-side-card {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.1);
}

.service-main-card {
    padding: 2.5rem;
}

.service-main-card h2,
.service-main-card h3 {
    color: #124a84;
}

.service-main-card p {
    color: #5f6f82;
    line-height: 1.75;
    font-size: 1.05rem;
}

.service-side-card {
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.service-side-card h2 {
    margin: 0 0 1rem;
    color: #124a84;
}

.service-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.service-side-card a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #f7f9fc;
    color: #124a84;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #dbe7f3;
}

.service-side-card a:hover {
    background: #185FA5;
    color: #ffffff;
}

@media (max-width: 900px) {
    .service-detail-grid,
    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-hero {
        padding: 4rem 0 5rem;
    }

    .service-content-grid {
        margin-top: -2rem;
    }

    .service-side-card {
        position: static;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: var(--thlin-text);
    background: var(--thlin-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--thlin-blue);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: #fff;
    color: var(--thlin-blue-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

/* =========================================================
   Buttons
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--thlin-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--thlin-blue-dark);
    color: white;
}

.btn-light {
    background: white;
    color: var(--thlin-blue-dark);
}

.btn-light:hover {
    background: #edf6ff;
    color: var(--thlin-blue-dark);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--thlin-blue-dark);
}

/* =========================================================
   Header / Floating Navbar
========================================================= */

.site-header {
    position: relative;
    background: var(--thlin-navy);
}

.nav-wrapper {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
}

.header-inner {
    min-height: 76px;
    background: white;
    border-radius: 14px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--thlin-blue-dark);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    max-width: min(34vw, 340px) !important;
    padding: 0.55rem 0.9rem !important;
    border-radius: 14px !important;
    background: #124a84 !important;
    border: 1px solid #185FA5 !important;
    text-decoration: none !important;
}

.brand-logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 26px !important;
    object-fit: contain !important;
}

@media (max-width: 1024px) {
    .brand-logo {
        max-width: 270px !important;
        padding: 0.45rem 0.75rem !important;
    }

    .brand-logo img {
        max-height: 22px !important;
    }
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(24, 95, 165, 0.1);
    color: var(--thlin-blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.logo-text {
    font-size: 1rem;
    color: var(--thlin-blue-dark);
    font-weight: 900;
}

.site-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.site-nav li {
    position: relative;
    list-style: none;
}

.site-nav a {
    color: #1f2937;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
}

.site-nav a:hover {
    color: var(--thlin-blue);
}

.site-nav > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin-top: 1rem;
    padding: 0.7rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 20;
}

.site-nav > ul > li:hover > ul {
    display: block;
}

.site-nav > ul > li > ul a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: var(--thlin-blue-dark);
}

.site-nav > ul > li > ul a:hover {
    background: var(--thlin-bg);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.2rem;
    border-radius: 10px;
    background: var(--thlin-blue);
    color: white;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--thlin-blue-dark);
    color: white;
}

/* =========================================================
   Home Hero
========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 8.5rem 0 5rem;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(90deg, #072d55 0%, #105e9b 100%);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0.72;
}

.hero-network-canvas.is-active {
    display: block;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0.55;
}

.hero-video-bg video.is-active {
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 82%, rgba(255, 255, 255, 0.12) 0 18%, transparent 19%),
        linear-gradient(
            90deg,
            rgba(7, 45, 85, 0.84) 0%,
            rgba(18, 74, 132, 0.72) 40%,
            rgba(24, 95, 165, 0.58) 100%
        );
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 2;
}

.home-hero.has-hero-image {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(24, 95, 165, 0.92), rgba(18, 74, 132, 0.95));
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.96) 0%, rgba(18, 74, 132, 0.88) 45%, rgba(18, 74, 132, 0.62) 100%),
        url("/images/hero-doctors.jpg") center / cover no-repeat;
    opacity: 0.65;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: center;
    gap: 4rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.section-kicker.blue {
    color: var(--thlin-blue);
}

.hero-content h1 {
    margin: 0 0 1.35rem;
    max-width: 680px;
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 900;
    text-shadow: 0 2px 28px rgba(15, 47, 87, 0.45);
}

.hero-lead {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.08rem;
    line-height: 1.75;
    text-shadow: 0 1px 18px rgba(15, 47, 87, 0.35);
}

.hero-content .section-kicker {
    text-shadow: 0 1px 12px rgba(15, 47, 87, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.hero-actions .btn {
    min-width: 230px;
    min-height: 58px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 900;
}

.hero-actions .btn-light {
    background: #ffffff;
    color: var(--thlin-blue-dark);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero-actions .btn-light:hover {
    transform: translateY(-2px);
    background: #f0f7ff;
    color: var(--thlin-blue-dark);
}

.hero-actions .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.hero-actions .btn-outline-light:hover {
    background: #ffffff;
    color: var(--thlin-blue-dark);
    transform: translateY(-2px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.hero-tags span {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-card {
    max-width: 460px;
    margin-left: auto;
    padding: 2rem;
    background: white;
    color: var(--thlin-text);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 3;
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
    color: white;
    font-size: 1.45rem;
    font-weight: 900;
}

.hero-card h2 {
    margin: 0 0 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.hero-card p {
    margin: 0 0 1rem;
    color: var(--thlin-muted);
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 1.4rem;
    display: grid;
    gap: 0.75rem;
}

.hero-card li {
    position: relative;
    padding-left: 1.8rem;
    font-weight: 700;
}

.hero-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(59, 109, 17, 0.12);
    color: var(--thlin-green);
    font-size: 0.75rem;
    font-weight: 900;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    background: var(--thlin-bg);
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    padding: 0.55rem;
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.85rem 0.9rem;
    font: inherit;
}

.hero-search button {
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    background: var(--thlin-orange);
    color: white;
    padding: 0.85rem 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

.hero-search button:hover {
    background: #9f6011;
}

.hero-service-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 28px !important;
    padding: 2.5rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.18) !important;
    color: #1f2937 !important;
}

.hero-service-card * {
    opacity: 1 !important;
    filter: none !important;
}

.hero-card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: #3B6D11 !important;
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    margin-bottom: 1.4rem !important;
}

.hero-service-card h2 {
    margin: 0 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

.hero-service-card p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
    margin-bottom: 1.4rem !important;
}

.hero-service-list {
    display: grid !important;
    gap: 0.8rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.6rem !important;
}

.hero-service-list li {
    color: #1f2937 !important;
    font-weight: 800 !important;
    position: relative !important;
    padding-left: 2rem !important;
}

.hero-service-list li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.05rem !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: rgba(59, 109, 17, 0.12) !important;
    color: #3B6D11 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
}

.hero-clean-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.7rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    padding: 0.65rem !important;
}

.hero-clean-search input {
    min-height: 52px !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 1rem !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
    outline: none !important;
}

.hero-clean-search input::placeholder {
    color: #5f6f82 !important;
    opacity: 1 !important;
}

.hero-clean-search button {
    min-height: 52px !important;
    padding: 0 1.35rem !important;
    border-radius: 13px !important;
    border: 2px solid #BA7517 !important;
    background: #BA7517 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.hero-clean-search button:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
}

.home-healthline-image,
.service-card-img {
    border-radius: 28px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Home Video Background
========================================================= */

.page-home {
    background: var(--thlin-bg);
}

.page-home .home-video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.page-home .home-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            105deg,
            rgba(15, 47, 87, 0.78) 0%,
            rgba(18, 74, 132, 0.52) 42%,
            rgba(24, 95, 165, 0.38) 100%
        );
}

.page-home .skip-link,
.page-home .site-header,
.page-home main,
.page-home .site-footer {
    position: relative;
    z-index: 2;
}

.page-home main#main-content {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.page-home .site-header.is-home-header {
    background: transparent;
}

.page-home .home-hero--video {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.page-home .hero-kicker {
    color: rgba(255, 255, 255, 0.92);
}

.page-home .hero-content h1 {
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.page-home .hero-lead {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.page-home .hero-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.page-home .hero-tags a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .hero-tags a:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: white;
}

.page-home .home-section {
    position: relative;
    z-index: 2;
}

.page-home .home-section:first-of-type {
    border-radius: 28px 28px 0 0;
    margin-top: -1.5rem;
    box-shadow: 0 -12px 40px rgba(15, 47, 87, 0.08);
}

.page-home .home-cta {
    position: relative;
    z-index: 2;
}

@keyframes homeHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.page-home .hero-content {
    animation: homeHeroFadeUp 0.85s ease-out both;
}

.page-home .hero-card {
    animation: homeHeroFadeUp 0.85s ease-out 0.12s both;
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-video-bg {
        display: none;
    }

    .page-home .home-video-overlay {
        background: linear-gradient(135deg, var(--thlin-blue) 0%, var(--thlin-blue-dark) 100%);
    }

    .page-home .hero-content,
    .page-home .hero-card {
        animation: none;
    }
}

/* =========================================================
   Home Sections
========================================================= */

.home-section {
    padding: 5rem 0;
    background: white;
}

.section-light {
    background: var(--thlin-bg);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

.section-heading h2,
.split-grid h2,
.home-cta h2 {
    margin: 0 0 0.9rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.split-grid p {
    margin: 0;
    color: var(--thlin-muted);
    font-size: 1.08rem;
}

/* =========================================================
   Quick Access Cards
========================================================= */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
}

.quick-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 1.45rem;
    background: white;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--thlin-text);
    transition: 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.16);
}

.quick-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--thlin-blue);
}

.quick-card:nth-child(2)::before {
    background: var(--thlin-green);
}

.quick-card:nth-child(3)::before {
    background: var(--thlin-orange);
}

.quick-card:nth-child(4)::before {
    background: var(--thlin-blue-dark);
}

.quick-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(24, 95, 165, 0.1);
    color: var(--thlin-blue);
    font-weight: 900;
}

.quick-card h3 {
    margin: 0 0 0.7rem;
    color: var(--thlin-blue-dark);
}

.quick-card p {
    color: var(--thlin-muted);
}

.quick-card strong {
    color: var(--thlin-blue);
}

/* =========================================================
   About
========================================================= */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.split-grid p + p {
    margin-top: 1rem;
}

.split-grid .btn {
    margin-top: 1.4rem;
}

.info-panel {
    padding: 2rem;
    background: white;
    border: 1px solid var(--thlin-border);
    border-top: 6px solid var(--thlin-green);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.info-panel > span {
    color: var(--thlin-orange);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-panel h3 {
    color: var(--thlin-blue-dark);
    font-size: 1.8rem;
}

.info-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.info-list div {
    padding: 1rem;
    border-radius: 16px;
    background: var(--thlin-bg);
    border-left: 4px solid var(--thlin-blue);
}

.info-list strong,
.info-list small {
    display: block;
}

.info-list small {
    color: var(--thlin-muted);
}

/* =========================================================
   Stats
========================================================= */

.stats-grid,
.service-grid,
.portfolio-grid {
    display: grid;
    gap: 1.3rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    background: white;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--thlin-blue);
}

.stat-card:nth-child(2n)::before {
    background: var(--thlin-green);
}

.stat-card:nth-child(3n)::before {
    background: var(--thlin-orange);
}

.stat-card strong {
    display: block;
    color: var(--thlin-blue-dark);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 0.75rem;
    color: var(--thlin-muted);
    font-weight: 700;
}

/* =========================================================
   Services
========================================================= */

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    padding: 1.6rem;
    background: white;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.16);
}

.service-card > span {
    display: block;
    width: 54px;
    height: 54px;
    margin-bottom: 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(24, 95, 165, 0.16), rgba(59, 109, 17, 0.12));
    position: relative;
}

.service-card > span::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 10px;
    background: var(--thlin-blue);
}

.service-card h3 {
    color: var(--thlin-blue-dark);
}

/* =========================================================
   Portfolio
========================================================= */

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    color: inherit;
    transition: 0.2s ease;
}

.portfolio-card-media {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card-action {
    display: inline-flex;
    margin-top: 0.35rem;
    font-weight: 800;
    color: var(--thlin-blue);
    text-decoration: none;
}

.portfolio-card-action:hover {
    text-decoration: underline;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.16);
}

.portfolio-card img,
.portfolio-placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(24, 95, 165, 0.12), rgba(59, 109, 17, 0.12));
}

.portfolio-card-body {
    padding: 1.35rem;
}

.portfolio-card h3 {
    color: var(--thlin-blue-dark);
}

/* =========================================================
   CTA
========================================================= */

.home-cta {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--thlin-blue-dark), var(--thlin-blue));
    color: white;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.home-cta h2 {
    color: white;
}

.home-cta p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 0.9rem;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
    background: #0f2f57;
    color: #ffffff;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    max-width: 360px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--thlin-blue-dark);
    font-size: 0.85rem;
    font-weight: 900;
}

.footer-column h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =========================================================
   Focus
========================================================= */

:where(.quick-card, .portfolio-card, .btn, .hero-search input, .hero-search button, .site-nav a, .nav-cta):focus-visible {
    outline: 3px solid rgba(186, 117, 23, 0.55);
    outline-offset: 4px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1100px) {
    .hero-grid,
    .split-grid,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .site-accessibility-toolbar {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .site-accessibility-label {
        width: 100%;
        text-align: center;
    }

    .back-to-top {
        right: 0.75rem;
        bottom: 4.75rem;
    }

    .hero-card {
        max-width: 100%;
        margin-left: 0;
    }

    .quick-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav > ul {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .home-hero {
        min-height: auto;
        padding-top: 12rem;
        padding-bottom: 3.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-search button {
        width: 100%;
    }

    .quick-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn,
    .nav-cta {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Header behavior fix
   Floating navbar only on home page
   Normal navbar on other pages
========================================================= */

/* Default inner page header */
.site-header.is-inner-header {
    background: #ffffff;
    border-bottom: 1px solid #e4edf7;
    box-shadow: 0 8px 24px rgba(18, 74, 132, 0.06);
}

.site-header.is-inner-header .nav-wrapper {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    padding: 0;
}

.site-header.is-inner-header .header-inner {
    min-height: 78px;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: #ffffff;
}

.site-header.is-inner-header + main,
.site-header.is-inner-header ~ main {
    padding-top: 0;
}

/* Inner page content spacing */
.site-header.is-inner-header ~ main#main-content {
    padding-top: 3rem;
}

/* Keep floating navbar only on home page */
.site-header.is-home-header {
    position: relative;
    background: #ffffff;
}

.site-header.is-home-header .nav-wrapper {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
}

.site-header.is-home-header .header-inner {
    min-height: 76px;
    background: #ffffff;
    border-radius: 14px;
    padding: 0 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

/* Fix inner pages so title is not hidden */
.site-header.is-inner-header .container {
    width: min(1120px, calc(100% - 2rem));
}

/* Inner page nav should not cover content */
.site-header.is-inner-header .site-nav > ul > li > ul {
    margin-top: 0.75rem;
}

/* Mobile */
@media (max-width: 1100px) {
    .site-header.is-inner-header .header-inner {
        padding: 1rem 0;
    }
}

/* =========================================================
   Professional Inner Pages Design
   Applies to pages except home page
========================================================= */

.site-header.is-inner-header ~ main#main-content {
    background: linear-gradient(180deg, var(--thlin-light-blue) 0%, #ffffff 55%);
    padding: 0 0 4rem;
}

/* Legacy selector — keep for backwards compatibility */
.site-header.is-inner-header ~ main#main-content > .container {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Page title */
.site-header.is-inner-header ~ main#main-content h1 {
    color: #124a84;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
    max-width: 900px;
}

/* Intro paragraph after title */
.site-header.is-inner-header ~ main#main-content h1 + p {
    color: #5f6f82;
    font-size: 1.2rem;
    line-height: 1.75;
    max-width: 850px;
    margin-bottom: 3rem;
}

/* Section headings */
.site-header.is-inner-header ~ main#main-content h2 {
    position: relative;
    color: #124a84;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.25;
    margin: 3rem 0 1rem;
    padding-left: 1.2rem;
}

.site-header.is-inner-header ~ main#main-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 5px;
    height: 1.6rem;
    border-radius: 999px;
    background: #185FA5;
}

/* Paragraphs */
.site-header.is-inner-header ~ main#main-content p {
    color: #1f2937;
    font-size: 1.06rem;
    line-height: 1.85;
    max-width: 1000px;
    margin: 0 0 1.35rem;
}

/* Quote / testimonial */
.site-header.is-inner-header ~ main#main-content blockquote,
.site-header.is-inner-header ~ main#main-content p:has(+ p em) {
    background: #f7f9fc;
    border-left: 5px solid #3B6D11;
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    margin: 2rem 0;
}

/* Italic citation */
.site-header.is-inner-header ~ main#main-content em {
    color: #124a84;
    font-weight: 600;
}

/* Lists */
.site-header.is-inner-header ~ main#main-content ul,
.site-header.is-inner-header ~ main#main-content ol {
    margin: 1.2rem 0 1.8rem;
    padding-left: 1.4rem;
}

.site-header.is-inner-header ~ main#main-content li {
    margin-bottom: 0.65rem;
    line-height: 1.7;
}

/* Links */
.site-header.is-inner-header ~ main#main-content a {
    color: #185FA5;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.site-header.is-inner-header ~ main#main-content a:hover {
    color: #124a84;
}

/* Add subtle separator between content blocks */
.site-header.is-inner-header ~ main#main-content h2:not(:first-of-type) {
    padding-top: 1.25rem;
    border-top: 1px solid #e4edf7;
}

/* Better inner page header spacing */
.site-header.is-inner-header {
    background: #ffffff;
    border-bottom: 1px solid #e4edf7;
    box-shadow: 0 8px 24px rgba(18, 74, 132, 0.06);
}

.site-header.is-inner-header .header-inner {
    min-height: 82px;
}

/* Mobile */
@media (max-width: 768px) {
    .site-header.is-inner-header ~ main#main-content {
        padding: 2rem 0 3rem;
    }

    .site-header.is-inner-header ~ main#main-content > .container {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .site-header.is-inner-header ~ main#main-content h1 {
        font-size: 2.25rem;
    }

    .site-header.is-inner-header ~ main#main-content h1 + p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .site-header.is-inner-header ~ main#main-content h2 {
        font-size: 1.45rem;
        margin-top: 2.2rem;
    }

    .site-header.is-inner-header ~ main#main-content p {
        font-size: 1rem;
    }
}

/* =========================================================
   Fix empty buttons/links on inner pages
========================================================= */

.site-header.is-inner-header ~ main#main-content a:empty,
.site-header.is-inner-header ~ main#main-content .btn:empty,
.site-header.is-inner-header ~ main#main-content button:empty {
    display: none !important;
}

/* Restore real buttons on inner pages (CMS empty-link fix was too broad) */
.site-header.is-inner-header ~ main#main-content a.btn:not(:empty),
.site-header.is-inner-header ~ main#main-content button.btn:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: auto;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
}
.hero-tags a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-tags a:hover {
    background: #ffffff;
    color: var(--thlin-blue-dark);
}
/* =========================================================
   Patient Portal Page Design
========================================================= */

.patient-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(24, 95, 165, 0.12), transparent 30%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
}

.patient-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.patient-hero h1 {
    margin: 0 0 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    max-width: 780px;
}

.patient-lead {
    max-width: 680px;
    color: var(--thlin-muted);
    font-size: 1.25rem;
    line-height: 1.75;
    margin: 0;
}

.patient-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn-soft {
    background: #edf6ff;
    color: var(--thlin-blue-dark);
    border-color: #dbe7f3;
}

.btn-soft:hover {
    background: #ffffff;
    color: var(--thlin-blue);
    box-shadow: var(--shadow);
}

.patient-hero-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12);
}

.patient-card-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.patient-hero-card h2 {
    margin: 0 0 0.8rem;
    color: var(--thlin-blue-dark);
    font-size: 2rem;
    line-height: 1.2;
}

.patient-hero-card p {
    color: var(--thlin-muted);
    line-height: 1.75;
}

.patient-hero-card ul {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.patient-hero-card li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--thlin-text);
    font-weight: 700;
}

.patient-hero-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(59, 109, 17, 0.12);
    color: var(--thlin-green);
    font-size: 0.75rem;
    font-weight: 900;
}

.patient-section {
    background: #ffffff;
    padding: 4rem 0;
}

.patient-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.patient-main-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.patient-main-card h2 {
    position: relative;
    color: var(--thlin-blue-dark);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
}

.patient-main-card h2:first-child {
    margin-top: 0;
}

.patient-main-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 5px;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--thlin-blue);
}

.patient-main-card p {
    color: var(--thlin-text);
    font-size: 1.06rem;
    line-height: 1.85;
    margin: 0 0 1.35rem;
}

.patient-main-card blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--thlin-bg);
    border-left: 5px solid var(--thlin-green);
    border-radius: 18px;
    color: var(--thlin-text);
    line-height: 1.8;
}

.patient-side-card {
    position: sticky;
    top: 2rem;
    background: var(--thlin-blue-dark);
    color: #ffffff;
    border-radius: 24px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.patient-side-card h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.patient-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.patient-side-card a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.patient-side-card a:hover {
    background: #ffffff;
    color: var(--thlin-blue-dark);
}

.patient-feature-section {
    background: var(--thlin-bg);
    padding: 5rem 0;
}

.patient-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.patient-feature-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.patient-feature-card span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(24, 95, 165, 0.1);
    color: var(--thlin-blue);
    font-weight: 900;
    margin-bottom: 1rem;
}

.patient-feature-card h3 {
    color: var(--thlin-blue-dark);
    margin: 0 0 0.7rem;
}

.patient-feature-card p {
    color: var(--thlin-muted);
    margin: 0;
}

@media (max-width: 1000px) {
    .patient-hero-grid,
    .patient-content-grid {
        grid-template-columns: 1fr;
    }

    .patient-side-card {
        position: static;
    }

    .patient-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .patient-hero {
        padding: 3rem 0;
    }

    .patient-hero h1 {
        font-size: 2.8rem;
    }

    .patient-main-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .patient-actions {
        flex-direction: column;
    }

    .patient-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   Patient Portal Page - Professional Polish
========================================================= */

.patient-hero {
    padding: 4rem 0 3.5rem;
    background:
        radial-gradient(circle at 82% 18%, rgba(24, 95, 165, 0.10), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.patient-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 420px;
    gap: 4rem;
    align-items: center;
}

.patient-hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: 1.03;
    letter-spacing: -0.055em;
    color: var(--thlin-blue-dark);
}

.patient-lead {
    max-width: 620px;
    margin-top: 1rem;
    color: var(--thlin-muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.patient-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 2rem;
}

.patient-actions .btn {
    min-width: 170px;
    border-radius: 999px;
}

.btn-soft {
    background: #edf6ff;
    color: var(--thlin-blue-dark);
    border: 2px solid #dbe7f3;
}

    /* =========================================================
       Service Detail Page Design (Healthline)
    ========================================================= */

    .service-detail-hero {
        background:
            radial-gradient(circle at 88% 15%, rgba(24, 95, 165, 0.10), transparent 25%),
            linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
        padding: 4rem 0 3.5rem;
    }

    .service-breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 2rem;
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .service-breadcrumb a {
        color: var(--thlin-blue);
        text-decoration: none;
        font-weight: 700;
    }

    .service-breadcrumb a:hover {
        color: var(--thlin-blue-dark);
        text-decoration: underline;
    }

    .service-breadcrumb .separator {
        color: var(--thlin-muted);
        margin: 0 0.3rem;
    }

    .service-breadcrumb .current {
        color: var(--thlin-muted);
        font-weight: 600;
    }

    .service-label {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1rem;
        color: var(--thlin-blue);
        font-size: 0.85rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .service-label::before {
        content: "";
        width: 32px;
        height: 3px;
        border-radius: 999px;
        background: var(--thlin-blue);
    }

    .service-detail-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) 420px;
        gap: 4rem;
        align-items: center;
    }

    .service-hero-content {}

    .service-title {
        margin: 0 0 1.2rem;
        max-width: 760px;
        color: var(--thlin-blue-dark);
        font-size: clamp(2.8rem, 5vw, 5rem);
        line-height: 1.03;
        letter-spacing: -0.055em;
        font-weight: 900;
    }

    .service-excerpt {
        max-width: 680px;
        margin: 0;
        color: var(--thlin-muted);
        font-size: 1.2rem;
        line-height: 1.75;
    }

    .service-detail-actions {
        display: flex;
        gap: 0.9rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .service-detail-actions .btn {
        min-width: 170px;
        border-radius: 999px;
    }

    .service-hero-card {
        background: #ffffff;
        border: 1px solid var(--thlin-border);
        border-radius: 28px;
        padding: 2.2rem;
        box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12);
    }

    .service-card-icon {
        display: inline-grid;
        place-items: center;
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
        color: #ffffff;
        font-size: 1.8rem;
    }

    .service-hero-card h2 {
        margin: 0 0 0.8rem;
        color: var(--thlin-blue-dark);
        font-size: 2rem;
        line-height: 1.2;
        font-weight: 900;
    }

    .service-card-intro {
        margin: 0 0 1.4rem;
        color: var(--thlin-muted);
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-highlight-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.85rem;
    }

    .service-highlight-list li {
        position: relative;
        padding-left: 1.8rem;
        color: var(--thlin-text);
        font-weight: 700;
        line-height: 1.6;
    }

    .service-highlight-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 0.1rem;
        display: grid;
        place-items: center;
        width: 1.15rem;
        height: 1.15rem;
        border-radius: 50%;
        background: rgba(59, 109, 17, 0.12);
        color: var(--thlin-green);
        font-size: 0.75rem;
        font-weight: 900;
    }

    .service-detail-content {
        background: #ffffff;
        padding: 4rem 0;
    }

    .service-content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 2.5rem;
        align-items: start;
    }

    .service-main-card {
        background: #ffffff;
        border: 1px solid var(--thlin-border);
        border-radius: 28px;
        padding: 3rem;
        box-shadow: var(--shadow);
    }

    .service-main-card h2 {
        position: relative;
        margin: 2.5rem 0 1rem;
        padding-left: 1rem;
        color: var(--thlin-blue-dark);
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        line-height: 1.25;
        font-weight: 900;
    }

    .service-main-card h2:first-child {
        margin-top: 0;
    }

    .service-main-card h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.25rem;
        width: 5px;
        height: 1.5rem;
        border-radius: 999px;
        background: var(--thlin-blue);
    }

    .service-main-card h3 {
        margin: 1.8rem 0 0.8rem;
        color: var(--thlin-blue-dark);
        font-size: 1.3rem;
        line-height: 1.3;
        font-weight: 800;
    }

    .service-main-card p {
        margin: 0 0 1.35rem;
        color: var(--thlin-text);
        font-size: 1.06rem;
        line-height: 1.85;
    }

    .service-main-card ul,
    .service-main-card ol {
        margin: 1.2rem 0 1.8rem;
        padding-left: 1.4rem;
        color: var(--thlin-text);
    }

    .service-main-card li {
        margin-bottom: 0.65rem;
        line-height: 1.7;
    }

    .service-main-card blockquote {
        margin: 2rem 0;
        padding: 1.5rem 1.75rem;
        background: var(--thlin-bg);
        border-left: 5px solid var(--thlin-green);
        border-radius: 18px;
        color: var(--thlin-text);
        line-height: 1.8;
    }

    .service-main-card a {
        color: var(--thlin-blue);
        font-weight: 700;
        text-decoration: none;
    }

    .service-main-card a:hover {
        color: var(--thlin-blue-dark);
        text-decoration: underline;
    }

    .service-side-card {
        position: sticky;
        top: 2rem;
        background: #ffffff;
        border: 1px solid var(--thlin-border);
        border-radius: 24px;
        padding: 1.8rem;
        box-shadow: var(--shadow);
    }

    .service-side-card h3 {
        margin: 0 0 1.2rem;
        color: var(--thlin-blue-dark);
        font-size: 1.15rem;
        font-weight: 900;
        letter-spacing: 0.02em;
    }

    .service-side-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 0.7rem;
    }

    .service-side-card a {
        display: block;
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        background: var(--thlin-bg);
        color: var(--thlin-blue);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.96rem;
        transition: 0.2s ease;
    }

    .service-side-card a:hover {
        background: #dbe7f3;
        color: var(--thlin-blue-dark);
    }

    /* =========================================================
       Responsive - Service Detail
    ========================================================= */

    @media (max-width: 1100px) {
        .service-detail-grid {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }

        .service-content-grid {
            grid-template-columns: 1fr;
        }

        .service-side-card {
            position: static;
        }
    }

    @media (max-width: 768px) {
        .service-detail-hero {
            padding: 2.5rem 0;
        }

        .service-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .service-excerpt {
            font-size: 1.05rem;
        }

        .service-detail-actions {
            flex-direction: column;
        }

        .service-detail-actions .btn {
            width: 100%;
            min-width: auto;
        }

        .service-main-card {
            padding: 1.5rem;
            border-radius: 20px;
        }

        .service-main-card h2 {
            font-size: 1.45rem;
            margin-top: 2rem;
        }

        .service-main-card p {
            font-size: 1rem;
        }

        .service-side-card {
            padding: 1.5rem;
        }

        .service-breadcrumb {
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .service-title {
            font-size: 2rem;
        }

        .service-excerpt {
            font-size: 1rem;
        }

        .service-main-card {
            padding: 1.25rem;
        }

        .service-hero-card {
            padding: 1.5rem;
            border-radius: 20px;
        }

        .service-label {
            font-size: 0.8rem;
        }

        .service-label::before {
            width: 24px;
            height: 2px;
        }
    }

.btn-soft:hover {
    background: #ffffff;
    color: var(--thlin-blue);
    box-shadow: var(--shadow);
}

.patient-hero-card {
    padding: 2.2rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    box-shadow: 0 28px 80px rgba(18, 74, 132, 0.12);
}

.patient-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.patient-hero-card h2 {
    margin: 0 0 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.18;
}

.patient-hero-card p {
    color: var(--thlin-muted);
    line-height: 1.75;
}

.patient-hero-card ul {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.patient-hero-card li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--thlin-text);
    font-weight: 750;
}

.patient-hero-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(59, 109, 17, 0.12);
    color: var(--thlin-green);
    font-size: 0.75rem;
    font-weight: 900;
}

/* Content area */

.patient-section {
    padding: 4rem 0;
    background: #ffffff;
}

.patient-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.patient-main-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.08);
}

.patient-main-card h2 {
    position: relative;
    margin: 2.7rem 0 1rem;
    padding-left: 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.patient-main-card h2:first-child {
    margin-top: 0;
}

.patient-main-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22rem;
    width: 5px;
    height: 1.55rem;
    border-radius: 999px;
    background: var(--thlin-blue);
}

.patient-main-card p {
    color: var(--thlin-text);
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 1.35rem;
}

.patient-main-card a {
    color: var(--thlin-blue);
    font-weight: 800;
}

/* Quick access side card */

.patient-side-card {
    position: sticky;
    top: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(135deg, var(--thlin-blue-dark), var(--thlin-blue));
    color: #ffffff;
    border-radius: 24px;
    padding: 1.6rem;
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.18);
}

.patient-side-card h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.patient-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.patient-side-card a {
    display: block;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    text-decoration: none;
    font-weight: 800;
}

.patient-side-card a:hover {
    background: #ffffff;
    color: var(--thlin-blue-dark);
}

/* Feature section */

.patient-feature-section {
    padding: 5rem 0;
    background: var(--thlin-bg);
}

.patient-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.patient-feature-card {
    padding: 1.6rem;
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.patient-feature-card span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(24, 95, 165, 0.1);
    color: var(--thlin-blue);
    font-weight: 900;
}

.patient-feature-card h3 {
    margin: 0 0 0.7rem;
    color: var(--thlin-blue-dark);
}

.patient-feature-card p {
    margin: 0;
    color: var(--thlin-muted);
}

/* Mobile */

@media (max-width: 1000px) {
    .patient-hero-grid,
    .patient-content-grid {
        grid-template-columns: 1fr;
    }

    .patient-side-card {
        position: static;
    }

    .patient-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .patient-hero {
        padding: 3rem 0;
    }

    .patient-hero h1 {
        font-size: 2.65rem;
    }

    .patient-actions {
        flex-direction: column;
    }

    .patient-actions .btn {
        width: 100%;
    }

    .patient-main-card,
    .patient-hero-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
}
/* =========================================================
   Patient Portal Final Professional Polish
========================================================= */

/* Reduce top empty space */
.patient-hero {
    padding: 3.5rem 0 3rem !important;
}

/* Better hero spacing */
.patient-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) 420px !important;
    gap: 4rem !important;
    align-items: center !important;
}

/* Make action links look like real buttons */
.patient-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.patient-actions a,
.patient-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    min-width: 180px;
    padding: 0.9rem 1.35rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    line-height: 1;
}

.patient-actions .btn-primary,
.patient-actions a:first-child {
    background: var(--thlin-blue) !important;
    color: #ffffff !important;
    border: 2px solid var(--thlin-blue) !important;
}

.patient-actions .btn-soft,
.patient-actions a:nth-child(2) {
    background: #edf6ff !important;
    color: var(--thlin-blue-dark) !important;
    border: 2px solid #dbe7f3 !important;
}

.patient-actions .btn-primary:hover,
.patient-actions a:first-child:hover {
    background: var(--thlin-blue-dark) !important;
    border-color: var(--thlin-blue-dark) !important;
}

.patient-actions .btn-soft:hover,
.patient-actions a:nth-child(2):hover {
    background: #ffffff !important;
    color: var(--thlin-blue) !important;
    box-shadow: var(--shadow);
}

/* Make hero card more polished */
.patient-hero-card {
    max-width: 420px;
    margin-left: auto;
    padding: 2.3rem !important;
}

/* Improve content + side card alignment */
.patient-section {
    padding-top: 3.5rem !important;
}

.patient-content-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 2.2rem !important;
}

.patient-side-card {
    opacity: 1 !important;
}

.patient-side-card h2,
.patient-side-card a {
    color: #ffffff !important;
    opacity: 1 !important;
}

.patient-side-card a {
    background: rgba(255, 255, 255, 0.16) !important;
}

.patient-side-card a:hover {
    background: #ffffff !important;
    color: var(--thlin-blue-dark) !important;
}

/* Mobile */
@media (max-width: 1000px) {
    .patient-hero-grid,
    .patient-content-grid {
        grid-template-columns: 1fr !important;
    }

    .patient-hero-card {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 650px) {
    .patient-actions {
        flex-direction: column;
    }

    .patient-actions a,
    .patient-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   Patient Page Final Spacing Polish
========================================================= */

/* Reduce extra empty space in patient hero */
.patient-hero {
    padding: 2.5rem 0 3rem !important;
}

/* Move hero content slightly up and align better */
.patient-hero-grid {
    align-items: center !important;
    min-height: 520px;
}

/* Make title not crop at top */
.patient-hero h1 {
    margin-top: 0 !important;
    padding-top: 0.2rem;
    font-size: clamp(3rem, 5vw, 4.7rem) !important;
    line-height: 1.05 !important;
}

/* Better subtitle spacing */
.patient-lead {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* Buttons more professional */
.patient-actions {
    margin-top: 2.2rem !important;
    gap: 1rem !important;
}

.patient-actions a,
.patient-actions .btn {
    min-height: 56px !important;
    padding: 0 1.7rem !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 24px rgba(18, 74, 132, 0.08);
}

.patient-actions a:first-child {
    background: var(--thlin-blue) !important;
    color: #ffffff !important;
}

.patient-actions a:nth-child(2) {
    background: #f4f8fd !important;
    border: 2px solid #dbe7f3 !important;
    color: var(--thlin-blue-dark) !important;
}

/* Right card better balance */
.patient-hero-card {
    max-width: 430px !important;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Reduce large gap before content section */
.patient-section {
    padding-top: 2.5rem !important;
}

/* Make main content card start cleaner */
.patient-main-card {
    padding-top: 2.5rem !important;
}

/* Mobile */
@media (max-width: 1000px) {
    .patient-hero-grid {
        min-height: auto;
    }

    .patient-hero-card {
        max-width: 100% !important;
        min-height: auto;
    }
}

/* =========================================================
   Contact Page Professional Design
========================================================= */

.contact-page {
    background:
        radial-gradient(circle at 90% 10%, rgba(24, 95, 165, 0.1), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
}

.contact-hero {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.contact-hero h1 {
    margin: 0 0 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.contact-hero p {
    max-width: 900px;
    margin: 0;
    color: var(--thlin-muted);
    font-size: 1.18rem;
    line-height: 1.75;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
    align-items: start;
}

.contact-form-card,
.contact-info-panel {
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.1);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    padding: 2.5rem;
}

.contact-form-card h2 {
    margin: 0 0 0.6rem;
    color: var(--thlin-blue-dark);
    font-size: 2rem;
    line-height: 1.2;
}

.contact-form-card > p {
    margin: 0 0 2rem;
    color: var(--thlin-muted);
    font-size: 1.05rem;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label {
    color: var(--thlin-blue-dark);
    font-weight: 800;
}

.form-group label span {
    color: var(--thlin-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f7f9fc;
    padding: 0.9rem 1rem;
    color: var(--thlin-text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--thlin-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    color: #b42318;
    font-weight: 700;
}

.contact-submit {
    width: fit-content;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--thlin-blue);
    color: #ffffff;
    padding: 0 1.8rem;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(24, 95, 165, 0.22);
    transition: 0.2s ease;
}

.contact-submit:hover {
    background: var(--thlin-blue-dark);
    transform: translateY(-2px);
}

.contact-info-panel {
    position: sticky;
    top: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(135deg, var(--thlin-blue-dark), var(--thlin-blue));
    color: #ffffff;
    padding: 2rem;
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.contact-info-panel h2 {
    margin: 0 0 1.4rem;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.2;
}

.contact-info-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-info-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-info-item p,
.contact-info-item a {
    margin: 0;
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 1.4rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.contact-note strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

@media (max-width: 950px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        position: static;
    }
}

@media (max-width: 650px) {
    .contact-page {
        padding: 3rem 0;
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .contact-form-card,
    .contact-info-panel {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .contact-submit {
        width: 100%;
    }
}

/* =========================================================
   Contact Page Professional Design
========================================================= */

.contact-page {
    background:
        radial-gradient(circle at 90% 10%, rgba(24, 95, 165, 0.1), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
}

.contact-hero {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.contact-hero h1 {
    margin: 0 0 1rem;
    color: var(--thlin-blue-dark);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.contact-hero p {
    max-width: 900px;
    margin: 0;
    color: var(--thlin-muted);
    font-size: 1.18rem;
    line-height: 1.75;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
    align-items: start;
}

.contact-form-card,
.contact-info-panel {
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.1);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    padding: 2.5rem;
}

.contact-form-card h2 {
    margin: 0 0 0.6rem;
    color: var(--thlin-blue-dark);
    font-size: 2rem;
    line-height: 1.2;
}

.contact-form-card > p {
    margin: 0 0 2rem;
    color: var(--thlin-muted);
    font-size: 1.05rem;
}

.contact-success {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(59, 109, 17, 0.12);
    color: var(--thlin-green);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label {
    color: var(--thlin-blue-dark);
    font-weight: 800;
}

.form-group label span {
    color: var(--thlin-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f7f9fc;
    padding: 0.9rem 1rem;
    color: var(--thlin-text);
    font: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--thlin-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    color: #b42318;
    font-weight: 700;
}

.contact-submit {
    width: fit-content;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--thlin-blue);
    color: #ffffff;
    padding: 0 1.8rem;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(24, 95, 165, 0.22);
}

.contact-submit:hover {
    background: var(--thlin-blue-dark);
    transform: translateY(-2px);
}

.contact-info-panel {
    position: sticky;
    top: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(135deg, var(--thlin-blue-dark), var(--thlin-blue));
    color: #ffffff;
    padding: 2rem;
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--thlin-green), var(--thlin-blue));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.contact-info-panel h2 {
    margin: 0 0 1.4rem;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.2;
}

.contact-info-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-info-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-info-item p,
.contact-info-item a {
    margin: 0;
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 1.4rem;
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.contact-note strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

@media (max-width: 950px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        position: static;
    }
}

@media (max-width: 650px) {
    .contact-page {
        padding: 3rem 0;
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .contact-form-card,
    .contact-info-panel {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .contact-submit {
        width: 100%;
    }
}

/* =========================================================
   Contact Page Final Readability Fix
========================================================= */

.contact-info-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, #124a84, #185FA5) !important;
    color: #ffffff !important;
}

.contact-info-panel h2,
.contact-info-panel h3,
.contact-info-panel strong,
.contact-info-panel p,
.contact-info-panel span,
.contact-info-panel a {
    color: #ffffff !important;
    opacity: 1 !important;
}

.contact-info-panel h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.contact-info-item span {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info-item p,
.contact-info-item a {
    color: #ffffff !important;
    font-weight: 800;
}

.contact-note {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-note strong {
    color: #ffffff !important;
    font-weight: 900;
}

.contact-note p {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Make contact form card a bit cleaner */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e4edf7;
}

.form-group input,
.form-group textarea {
    background: #f7f9fc;
    border: 1px solid #dbe7f3;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: var(--thlin-blue);
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.12);
}

/* Better submit button */
.contact-submit {
    background: var(--thlin-blue) !important;
    color: #ffffff !important;
    font-weight: 900;
}

.contact-submit:hover {
    background: var(--thlin-blue-dark) !important;
}

/* =========================================================
   Contact Form Input Field Visibility Fix
========================================================= */

.contact-form-card {
    background: #ffffff !important;
}

.contact-form {
    gap: 1.4rem !important;
}

.form-group label {
    font-size: 1rem;
    color: var(--thlin-blue-dark) !important;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    background: #ffffff !important;
    border: 2px solid #b9cbe0 !important;
    border-radius: 14px !important;
    color: #1f2937 !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.1rem !important;
    box-shadow: inset 0 1px 2px rgba(18, 74, 132, 0.05);
}

.form-group input {
    min-height: 58px;
}

.form-group textarea {
    min-height: 190px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7a8797;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--thlin-blue) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff !important;
    border-color: var(--thlin-blue) !important;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.15) !important;
    outline: none !important;
}

/* Optional: make required star clearer */
.form-group label span {
    color: var(--thlin-orange) !important;
    font-weight: 900;
}
/* =========================================================
   Navbar usability fix
   Easier dropdown selection + cleaner size
========================================================= */

.header-inner {
    min-height: 72px !important;
    padding: 0 1.4rem !important;
    border-radius: 14px !important;
}

.logo-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.8rem !important;
}

.logo-text {
    font-size: 1rem !important;
}

.site-nav > ul {
    gap: 1.4rem !important;
}

.site-nav > ul > li {
    padding: 1.6rem 0;
}

.site-nav a {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
}

/* Make dropdown easier to hover/select */
.site-nav > ul > li > ul {
    top: 90% !important;
    margin-top: 0 !important;
    padding: 0.8rem !important;
    min-width: 260px !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 60px rgba(18, 74, 132, 0.18) !important;
}

.site-nav > ul > li > ul a {
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    color: var(--thlin-blue-dark) !important;
    white-space: nowrap;
}

.site-nav > ul > li > ul a:hover {
    background: #edf6ff !important;
    color: var(--thlin-blue) !important;
}

/* Keep dropdown open while moving mouse */
.site-nav > ul > li:hover > ul,
.site-nav > ul > li:focus-within > ul {
    display: block !important;
}

/* Contact button smaller and cleaner */
.nav-cta {
    min-height: 52px !important;
    padding: 0 1.35rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
}

/* Mobile/tablet — replaced by responsive section below */

/* Admin CMS */
.admin-body {
    background: #f4f7fb;
    color: #1f2937;
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid #dbe4ef;
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: 0.75rem;
}

.admin-nav a,
.admin-nav button {
    color: var(--thlin-blue-dark);
    text-decoration: none;
    font-weight: 700;
}

.admin-main {
    padding: 2rem 0 3rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-card {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 1.25rem;
}

.admin-card--spaced {
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.admin-help {
    color: #5b6472;
    margin: 0 0 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e5edf5;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6472;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-inline-form {
    display: inline;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.admin-link-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    padding: 0.75rem;
}

.admin-link-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-link-copy code {
    font-size: 0.82rem;
}

.admin-copy-input {
    width: 100%;
    max-width: 280px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
}

.input-prefix-group {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #eef3f8;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.input-prefix-group input {
    border-radius: 0 10px 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-gray {
    background: #e5e7eb;
    color: #374151;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: #b42318;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    color: #374151;
    border: 2px solid #cbd5e1;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #042C53;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-warning code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

/* CMS page form */
.cms-form-page {
    max-width: 1100px;
    margin: 0 auto;
}

.cms-form-intro {
    margin-bottom: 1.5rem;
}

.cms-step-card {
    background: #ffffff;
    border: 1px solid rgba(211, 209, 199, 0.75);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 14px 40px rgba(4, 44, 83, 0.06);
}

.cms-step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.cms-step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #185FA5;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.cms-step-header h2 {
    margin: 0;
    color: #042C53;
    font-size: 1.25rem;
}

.cms-step-header p {
    margin: 4px 0 0;
    color: #5F5E5A;
    font-size: 0.95rem;
}

.cms-form .required {
    color: #b42318;
}

.cms-form .optional-label {
    color: #5F5E5A;
    font-size: 0.82rem;
    font-weight: 500;
    margin-left: 0.35rem;
}

.url-preview-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #E6F1FB;
    border: 1px solid rgba(24, 95, 165, 0.2);
    color: #042C53;
}

.url-preview-box span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #185FA5;
    margin-bottom: 4px;
}

.url-preview-box strong {
    font-size: 1rem;
    word-break: break-all;
}

.cms-link-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
}

.cms-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-link-card-title {
    font-weight: 700;
    color: #042C53;
}

.cms-no-links {
    color: #5F5E5A;
    margin: 1rem 0 0;
}

.cms-inline-action {
    margin: 0.5rem 0 0;
}

.cms-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #D3D1C7;
    padding: 18px 0;
    margin-top: 8px;
}

.cms-actions-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cms-actions-help {
    margin: 0;
    color: #5F5E5A;
    font-size: 0.92rem;
    max-width: 420px;
}

.cms-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@media (max-width: 768px) {
    .cms-link-grid {
        grid-template-columns: 1fr;
    }

    .cms-actions-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cms-actions-buttons {
        flex-direction: column;
    }

    .cms-actions-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

.cms-editor-note {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #E6F1FB;
    border: 1px solid rgba(24, 95, 165, 0.2);
    color: #042C53;
}

.form-error {
    color: #b42318;
}

.admin-form select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

/* Admin login */
.admin-login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--thlin-bg);
    color: var(--thlin-text);
}

.admin-login-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-login-brand {
    display: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(24, 95, 165, 0.35), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(59, 109, 17, 0.2), transparent 40%),
        linear-gradient(145deg, var(--thlin-navy) 0%, #0a3d6e 55%, var(--thlin-blue) 100%);
    color: #fff;
    padding: 3rem 2.5rem;
}

.admin-login-brand-inner {
    max-width: 26rem;
    margin: auto 0;
}

.admin-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 1.75rem;
}

.admin-login-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.admin-login-logo-text {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.admin-login-tagline {
    margin: 0 0 2rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
}

.admin-login-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.admin-login-features li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.admin-login-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--thlin-orange);
    box-shadow: 0 0 0 3px rgba(239, 159, 39, 0.25);
}

.admin-login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.admin-login-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}

.admin-login-card-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--thlin-navy);
}

.admin-login-card-header p {
    margin: 0 0 1.5rem;
    color: var(--thlin-muted);
    font-size: 0.98rem;
}

.admin-login-alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.admin-login-alert p {
    margin: 0;
}

.admin-login-alert p + p {
    margin-top: 0.35rem;
}

.admin-login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.admin-login-form {
    display: grid;
    gap: 1.15rem;
}

.admin-login-field {
    display: grid;
    gap: 0.4rem;
}

.admin-login-field label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--thlin-blue-dark);
}

.admin-login-field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border: 2px solid #c9d8ea;
    border-radius: 12px;
    font: inherit;
    color: var(--thlin-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-field input::placeholder {
    color: #8a96a3;
}

.admin-login-field input:hover {
    border-color: var(--thlin-blue);
}

.admin-login-field input:focus {
    outline: none;
    border-color: var(--thlin-blue);
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14);
}

.admin-login-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--thlin-blue-dark);
    cursor: pointer;
    user-select: none;
}

.admin-login-remember input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--thlin-blue);
    cursor: pointer;
}

.admin-login-submit {
    width: 100%;
    min-height: 3.1rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--thlin-blue);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.admin-login-submit:hover {
    background: var(--thlin-blue-dark);
}

.admin-login-submit:focus-visible {
    outline: 3px solid rgba(24, 95, 165, 0.35);
    outline-offset: 2px;
}

.admin-login-footer {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.92rem;
}

.admin-login-footer a {
    color: var(--thlin-blue);
    font-weight: 700;
    text-decoration: none;
}

.admin-login-footer a:hover {
    color: var(--thlin-blue-dark);
    text-decoration: underline;
}

@media (min-width: 900px) {
    .admin-login-shell {
        grid-template-columns: minmax(18rem, 42%) 1fr;
    }


    .related-services-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-login-brand {
        display: flex;
        align-items: center;
    }

    .admin-login-main {
        padding: 3rem;
    }

    .admin-login-card {
        padding: 2.35rem 2rem;
    }
}

@media (max-width: 899px) {
    .admin-login-mobile-logo {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        text-decoration: none;
        color: var(--thlin-navy);
        margin-bottom: 1.25rem;
    }

    .admin-login-mobile-logo .admin-login-logo-mark {
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 10px;
        background: var(--thlin-light-blue);
        color: var(--thlin-blue-dark);
        border: 0;
        font-size: 0.82rem;
    }

    .admin-login-mobile-logo .admin-login-logo-text {
        font-size: 1.2rem;
        color: var(--thlin-navy);
    }
}

@media (min-width: 900px) {
    .admin-login-mobile-logo {
        display: none;
    }
}

.nav-cms-divider span {
    display: block;
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6472;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #5b6472;
}

.breadcrumb a {
    color: var(--thlin-blue);
}

.cms-content h2,
.cms-content h3,
.cms-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.cms-content .container,
.cms-content .row,
.cms-content [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    float: none;
}

.cms-content .content-section {
    margin-bottom: 1.5rem;
}

.cms-content .content-section:last-child {
    margin-bottom: 0;
}

.cms-content p,
.cms-content ul,
.cms-content ol,
.cms-content table {
    margin-bottom: 1rem;
}

.cms-content ul,
.cms-content ol {
    padding-left: 1.5rem;
}

.cms-content a {
    color: var(--thlin-blue);
    text-decoration: underline;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
}

.cms-content th,
.cms-content td {
    border: 1px solid #dbe4ef;
    padding: 0.65rem 0.75rem;
}

/* =========================================================
   Responsive Design — Phone, Tablet, Laptop
   Breakpoints: phone ≤767px | tablet 768–1024px | laptop ≥1025px
========================================================= */

body.nav-open {
    overflow: hidden;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--thlin-border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--thlin-blue-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Page header, search, listings */
.page-header {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.page-header h1 {
    margin: 0;
    color: var(--thlin-blue-dark);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.page-content {
    padding: 2rem 0 4rem;
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    background: var(--thlin-bg);
    border: 1px solid var(--thlin-border);
    border-radius: 14px;
    padding: 0.5rem;
}

.search-bar input {
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.85rem 0.9rem;
    font: inherit;
}

.search-bar button {
    min-width: 88px;
    border: 0;
    border-radius: 10px;
    background: var(--thlin-blue);
    color: #ffffff;
    padding: 0.85rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.search-results {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

.search-results li {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--thlin-border);
    border-radius: 16px;
}

.search-results .result-type {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 95, 165, 0.1);
    color: var(--thlin-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.search-results h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.news-list,
.board-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.job-list,
.portfolio-list {
    display: grid;
    gap: 1.25rem;
}

.board-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-item,
.job-card,
.board-card,
.portfolio-list-item {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    background: #f8fafc;
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06);
}

.news-item::before,
.job-card::before,
.board-card::before,
.portfolio-list-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

.news-item h2,
.job-card h2,
.board-card h2,
.portfolio-list-item h3 {
    margin: 0 0 0.6rem;
    color: #124a84;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.news-item h2 a,
.job-card h2 a,
.board-card h2 a,
.portfolio-list-item h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item h2 a:hover,
.job-card h2 a:hover,
.board-card h2 a:hover,
.portfolio-list-item h3 a:hover {
    color: #185FA5;
}

.board-card {
    display: grid;
    gap: 0.35rem;
}

.board-role {
    color: var(--thlin-green);
    font-weight: 800;
    margin: 0.25rem 0 0.75rem;
}

.news-item,
.job-card {
    display: grid;
    gap: 0.35rem;
}

.news-meta,
.job-meta {
    color: var(--thlin-muted);
    font-size: 0.92rem;
    margin: 0.35rem 0 0.75rem;
}

.portfolio-list-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.portfolio-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 18px;
    border: 1px dashed #c9daec;
    background: #f1f5f9;
    color: #5f6f82;
    font-weight: 800;
}

.job-card + .job-card {
    margin-top: 1.25rem;
}

@media (max-width: 720px) {
    .inner-container {
        width: min(100% - 32px, 1180px) !important;
    }

    .inner-hero {
        padding: 4rem 0 4.5rem !important;
    }

    .inner-hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.4rem) !important;
    }

    .inner-hero-actions {
        width: 100% !important;
    }

    .inner-hero-actions .btn {
        width: 100% !important;
    }

    .portfolio-list-item {
        grid-template-columns: 1fr;
    }
}

.prose {
    max-width: 72ch;
}

.prose img,
.cms-content img {
    max-width: 100%;
    height: auto;
}

.cms-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Tablet & below (≤1024px) ---------- */
@media (max-width: 1024px) {
    .container {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-inner {
        position: relative;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem !important;
    }

    .nav-cta {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100dvh - 7rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        border: 1px solid var(--thlin-border);
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(18, 74, 132, 0.18);
        padding: 0.75rem;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .site-nav > ul > li {
        padding: 0;
        border-bottom: 1px solid var(--thlin-border);
    }

    .site-nav > ul > li:last-child {
        border-bottom: 0;
    }

    .site-nav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 0.75rem;
        min-height: 48px;
    }

    .site-nav > ul > li.has-submenu > a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--thlin-blue);
        border-bottom: 2px solid var(--thlin-blue);
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-left: 0.75rem;
    }

    .site-nav > ul > li.submenu-open > a::after {
        transform: rotate(-135deg);
    }

    .site-nav > ul > li > ul {
        display: none;
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 0.5rem;
        box-shadow: none;
        border-radius: 0;
        background: var(--thlin-bg);
    }

    .site-nav > ul > li.submenu-open > ul {
        display: block;
    }

    .site-nav > ul > li:hover > ul {
        display: none;
    }

    .site-nav > ul > li.submenu-open:hover > ul {
        display: block;
    }

    .site-nav > ul > li > ul a {
        white-space: normal;
        padding: 0.75rem 1rem 0.75rem 1.5rem !important;
    }

    .site-header.is-home-header .nav-wrapper {
        top: 1rem;
    }

    .home-hero {
        min-height: auto;
        padding: 7.5rem 0 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-card {
        max-width: 100%;
        margin-left: 0;
    }

    .split-grid,
    .cta-inner,
    .patient-hero-grid,
    .patient-content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .patient-side-card,
    .contact-info-panel {
        position: static;
    }

    .quick-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .patient-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .home-section {
        padding: 3.5rem 0;
    }

    .site-header.is-inner-header ~ main#main-content > .container {
        padding: 2.5rem 2rem;
    }
}

/* ---------- Phone (≤767px) ---------- */
@media (max-width: 767px) {
    .container {
        width: min(1120px, calc(100% - 1.25rem));
    }

    .hero-video-bg video {
        display: none;
    }

    .site-header.is-home-header {
        background: var(--thlin-blue);
    }

    .site-header.is-home-header .nav-wrapper {
        top: 0.75rem;
    }

    .home-hero {
        padding: 6.5rem 0 3rem;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .quick-grid,
    .service-grid,
    .patient-feature-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding: 2.75rem 0;
    }

    .section-heading {
        margin-bottom: 1.5rem;
    }

    .section-heading h2,
    .split-grid h2,
    .home-cta h2 {
        font-size: clamp(1.65rem, 6vw, 2.25rem);
    }

    .cta-inner {
        gap: 1.5rem;
    }

    .cta-actions,
    .hero-actions,
    .patient-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn,
    .patient-actions .btn,
    .patient-actions a {
        width: 100%;
    }

    .btn,
    .nav-cta {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-footer {
        padding-top: 2.5rem;
    }

    .site-header.is-inner-header ~ main#main-content {
        padding: 1.5rem 0 2.5rem;
    }

    .site-header.is-inner-header ~ main#main-content > .container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .site-header.is-inner-header ~ main#main-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .site-header.is-inner-header ~ main#main-content h1 + p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .page-header {
        padding: 1.75rem 0 1rem;
    }

    .page-content {
        padding: 1.5rem 0 2.5rem;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    .search-bar button {
        width: 100%;
    }

    .contact-page,
    .patient-hero {
        padding: 2rem 0 !important;
    }

    .contact-hero h1,
    .patient-hero h1 {
        font-size: clamp(2rem, 8vw, 2.65rem) !important;
    }

    .contact-form-card,
    .contact-info-panel,
    .patient-main-card,
    .patient-hero-card {
        padding: 1.25rem !important;
        border-radius: 18px !important;
    }

    .contact-submit {
        width: 100%;
    }

    .patient-hero-grid {
        min-height: auto !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card img,
    .portfolio-placeholder {
        height: 180px;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-copy-input {
        max-width: 100%;
    }

    .logo-text {
        font-size: 0.92rem !important;
    }
}

/* ---------- Laptop (≥1025px) ---------- */
@media (min-width: 1025px) {
    .hero-grid {
        grid-template-columns: 1fr 420px;
        gap: 3rem;
    }

    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .split-grid {
        grid-template-columns: 1fr 0.85fr;
    }

    .cta-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-grid {
        grid-template-columns: 1.3fr repeat(3, 1fr);
    }

    .site-nav > ul > li > ul {
        min-width: 240px;
    }
}

/* Large laptop / desktop (≥1280px) */
@media (min-width: 1280px) {
    .container {
        width: min(1200px, calc(100% - 3rem));
    }

    .hero-grid {
        grid-template-columns: 1fr 460px;
        gap: 4rem;
    }

    .home-hero {
        min-height: 720px;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .site-header .container,
    .site-footer .container,
    main .container {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
}

/* =========================================================
   Custom CMS pages — all routes via CustomPageController
   Scoped to body.is-custom-page so built-in pages are unaffected
========================================================= */

.is-custom-page .inner-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.is-custom-page .inner-hero .inner-container {
    position: relative;
    z-index: 2;
}

.is-custom-page .custom-page-section {
    padding: 76px 0;
    background: #F8FAFC;
}

.is-custom-page .custom-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.is-custom-page .custom-page-main {
    min-width: 0;
}

.is-custom-page .custom-page-section .content-shell {
    background: #ffffff;
    border: 1px solid rgba(211, 209, 199, 0.75);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 54px);
    box-shadow: 0 24px 70px rgba(4, 44, 83, 0.10);
}

.is-custom-page .custom-page-section .cms-content {
    color: #2C2C2A;
    font-size: 1.06rem;
    line-height: 1.85;
}

.is-custom-page .custom-page-section .cms-content > *:first-child {
    margin-top: 0;
}

.is-custom-page .custom-page-section .cms-content > *:last-child {
    margin-bottom: 0;
}

.is-custom-page .custom-page-section .cms-content h2,
.is-custom-page .custom-page-section .cms-content h3,
.is-custom-page .custom-page-section .cms-content h4 {
    color: #042C53;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.is-custom-page .custom-page-section .cms-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.is-custom-page .custom-page-section .cms-content h2:first-child {
    margin-top: 0;
}

.is-custom-page .custom-page-section .cms-content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.is-custom-page .custom-page-section .cms-content p {
    margin-bottom: 1.15rem;
}

.is-custom-page .custom-page-section .cms-content a {
    color: #185FA5;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.is-custom-page .custom-page-section .cms-content ul,
.is-custom-page .custom-page-section .cms-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.4rem;
}

.is-custom-page .custom-page-section .cms-content li {
    margin-bottom: 0.5rem;
}

.is-custom-page .custom-page-section .cms-content blockquote {
    margin: 2rem 0;
    padding: 24px 28px;
    border-left: 5px solid #3B6D11;
    background: #EAF3DE;
    border-radius: 18px;
    color: #042C53;
    font-weight: 600;
}

.is-custom-page .custom-page-section .cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(4, 44, 83, 0.12);
}

.is-custom-page .custom-page-section .cms-empty-state {
    border-style: dashed;
    min-height: 220px;
    background:
        radial-gradient(circle at 100% 0%, rgba(230, 241, 251, 0.7), transparent 30%),
        #ffffff;
}

.is-custom-page .custom-page-section .cms-empty-state h2 {
    margin-top: 0;
    color: #042C53;
}

.is-custom-page .custom-page-section .cms-empty-state p {
    color: #5F5E5A;
    max-width: 52ch;
}

.is-custom-page .custom-page-sidebar {
    position: sticky;
    top: 110px;
}

.is-custom-page .sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(211, 209, 199, 0.75);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(4, 44, 83, 0.08);
}

.is-custom-page .sidebar-card h2 {
    margin: 0 0 8px;
    color: #042C53;
    font-size: 1.25rem;
}

.is-custom-page .sidebar-card p {
    margin: 0 0 18px;
    color: #5F5E5A;
    line-height: 1.6;
}

.is-custom-page .sidebar-links {
    display: grid;
    gap: 10px;
}

.is-custom-page .sidebar-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #042C53;
    background: #F8FAFC;
    border: 1px solid #E6F1FB;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.is-custom-page .sidebar-links a:hover,
.is-custom-page .sidebar-links a.active {
    background: #185FA5;
    color: #ffffff;
    border-color: #185FA5;
}

.is-custom-page .inner-cta-section {
    padding: 0 0 80px;
    background: #F8FAFC;
}

.is-custom-page .inner-cta-section .inner-cta {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    padding: 46px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.20), transparent 30%),
        linear-gradient(135deg, #042C53, #185FA5);
    box-shadow: 0 26px 80px rgba(4, 44, 83, 0.18);
}

.is-custom-page .inner-cta-section .inner-cta,
.is-custom-page .inner-cta-section .inner-cta h1,
.is-custom-page .inner-cta-section .inner-cta h2,
.is-custom-page .inner-cta-section .inner-cta h3,
.is-custom-page .inner-cta-section .inner-cta p,
.is-custom-page .inner-cta-section .inner-cta span {
    color: #ffffff;
}

.is-custom-page .inner-cta-section .inner-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

.is-custom-page .inner-cta-section .inner-cta p {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.is-custom-page .inner-cta-section .inner-cta .section-eyebrow {
    color: #ffffff;
}

.is-custom-page .inner-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.is-custom-page .inner-cta-section .btn.btn-light {
    background: #ffffff;
    color: #042C53;
    border-color: #ffffff;
    font-weight: 800;
}

.is-custom-page .inner-cta-section .btn.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    font-weight: 800;
}

.is-custom-page .inner-cta-section .btn.btn-outline-light:hover {
    background: #ffffff;
    color: #042C53;
}

@media (max-width: 980px) {
    .is-custom-page .custom-page-layout {
        grid-template-columns: 1fr;
    }

    .is-custom-page .custom-page-sidebar {
        position: static;
    }

    .is-custom-page .inner-cta-section .inner-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .is-custom-page .inner-container {
        width: min(100% - 32px, 1180px);
    }

    .is-custom-page .inner-hero {
        padding: 64px 0 48px;
    }

    .is-custom-page .custom-page-section .content-shell {
        border-radius: 22px;
        padding: 24px;
    }

    .is-custom-page .inner-cta-section .inner-cta {
        padding: 30px;
        border-radius: 24px;
    }

    .is-custom-page .inner-cta-actions {
        width: 100%;
    }

    .is-custom-page .inner-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Admin CMS edit helpers (logged-in editors) */
.cms-admin-edit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: min(100% - 32px, 1180px);
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #E6F1FB;
    border: 1px solid rgba(24, 95, 165, 0.25);
    color: #042C53;
    font-weight: 700;
}

.inline-edit-bar__btn--cms {
    background: #185FA5;
    color: #fff;
    font-weight: 800;
}

/* ─── Inline editing (public site) ─── */
.inline-edit-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    background: #ffffff;
    border-bottom: 1px solid #DDE7F1;
    box-shadow: 0 8px 24px rgba(4, 44, 83, 0.08);
}

.inline-edit-bar__inner {
    max-width: min(100% - 24px, 1280px);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inline-edit-bar__message {
    color: #042C53;
    font-weight: 700;
    font-size: 0.92rem;
}

.inline-edit-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-edit-bar__btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    font-family: inherit;
}

.inline-edit-bar__btn--primary {
    background: #185FA5;
    color: #fff;
}

.inline-edit-bar__btn--secondary {
    background: #E6F1FB;
    color: #042C53;
}

.inline-edit-bar__btn--link {
    background: transparent;
    color: #185FA5;
}

.inline-edit-bar__logout {
    display: inline;
    margin: 0;
}

body.has-inline-edit-bar .site-wrapper {
    padding-top: 58px;
}

.service-detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.service-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.92), rgba(24, 95, 165, 0.72)),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.08), transparent 25%);
    z-index: 0;
}

.service-detail-hero .container {
    position: relative;
    z-index: 1;
}

.service-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 430px !important;
    gap: 4rem !important;
    align-items: center !important;
}

.service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 800;
}

.service-breadcrumb a,
.service-breadcrumb span {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}

.service-detail-copy .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 900;
}

.service-detail-copy .section-kicker::before {
    content: "";
    width: 44px;
    height: 3px;
    background: #ffffff;
    border-radius: 999px;
}

.service-detail-copy h1 {
    margin: 1.2rem 0 1.3rem !important;
    max-width: 850px;
    font-size: clamp(3.2rem, 6vw, 5.6rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.service-detail-excerpt,
.service-detail-copy p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.18rem !important;
    line-height: 1.8 !important;
    font-weight: 500;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    min-width: 170px;
    padding: 0 1.7rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
}

.service-btn-light {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.service-btn-light:hover {
    background: #BA7517 !important;
    border-color: #BA7517 !important;
    color: #ffffff !important;
}

.service-btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
}

.service-btn-outline:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #ffffff !important;
}

.service-hero-card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 30px !important;
    padding: 2.6rem !important;
    box-shadow: 0 30px 80px rgba(18, 74, 132, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.service-hero-card h2 {
    position: relative;
    margin: 0 0 1.6rem !important;
    padding-left: 1.1rem;
    color: #124a84 !important;
    font-size: 2rem !important;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.service-hero-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 4px;
    height: 32px;
    border-radius: 999px;
    background: #185FA5;
}

.service-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.2rem;
}

.service-highlight-list li {
    position: relative;
    padding-left: 2.3rem;
    color: #1f2937 !important;
    line-height: 1.65;
    font-weight: 800;
}

.service-highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 109, 17, 0.12);
    color: #3B6D11;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .service-detail-hero {
        padding: 4.5rem 0 5rem !important;
    }

    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .service-detail-copy h1 {
        font-size: clamp(2.6rem, 12vw, 4rem) !important;
    }

    .service-hero-card {
        padding: 2rem !important;
    }
}

.service-detail-hero {
    position: relative !important;
    overflow: hidden !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.88) 0%, rgba(18, 74, 132, 0.74) 45%, rgba(24, 95, 165, 0.36) 100%),
        url("/images/health-service-hero.jpg") right center / cover no-repeat !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.service-detail-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(90deg, rgba(18, 74, 132, 0.58), rgba(24, 95, 165, 0.16)) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.service-detail-hero .container,
.service-detail-grid {
    position: relative !important;
    z-index: 2 !important;
}

.service-detail-copy h1,
.service-detail-copy p,
.service-detail-copy .section-kicker,
.service-breadcrumb,
.service-breadcrumb a,
.service-breadcrumb span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.service-hero-card {
    position: relative !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #1f2937 !important;
    border-radius: 30px !important;
    padding: 2.6rem !important;
    box-shadow: 0 30px 80px rgba(18, 74, 132, 0.32) !important;
}

.service-hero-card h2 {
    color: #124a84 !important;
}

.service-highlight-list li {
    color: #1f2937 !important;
}

@media (max-width: 900px) {
    .service-detail-hero {
        background:
            linear-gradient(180deg, rgba(18, 74, 132, 0.88), rgba(24, 95, 165, 0.78)),
            url("/images/health-service-hero.jpg") center / cover no-repeat !important;
        padding: 4.5rem 0 5rem !important;
    }
}

.service-image-card,
.service-hero-image,
.service-hero-image img,
.service-hero-card-content {
    all: unset;
}

.service-detail-hero {
    min-height: 760px !important;
    display: flex !important;
    align-items: center !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.92) 0%, rgba(18, 74, 132, 0.78) 48%, rgba(24, 95, 165, 0.38) 100%),
        url("/images/health-service-hero.jpg") right center / cover no-repeat !important;
}

.service-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) 430px !important;
    gap: 4.5rem !important;
    align-items: center !important;
}

.service-detail-copy h1 {
    max-width: 900px !important;
    font-size: clamp(3.4rem, 6.4vw, 6.4rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.065em !important;
    color: #ffffff !important;
}

.service-detail-excerpt {
    max-width: 760px !important;
    font-size: 1.25rem !important;
    line-height: 1.75 !important;
    color: rgba(255, 255, 255, 0.94) !important;
}

.service-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.service-hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.service-hero-card {
    padding: 2.4rem !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
}

.service-hero-card h2 {
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #124a84 !important;
}

.service-highlight-list {
    gap: 1.15rem !important;
}

.service-highlight-list li {
    display: grid !important;
    gap: 0.28rem !important;
    padding-left: 2.4rem !important;
}

.service-highlight-list li strong {
    color: #1f2937 !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
}

.service-highlight-list li span {
    color: #5f6f82 !important;
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    font-weight: 600 !important;
}

.service-btn-light {
    background: #ffffff !important;
    color: #124a84 !important;
}

.service-btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

@media (max-width: 900px) {
    .service-detail-hero {
        min-height: auto !important;
        padding: 4.5rem 0 5rem !important;
    }

    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .service-detail-copy h1 {
        font-size: clamp(2.7rem, 12vw, 4.4rem) !important;
    }
}

.inline-edit-enabled [data-inline-edit="true"],
.inline-edit-enabled [data-editable="true"] {
    outline: 2px dashed #EF9F27 !important;
    outline-offset: 5px;
    cursor: text;
    border-radius: 6px;
    box-shadow: 0 0 0 2px rgba(239, 159, 39, 0.55);
    transition: background 0.2s ease, outline-color 0.2s ease;
}

.inline-edit-enabled [data-inline-edit="true"]:hover,
.inline-edit-enabled [data-editable="true"]:hover {
    background: rgba(239, 159, 39, 0.14);
}

.inline-edit-enabled a[data-inline-edit="true"],
.inline-edit-enabled a[data-editable="true"] {
    pointer-events: auto;
}

.inline-edit-enabled .home-hero,
.inline-edit-enabled .inner-hero {
    overflow: visible;
}

.inner-hero {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    color: #ffffff !important;
    padding: 5rem 0 5.5rem !important;
}

.inner-container {
    position: relative !important;
    z-index: 1 !important;
    width: min(1180px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
}

.inner-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

.inner-breadcrumb a,
.inner-breadcrumb span {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.inner-breadcrumb a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.inner-hero-content {
    max-width: 820px !important;
}

.inner-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: #ffffff !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.inner-eyebrow::before {
    content: "";
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.inner-hero h1 {
    margin: 1rem 0 1rem !important;
    color: #ffffff !important;
    font-size: clamp(3rem, 6vw, 5.2rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
}

.inner-hero p {
    max-width: 780px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.18rem !important;
    line-height: 1.75 !important;
}

.inner-hero-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
}

.inner-hero-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 160px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.inner-hero-actions .btn-light {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.inner-hero-actions .btn-outline-light {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

.inner-hero-actions .btn-outline-light:hover {
    background: #ffffff !important;
    color: #124a84 !important;
}

body.thlin-high-contrast {
    background: #ffffff;
    color: #0b1f33;
    --thlin-border: #7ea1c6;
    --thlin-muted: #24384f;
}

body.thlin-high-contrast .site-wrapper,
body.thlin-high-contrast main {
    background: #ffffff;
}

body.thlin-high-contrast .inner-hero,
body.thlin-high-contrast .about-hero,
body.thlin-high-contrast .service-detail-hero,
body.thlin-high-contrast .search-hero,
body.thlin-high-contrast .page-cta-card {
    background: linear-gradient(135deg, #0b1f33 0%, #124a84 100%) !important;
}

body.thlin-high-contrast .service-main-card,
body.thlin-high-contrast .service-pro-card,
body.thlin-high-contrast .content-shell,
body.thlin-high-contrast .content-card,
body.thlin-high-contrast .page-content-card,
body.thlin-high-contrast .search-card,
body.thlin-high-contrast .about-main-card,
body.thlin-high-contrast .about-hero-card,
body.thlin-high-contrast .board-card,
body.thlin-high-contrast .news-item,
body.thlin-high-contrast .job-card,
body.thlin-high-contrast .portfolio-list-item,
body.thlin-high-contrast .related-service-card {
    box-shadow: none !important;
    border-color: #5c82ad !important;
}

body.thlin-high-contrast .search-suggestions a,
body.thlin-high-contrast .service-pro-sidebar a,
body.thlin-high-contrast .quick-links-card a,
body.thlin-high-contrast .related-service-card {
    background: #ffffff !important;
    border-color: #5c82ad !important;
}

.accessibility-toolbar,
.site-accessibility-toolbar {
    position: fixed !important;
    left: 1rem !important;
    bottom: 1rem !important;
    top: auto !important;
    right: auto !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0.55rem 0.7rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.16) !important;
    backdrop-filter: blur(10px);
}

.accessibility-toolbar span,
.accessibility-toolbar strong,
.site-accessibility-toolbar span,
.site-accessibility-toolbar strong {
    color: #124a84 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.accessibility-toolbar button,
.site-accessibility-toolbar button {
    min-width: 44px !important;
    min-height: 36px !important;
    padding: 0 0.8rem !important;
    border-radius: 999px !important;
    border: 1px solid #dbe7f3 !important;
    background: #f8fafc !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.accessibility-toolbar button:hover,
.accessibility-toolbar button:focus-visible,
.site-accessibility-toolbar button:hover,
.site-accessibility-toolbar button:focus-visible {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
}

.back-to-top {
    position: fixed !important;
    right: 1rem !important;
    bottom: 1rem !important;
    z-index: 50 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 1rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    font: inherit !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    box-shadow: 0 18px 40px rgba(18, 74, 132, 0.18) !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease !important;
}

.back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #124a84 !important;
}

body.thlin-high-contrast .accessibility-toolbar,
body.thlin-high-contrast .site-accessibility-toolbar {
    background: #ffffff !important;
    border-color: #5c82ad !important;
}

body.thlin-high-contrast .accessibility-toolbar button,
body.thlin-high-contrast .site-accessibility-toolbar button {
    background: #ffffff !important;
    border-color: #5c82ad !important;
}

body.thlin-high-contrast .back-to-top {
    background: #124a84 !important;
}

.inline-edit-enabled [data-editable-image="true"] {
    outline: 2px dashed #185FA5;
    outline-offset: 4px;
    cursor: pointer;
}

.inline-editing-active {
    outline-color: #185FA5 !important;
    background: rgba(24, 95, 165, 0.08) !important;
}

.inline-edit-toolbar {
    position: absolute;
    z-index: 10060;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #042C53;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.inline-edit-toolbar button {
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.inline-edit-toolbar .save {
    background: #ffffff;
    color: #042C53;
}

.inline-edit-toolbar .cancel {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.service-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-bottom: 1.4rem !important;
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.service-breadcrumb a,
.service-breadcrumb span {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.service-breadcrumb a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.service-breadcrumb span:last-child {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.search-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    color: #ffffff !important;
    padding: 5rem 0 5.5rem !important;
}

.search-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

.search-breadcrumb a,
.search-breadcrumb span {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.search-breadcrumb a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.search-hero .section-kicker {
    color: #ffffff !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.search-hero h1 {
    margin: 1rem 0 1rem !important;
    color: #ffffff !important;
    font-size: clamp(3rem, 6vw, 5.2rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
}

.search-hero p {
    max-width: 780px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.18rem !important;
    line-height: 1.75 !important;
}

.search-page-section {
    background:
        radial-gradient(circle at 15% 15%, rgba(24, 95, 165, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%) !important;
    padding: 4.5rem 0 5.5rem !important;
}

.search-card {
    max-width: 980px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.search-card-header h2 {
    margin: 0 0 0.7rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.search-card-header p {
    margin: 0 0 2rem !important;
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.7 !important;
}

.search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 1rem !important;
    align-items: center !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 20px !important;
    padding: 0.8rem !important;
}

.search-form input {
    width: 100% !important;
    min-height: 58px !important;
    border: 0 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 0 1.2rem !important;
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    outline: none !important;
}

.search-form input:focus {
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14) !important;
}

.search-form button {
    min-height: 58px !important;
    padding: 0 1.8rem !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.search-form button:hover {
    background: #124a84 !important;
}

.search-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem !important;
    align-items: center !important;
    margin-top: 1.4rem !important;
}

.search-suggestions span {
    color: #5f6f82 !important;
    font-weight: 800 !important;
}

.search-suggestions a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0 0.9rem !important;
    border-radius: 999px !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

.search-suggestions a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
}

.search-results {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.search-result-list {
    display: grid !important;
    gap: 1rem !important;
}

.search-result-item {
    padding: 1.4rem !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    background: #f7f9fc !important;
}

.search-result-item h3 {
    margin: 0 0 0.5rem !important;
}

.search-result-item a {
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.search-result-item a:hover {
    color: #185FA5 !important;
    text-decoration: underline !important;
}

.search-result-item p {
    margin: 0 !important;
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.search-empty {
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    padding: 1.5rem !important;
}

@media (max-width: 700px) {
    .search-card {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .search-form {
        grid-template-columns: 1fr !important;
    }

    .search-form button {
        width: 100% !important;
    }
}

.service-feature-content {
    display: grid !important;
    gap: 1.6rem !important;
}

.service-feature-content h2 {
    position: relative !important;
    margin: 2.2rem 0 0.7rem !important;
    padding: 1.4rem 1.4rem 1.4rem 1.8rem !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 18px !important;
    color: #124a84 !important;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
    font-weight: 900 !important;
}

.service-feature-content h2::before {
    display: none !important;
}

.service-feature-content h2:nth-of-type(2) {
    border-left-color: #3B6D11 !important;
}

.service-feature-content h2:nth-of-type(3) {
    border-left-color: #BA7517 !important;
}

.service-feature-content h2:nth-of-type(4) {
    border-left-color: #185FA5 !important;
}

.service-feature-content p {
    margin: 0 0 1.2rem !important;
    padding: 0 0.5rem !important;
    max-width: 850px !important;
    color: #1f2937 !important;
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
}

.service-feature-content blockquote {
    margin: 1.5rem 0 2.2rem !important;
    padding: 1.8rem 2rem !important;
    background: #f7f9fc !important;
    border-left: 5px solid #3B6D11 !important;
    border-radius: 0 20px 20px 0 !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.service-feature-content blockquote p {
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

.service-feature-content blockquote p:last-child {
    margin-bottom: 0 !important;
    color: #124a84 !important;
    font-weight: 800 !important;
}

.service-feature-content hr {
    border: 0 !important;
    height: 1px !important;
    background: #dbe7f3 !important;
    margin: 2rem 0 !important;
}

.service-feature-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.3rem 0 2rem !important;
    display: grid !important;
    gap: 0.8rem !important;
}

.service-feature-content li {
    position: relative !important;
    padding: 1rem 1rem 1rem 3rem !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    color: #1f2937 !important;
    line-height: 1.65 !important;
}

.service-feature-content li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 109, 17, 0.12);
    color: #3B6D11;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
}

.service-main-card {
    padding: 3rem !important;
}

.service-pro-sidebar {
    top: 6rem !important;
}

@media (max-width: 900px) {
    .service-main-card {
        padding: 2rem !important;
    }

    .service-feature-content h2 {
        font-size: 1.7rem !important;
        padding: 1.2rem !important;
    }

    .service-feature-content p {
        padding: 0 !important;
    }
}

.product-detail-section,
.page-light-section,
.section-light {
    background: #f5f7fb !important;
}

.service-detail-content {
    background:
        radial-gradient(circle at 15% 15%, rgba(24, 95, 165, 0.05), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #f8fafc 100%) !important;
}

.service-main-card,
.service-pro-card,
.content-shell,
.content-card,
.page-content-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
}

.service-pro-sidebar,
.quick-links-card,
.page-sidebar-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 10px 24px rgba(18, 74, 132, 0.05) !important;
}

.quick-links-card a,
.service-pro-sidebar a,
.quick-link-item {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
}

.quick-links-card a:hover,
.service-pro-sidebar a:hover,
.quick-link-item:hover {
    background: #eaf1f8 !important;
    border-color: #c9daec !important;
}

.service-feature-content h2 {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
}

.service-feature-content blockquote {
    background: #f1f5f9 !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.service-feature-content p,
.service-main-card p,
.content-card p {
    color: #1f2937 !important;
}

.service-feature-content .muted,
.page-muted,
.small-text {
    color: #5f6f82 !important;
}

.content-updated {
    margin: 1rem 0 0 !important;
    color: #5f6f82 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.related-services-section {
    margin-top: 3rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.related-services-heading {
    max-width: 760px !important;
    margin-bottom: 1.5rem !important;
}

.related-services-heading h2 {
    margin: 0.8rem 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.related-services-heading p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
}

.related-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.related-service-card {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    padding: 1.5rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
    text-decoration: none !important;
}

.related-service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

.related-service-card h3 {
    margin: 0 0 0.55rem !important;
    color: #124a84 !important;
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    font-weight: 900 !important;
}

.related-service-card p {
    margin: 0 !important;
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.related-service-card:hover {
    transform: translateY(-2px);
    border-color: #c9daec !important;
    box-shadow: 0 18px 40px rgba(18, 74, 132, 0.12) !important;
}

.service-rich-content a,
.service-feature-content a,
.service-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 170px !important;
    min-height: 52px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    line-height: 1 !important;
}

.service-rich-content a:hover,
.service-feature-content a:hover,
.service-story-btn:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
}

.service-rich-content a:empty,
.service-feature-content a:empty {
    display: none !important;
}

.service-rich-content a,
.service-feature-content a {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 700px) {
    .service-rich-content a,
    .service-feature-content a,
    .service-story-btn {
        width: 100% !important;
    }
}

.service-feature-cards-section {
    margin-top: 3rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.service-feature-heading {
    max-width: 760px !important;
    margin-bottom: 2rem !important;
}

.service-feature-heading .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.service-feature-heading h2 {
    margin: 0.8rem 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-feature-heading p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
}

.service-feature-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.service-feature-card {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.8rem !important;
    box-shadow: 0 14px 34px rgba(18, 74, 132, 0.07) !important;
    overflow: hidden !important;
}

.service-feature-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: #185FA5 !important;
}

.service-feature-card:nth-child(2)::before {
    background: #3B6D11 !important;
}

.service-feature-card:nth-child(3)::before {
    background: #BA7517 !important;
}

.service-feature-card:nth-child(4)::before {
    background: #124a84 !important;
}

.feature-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1.2rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.1) !important;
    color: #185FA5 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

.service-feature-card h3 {
    margin: 0 0 0.7rem !important;
    color: #124a84 !important;
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
}

.service-feature-card p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.service-feature-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 48px rgba(18, 74, 132, 0.12) !important;
}

.service-rich-content h2,
.service-feature-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem) !important;
}

.service-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 170px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

@media (max-width: 800px) {
    .service-feature-cards {
        grid-template-columns: 1fr !important;
    }

    .service-feature-card {
        padding: 1.5rem !important;
    }
}

.why-matters-section {
    margin-top: 3.5rem !important;
    padding: 3.5rem !important;
    background:
        radial-gradient(circle at 90% 10%, rgba(24, 95, 165, 0.08), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.08) !important;
}

.why-matters-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.why-matters-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.why-matters-header h2 {
    margin: 0.8rem 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.why-matters-header p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
}

.why-matters-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.why-matters-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.6rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.07) !important;
}

.why-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.1) !important;
    color: #185FA5 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

.why-matters-card:nth-child(2) .why-number {
    background: rgba(59, 109, 17, 0.12) !important;
    color: #3B6D11 !important;
}

.why-matters-card:nth-child(3) .why-number {
    background: rgba(186, 117, 23, 0.14) !important;
    color: #BA7517 !important;
}

.why-matters-card h3 {
    margin: 0 0 0.7rem !important;
    color: #124a84 !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
}

.why-matters-card p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
}

.why-matters-note {
    margin-top: 1.4rem !important;
    padding: 1.3rem 1.5rem !important;
    background: #ffffff !important;
    border-left: 5px solid #185FA5 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.why-matters-note p {
    margin: 0 !important;
    color: #124a84 !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
}

@media (max-width: 900px) {
    .why-matters-section {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .why-matters-grid {
        grid-template-columns: 1fr !important;
    }
}

.service-pro-sidebar {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 28px !important;
    padding: 1.8rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.08) !important;
    position: sticky !important;
    top: 2rem !important;
}

.sidebar-label {
    display: inline-block !important;
    margin-bottom: 0.65rem !important;
    color: #BA7517 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

.service-pro-sidebar h2 {
    margin: 0 0 1.4rem !important;
    color: #124a84 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.service-pro-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.8rem !important;
}

.service-pro-sidebar a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.1rem !important;
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 15px !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

.service-pro-sidebar a::after {
    content: "→";
    color: #185FA5;
    font-weight: 900;
}

.service-pro-sidebar a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateX(4px);
}

.service-pro-sidebar a:hover::after {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .service-pro-sidebar {
        position: static !important;
    }
}

.service-detail-content {
    background:
        radial-gradient(circle at 14% 10%, rgba(24, 95, 165, 0.05), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #f8fafc 55%, #ffffff 100%) !important;
    padding: 4.5rem 0 5.5rem !important;
}

.service-content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 2rem !important;
    align-items: start !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.service-pro-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 32px !important;
    padding: 3rem !important;
    box-shadow: 0 20px 60px rgba(18, 74, 132, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-pro-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

.service-rich-content {
    color: #1f2937 !important;
}

.service-rich-content h2 {
    position: relative !important;
    margin: 2rem 0 1rem !important;
    padding: 1.2rem 1.4rem !important;
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 18px !important;
    color: #124a84 !important;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.035em !important;
    font-weight: 900 !important;
}

.service-rich-content h2::before {
    display: none !important;
}

.service-rich-content p {
    max-width: 850px !important;
    color: #1f2937 !important;
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1.3rem !important;
}

.service-rich-content blockquote {
    background: #f1f5f9 !important;
    border-left: 5px solid #3B6D11 !important;
    border-radius: 0 20px 20px 0 !important;
    padding: 1.7rem 2rem !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.service-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 170px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.service-feature-cards-section {
    margin-top: 3rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.service-feature-heading {
    max-width: 760px !important;
    margin-bottom: 2rem !important;
}

.service-feature-heading .section-kicker,
.why-matters-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.service-feature-heading h2,
.why-matters-header h2 {
    margin: 0.8rem 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-feature-heading p,
.why-matters-header p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
}

.service-feature-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.service-feature-card,
.why-matters-card {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.7rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
}

.feature-number,
.why-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1.1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.1) !important;
    color: #185FA5 !important;
    font-weight: 900 !important;
}

.service-feature-card h3,
.why-matters-card h3 {
    margin: 0 0 0.7rem !important;
    color: #124a84 !important;
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

.service-feature-card p,
.why-matters-card p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
}

.why-matters-section {
    margin-top: 3.5rem !important;
    padding: 3rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
}

.why-matters-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.why-matters-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.why-matters-note {
    margin-top: 1.4rem !important;
    padding: 1.3rem 1.5rem !important;
    background: #f8fafc !important;
    border-left: 5px solid #185FA5 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.why-matters-note p {
    margin: 0 !important;
    color: #124a84 !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
}

.service-pro-sidebar {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 28px !important;
    padding: 1.8rem !important;
    box-shadow: 0 18px 45px rgba(18, 74, 132, 0.07) !important;
    position: sticky !important;
    top: 2rem !important;
}

.service-pro-sidebar a {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
}

.page-cta {
    background: #f5f7fb !important;
    padding: 4.5rem 0 !important;
}

.page-cta-card {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 30px !important;
    padding: 3.2rem !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.18) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
}

.page-cta-card h2,
.page-cta-card p,
.page-cta-card .section-kicker {
    color: #ffffff !important;
}

.page-cta-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.page-cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 160px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.page-cta-actions .cta-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.page-cta-actions .cta-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 900px) {
    .service-content-grid,
    .service-feature-cards,
    .why-matters-grid,
    .page-cta-card {
        grid-template-columns: 1fr !important;
    }

    .service-pro-card,
    .why-matters-section,
    .page-cta-card {
        padding: 2rem !important;
    }

    .service-pro-sidebar {
        position: static !important;
    }
}

.service-story-btn,
.service-rich-content a.service-story-btn,
.service-feature-content a.service-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 170px !important;
    min-height: 52px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    line-height: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.service-story-btn:hover,
.service-rich-content a.service-story-btn:hover,
.service-feature-content a.service-story-btn:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
}

.service-detail-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.service-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    min-width: 160px !important;
    padding: 0 1.45rem !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.service-btn-light {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.service-btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
}

.service-btn-light:hover {
    background: #BA7517 !important;
    border-color: #BA7517 !important;
    color: #ffffff !important;
}

.service-btn-outline:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #ffffff !important;
}

.service-detail-hero::before {
    pointer-events: none !important;
}

.service-detail-hero .container,
.service-detail-grid,
.service-detail-copy {
    position: relative !important;
    z-index: 2 !important;
}

.service-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.7rem !important;
    margin-bottom: 2rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
}

.service-breadcrumb a {
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0.95 !important;
}

.service-breadcrumb a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

.service-breadcrumb span {
    color: rgba(255, 255, 255, 0.88) !important;
}

.service-breadcrumb span:last-child {
    font-weight: 900 !important;
    color: #ffffff !important;
}

.inline-edit-toast {
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 10070;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.inline-edit-toast--success {
    background: #EAF3DE;
    color: #244D09;
    border: 1px solid rgba(59, 109, 17, 0.25);
}

.inline-edit-toast--error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid rgba(153, 27, 27, 0.2);
}

.cms-inline-edit-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #E6F1FB;
    color: #042C53;
    font-size: 0.92rem;
}

.cms-inline-edit-note a {
    color: #185FA5;
    font-weight: 700;
}

.service-detail-content {
    background:
        radial-gradient(circle at 15% 10%, rgba(24, 95, 165, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%) !important;
    padding: 4.5rem 0 5rem !important;
}

.service-content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 2rem !important;
    align-items: start !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.service-pro-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 3.2rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-pro-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #185FA5, #3B6D11, #BA7517);
}

.service-rich-content {
    color: #1f2937;
}

.service-rich-content h2 {
    position: relative;
    margin: 0 0 1.2rem !important;
    padding-left: 1.2rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 3vw, 2.9rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-rich-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 5px;
    height: 36px;
    border-radius: 999px;
    background: #185FA5;
}

.service-rich-content h3 {
    margin: 2.6rem 0 1rem !important;
    color: #124a84 !important;
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.service-rich-content p {
    max-width: 760px;
    color: #1f2937 !important;
    font-size: 1.06rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1.3rem !important;
}

.service-rich-content blockquote {
    margin: 2.2rem 0 !important;
    padding: 2rem 2rem 2rem 2.2rem !important;
    background: #f7f9fc !important;
    border-left: 5px solid #3B6D11 !important;
    border-radius: 0 22px 22px 0 !important;
    box-shadow: inset 0 0 0 1px #dbe7f3 !important;
}

.service-rich-content blockquote p {
    max-width: 100%;
    margin-bottom: 1rem !important;
}

.service-rich-content blockquote p:last-child {
    margin-bottom: 0 !important;
    color: #124a84 !important;
    font-weight: 800 !important;
}

/* =========================================================
   Page CTA
========================================================= */

.page-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4.5rem 1rem !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.page-cta .container {
    width: min(1180px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.page-cta-card {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.18) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
}

.page-cta-copy {
    min-width: 0 !important;
}

.page-cta-card h2 {
    margin: 1rem 0 !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.page-cta-card p {
    margin: 0 !important;
    max-width: 700px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.page-cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.page-cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    min-width: 160px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.page-cta-actions .cta-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.page-cta-actions .cta-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 900px) {
    .page-cta {
        padding: 3rem 1rem !important;
    }

    .page-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .page-cta-actions {
        justify-content: flex-start !important;
    }

    .page-cta-actions a {
        width: 100% !important;
    }
}

@media (max-width: 700px) {
    .inner-hero,
    .service-detail-hero,
    .about-hero {
        padding: 3.5rem 0 3rem !important;
    }

    .home-section,
    .search-page-section,
    .about-content-section,
    .service-detail-content,
    .custom-page-section {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .hero-actions,
    .inner-hero-actions,
    .service-detail-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .hero-actions .btn,
    .inner-hero-actions .btn,
    .service-detail-actions .service-btn {
        width: 100% !important;
    }

    .footer-bottom-inner {
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
}

.service-pro-sidebar {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 28px !important;
    padding: 1.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: sticky !important;
    top: 2rem !important;
}

.sidebar-label {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #BA7517 !important;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.service-pro-sidebar h2 {
    position: relative;
    margin: 0 0 1.4rem !important;
    padding-left: 1rem !important;
    color: #124a84 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.service-pro-sidebar h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 4px;
    height: 28px;
    border-radius: 999px;
    background: #185FA5;
}

.service-pro-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.8rem !important;
}

.service-pro-sidebar a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.95rem 1rem !important;
    background: #f7f9fc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 15px !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

.service-pro-sidebar a::after {
    content: "→";
    color: #185FA5;
    font-weight: 900;
}

.service-pro-sidebar a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateX(4px);
}

.service-pro-sidebar a:hover::after {
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .search-card {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .related-services-grid {
        grid-template-columns: 1fr !important;
    }

    .accessibility-toolbar,
    .site-accessibility-toolbar {
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        width: auto !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        border-radius: 18px !important;
    }

    .accessibility-toolbar span,
    .accessibility-toolbar strong,
    .site-accessibility-toolbar span,
    .site-accessibility-toolbar strong {
        width: 100% !important;
        text-align: center !important;
    }

    .accessibility-toolbar button,
    .site-accessibility-toolbar button {
        min-height: 34px !important;
        font-size: 0.85rem !important;
    }

    .back-to-top {
        right: 0.75rem !important;
        bottom: 4.75rem !important;
    }
}

.service-detail-hero::before,
.about-hero::before {
    pointer-events: none !important;
}

.service-detail-actions,
.service-detail-actions a,
.service-btn {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.accessibility-toolbar {
    position: fixed !important;
    left: 1rem !important;
    bottom: 1rem !important;
    top: auto !important;
    right: auto !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0.55rem 0.7rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.16) !important;
    pointer-events: none !important;
}

.accessibility-toolbar strong {
    color: #124a84 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin-right: 0.25rem !important;
}

.accessibility-toolbar button {
    min-width: 44px !important;
    min-height: 36px !important;
    padding: 0 0.8rem !important;
    border-radius: 999px !important;
    border: 1px solid #dbe7f3 !important;
    background: #f8fafc !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.accessibility-toolbar button:hover,
.accessibility-toolbar button:focus {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    outline: 3px solid rgba(24, 95, 165, 0.18) !important;
}

.back-to-top {
    position: fixed !important;
    right: 1rem !important;
    bottom: 1rem !important;
    z-index: 50 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.22) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: all 0.2s ease !important;
}

.back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.back-to-top:hover,
.back-to-top:focus {
    background: #124a84 !important;
    outline: 3px solid rgba(24, 95, 165, 0.18) !important;
}

body.text-large {
    font-size: 112.5% !important;
}

body.text-small {
    font-size: 93.75% !important;
}

body.high-contrast {
    background: #ffffff !important;
    color: #1f2937 !important;
}

body.high-contrast a {
    color: #124a84 !important;
    text-decoration: underline !important;
}

body.high-contrast .site-header,
body.high-contrast .site-footer,
body.high-contrast .service-detail-hero,
body.high-contrast .about-hero,
body.high-contrast .search-hero {
    background: #124a84 !important;
    color: #ffffff !important;
}

body.high-contrast .service-main-card,
body.high-contrast .service-pro-sidebar,
body.high-contrast .about-main-card,
body.high-contrast .search-card,
body.high-contrast .contact-form-card,
body.high-contrast .page-content-card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #1f2937 !important;
}

body.high-contrast button,
body.high-contrast .btn,
body.high-contrast .service-btn {
    border: 2px solid #1f2937 !important;
}

@media (max-width: 700px) {
    .accessibility-toolbar {
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        width: auto !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        border-radius: 18px !important;
    }

    .accessibility-toolbar strong {
        width: 100% !important;
        text-align: center !important;
    }

    .accessibility-toolbar button {
        min-height: 34px !important;
        font-size: 0.85rem !important;
    }

    .back-to-top {
        right: 0.75rem !important;
        bottom: 5.5rem !important;
    }
}

.search-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem !important;
    align-items: center !important;
    margin-top: 1.4rem !important;
}

.search-suggestions span {
    color: #5f6f82 !important;
    font-weight: 900 !important;
}

.search-suggestions a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0 0.95rem !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    transition: all 0.2s ease !important;
}

.search-suggestions a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
}

.related-pages-section,
.related-services-section {
    margin-top: 3.5rem !important;
    padding: 3rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.08) !important;
}

.related-pages-header,
.related-services-heading {
    max-width: 780px !important;
    margin-bottom: 2rem !important;
}

.related-pages-header .section-kicker,
.related-services-heading .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.related-pages-header h2,
.related-services-heading h2 {
    margin: 0.8rem 0 1rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.related-pages-header p,
.related-services-heading p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.related-pages-grid,
.related-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.related-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.related-pages-grid .related-page-card:nth-child(4) {
    grid-column: span 1;
}

.related-page-card,
.related-service-card {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.6rem !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
    transition: all 0.2s ease !important;
}

.related-page-card span,
.related-service-card span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.1) !important;
    color: #185FA5 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

.related-page-card h3,
.related-service-card h3 {
    margin: 0 0 0.7rem !important;
    color: #124a84 !important;
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

.related-page-card p,
.related-service-card p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 0.96rem !important;
    line-height: 1.65 !important;
}

.related-page-card:hover,
.related-service-card:hover {
    transform: translateY(-4px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 20px 48px rgba(18, 74, 132, 0.12) !important;
}

.related-page-card:hover h3,
.related-service-card:hover h3 {
    color: #185FA5 !important;
}

@media (max-width: 900px) {
    .related-pages-section,
    .related-services-section {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .related-pages-grid,
    .related-services-grid {
        grid-template-columns: 1fr !important;
    }
}

.help-widget {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 95;
}

.help-widget-toggle {
    min-height: 52px;
    padding: 0 1.25rem;
    border-radius: 999px;
    border: 0;
    background: #185FA5;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(18, 74, 132, 0.24);
}

.help-widget-toggle:hover {
    background: #124a84;
}

.help-widget-panel {
    position: absolute;
    right: 0;
    bottom: 4rem;
    width: min(360px, calc(100vw - 2rem));
    background: #f8fafc;
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.2);
    padding: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.2s ease;
}

.help-widget-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-widget-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.help-widget-header span {
    color: #BA7517;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.help-widget-header h2 {
    margin: 0.35rem 0 0;
    color: #124a84;
    font-size: 1.5rem;
    font-weight: 900;
}

#helpWidgetClose {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #dbe7f3;
    background: #ffffff;
    color: #124a84;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
}

.help-widget-panel p {
    margin: 0 0 1rem;
    color: #5f6f82;
    line-height: 1.6;
}

.help-widget-links {
    display: grid;
    gap: 0.7rem;
}

.help-widget-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid #dbe7f3;
    color: #124a84;
    text-decoration: none;
    font-weight: 900;
}

.help-widget-links a::after {
    content: "→";
    color: #185FA5;
    font-weight: 900;
}

.help-widget-links a:hover {
    background: #185FA5;
    color: #ffffff;
    border-color: #185FA5;
}

.help-widget-links a:hover::after {
    color: #ffffff;
}

@media (max-width: 700px) {
    .help-widget {
        right: 0.75rem;
        bottom: 6rem;
    }

    .help-widget-panel {
        right: -0.25rem;
    }
}

.ai-help-widget {
    position: fixed !important;
    right: 1rem !important;
    bottom: 5rem !important;
    z-index: 96 !important;
}

.ai-help-toggle {
    min-height: 52px !important;
    padding: 0 1.25rem !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 14px 34px rgba(18, 74, 132, 0.24) !important;
}

.ai-help-toggle:hover {
    background: #124a84 !important;
}

.ai-help-panel {
    position: absolute !important;
    right: 0 !important;
    bottom: 4rem !important;
    width: min(390px, calc(100vw - 2rem)) !important;
    max-height: 75vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.22) !important;
    padding: 1.4rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: all 0.2s ease !important;
}

.ai-help-panel.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.ai-help-header {
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    margin-bottom: 0.9rem !important;
}

.ai-help-header span {
    color: #BA7517 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

.ai-help-header h2 {
    margin: 0.35rem 0 0 !important;
    color: #124a84 !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
}

#aiHelpClose {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1px solid #dbe7f3 !important;
    background: #ffffff !important;
    color: #124a84 !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.ai-help-intro {
    margin: 0 0 0.6rem !important;
    color: #5f6f82 !important;
    line-height: 1.6 !important;
}

.ai-help-disclaimer {
    margin: 0 0 1rem !important;
    padding: 0.8rem 1rem !important;
    background: #f1f5f9 !important;
    border-left: 4px solid #BA7517 !important;
    border-radius: 0 12px 12px 0 !important;
    color: #1f2937 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.ai-chat-box {
    max-height: 220px !important;
    overflow-y: auto !important;
    display: grid !important;
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
    padding: 0.8rem !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
}

.ai-message {
    max-width: 88% !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 14px !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.ai-message-bot {
    justify-self: start !important;
    background: #f1f5f9 !important;
    color: #1f2937 !important;
}

.ai-message-user {
    justify-self: end !important;
    background: #185FA5 !important;
    color: #ffffff !important;
}

.ai-message a {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.ai-quick-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.ai-quick-actions button {
    min-height: 34px !important;
    padding: 0 0.75rem !important;
    border-radius: 999px !important;
    border: 1px solid #dbe7f3 !important;
    background: #f1f5f9 !important;
    color: #124a84 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.ai-quick-actions button:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
}

.ai-help-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.6rem !important;
}

.ai-help-form input {
    min-height: 44px !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0 1rem !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    outline: none !important;
}

.ai-help-form input:focus {
    border-color: #185FA5 !important;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14) !important;
}

.ai-help-form button {
    min-height: 44px !important;
    padding: 0 1rem !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.ai-help-form button:hover {
    background: #124a84 !important;
}

@media (max-width: 700px) {
    .ai-help-widget {
        right: 0.75rem !important;
        bottom: 6rem !important;
    }

    .ai-help-panel {
        right: -0.25rem !important;
        width: calc(100vw - 1.5rem) !important;
    }

    .ai-help-form {
        grid-template-columns: 1fr !important;
    }

    .ai-help-form button {
        width: 100% !important;
    }
}

/* =========================================================
   Final Polish Consistency Layer
========================================================= */

.inner-hero,
.service-detail-hero,
.about-hero {
    margin-bottom: 0 !important;
}

.inner-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%) !important;
    border-bottom: 1px solid #dbe7f3 !important;
}

.inner-hero .inner-eyebrow,
.inner-hero .section-kicker,
.inner-hero h1,
.inner-hero p {
    color: #124a84 !important;
}

.content-shell,
.search-card,
.guided-finder-section,
.page-cta-card,
.contact-form-card,
.contact-info-panel,
.about-main-card,
.about-side-card,
.service-main-card,
.service-pro-sidebar,
.service-side-card,
.sidebar-card,
.news-item,
.job-card,
.board-card,
.portfolio-list-item,
.related-page-card,
.related-service-card,
.service-feature-card,
.why-matters-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(24, 95, 165, 0.10) !important;
}

.about-side-card,
.service-pro-sidebar,
.service-side-card,
.sidebar-card,
.custom-page-sidebar .sidebar-card {
    padding: 1.5rem !important;
}

.about-side-card h2,
.service-pro-sidebar h2,
.service-side-card h2,
.sidebar-card h2,
.custom-page-sidebar .sidebar-card h2 {
    color: #124a84 !important;
    margin-top: 0 !important;
}

.about-side-card a,
.service-pro-sidebar a,
.service-side-card a,
.sidebar-card a,
.custom-page-sidebar .sidebar-card a {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 14px !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 800 !important;
}

.about-side-card a:hover,
.service-pro-sidebar a:hover,
.service-side-card a:hover,
.sidebar-card a:hover,
.custom-page-sidebar .sidebar-card a:hover {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
}

.btn,
.nav-cta,
.cta-primary,
.cta-secondary,
.contact-submit,
.guided-finder-btn,
.service-btn,
.about-btn,
.service-story-btn,
.about-story-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 1rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn:disabled,
.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.page-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4.5rem 1rem !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.page-cta .container {
    width: min(1180px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.page-cta-card {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.18) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
}

.page-cta-copy {
    min-width: 0 !important;
}

.page-cta-card h2 {
    margin: 1rem 0 !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.page-cta-card p {
    margin: 0 !important;
    max-width: 700px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.page-cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.page-cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    min-width: 160px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.page-cta-actions .cta-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.page-cta-actions .cta-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 900px) {
    .page-cta {
        padding: 3rem 1rem !important;
    }

    .page-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .page-cta-actions {
        justify-content: flex-start !important;
    }

    .page-cta-actions a {
        width: 100% !important;
    }
}

main#main-content > section:last-child {
    margin-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
    padding-top: 3rem !important;
    background: #124a84 !important;
}

.footer-grid {
    align-items: start !important;
    row-gap: 1.75rem !important;
}

.footer-column ul {
    gap: 0.5rem !important;
}

.footer-bottom {
    padding: 1rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 980px) {
    .service-content-grid,
    .about-content-grid,
    .custom-page-layout,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .service-pro-sidebar,
    .about-side-card,
    .custom-page-sidebar,
    .custom-page-sidebar .sidebar-card {
        position: static !important;
    }
}

@media (max-width: 700px) {
    .inner-hero,
    .service-detail-hero,
    .about-hero {
        padding: 3.5rem 0 3rem !important;
    }

    .page-cta,
    .home-section,
    .search-page-section,
    .about-content-section,
    .service-detail-content,
    .custom-page-section {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .page-cta-actions,
    .hero-actions,
    .inner-hero-actions,
    .service-detail-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .page-cta-actions a,
    .hero-actions .btn,
    .inner-hero-actions .btn,
    .service-detail-actions .service-btn {
        width: 100% !important;
    }

    .footer-bottom-inner {
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
}

/* =========================================================
   Product Page Targeted Fixes
========================================================= */

body {
    padding-bottom: 90px !important;
}

.accessibility-toolbar {
    position: fixed !important;
    left: 1rem !important;
    bottom: 1rem !important;
    z-index: 9999 !important;
    max-width: calc(100vw - 2rem) !important;
}

.service-detail-hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: auto !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.90) 0%, rgba(18, 74, 132, 0.75) 45%, rgba(24, 95, 165, 0.35) 100%),
        url("/images/health-service-hero.jpg") right center / cover no-repeat !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.service-detail-content,
.service-feature-cards-section,
.why-matters-section,
.related-pages-section,
.related-services-section {
    margin-top: 3rem !important;
}

.service-main-card,
.service-pro-card,
.why-matters-section,
.related-services-section,
.service-feature-cards-section {
    margin-bottom: 3rem !important;
    padding-bottom: 3rem !important;
}

.service-rich-content figure,
.service-rich-content .image,
.service-rich-content img {
    max-width: 100% !important;
    width: 100% !important;
    margin: 1rem 0 !important;
}

.service-rich-content img {
    display: block !important;
    max-height: 360px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 10px 24px rgba(24, 95, 165, 0.10) !important;
}

.service-rich-content .service-image-card,
.service-rich-content .service-hero-image,
.service-rich-content .service-hero-image img,
.service-rich-content .service-hero-card-content {
    display: none !important;
}

.page-cta,
.related-pages-section,
.service-detail-content {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 700px) {
    .accessibility-toolbar {
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 0.75rem !important;
    }

    .service-detail-hero {
        padding: 4.5rem 0 5rem !important;
    }
}

body {
    padding-bottom: 90px !important;
}

.accessibility-toolbar {
    position: fixed !important;
    left: 1rem !important;
    bottom: 1rem !important;
    z-index: 9999 !important;
    max-width: calc(100vw - 2rem) !important;
}

.ai-help-widget {
    z-index: 9998 !important;
}

.back-to-top {
    z-index: 9998 !important;
}

.service-detail-hero {
    position: relative !important;
    overflow: hidden !important;
    background:
        linear-gradient(90deg, rgba(18, 74, 132, 0.90) 0%, rgba(18, 74, 132, 0.75) 45%, rgba(24, 95, 165, 0.35) 100%),
        url("/images/health-service-hero.jpg") right center / cover no-repeat !important;
    color: #ffffff !important;
    padding: 6rem 0 6.5rem !important;
}

.full-width-section {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4.5rem 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.full-width-section .container,
.page-cta .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.service-detail-content {
    background:
        radial-gradient(circle at 14% 10%, rgba(24, 95, 165, 0.05), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #f8fafc 55%, #ffffff 100%) !important;
    padding: 4.5rem 0 4.5rem !important;
    margin: 0 !important;
}

.service-content-grid {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 2rem !important;
    align-items: start !important;
}

.service-main-card {
    min-width: 0 !important;
}

.service-feature-cards-section,
.why-matters-section,
.related-pages-section {
    background: #f5f7fb !important;
}

.service-feature-cards,
.why-matters-grid,
.related-pages-grid {
    width: 100% !important;
}

.service-feature-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.why-matters-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.related-pages-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.service-feature-card,
.why-matters-card,
.related-page-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.6rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
}

.service-feature-heading,
.why-matters-header,
.related-pages-header {
    max-width: 780px !important;
    margin: 0 0 2rem !important;
}

.service-feature-heading h2,
.why-matters-header h2,
.related-pages-header h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-feature-heading p,
.why-matters-header p,
.related-pages-header p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.page-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4.5rem 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

.page-cta .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.page-cta-card {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.18) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
}

.page-cta-copy {
    min-width: 0 !important;
}

.page-cta-card h2 {
    margin: 1rem 0 !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.page-cta-card p {
    margin: 0 !important;
    max-width: 700px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.page-cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.page-cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    min-width: 160px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.page-cta-actions .cta-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.page-cta-actions .cta-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 1100px) {
    .service-feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr !important;
    }

    .why-matters-grid,
    .related-pages-grid {
        grid-template-columns: 1fr !important;
    }

    .page-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    .page-cta-actions {
        justify-content: flex-start !important;
    }

    .page-cta-actions a {
        width: 100% !important;
    }
}

@media (max-width: 700px) {
    .service-feature-cards {
        grid-template-columns: 1fr !important;
    }

    .full-width-section {
        padding: 3rem 0 !important;
    }
}

.full-width-section {
    width: 100% !important;
    padding: 4.5rem 0 !important;
    margin: 0 !important;
    background: #f5f7fb !important;
    position: relative !important;
    z-index: 1 !important;
}

.full-width-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.service-feature-cards-section,
.why-matters-section,
.related-pages-section {
    clear: both !important;
    display: block !important;
}

.service-feature-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.why-matters-grid,
.related-pages-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.service-feature-card,
.why-matters-card,
.related-page-card {
    min-width: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.6rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
}

.service-feature-heading,
.why-matters-header,
.related-pages-header {
    max-width: 780px !important;
    margin: 0 0 2rem !important;
}

.service-feature-heading h2,
.why-matters-header h2,
.related-pages-header h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-feature-heading p,
.why-matters-header p,
.related-pages-header p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

@media (max-width: 1100px) {
    .service-feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr !important;
    }

    .service-feature-cards,
    .why-matters-grid,
    .related-pages-grid {
        grid-template-columns: 1fr !important;
    }
}

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

.service-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4.5rem 0 !important;
    background: #f5f7fb !important;
    overflow: hidden !important;
    position: relative !important;
}

.service-content-grid {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 2rem !important;
    align-items: start !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.service-main-card,
.service-pro-card,
.service-side-card,
.service-pro-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.full-width-section,
.service-feature-cards-section,
.why-matters-section,
.related-pages-section,
.page-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4.5rem 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    background: #f5f7fb !important;
}

.full-width-section .container,
.service-feature-cards-section .container,
.why-matters-section .container,
.related-pages-section .container,
.page-cta .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.service-rich-content,
.service-rich-content p,
.service-rich-content h1,
.service-rich-content h2,
.service-rich-content h3 {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.service-rich-content h2 {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr !important;
    }

    .service-feature-cards,
    .why-matters-grid,
    .related-pages-grid {
        grid-template-columns: 1fr !important;
    }
}

.service-pro-sidebar {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.service-sidebar-nav {
    display: grid !important;
    gap: 1rem !important;
    position: relative !important;
    z-index: 25 !important;
}

.service-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    width: 100% !important;
    min-height: 64px !important;
    padding: 0 1.4rem !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
}

.service-sidebar-nav a span {
    color: #124a84 !important;
    pointer-events: none !important;
}

.service-sidebar-nav a strong {
    color: #185FA5 !important;
    font-weight: 900 !important;
    pointer-events: none !important;
}

.service-sidebar-nav a:hover,
.service-sidebar-nav a:focus {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 32px rgba(18, 74, 132, 0.14) !important;
    outline: none !important;
}

.service-sidebar-nav a:hover span,
.service-sidebar-nav a:hover strong,
.service-sidebar-nav a:focus span,
.service-sidebar-nav a:focus strong {
    color: #ffffff !important;
}

.service-detail-content::before,
.service-detail-content::after,
.service-main-card::before,
.service-main-card::after,
.service-pro-card::before,
.service-pro-card::after,
.service-side-card::before,
.service-side-card::after,
.service-pro-sidebar::before,
.service-pro-sidebar::after {
    pointer-events: none !important;
}

.ai-help-widget {
    pointer-events: auto !important;
    z-index: 9998 !important;
}

.ai-help-panel {
    pointer-events: auto !important;
}

.ai-help-widget:not(.is-open) {
    width: auto !important;
}

/* Hero card text contrast guard: keep left hero copy light and right cards dark */
.hero-copy,
.hero-copy h1,
.hero-copy p,
.hero-copy span,
.home-hero .hero-content,
.home-hero .hero-content h1,
.home-hero .hero-content p,
.home-hero .hero-content span,
.service-detail-hero .service-detail-copy,
.service-detail-hero .service-detail-copy h1,
.service-detail-hero .service-detail-copy p,
.service-detail-hero .service-detail-copy span,
.service-detail-hero .service-detail-copy .section-kicker {
    color: #ffffff !important;
}

.hero-search-card,
.hero-support-card,
.home-hero-card,
.service-highlight-card,
.service-detail-card,
.hero-card,
.service-hero-card {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #1f2937 !important;
}

.hero-search-card *,
.hero-support-card *,
.home-hero-card *,
.service-highlight-card *,
.service-detail-card *,
.hero-card *,
.service-hero-card * {
    color: inherit !important;
}

.hero-search-card h2,
.hero-support-card h2,
.home-hero-card h2,
.service-highlight-card h2,
.service-detail-card h2,
.hero-card h2,
.service-hero-card h2 {
    color: #124a84 !important;
}

.hero-search-card p,
.hero-support-card p,
.home-hero-card p,
.service-highlight-card p,
.service-detail-card p,
.hero-card p,
.service-hero-card p {
    color: #5f6f82 !important;
}

.hero-search-card li,
.hero-support-card li,
.home-hero-card li,
.service-highlight-card li,
.service-detail-card li,
.hero-card li,
.service-hero-card li {
    color: #1f2937 !important;
}

.hero-search-card strong,
.hero-support-card strong,
.home-hero-card strong,
.service-highlight-card strong,
.service-detail-card strong,
.hero-card strong,
.service-hero-card strong {
    color: #1f2937 !important;
}

.hero-search-card input,
.hero-support-card input,
.home-hero-card input,
.service-highlight-card input,
.service-detail-card input,
.hero-card input,
.service-hero-card input {
    color: #1f2937 !important;
    background: #ffffff !important;
}

.hero-search-card input::placeholder,
.hero-support-card input::placeholder,
.home-hero-card input::placeholder,
.service-highlight-card input::placeholder,
.service-detail-card input::placeholder,
.hero-card input::placeholder,
.service-hero-card input::placeholder {
    color: #5f6f82 !important;
    opacity: 1 !important;
}

.hero-search-card button,
.hero-support-card button,
.home-hero-card button,
.service-highlight-card button,
.service-detail-card button,
.hero-card button,
.service-hero-card button {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

/* =========================================================
   FINAL THLIN EOF OVERRIDES v2
========================================================= */

.site-header.is-home-header {
    position: absolute !important;
    top: 1.5rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.site-header.is-inner-header {
    position: relative !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    background: #ffffff !important;
}

.nav-wrapper .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.nav-shell,
.header-inner {
    min-height: 76px !important;
    padding: 0.85rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.14) !important;
    backdrop-filter: blur(14px) !important;
}

.nav-link {
    color: #1f2937 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.nav-link.is-active {
    color: #124a84 !important;
}

.nav-cta {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    min-height: 52px !important;
    padding: 0 1.6rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.home-hero {
    padding-top: 9rem !important;
    padding-bottom: 4.5rem !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.home-section,
.home-help-section,
.home-about-section,
.home-products-section,
.portfolio-section,
.thlin-final-cta {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.home-help-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
}

.home-about-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background: #f5f7fb !important;
    overflow: visible !important;
}

.home-products-section,
.portfolio-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.home-help-section + .home-about-section,
.home-about-section + .home-products-section,
.home-products-section + .portfolio-section {
    padding-top: 3.5rem !important;
}

.home-about-grid,
.about-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.about-highlight-card {
    margin-top: 0 !important;
    top: auto !important;
    transform: none !important;
    align-self: center !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.home-product-card {
    background: #ffffff !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    padding: 2.4rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    transition: all 0.22s ease !important;
}

.home-product-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.home-product-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.home-product-card:hover {
    transform: translateY(-6px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.home-product-card h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.home-product-card p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.thlin-final-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4rem 1rem !important;
    margin: 0 !important;
}

.thlin-final-cta-container {
    width: min(1180px, 100%) !important;
    margin: 0 auto !important;
}

.thlin-final-cta-card {
    background: linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 32px !important;
    padding: 3.2rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.22) !important;
}

.thlin-final-cta-card,
.thlin-final-cta-card * {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

.thlin-final-cta-copy h2 {
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 900 !important;
}

.thlin-final-cta-copy p,
.thlin-final-cta-kicker {
    color: rgba(255, 255, 255, 0.92) !important;
}

.thlin-final-cta-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.thlin-final-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 170px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-final-cta-btn-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.thlin-final-cta-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.service-detail-content,
.service-content-grid,
.search-page-section,
.guided-service-section,
.contact-page-section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: auto !important;
}

@media (max-width: 900px) {
    .site-header.is-home-header {
        position: relative !important;
        top: auto !important;
        padding: 0.75rem 1rem !important;
        background: #ffffff !important;
    }

    .home-hero {
        padding-top: 4rem !important;
        padding-bottom: 3.5rem !important;
    }

    .home-help-section,
    .home-about-section,
    .home-products-section,
    .portfolio-section,
    .thlin-final-cta,
    .search-page-section,
    .guided-service-section,
    .contact-page-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .home-about-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .thlin-final-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }

    .thlin-final-cta-actions {
        justify-content: flex-start !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* =========================================================
   FINAL LAST UPDATED GLOBAL FLOW FIX
========================================================= */

.page-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.page-last-updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0.6rem 0.95rem !important;
    color: #5f6f82 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

.page-last-updated::before {
    content: "•" !important;
    color: #185FA5 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.service-main-card .page-meta-row,
.service-pro-card .page-meta-row,
.about-main-card .page-meta-row,
.page-content-card .page-meta-row {
    justify-content: flex-end !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 700px) {
    .page-meta-row {
        justify-content: flex-start !important;
    }

    .page-last-updated {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =========================================================
   FINAL LAST UPDATED DATE FIX
========================================================= */

.page-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.page-last-updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0.6rem 0.95rem !important;
    color: #5f6f82 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

.page-last-updated::before {
    content: "•" !important;
    color: #185FA5 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.service-main-card .page-meta-row,
.service-pro-card .page-meta-row {
    justify-content: flex-end !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 700px) {
    .page-meta-row {
        justify-content: flex-start !important;
    }

    .page-last-updated {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =========================================================
   FINAL CTA ALIGNMENT CLEANUP
========================================================= */

.thlin-final-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4rem 1rem !important;
    margin: 0 !important;
}

.thlin-final-cta-container {
    width: min(1080px, 100%) !important;
    margin: 0 auto !important;
}

.thlin-final-cta-card {
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 30px !important;
    padding: 3.2rem 2rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.20) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1.6rem !important;
}

.thlin-final-cta-copy {
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.thlin-final-cta-kicker {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
}

.thlin-final-cta-copy h2 {
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.thlin-final-cta-copy p {
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 auto 1rem !important;
    max-width: 720px !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
}

.thlin-final-cta-email {
    display: inline-flex !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 999px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-final-cta-email:hover {
    background: #ffffff !important;
    color: #124a84 !important;
}

.thlin-final-cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 0.3rem !important;
}

.thlin-final-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    min-width: 160px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.thlin-final-cta-btn-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.thlin-final-cta-btn-primary:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

.thlin-final-cta-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.thlin-final-cta-btn-secondary:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #ffffff !important;
}

@media (max-width: 700px) {
    .thlin-final-cta-card {
        padding: 2.2rem 1.4rem !important;
    }

    .thlin-final-cta-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .thlin-final-cta-btn {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL LAST UPDATED DATE FIX
========================================================= */

.page-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.page-last-updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0.55rem 0.9rem !important;
    color: #5f6f82 !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    position: static !important;
    left: auto !important;
    margin-left: 0 !important;
    padding-left: 0.9rem !important;
}

.page-last-updated::before {
    content: "•" !important;
    color: #185FA5 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* =========================================================
   FINAL HERO BUTTON CONTRAST FIX
========================================================= */

.hero-clean-search button,
.hero-search-card button,
.home-hero-card button,
.hero-service-card button,
.home-hero form button,
.home-hero .search-form button {
    background: #BA7517 !important;
    color: #ffffff !important;
    border: 2px solid #BA7517 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    min-height: 52px !important;
    padding: 0 1.35rem !important;
    border-radius: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.hero-clean-search button:hover,
.hero-search-card button:hover,
.home-hero-card button:hover,
.hero-service-card button:hover,
.home-hero form button:hover,
.home-hero .search-form button:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
}

/* =========================================================
   FINAL CONTACT BUTTON HOVER FIX
========================================================= */

.nav-cta,
.header-cta,
.contact-nav-btn,
a[href*="contact"].nav-cta {
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.nav-cta:hover,
.header-cta:hover,
.contact-nav-btn:hover,
a[href*="contact"].nav-cta:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #124a84 !important;
}

/* =========================================================
   PROFESSIONAL HOME STATS INFOGRAPHIC
========================================================= */

.home-stats-section {
    background: #f5f7fb !important;
    padding: 3rem 0 3.5rem !important;
    margin: 0 !important;
}

.home-stats-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-stats-card {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 1.4rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.home-stat-item {
    position: relative !important;
    overflow: hidden !important;
    min-height: 150px !important;
    padding: 1.5rem !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 90% 10%, rgba(24, 95, 165, 0.08), transparent 28%),
        #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
    transition: all 0.22s ease !important;
}

.home-stat-item:hover {
    transform: translateY(-5px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 22px 55px rgba(18, 74, 132, 0.14) !important;
}

.home-stat-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.10) !important;
    color: #185FA5 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.home-stat-item:nth-child(2) .home-stat-icon {
    background: rgba(59, 109, 17, 0.12) !important;
    color: #3B6D11 !important;
}

.home-stat-item:nth-child(3) .home-stat-icon {
    background: rgba(186, 117, 23, 0.14) !important;
    color: #BA7517 !important;
}

.home-stat-item strong {
    display: block !important;
    margin-bottom: 0.35rem !important;
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3.4rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
}

.home-stat-item p {
    margin: 0 !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    font-size: 0.98rem !important;
}

@media (max-width: 1000px) {
    .home-stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .home-stats-card {
        grid-template-columns: 1fr !important;
    }

    .home-stat-item {
        min-height: auto !important;
    }
}

/* =========================================================
   STATS SECTION SPACING CLEANUP
========================================================= */

.home-hero + .home-stats-section,
.hero-section + .home-stats-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 5 !important;
}

.home-stats-section + .home-help-section,
.home-stats-section + .quick-access,
.home-stats-section + .home-products-section {
    padding-top: 3.5rem !important;
}

.home-stats-section {
    padding-bottom: 3rem !important;
}

/* =========================================================
   HERO PRIMARY CTA VISIBILITY FIX
========================================================= */

.hero-actions .hero-primary-btn,
.home-hero .hero-actions .btn.btn-light.hero-primary-btn {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-actions .hero-primary-btn:hover,
.home-hero .hero-actions .btn.btn-light.hero-primary-btn:hover {
    background: #f8fafc !important;
    color: #124a84 !important;
    border-color: #dbe7f3 !important;
}

/* =========================================================
   FINAL DETAIL PAGE CONTENT PARITY
========================================================= */

.service-rich-content,
.page-content-card > div[data-editable="true"] {
    display: grid !important;
    gap: 1rem !important;
}

.service-rich-content img,
.page-content-card img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 20px !important;
    border: 1px solid #dbe7f3 !important;
    margin: 0 0 1.6rem !important;
    background: #f8fafc !important;
}

.service-rich-content h2,
.service-rich-content h3,
.page-content-card h2,
.page-content-card h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
    margin: 0.4rem 0 0.35rem !important;
}

.service-rich-content p,
.page-content-card p {
    color: #5f6f82 !important;
    line-height: 1.75 !important;
    margin: 0 0 0.9rem !important;
}

.service-rich-content ul,
.service-rich-content ol,
.page-content-card ul,
.page-content-card ol {
    margin: 0 0 1rem !important;
    padding-left: 1.25rem !important;
}

.service-rich-content li,
.page-content-card li {
    color: #1f2937 !important;
    margin: 0.2rem 0 !important;
}

/* =========================================================
   FINAL CROSS-PAGE VISUAL PARITY v1
========================================================= */

.home-section,
.about-content-section,
.related-pages-section,
.service-detail-content,
.service-feature-cards-section,
.why-matters-section,
.search-page-section,
.guided-service-section,
.contact-page-section,
.thlin-final-cta {
    background: #f5f7fb !important;
}

.section-container,
.search-page-section .container,
.guided-service-section .container,
.contact-page-section .section-container,
.service-detail-content .container,
.about-content-section .container,
.related-pages-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-quick-card,
.home-product-card,
.about-main-card,
.about-side-card,
.service-main-card,
.service-pro-sidebar,
.service-feature-card,
.why-matters-card,
.related-page-card,
.search-main-card,
.guided-service-card,
.guided-service-option,
.contact-form-card,
.contact-info-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px #dbe7f3 !important;
}

.home-quick-card,
.service-feature-card,
.why-matters-card,
.related-page-card,
.guided-service-option {
    border-top: 5px solid #185FA5 !important;
}

/* =========================================================
   HERO CONTACT CTA HOVER FIX
========================================================= */

.home-hero .hero-actions .btn.btn-outline-light {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #dbe7f3 !important;
}

.home-hero .hero-actions .btn.btn-outline-light:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

/* =========================================================
   HOMEPAGE GAP CLEANUP
========================================================= */

.home-quick-cards-section {
    padding-bottom: 2.5rem !important;
}

.home-healthline-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
}

.home-healthline-section + .home-stats-section {
    margin-top: 0 !important;
    padding-top: 0.25rem !important;
}

.home-stats-section {
    padding-top: 0.25rem !important;
    padding-bottom: 2rem !important;
}

/* =========================================================
   HOMEPAGE STATS TOP GAP HOTFIX
========================================================= */

.home-stats-section {
    margin-top: 0 !important;
    padding-top: 0.25rem !important;
}

.service-feature-card:nth-child(2),
.why-matters-card:nth-child(2),
.guided-service-option:nth-child(2),
.related-page-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.service-feature-card:nth-child(3),
.why-matters-card:nth-child(3),
.guided-service-option:nth-child(3),
.related-page-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.section-kicker,
.section-kicker.blue {
    color: #185FA5 !important;
}

.home-section h2,
.about-content-section h2,
.related-pages-section h2,
.service-detail-content h2,
.service-feature-cards-section h2,
.why-matters-section h2,
.search-page-section h1,
.search-page-section h2,
.guided-service-section h2,
.contact-page-section h2 {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.home-section p,
.about-content-section p,
.related-pages-section p,
.service-detail-content p,
.service-feature-cards-section p,
.why-matters-section p,
.search-page-section p,
.guided-service-section p,
.contact-page-section p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.search-main-card,
.guided-service-card,
.contact-form-card,
.contact-info-card,
.service-main-card,
.about-main-card {
    padding: 2.2rem !important;
}

.home-quick-card:hover,
.home-product-card:hover,
.service-feature-card:hover,
.why-matters-card:hover,
.related-page-card:hover,
.guided-service-option:hover {
    transform: translateY(-4px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 18px 45px #dbe7f3 !important;
}

.contact-submit,
.search-main-card button,
.guided-service-option a,
.service-btn,
.about-btn,
.about-story-btn {
    border-radius: 999px !important;
    font-weight: 900 !important;
}

@media (max-width: 900px) {
    .search-main-card,
    .guided-service-card,
    .contact-form-card,
    .contact-info-card,
    .service-main-card,
    .about-main-card,
    .about-side-card {
        padding: 1.6rem !important;
        border-radius: 20px !important;
    }
}

/* =========================================================
   FINAL LAYOUT CONFLICT RESOLUTION (TRUE EOF)
========================================================= */

.site-header.is-home-header {
    position: absolute !important;
    top: 1.5rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.site-header.is-inner-header {
    position: relative !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    background: #ffffff !important;
}

.nav-wrapper .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.nav-shell,
.header-inner {
    min-height: 76px !important;
    padding: 0.85rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.14) !important;
    backdrop-filter: blur(14px) !important;
}

.nav-link {
    color: #1f2937 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.nav-link.is-active {
    color: #124a84 !important;
}

.nav-cta {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    min-height: 52px !important;
    padding: 0 1.6rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.home-hero {
    padding-top: 9rem !important;
    padding-bottom: 4.5rem !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.home-section,
.home-help-section,
.home-about-section,
.home-products-section,
.portfolio-section,
.thlin-final-cta {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.home-help-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
}

.home-about-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background: #f5f7fb !important;
    overflow: visible !important;
}

.home-products-section,
.portfolio-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.home-help-section + .home-about-section,
.home-about-section + .home-products-section,
.home-products-section + .portfolio-section {
    padding-top: 3.5rem !important;
}

.home-about-grid,
.about-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.about-highlight-card {
    margin-top: 0 !important;
    top: auto !important;
    transform: none !important;
    align-self: center !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.home-product-card {
    background: #ffffff !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    padding: 2.4rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    transition: all 0.22s ease !important;
}

.home-product-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.home-product-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.home-product-card:hover {
    transform: translateY(-6px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.home-product-card h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.home-product-card p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.thlin-final-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4rem 1rem !important;
    margin: 0 !important;
}

.thlin-final-cta-container {
    width: min(1180px, 100%) !important;
    margin: 0 auto !important;
}

.thlin-final-cta-card {
    background: linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 32px !important;
    padding: 3.2rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.22) !important;
}

.thlin-final-cta-card,
.thlin-final-cta-card * {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

.thlin-final-cta-copy h2 {
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 900 !important;
}

.thlin-final-cta-copy p,
.thlin-final-cta-kicker {
    color: rgba(255, 255, 255, 0.92) !important;
}

.thlin-final-cta-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.thlin-final-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 170px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-final-cta-btn-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.thlin-final-cta-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.service-detail-content,
.service-content-grid,
.search-page-section,
.guided-service-section,
.contact-page-section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: auto !important;
}

@media (max-width: 900px) {
    .site-header.is-home-header {
        position: relative !important;
        top: auto !important;
        padding: 0.75rem 1rem !important;
        background: #ffffff !important;
    }

    .home-hero {
        padding-top: 4rem !important;
        padding-bottom: 3.5rem !important;
    }

    .home-help-section,
    .home-about-section,
    .home-products-section,
    .portfolio-section,
    .thlin-final-cta,
    .search-page-section,
    .guided-service-section,
    .contact-page-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .home-about-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .thlin-final-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }

    .thlin-final-cta-actions {
        justify-content: flex-start !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* =========================================================
   FINAL STATS SECTION POSITION FIX
========================================================= */

.home-stats-section {
    position: relative !important;
    z-index: 5 !important;
    background: #f5f7fb !important;
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

.home-hero + .home-stats-section,
.hero-section + .home-stats-section {
    margin-top: 0 !important;
}

.home-stats-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-stats-card {
    margin-top: 0 !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
}

.home-stat-item {
    overflow: visible !important;
    min-height: 150px !important;
    padding: 1.5rem !important;
}

.home-stat-item strong {
    display: block !important;
    color: #124a84 !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
}

.home-stat-item p {
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

/* =========================================================
   FINAL STATS SMALL GAP TUNE
========================================================= */

.home-hero + .home-stats-section,
.hero-section + .home-stats-section,
.home-healthline-section + .home-stats-section {
    margin-top: 0.75rem !important;
}

body.high-contrast .hero-search-card,
body.high-contrast .hero-support-card,
body.high-contrast .home-hero-card,
body.high-contrast .service-highlight-card,
body.high-contrast .service-detail-card,
body.high-contrast .hero-card,
body.high-contrast .service-hero-card {
    background: #ffffff !important;
    color: #000000 !important;
}

body.high-contrast .hero-search-card h2,
body.high-contrast .hero-support-card h2,
body.high-contrast .home-hero-card h2,
body.high-contrast .service-highlight-card h2,
body.high-contrast .service-detail-card h2,
body.high-contrast .hero-card h2,
body.high-contrast .service-hero-card h2 {
    color: #000000 !important;
}

body.high-contrast .hero-search-card p,
body.high-contrast .hero-support-card p,
body.high-contrast .home-hero-card p,
body.high-contrast .service-highlight-card p,
body.high-contrast .service-detail-card p,
body.high-contrast .hero-card p,
body.high-contrast .service-hero-card p {
    color: #111111 !important;
}

/* =========================================================
   FINAL PRODUCT PAGE LAYOUT FIX
========================================================= */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

.service-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4.5rem 0 !important;
    background: #f5f7fb !important;
    overflow: hidden !important;
    position: relative !important;
}

.service-content-grid {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 2rem !important;
    align-items: start !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.service-main-card,
.service-pro-card,
.service-side-card,
.service-pro-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.service-pro-sidebar {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 28px !important;
    padding: 1.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    position: sticky !important;
    top: 2rem !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.service-sidebar-nav {
    display: grid !important;
    gap: 1rem !important;
    position: relative !important;
    z-index: 30 !important;
}

.service-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    width: 100% !important;
    min-height: 64px !important;
    padding: 0 1.4rem !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.service-sidebar-nav a::after {
    content: none !important;
    display: none !important;
}

.service-sidebar-nav a span,
.service-sidebar-nav a strong {
    pointer-events: none !important;
}

.service-sidebar-nav a:hover,
.service-sidebar-nav a:focus {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-color: #185FA5 !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.service-sidebar-nav a:hover span,
.service-sidebar-nav a:hover strong,
.service-sidebar-nav a:focus span,
.service-sidebar-nav a:focus strong {
    color: #ffffff !important;
}

.full-width-section,
.service-feature-cards-section,
.why-matters-section,
.related-pages-section,
.page-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4.5rem 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    background: #f5f7fb !important;
    clear: both !important;
}

.full-width-section .container,
.service-feature-cards-section .container,
.why-matters-section .container,
.related-pages-section .container,
.page-cta .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.service-feature-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.why-matters-grid,
.related-pages-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
}

.service-feature-card,
.why-matters-card,
.related-page-card {
    min-width: 0 !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.6rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.06) !important;
}

.service-feature-heading,
.why-matters-header,
.related-pages-header {
    max-width: 780px !important;
    margin: 0 0 2rem !important;
}

.service-feature-heading h2,
.why-matters-header h2,
.related-pages-header h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
}

.service-feature-heading p,
.why-matters-header p,
.related-pages-header p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

.service-detail-content::before,
.service-detail-content::after,
.service-main-card::before,
.service-main-card::after,
.service-pro-card::before,
.service-pro-card::after,
.service-side-card::before,
.service-side-card::after,
.service-pro-sidebar::before,
.service-pro-sidebar::after {
    pointer-events: none !important;
}

@media (max-width: 1100px) {
    .service-feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr !important;
    }

    .service-feature-cards,
    .why-matters-grid,
    .related-pages-grid {
        grid-template-columns: 1fr !important;
    }

    .service-pro-sidebar {
        position: static !important;
    }
}

.hero-search-card,
.hero-support-card,
.home-hero-card,
.service-highlight-card,
.service-detail-card,
.hero-card,
.service-hero-card {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #1f2937 !important;
}

.hero-search-card *,
.hero-support-card *,
.home-hero-card *,
.service-highlight-card *,
.service-detail-card *,
.hero-card *,
.service-hero-card * {
    color: inherit !important;
}

.hero-search-card h2,
.hero-support-card h2,
.home-hero-card h2,
.service-highlight-card h2,
.service-detail-card h2,
.hero-card h2,
.service-hero-card h2 {
    color: #124a84 !important;
}

.hero-search-card p,
.hero-support-card p,
.home-hero-card p,
.service-highlight-card p,
.service-detail-card p,
.hero-card p,
.service-hero-card p {
    color: #5f6f82 !important;
}

.hero-search-card strong,
.hero-support-card strong,
.home-hero-card strong,
.service-highlight-card strong,
.service-detail-card strong,
.hero-card strong,
.service-hero-card strong {
    color: #1f2937 !important;
}

.hero-search-card input,
.hero-support-card input,
.home-hero-card input,
.service-highlight-card input,
.service-detail-card input,
.hero-card input,
.service-hero-card input {
    color: #1f2937 !important;
    background: #ffffff !important;
}

.hero-search-card input::placeholder,
.hero-support-card input::placeholder,
.home-hero-card input::placeholder,
.service-highlight-card input::placeholder,
.service-detail-card input::placeholder,
.hero-card input::placeholder,
.service-hero-card input::placeholder {
    color: #5f6f82 !important;
    opacity: 1 !important;
}

.hero-search-card button,
.hero-support-card button,
.home-hero-card button,
.service-highlight-card button,
.service-detail-card button,
.hero-card button,
.service-hero-card button {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}
/* =========================================================
   FINAL THLIN ABSOLUTE EOF OVERRIDES v3
========================================================= */

.site-header.is-home-header {
    position: absolute !important;
    top: 1.5rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.site-header.is-inner-header {
    position: relative !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    background: #ffffff !important;
}

.nav-wrapper .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.nav-shell,
.header-inner {
    min-height: 76px !important;
    padding: 0.85rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.14) !important;
    backdrop-filter: blur(14px) !important;
}

.nav-link {
    color: #1f2937 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.nav-link.is-active {
    color: #124a84 !important;
}

.nav-cta {
    background: #185FA5 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    min-height: 52px !important;
    padding: 0 1.6rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.home-hero {
    padding-top: 9rem !important;
    padding-bottom: 4.5rem !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.home-section,
.home-help-section,
.home-about-section,
.home-products-section,
.portfolio-section,
.thlin-final-cta {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.home-help-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
}

.home-about-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background: #f5f7fb !important;
    overflow: visible !important;
}

.home-products-section,
.portfolio-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.home-help-section + .home-about-section,
.home-about-section + .home-products-section,
.home-products-section + .portfolio-section {
    padding-top: 3.5rem !important;
}

.home-about-grid,
.about-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.about-highlight-card {
    margin-top: 0 !important;
    top: auto !important;
    transform: none !important;
    align-self: center !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.home-product-card {
    background: #ffffff !important;
    border: 2px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    padding: 2.4rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    transition: all 0.22s ease !important;
}

.home-product-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.home-product-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.home-product-card:hover {
    transform: translateY(-6px) !important;
    border-color: #185FA5 !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.home-product-card h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.home-product-card p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.thlin-final-cta {
    width: 100% !important;
    background: #f5f7fb !important;
    padding: 4rem 1rem !important;
    margin: 0 !important;
}

.thlin-final-cta-container {
    width: min(1180px, 100%) !important;
    margin: 0 auto !important;
}

.thlin-final-cta-card {
    background: linear-gradient(135deg, #124a84 0%, #185FA5 100%) !important;
    border-radius: 32px !important;
    padding: 3.2rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 2rem !important;
    align-items: center !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.22) !important;
}

.thlin-final-cta-card,
.thlin-final-cta-card * {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

.thlin-final-cta-copy h2 {
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 900 !important;
}

.thlin-final-cta-copy p,
.thlin-final-cta-kicker {
    color: rgba(255, 255, 255, 0.92) !important;
}

.thlin-final-cta-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.thlin-final-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    min-width: 170px !important;
    padding: 0 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-final-cta-btn-primary {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
}

.thlin-final-cta-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.service-detail-content,
.service-content-grid,
.search-page-section,
.guided-service-section,
.contact-page-section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: auto !important;
}

@media (max-width: 900px) {
    .site-header.is-home-header {
        position: relative !important;
        top: auto !important;
        padding: 0.75rem 1rem !important;
        background: #ffffff !important;
    }

    .home-hero {
        padding-top: 4rem !important;
        padding-bottom: 3.5rem !important;
    }

    .home-help-section,
    .home-about-section,
    .home-products-section,
    .portfolio-section,
    .thlin-final-cta,
    .search-page-section,
    .guided-service-section,
    .contact-page-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .home-about-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .thlin-final-cta-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }

    .thlin-final-cta-actions {
        justify-content: flex-start !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* =========================================================
   FINAL LAST UPDATED DATE FIX (EOF OVERRIDE)
========================================================= */

.page-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #dbe7f3 !important;
}

.page-last-updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0.6rem 0.95rem !important;
    color: #5f6f82 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

.page-last-updated::before {
    content: "�" !important;
    color: #185FA5 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.service-main-card .page-meta-row,
.service-pro-card .page-meta-row,
.about-main-card .page-meta-row,
.page-content-card .page-meta-row {
    justify-content: flex-end !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 700px) {
    .page-meta-row {
        justify-content: flex-start !important;
    }

    .page-last-updated {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =========================================================
   FINAL LAST UPDATED DATE INSIDE CONTENT CARD
========================================================= */

.service-main-card .page-meta-row,
.service-pro-card .page-meta-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid #dbe7f3 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.service-main-card .page-last-updated,
.service-pro-card .page-last-updated {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 999px !important;
    padding: 0.6rem 0.95rem !important;
    color: #5f6f82 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.service-main-card .page-last-updated::before,
.service-pro-card .page-last-updated::before {
    content: "�" !important;
    color: #185FA5 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

section > .page-last-updated,
.service-detail-content > .page-last-updated,
.full-width-section > .page-last-updated,
.thlin-final-cta + .page-last-updated,
.page-cta + .page-last-updated,
.content-updated {
    display: none !important;
}

/* =========================================================
   FOOTER BRAND CLEANUP
========================================================= */

.footer-brand {
    max-width: 360px !important;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    text-decoration: none !important;
}

.footer-logo img {
    display: block !important;
    height: 46px !important;
    width: auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.35rem !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.86) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* =========================================================
   ACCESSIBILITY: PREFERS CONTRAST
========================================================= */

@media (prefers-contrast: more) {
    body {
        background: #ffffff !important;
        color: #1f2937 !important;
    }

    a {
        color: #124a84 !important;
        text-decoration: underline !important;
        text-underline-offset: 4px !important;
    }

    button,
    .btn,
    .nav-cta,
    .learn-more-btn,
    .thlin-final-cta-btn,
    .contact-submit,
    .contact-submit-btn {
        border: 2px solid currentColor !important;
        box-shadow: none !important;
    }

    .card,
    .home-product-card,
    .home-project-card,
    .service-main-card,
    .service-pro-card,
    .about-highlight-card,
    .search-main-card,
    .guided-service-card {
        border: 2px solid #124a84 !important;
        box-shadow: none !important;
    }

    .home-hero,
    .service-detail-hero {
        background-color: #124a84 !important;
    }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   ACCESSIBILITY: KEYBOARD FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 4px solid rgba(24, 95, 165, 0.35) !important;
    outline-offset: 3px !important;
    border-color: #185FA5 !important;
}

.site-nav > ul > li:focus-within > ul {
    display: block !important;
}

/* =========================================================
   ACCESSIBILITY TOOLBAR SAFETY OFF
========================================================= */

.accessibility-toolbar,
.site-accessibility-toolbar {
    display: none !important;
}

/* =========================================================
   ZOOM/RESPONSIVE READABILITY SUPPORT
========================================================= */

.container,
.section-container,
.inner-container {
    width: min(1180px, calc(100% - 2rem)) !important;
}

.section-heading h2,
.home-projects-header h2,
.related-pages-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

/* =========================================================
   FINAL FOOTER LOGO FIX
========================================================= */

.footer-brand {
    max-width: 360px !important;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
}

.footer-logo img {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* =========================================================
   FINAL CONTACT PAGE CLEANUP
========================================================= */

.contact-page-section {
    background: #f5f7fb !important;
    padding: 4rem 0 5rem !important;
    margin: 0 !important;
}

.contact-page-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.contact-page-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.contact-page-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.contact-page-header h1 {
    color: #124a84 !important;
    font-size: clamp(2.6rem, 5vw, 4.2rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0.8rem 0 0.9rem !important;
}

.contact-page-header p {
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.contact-page-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr) !important;
    gap: 2rem !important;
    align-items: stretch !important;
}

.contact-form-card,
.contact-info-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 2.6rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    filter: none !important;
}

.contact-form-card {
    border-top: 6px solid #185FA5 !important;
}

.contact-info-card {
    border-top: 6px solid #BA7517 !important;
}

.contact-form-card *,
.contact-info-card * {
    opacity: 1 !important;
    filter: none !important;
}

.contact-card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    background: rgba(24, 95, 165, 0.10) !important;
    color: #185FA5 !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    margin-bottom: 1.5rem !important;
}

.contact-info-icon {
    display: none !important;
}

.contact-info-block {
    padding: 1.1rem 0 !important;
    border-bottom: 1px solid #dbe7f3 !important;
}

.contact-info-block:last-of-type {
    border-bottom: 0 !important;
}

.contact-label {
    display: block !important;
    color: #185FA5 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.45rem !important;
}

.contact-info-block p {
    color: #1f2937 !important;
    margin: 0 !important;
    line-height: 1.65 !important;
    font-weight: 700 !important;
}

.contact-info-block a {
    color: #124a84 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.contact-info-block a:hover {
    color: #185FA5 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

.contact-info-note {
    margin-top: 1.5rem !important;
    padding: 1.4rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 5px solid #3B6D11 !important;
    border-radius: 18px !important;
}

.contact-info-note h3 {
    color: #124a84 !important;
    margin: 0 0 0.6rem !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

.contact-info-note p {
    color: #5f6f82 !important;
    margin: 0 0 1rem !important;
    line-height: 1.65 !important;
}

.contact-info-note a {
    color: #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.contact-info-note a::after {
    content: " ->" !important;
}

.contact-form-card form {
    display: grid !important;
    gap: 1.2rem !important;
}

.contact-form-card label {
    display: block !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin-bottom: 0.45rem !important;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    width: 100% !important;
    min-height: 54px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 14px !important;
    padding: 0 1rem !important;
    font-weight: 700 !important;
    outline: none !important;
}

.contact-form-card textarea {
    min-height: 160px !important;
    padding-top: 1rem !important;
    resize: vertical !important;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
    border-color: #185FA5 !important;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14) !important;
}

.contact-submit-btn,
.contact-form-card button[type="submit"],
.contact-form-card input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 54px !important;
    min-width: 170px !important;
    padding: 0 1.6rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.contact-submit-btn:hover,
.contact-form-card button[type="submit"]:hover,
.contact-form-card input[type="submit"]:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
    transform: translateY(-2px) !important;
}

.contact-hero,
.contact-page-hero,
.inner-hero {
    margin-bottom: 0 !important;
}

@media (max-width: 900px) {
    .contact-page-section {
        padding: 3rem 0 !important;
    }

    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem !important;
    }

    .contact-submit-btn,
    .contact-form-card button[type="submit"],
    .contact-form-card input[type="submit"] {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL CLEAN THLIN STATS SECTION - NO OLD CLASS CONFLICT
========================================================= */

.thlin-stats-section {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    background: #f5f7fb !important;
    padding: 4rem 0 !important;
    margin: 0 !important;
    clear: both !important;
    overflow: visible !important;
}

.thlin-stats-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 21 !important;
}

.thlin-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 1.4rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
    position: relative !important;
    z-index: 22 !important;
    margin: 0 !important;
    transform: none !important;
    top: auto !important;
    overflow: visible !important;
}

.thlin-stat-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.5rem !important;
    min-height: 155px !important;
    position: relative !important;
    overflow: visible !important;
}

.thlin-stat-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.10) !important;
    color: #185FA5 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.thlin-stat-card:nth-child(2) .thlin-stat-label {
    background: rgba(59, 109, 17, 0.12) !important;
    color: #3B6D11 !important;
}

.thlin-stat-card:nth-child(3) .thlin-stat-label {
    background: rgba(186, 117, 23, 0.14) !important;
    color: #BA7517 !important;
}

.thlin-stat-card strong {
    display: block !important;
    color: #124a84 !important;
    font-size: clamp(2.1rem, 4vw, 3.4rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0 0 0.5rem !important;
}

.thlin-stat-card p {
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.home-hero {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}

.home-hero + .thlin-stats-section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

@media (max-width: 1000px) {
    .thlin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .thlin-stats-section {
        padding: 3rem 0 !important;
    }

    .thlin-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .thlin-stat-card {
        min-height: auto !important;
    }
}

/* =========================================================
   FINAL PORTFOLIO SECTION FIX
========================================================= */

.thlin-portfolio-section {
    background: #f5f7fb !important;
    padding: 4.5rem 0 !important;
    margin: 0 !important;
}

.thlin-portfolio-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.thlin-portfolio-header {
    max-width: 820px !important;
    margin-bottom: 2.2rem !important;
}

.thlin-portfolio-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.thlin-portfolio-header h2 {
    color: #124a84 !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
    margin: 0.9rem 0 1rem !important;
}

.thlin-portfolio-header p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.thlin-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

.thlin-portfolio-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
    transition: all 0.22s ease !important;
}

.thlin-portfolio-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.thlin-portfolio-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.thlin-portfolio-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 28px 75px rgba(18, 74, 132, 0.16) !important;
}

.thlin-portfolio-image {
    width: 100% !important;
    height: 220px !important;
    background: #f1f5f9 !important;
    overflow: hidden !important;
    border-bottom: 1px solid #dbe7f3 !important;
}

.thlin-portfolio-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

.thlin-portfolio-card:hover .thlin-portfolio-image img {
    transform: scale(1.03) !important;
}

.thlin-portfolio-content {
    padding: 1.6rem !important;
}

.thlin-portfolio-tag {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 0.9rem !important;
    color: #BA7517 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

.thlin-portfolio-content h3 {
    color: #124a84 !important;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    margin: 0 0 0.8rem !important;
}

.thlin-portfolio-content p {
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1.2rem !important;
}

.thlin-portfolio-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    color: #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-portfolio-link::after {
    content: "->" !important;
    transition: transform 0.2s ease !important;
}

.thlin-portfolio-link:hover {
    color: #124a84 !important;
}

.thlin-portfolio-link:hover::after {
    transform: translateX(4px) !important;
}

@media (max-width: 1000px) {
    .thlin-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .thlin-portfolio-section {
        padding: 3rem 0 !important;
    }

    .thlin-portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .thlin-portfolio-image {
        height: 200px !important;
    }
}

/* =========================================================
   FINAL HOMEPAGE QUICK CARDS FIX
========================================================= */

.home-quick-cards-section {
    display: block !important;
    background: #f5f7fb !important;
    padding: 2.75rem 0 !important;
}

.home-quick-cards-section .section-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-quick-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
}

.home-quick-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.35rem !important;
    text-decoration: none !important;
    color: inherit !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 5px solid #185FA5 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 34px rgba(18, 74, 132, 0.10) !important;
    min-height: 160px !important;
}

.home-quick-card__img {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    object-fit: contain !important;
    display: block !important;
}

.home-quick-card__body {
    display: block !important;
    min-width: 0 !important;
}

.home-quick-card__body h3 {
    margin: 0 0 0.45rem !important;
    color: #124a84 !important;
    font-size: 1.18rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.home-quick-card__body p {
    margin: 0 !important;
    color: #5f6f82 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.home-quick-card:hover {
    transform: translateY(-4px) !important;
    border-color: #185FA5 !important;
}

@media (max-width: 980px) {
    .home-quick-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .home-quick-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .home-quick-card {
        min-height: auto !important;
    }
}

/* =========================================================
   FINAL HARD FIX: STATS MUST NOT BE HIDDEN BY HERO
========================================================= */

.home-hero {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.home-stats-section {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    background: #f5f7fb !important;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    margin-top: 0 !important;
    transform: none !important;
    top: auto !important;
    overflow: visible !important;
    clear: both !important;
}

.home-hero + .home-stats-section,
.hero-section + .home-stats-section {
    margin-top: 0 !important;
    padding-top: 3.5rem !important;
}

.home-stats-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
}

.home-stats-card {
    position: relative !important;
    z-index: 11 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1.4rem !important;
    top: auto !important;
    transform: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
}

.home-stat-item {
    position: relative !important;
    z-index: 12 !important;
    min-height: 150px !important;
    padding: 1.5rem !important;
    overflow: visible !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
}

.home-stat-item strong {
    display: block !important;
    color: #124a84 !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    line-height: 1 !important;
    margin: 0 0 0.5rem !important;
    font-weight: 900 !important;
}

.home-stat-item p {
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

@media (max-width: 1000px) {
    .home-stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .home-stats-card {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   FINAL STATS SECTION CUT-OFF FIX
========================================================= */

.home-stats-section {
    position: relative !important;
    z-index: 5 !important;
    background: #f5f7fb !important;
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

.home-hero + .home-stats-section,
.hero-section + .home-stats-section {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

.home-stats-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

.home-stats-card {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

.home-stat-item {
    overflow: visible !important;
}

.home-hero {
    overflow: visible !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   FINAL HERO BUTTON VISIBILITY FIX
========================================================= */

.hero-primary-btn,
.home-hero-actions .hero-primary-btn,
.home-hero a.hero-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 170px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.hero-primary-btn:hover,
.home-hero-actions .hero-primary-btn:hover,
.home-hero a.hero-primary-btn:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

.hero-secondary-btn,
.home-hero-actions .hero-secondary-btn,
.home-hero a.hero-secondary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    min-width: 170px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-secondary-btn:hover,
.home-hero-actions .hero-secondary-btn:hover,
.home-hero a.hero-secondary-btn:hover {
    background: #ffffff !important;
    color: #124a84 !important;
    border-color: #ffffff !important;
}

/* =========================================================
   FINAL HERO SEARCH CARD WIDTH FIX
========================================================= */

.home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.85fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.hero-service-card {
    width: 100% !important;
    max-width: 540px !important;
    justify-self: end !important;
    padding: 2.6rem !important;
    border-radius: 30px !important;
}

.hero-service-card h2 {
    font-size: clamp(2rem, 3vw, 2.9rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    max-width: 100% !important;
}

.hero-service-card p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.hero-service-list li {
    line-height: 1.45 !important;
}

.hero-clean-search,
.hero-service-card form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.7rem !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    padding: 0.65rem !important;
}

.hero-clean-search input,
.hero-service-card form input[type="search"] {
    min-height: 52px !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 1rem !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
}

.hero-clean-search button,
.hero-service-card form button[type="submit"] {
    min-height: 52px !important;
    padding: 0 1.35rem !important;
    border-radius: 13px !important;
    border: 2px solid #BA7517 !important;
    background: #BA7517 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.hero-clean-search button:hover,
.hero-service-card form button[type="submit"]:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
}

/* Keep hero aligned inside centered container. */
.home-hero-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-service-card {
        max-width: 100% !important;
        justify-self: stretch !important;
        padding: 2rem !important;
    }

    .hero-clean-search,
    .hero-service-card form {
        grid-template-columns: 1fr !important;
    }

    .hero-clean-search button,
    .hero-service-card form button[type="submit"] {
        width: 100% !important;
    }

    .home-hero-actions a {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL HERO CARD DESKTOP WIDTH FIX
========================================================= */

.home-hero-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.home-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 520px !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.home-hero-copy {
    max-width: 650px !important;
}

.hero-service-card {
    width: 100% !important;
    max-width: 520px !important;
    justify-self: end !important;
    padding: 2.4rem !important;
    border-radius: 30px !important;
}

.hero-service-card h2 {
    color: #124a84 !important;
    font-size: clamp(1.9rem, 2.4vw, 2.55rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
    font-weight: 900 !important;
    max-width: 100% !important;
    margin-bottom: 1rem !important;
}

.hero-service-card p {
    color: #5f6f82 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.3rem !important;
}

.hero-service-list {
    display: grid !important;
    gap: 0.75rem !important;
    margin-bottom: 1.4rem !important;
}

.hero-service-list li {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
}

.hero-clean-search,
.hero-service-card form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 120px !important;
    gap: 0.7rem !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    padding: 0.65rem !important;
}

.hero-clean-search input,
.hero-service-card form input[type="search"] {
    min-height: 52px !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 1rem !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
}

.hero-clean-search button,
.hero-service-card form button[type="submit"] {
    min-height: 52px !important;
    width: 120px !important;
    border-radius: 13px !important;
    border: 2px solid #BA7517 !important;
    background: #BA7517 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.hero-primary-btn,
.home-hero-actions .hero-primary-btn,
.home-hero a.hero-primary-btn {
    background: #ffffff !important;
    color: #124a84 !important;
    border: 2px solid #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.hero-primary-btn *,
.home-hero-actions .hero-primary-btn * {
    color: #124a84 !important;
}

.hero-primary-btn:hover,
.home-hero-actions .hero-primary-btn:hover,
.home-hero a.hero-primary-btn:hover {
    background: #BA7517 !important;
    color: #ffffff !important;
    border-color: #BA7517 !important;
}

.hero-primary-btn:hover *,
.home-hero-actions .hero-primary-btn:hover * {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-service-card {
        max-width: 100% !important;
        justify-self: stretch !important;
        padding: 2rem !important;
    }

    .hero-clean-search,
    .hero-service-card form {
        grid-template-columns: 1fr !important;
    }

    .hero-clean-search button,
    .hero-service-card form button[type="submit"] {
        width: 100% !important;
    }
}

/* =========================================================
   HOMEPAGE HERO TO NEXT SECTION CLEANUP
========================================================= */

.home-hero {
    margin-bottom: 0 !important;
}

.home-hero + .home-stats-section,
.home-hero + .home-help-section,
.home-hero + .quick-access {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

.home-stats-section {
    position: relative !important;
    z-index: 5 !important;
}

/* =========================================================
   HOMEPAGE HEALTHLINE LAYOUT STABILIZER
========================================================= */

.home-healthline-section .home-healthline-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr) !important;
    align-items: center !important;
    gap: 2rem !important;
}

.home-healthline-section .home-healthline-grid > .reveal-on-scroll:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.home-healthline-section .home-healthline-grid > .reveal-on-scroll:first-child p {
    margin-bottom: 1.25rem !important;
}

.home-healthline-section .home-healthline-grid > .reveal-on-scroll:first-child .learn-more-btn,
.home-healthline-section .home-healthline-grid > .reveal-on-scroll:first-child a.learn-more-btn {
    position: static !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    z-index: auto !important;
}

.home-healthline-section .home-healthline-visual {
    display: block !important;
    width: 100% !important;
}

.home-healthline-section .home-healthline-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 28px !important;
}

@media (max-width: 980px) {
    .home-healthline-section .home-healthline-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* =========================================================
   FINAL HOME HERO ALIGNMENT FIX
========================================================= */

.home-hero {
    position: relative !important;
    overflow: hidden !important;
    padding-top: 9rem !important;
    padding-bottom: 5rem !important;
    margin: 0 !important;
}

.home-hero-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.home-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr) !important;
    gap: 3rem !important;
    align-items: center !important;
}

.home-hero-copy {
    max-width: 660px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-hero-copy h1 {
    color: #ffffff !important;
    font-size: clamp(3.4rem, 5.8vw, 5.5rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
    font-weight: 900 !important;
    margin: 1rem 0 1.4rem !important;
    max-width: 680px !important;
}

.home-hero-copy p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.03rem !important;
    line-height: 1.75 !important;
    max-width: 650px !important;
    margin: 0 0 1.8rem !important;
}

.home-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
}

/* Guard against legacy rules that push hero content to viewport edge. */
.home-hero .container,
.home-hero-container,
.home-hero-grid,
.home-hero-copy {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    transform: none !important;
}

.home-hero .container,
.home-hero-container,
.home-hero-grid {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 0 !important;
}

/* =========================================================
   HERO TO CONTENT SECTION SPACING
========================================================= */

.home-hero + section {
    margin-top: 0 !important;
}

.home-service-intro,
.home-directory-section,
.home-overview-section {
    background: #f5f7fb !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Actual homepage section names in this project. */
.home-hero + .home-section.home-quick-cards-section {
    padding-top: 3.25rem !important;
}

.home-quick-cards-section {
    padding-bottom: 2.75rem !important;
}

.home-healthline-section {
    padding-top: 2.25rem !important;
}

/* =========================================================
   HOME CONTENT GRID SPACING
========================================================= */

.home-directory-section .container,
.home-service-intro .container,
.home-overview-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.home-directory-grid,
.home-service-intro-grid,
.home-overview-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

.home-directory-grid img,
.home-service-intro-grid img,
.home-overview-grid img {
    width: 100% !important;
    height: auto !important;
    border-radius: 28px !important;
    object-fit: cover !important;
}

@media (max-width: 900px) {
    .home-hero {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .home-hero-grid,
    .home-directory-grid,
    .home-service-intro-grid,
    .home-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .home-hero-copy h1 {
        font-size: clamp(2.8rem, 13vw, 4.2rem) !important;
    }

    .home-hero-actions a {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL HOME HERO WIDTH + ALIGNMENT FIX
========================================================= */

.home-hero {
    position: relative !important;
    overflow: hidden !important;
    padding-top: 9rem !important;
    padding-bottom: 5rem !important;
    margin: 0 !important;
}

.home-hero-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.home-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr) !important;
    gap: 3rem !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.home-hero-copy {
    max-width: 650px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-hero-copy h1 {
    color: #ffffff !important;
    font-size: clamp(3rem, 5.4vw, 5.2rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
    font-weight: 900 !important;
    margin: 1rem 0 1.4rem !important;
    max-width: 650px !important;
}

.home-hero-copy p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    max-width: 640px !important;
    margin: 0 0 1.8rem !important;
}

.hero-service-card {
    width: 100% !important;
    max-width: 460px !important;
    justify-self: end !important;
}

/* Neutralize legacy rules that cause edge clipping and drift. */
.home-hero,
.home-hero-container,
.home-hero-grid,
.home-hero-copy,
.hero-service-card {
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.home-hero-container,
.home-hero-grid,
.home-hero-copy,
.hero-service-card {
    max-width: 1180px !important;
}

/* =========================================================
   SECTION AFTER HERO ALIGNMENT FIX
========================================================= */

.home-directory-section,
.home-service-intro,
.home-overview-section {
    background: #f5f7fb !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    margin: 0 !important;
}

.home-directory-section .container,
.home-service-intro .container,
.home-overview-section .container {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home-directory-grid,
.home-service-intro-grid,
.home-overview-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr) !important;
    gap: 3.5rem !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .home-hero {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .home-hero-grid,
    .home-directory-grid,
    .home-service-intro-grid,
    .home-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .home-hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 4rem) !important;
    }

    .hero-service-card {
        max-width: 100% !important;
        justify-self: stretch !important;
    }

    .home-hero-actions a {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL CONTACT PAGE CONTAINER FIX
========================================================= */

.contact-page-section {
    background: #f5f7fb !important;
    padding: 5rem 0 !important;
    margin: 0 !important;
}

.contact-page-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.contact-page-header {
    max-width: 820px !important;
    margin-bottom: 2.5rem !important;
}

.contact-page-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.contact-page-header h1 {
    color: #124a84 !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0.9rem 0 1rem !important;
}

.contact-page-header p {
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.contact-page-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr) !important;
    gap: 2rem !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.contact-form-card,
.contact-info-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 2.5rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    filter: none !important;
}

.contact-info-card {
    border-top-color: #BA7517 !important;
}

.contact-form-card *,
.contact-info-card * {
    opacity: 1 !important;
    filter: none !important;
}

/* =========================================================
   CONTACT FORM FIELD POLISH
========================================================= */

.contact-form-card form {
    display: grid !important;
    gap: 1.2rem !important;
}

.contact-form-card label {
    display: block !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin-bottom: 0.45rem !important;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    width: 100% !important;
    min-height: 54px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 14px !important;
    padding: 0 1rem !important;
    font-weight: 700 !important;
    outline: none !important;
}

.contact-form-card textarea {
    min-height: 160px !important;
    padding-top: 1rem !important;
    resize: vertical !important;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #5f6f82 !important;
    opacity: 1 !important;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
    border-color: #185FA5 !important;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14) !important;
}

/* =========================================================
   FINAL CONTACT SUBMIT BUTTON CONTRAST FIX
========================================================= */

.contact-submit-btn,
.contact-form-card button[type="submit"],
.contact-form-card input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 54px !important;
    min-width: 170px !important;
    padding: 0 1.6rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

.contact-submit-btn:hover,
.contact-form-card button[type="submit"]:hover,
.contact-form-card input[type="submit"]:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
    transform: translateY(-2px) !important;
}

.contact-submit-btn:focus-visible,
.contact-form-card button[type="submit"]:focus-visible,
.contact-form-card input[type="submit"]:focus-visible {
    outline: 4px solid rgba(24, 95, 165, 0.28) !important;
    outline-offset: 3px !important;
}

/* =========================================================
   CONTACT INFO CARD CONTRAST
========================================================= */

.contact-info-card h2,
.contact-info-card h3,
.contact-info-card strong {
    color: #124a84 !important;
    font-weight: 900 !important;
}

.contact-info-card p,
.contact-info-card li,
.contact-info-card span {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
}

.contact-info-card a {
    color: #124a84 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.contact-info-card a:hover {
    color: #185FA5 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

@media (max-width: 900px) {
    .contact-page-section {
        padding: 3rem 0 !important;
    }

    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem !important;
    }

    .contact-submit-btn,
    .contact-form-card button[type="submit"],
    .contact-form-card input[type="submit"] {
        width: 100% !important;
    }
}

/* =========================================================
   FINAL CLEAN THLIN STATS SECTION - NO OLD CLASS CONFLICT
========================================================= */

.thlin-stats-section {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    background: #f5f7fb !important;
    padding: 4rem 0 !important;
    margin: 0 !important;
    clear: both !important;
    overflow: visible !important;
}

.thlin-stats-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 21 !important;
}

.thlin-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 1.4rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.12) !important;
    position: relative !important;
    z-index: 22 !important;
    margin: 0 !important;
    transform: none !important;
    top: auto !important;
    overflow: visible !important;
}

.thlin-stat-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.5rem !important;
    min-height: 155px !important;
    position: relative !important;
    overflow: visible !important;
}

.thlin-stat-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
    border-radius: 50% !important;
    background: rgba(24, 95, 165, 0.10) !important;
    color: #185FA5 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.thlin-stat-card:nth-child(2) .thlin-stat-label {
    background: rgba(59, 109, 17, 0.12) !important;
    color: #3B6D11 !important;
}

.thlin-stat-card:nth-child(3) .thlin-stat-label {
    background: rgba(186, 117, 23, 0.14) !important;
    color: #BA7517 !important;
}

.thlin-stat-card strong {
    display: block !important;
    color: #124a84 !important;
    font-size: clamp(2.1rem, 4vw, 3.4rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0 0 0.5rem !important;
}

.thlin-stat-card p {
    color: #1f2937 !important;
    font-weight: 900 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.home-hero {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}

.home-hero + .thlin-stats-section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

@media (max-width: 1000px) {
    .thlin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .thlin-stats-section {
        padding: 3rem 0 !important;
    }

    .thlin-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .thlin-stat-card {
        min-height: auto !important;
    }
}

/* =========================================================
   FINAL PORTFOLIO EOF PRIORITY FIX
========================================================= */

.thlin-portfolio-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f5f7fb !important;
    padding: 4.5rem 0 !important;
    margin: 0 !important;
}

.thlin-portfolio-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.thlin-portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

.thlin-portfolio-card {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.10) !important;
}

.thlin-portfolio-image {
    width: 100% !important;
    height: 220px !important;
    background: #f1f5f9 !important;
    overflow: hidden !important;
    border-bottom: 1px solid #dbe7f3 !important;
}

.thlin-portfolio-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.thlin-portfolio-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #5f6f82 !important;
    font-weight: 800 !important;
    background: #f8fafc !important;
}

.thlin-portfolio-content {
    display: block !important;
    padding: 1.6rem !important;
}

.thlin-portfolio-link {
    display: inline-flex !important;
    align-items: center !important;
    color: #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

@media (max-width: 1000px) {
    .thlin-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .thlin-portfolio-section {
        padding: 3rem 0 !important;
    }

    .thlin-portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .thlin-portfolio-image {
        height: 200px !important;
    }
}

/* =========================================================
   FINAL SEARCH PAGE REDESIGN
========================================================= */

.thlin-search-page {
    background: #f5f7fb !important;
    padding: 5rem 0 !important;
    margin: 0 !important;
}

.thlin-search-container {
    width: min(1080px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.thlin-search-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.thlin-search-header .section-kicker,
.thlin-guided-search-header .section-kicker,
.thlin-search-results-header .section-kicker {
    color: #185FA5 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.thlin-search-header h1 {
    color: #124a84 !important;
    font-size: clamp(2.6rem, 5vw, 4.2rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0.9rem 0 1rem !important;
}

.thlin-search-header p {
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.thlin-search-panel {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 2rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    margin-bottom: 2rem !important;
}

.thlin-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    gap: 0.9rem !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 20px !important;
    padding: 0.75rem !important;
}

.thlin-search-form input {
    width: 100% !important;
    min-height: 58px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    padding: 0 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    outline: none !important;
}

.thlin-search-form input::placeholder {
    color: #5f6f82 !important;
    opacity: 1 !important;
}

.thlin-search-form input:focus {
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.14) !important;
}

.thlin-search-form button {
    min-height: 58px !important;
    border-radius: 15px !important;
    border: 2px solid #BA7517 !important;
    background: #BA7517 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.thlin-search-form button:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
}

.thlin-search-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem !important;
    align-items: center !important;
    margin-top: 1.3rem !important;
}

.thlin-search-suggestions span {
    color: #5f6f82 !important;
    font-weight: 900 !important;
    margin-right: 0.2rem !important;
}

.thlin-search-suggestions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 1rem !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.thlin-search-suggestions a:hover {
    background: #185FA5 !important;
    border-color: #185FA5 !important;
    color: #ffffff !important;
}

.thlin-guided-search {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.08) !important;
}

.thlin-guided-search-header {
    max-width: 760px !important;
    margin-bottom: 1.5rem !important;
}

.thlin-guided-search-header h2 {
    color: #124a84 !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    margin: 0.8rem 0 0.7rem !important;
}

.thlin-guided-search-header p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.thlin-guided-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
}

.thlin-guided-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 5px solid #185FA5 !important;
    border-radius: 22px !important;
    padding: 1.4rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.thlin-guided-card:nth-child(2) {
    border-top-color: #3B6D11 !important;
}

.thlin-guided-card:nth-child(3) {
    border-top-color: #BA7517 !important;
}

.thlin-guided-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 45px rgba(18, 74, 132, 0.13) !important;
}

.thlin-guided-card strong {
    color: #124a84 !important;
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
}

.thlin-guided-card span {
    color: #5f6f82 !important;
    line-height: 1.6 !important;
    font-weight: 600 !important;
}

.thlin-search-results {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 55px rgba(18, 74, 132, 0.08) !important;
}

.thlin-search-results-header h2 {
    color: #124a84 !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    font-weight: 900 !important;
    margin: 0.8rem 0 1.5rem !important;
}

.thlin-search-result-card {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 20px !important;
    padding: 1.4rem !important;
    margin-bottom: 1rem !important;
    text-decoration: none !important;
}

.thlin-search-result-card h3 {
    color: #124a84 !important;
    margin: 0 0 0.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
}

.thlin-search-result-card p {
    color: #5f6f82 !important;
    margin: 0 !important;
    line-height: 1.65 !important;
}

@media (max-width: 900px) {
    .thlin-search-form {
        grid-template-columns: 1fr !important;
    }

    .thlin-search-form button {
        width: 100% !important;
    }

    .thlin-guided-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .thlin-search-page {
        padding: 3rem 0 !important;
    }

    .thlin-search-panel,
    .thlin-guided-search,
    .thlin-search-results {
        padding: 1.4rem !important;
        border-radius: 24px !important;
    }

    .thlin-guided-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Search breadcrumb inside redesigned search header */
.thlin-search-breadcrumb {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    margin-bottom: 1.3rem !important;
    color: #5f6f82 !important;
    font-weight: 800 !important;
}

.thlin-search-breadcrumb a {
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.thlin-search-breadcrumb a:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

/* Final popular search chip polish */
.thlin-search-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    margin-top: 1.4rem !important;
}

.thlin-search-suggestions span {
    color: #5f6f82 !important;
    font-weight: 900 !important;
    margin-right: 0.25rem !important;
}

.thlin-search-suggestions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 1.05rem !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.thlin-search-suggestions a:hover,
.thlin-search-suggestions a:focus-visible {
    background: #185FA5 !important;
    border-color: #185FA5 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* =========================================================
   PATIENT PORTALS CLEAN CONTAINER SYSTEM
========================================================= */

.service-detail-content.patient-portals-page {
    background: #f5f7fb !important;
    padding: 4rem 0 5rem !important;
    margin: 0 !important;
}

.service-detail-content.patient-portals-page .service-detail-container {
    width: min(1120px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.service-detail-content.patient-portals-page .service-detail-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    overflow: hidden !important;
}

.service-detail-content.patient-portals-page .service-rich-content {
    max-width: 920px !important;
    margin: 0 auto !important;
}

/* Remove accidental floating checkmark pseudo icon on Patient Portals rich content. */
.service-detail-content.patient-portals-page .service-rich-content li::before {
    display: none !important;
    content: none !important;
}

.service-detail-content.patient-portals-page .service-rich-content li {
    position: static !important;
    padding-left: 0 !important;
}

/* =========================================================
   PATIENT PORTALS SECTION SPACING BALANCE
========================================================= */

.service-detail-content.patient-portals-page .service-rich-content h2,
.service-detail-content.patient-portals-page .service-rich-content h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.12 !important;
}

.service-detail-content.patient-portals-page .service-rich-content h2 {
    font-size: clamp(2rem, 3.6vw, 3rem) !important;
    margin: 2.8rem 0 1rem !important;
    padding: 0 !important;
}

.service-detail-content.patient-portals-page .service-rich-content h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
    margin: 2.2rem 0 0.8rem !important;
}

.service-detail-content.patient-portals-page .service-rich-content p {
    color: #5f6f82 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    margin: 0 0 1.4rem !important;
}

.service-detail-content.patient-portals-page .service-rich-content section,
.service-detail-content.patient-portals-page .service-content-block,
.service-detail-content.patient-portals-page .patient-section-card {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.service-detail-content.patient-portals-page .patient-section-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 2rem !important;
}

/* =========================================================
   PATIENT PORTALS USER-FRIENDLY CARD
========================================================= */

.patient-feature-card,
.service-rich-content .patient-feature-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 22px !important;
    padding: 1.8rem 2rem !important;
    margin: 2rem 0 !important;
}

.patient-feature-card h3,
.patient-feature-card h2,
.service-rich-content .patient-feature-card h3,
.service-rich-content .patient-feature-card h2 {
    color: #124a84 !important;
    font-size: clamp(1.7rem, 3vw, 2.3rem) !important;
    line-height: 1.15 !important;
    margin: 0 0 0.9rem !important;
}

.patient-feature-card p,
.service-rich-content .patient-feature-card p {
    margin-bottom: 0 !important;
}

/* =========================================================
   PATIENT PORTALS SOLUTIONS SECTION
========================================================= */

.patient-solutions-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #3B6D11 !important;
    border-radius: 26px !important;
    padding: 2.4rem !important;
    margin: 2.5rem 0 0 !important;
    box-shadow: 0 18px 50px rgba(18, 74, 132, 0.08) !important;
}

.patient-solutions-copy {
    max-width: 760px !important;
    margin-bottom: 1.6rem !important;
}

.patient-solutions-copy .section-kicker {
    color: #3B6D11 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

.patient-solutions-copy h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 3.8vw, 3rem) !important;
    line-height: 1.1 !important;
    margin: 0.8rem 0 0.8rem !important;
    font-weight: 900 !important;
}

.patient-solutions-copy p {
    color: #5f6f82 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.patient-solutions-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.9rem !important;
    align-items: center !important;
    margin-top: 1.2rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.patient-solutions-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.patient-solutions-links li::marker {
    content: "" !important;
}

.patient-solution-btn,
.patient-solutions-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0 1.25rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.patient-solution-btn:hover,
.patient-solutions-links a:hover {
    background: #124a84 !important;
    color: #ffffff !important;
    border-color: #124a84 !important;
    transform: translateY(-2px) !important;
}

/* =========================================================
   PATIENT PORTALS SOLUTIONS LIST BULLET REMOVAL
========================================================= */

.service-rich-content ul.patient-solutions-links,
.patient-solutions-links {
    list-style: none !important;
    padding-left: 0 !important;
}

.service-rich-content ul.patient-solutions-links li::before,
.patient-solutions-links li::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 800px) {
    .service-detail-content.patient-portals-page .service-detail-card {
        padding: 2rem !important;
    }

    .patient-solutions-card {
        padding: 2rem !important;
    }

    .patient-solutions-links {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .patient-solution-btn,
    .patient-solutions-links a {
        width: 100% !important;
    }
}

/* =========================================================
   REMOVE PATIENT PORTALS IMAGE GAP
========================================================= */

.service-detail-hero + .service-detail-content,
.product-hero + .service-detail-content {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

.service-detail-content {
    background: #f5f7fb !important;
}

/* =========================================================
   PATIENT PORTALS CONTENT CARD ORGANIZATION
========================================================= */

.service-detail-content.patient-portals-page .service-rich-content {
    max-width: 980px !important;
    margin: 0 auto !important;
}

.service-detail-content.patient-portals-page .service-rich-content > div,
.service-detail-content.patient-portals-page .service-rich-content > section,
.service-detail-content.patient-portals-page .service-content-block,
.service-detail-content.patient-portals-page .patient-feature-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 22px !important;
    padding: 2rem 2.2rem !important;
    margin: 0 0 1.6rem !important;
    box-shadow: 0 14px 36px rgba(18, 74, 132, 0.06) !important;
}

.service-detail-content.patient-portals-page .service-rich-content > div:nth-of-type(2),
.service-detail-content.patient-portals-page .service-content-block:nth-of-type(2),
.service-detail-content.patient-portals-page .patient-feature-card:nth-of-type(2) {
    border-left-color: #3B6D11 !important;
}

.service-detail-content.patient-portals-page .service-rich-content > div:nth-of-type(3),
.service-detail-content.patient-portals-page .service-content-block:nth-of-type(3),
.service-detail-content.patient-portals-page .patient-feature-card:nth-of-type(3) {
    border-left-color: #BA7517 !important;
}

/* Clean heading style inside cards */
.service-detail-content.patient-portals-page .service-rich-content h2,
.service-detail-content.patient-portals-page .service-rich-content h3 {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 0.9rem !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
}

.service-detail-content.patient-portals-page .service-rich-content h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
}

.service-detail-content.patient-portals-page .service-rich-content h3 {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem) !important;
}

/* Remove decorative bracket/line before headings if present */
.service-detail-content.patient-portals-page .service-rich-content h2::before,
.service-detail-content.patient-portals-page .service-rich-content h2::after,
.service-detail-content.patient-portals-page .service-rich-content h3::before,
.service-detail-content.patient-portals-page .service-rich-content h3::after {
    display: none !important;
    content: none !important;
}

/* Paragraph spacing */
.service-detail-content.patient-portals-page .service-rich-content p {
    color: #5f6f82 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    margin: 0 0 1rem !important;
}

.service-detail-content.patient-portals-page .service-rich-content p:last-child {
    margin-bottom: 0 !important;
}

/* Reduce large gaps between cards */
.service-detail-content.patient-portals-page .service-rich-content > * + * {
    margin-top: 1.4rem !important;
}

/* Make first content card slightly stronger */
.service-detail-content.patient-portals-page .service-rich-content > div:first-child,
.service-detail-content.patient-portals-page .service-rich-content > section:first-child,
.service-detail-content.patient-portals-page .service-content-block:first-child {
    background: #ffffff !important;
    border-left-color: #185FA5 !important;
}

@media (max-width: 700px) {
    .service-detail-content.patient-portals-page .service-rich-content > div,
    .service-detail-content.patient-portals-page .service-rich-content > section,
    .service-detail-content.patient-portals-page .service-content-block,
    .service-detail-content.patient-portals-page .patient-feature-card {
        padding: 1.5rem !important;
        border-radius: 18px !important;
    }

    .service-detail-content.patient-portals-page .service-rich-content h2 {
        font-size: 2rem !important;
    }
}

/* =========================================================
   PRODUCT DETAIL LOWER SECTION POLISH
========================================================= */

.service-feature-cards-section,
.why-matters-section,
.related-services-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    margin: 0 !important;
}

.service-feature-cards-section + .why-matters-section,
.why-matters-section + .related-services-section {
    margin-top: 0 !important;
}

.service-feature-heading,
.why-matters-header,
.related-services-header {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.service-feature-heading h2,
.why-matters-header h2,
.related-services-header h2 {
    color: #124a84 !important;
    font-size: clamp(2.1rem, 4vw, 3.2rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
    margin: 0.8rem 0 0.9rem !important;
}

.service-feature-heading p,
.why-matters-header p,
.related-services-header p {
    color: #5f6f82 !important;
    font-size: 1.02rem !important;
    line-height: 1.7 !important;
    max-width: 760px !important;
    margin: 0 !important;
}

.service-feature-cards,
.why-matters-grid,
.related-services-grid {
    gap: 1.25rem !important;
}

.service-feature-card,
.why-matters-card,
.related-service-card {
    min-height: auto !important;
    padding: 1.6rem !important;
    border-radius: 22px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 14px 36px rgba(18, 74, 132, 0.06) !important;
}

.service-feature-card h3,
.why-matters-card h3,
.related-service-card h3 {
    color: #124a84 !important;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    margin: 0 0 0.65rem !important;
}

.service-feature-card p,
.why-matters-card p,
.related-service-card p {
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.why-matters-section,
.related-services-section {
    border-top: 1px solid rgba(219, 231, 243, 0.9) !important;
}

.related-service-card {
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.related-service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 22px 55px rgba(18, 74, 132, 0.12) !important;
    border-color: rgba(24, 95, 165, 0.35) !important;
}

@media (max-width: 900px) {
    .service-feature-cards,
    .why-matters-grid,
    .related-services-grid {
        grid-template-columns: 1fr !important;
    }

    .service-feature-cards-section,
    .why-matters-section,
    .related-services-section {
        padding-top: 2.8rem !important;
        padding-bottom: 2.8rem !important;
    }

    .service-feature-heading h2,
    .why-matters-header h2,
    .related-services-header h2 {
        font-size: clamp(2rem, 10vw, 2.8rem) !important;
    }
}

/* =========================================================
   SUPPORT & TRAINING READABLE CONTENT WIDTH
========================================================= */

.service-detail-content.support-training-page {
    background: #f5f7fb !important;
    padding: 4rem 0 5rem !important;
}

.service-detail-content.support-training-page .service-detail-container {
    width: min(1120px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.service-detail-content.support-training-page .service-detail-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 28px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
}

.service-detail-content.support-training-page .service-rich-content {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.service-detail-content.support-training-page .service-rich-content p {
    max-width: 82ch !important;
    color: #5f6f82 !important;
    font-size: 1.03rem !important;
    line-height: 1.75 !important;
}

/* =========================================================
   SUPPORT & TRAINING CONTENT VISUAL CLEANUP
========================================================= */

.service-detail-content.support-training-page .service-rich-content > section,
.service-detail-content.support-training-page .service-rich-content > .service-content-block {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 20px !important;
    padding: 1.7rem 1.8rem !important;
    margin: 0 0 1.25rem !important;
    box-shadow: 0 12px 28px rgba(18, 74, 132, 0.06) !important;
}

.service-detail-content.support-training-page .service-rich-content h2,
.service-detail-content.support-training-page .service-rich-content h3 {
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0.8rem !important;
    color: #124a84 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.14 !important;
    font-weight: 900 !important;
}

.service-detail-content.support-training-page .service-rich-content h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.45rem) !important;
}

.service-detail-content.support-training-page .service-rich-content h3 {
    font-size: clamp(1.35rem, 2.1vw, 1.7rem) !important;
    margin-top: 0 !important;
}

.service-detail-content.support-training-page .service-rich-content h2::before,
.service-detail-content.support-training-page .service-rich-content h2::after,
.service-detail-content.support-training-page .service-rich-content h3::before,
.service-detail-content.support-training-page .service-rich-content h3::after {
    display: none !important;
    content: none !important;
}

.service-detail-content.support-training-page .service-rich-content p {
    max-width: 82ch !important;
    color: #5f6f82 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 0 0.95rem !important;
}

.service-detail-content.support-training-page .service-rich-content .card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

.service-detail-content.support-training-page .service-rich-content .card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    padding: 1.1rem !important;
}

.service-detail-content.support-training-page .service-rich-content .card a,
.service-detail-content.support-training-page .service-rich-content > section > p > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 1rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    border: 1px solid #185FA5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.service-detail-content.support-training-page .service-rich-content .card a:hover,
.service-detail-content.support-training-page .service-rich-content > section > p > a:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
}

@media (max-width: 900px) {
    .service-detail-content.support-training-page .service-rich-content .card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   SUPPORT & TRAINING CONTACT EMAIL GRID FIX
========================================================= */

.support-contact-grid {
    display: grid !important;
    gap: 1rem !important;
    max-width: 760px !important;
    margin: 1.8rem 0 0 !important;
}

.support-contact-row {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) minmax(250px, auto) !important;
    gap: 1rem !important;
    align-items: center !important;
}

.support-contact-row span {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.support-contact-row a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px !important;
    width: 100% !important;
    padding: 0 1.3rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 12px 26px rgba(24, 95, 165, 0.18) !important;
}

.support-contact-row a:hover,
.support-contact-row a:focus-visible {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* =========================================================
   SUPPORT PAGE CARD SPACING
========================================================= */

.support-training-card,
.service-content-block {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 26px !important;
    padding: 2.4rem 2.6rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 18px 48px rgba(18, 74, 132, 0.07) !important;
}

.support-training-card h2,
.service-content-block h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 3.6vw, 3.1rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
    margin: 0 0 1rem !important;
}

.support-training-card p,
.service-content-block p {
    color: #5f6f82 !important;
    font-size: 1.03rem !important;
    line-height: 1.75 !important;
    max-width: 82ch !important;
    margin: 0 0 1.2rem !important;
}

/* =========================================================
   SUPPORT TUTORIAL SECTION FIX
========================================================= */

.support-tutorial-section {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-left: 6px solid #185FA5 !important;
    border-radius: 26px !important;
    padding: 2.4rem 2.6rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 18px 48px rgba(18, 74, 132, 0.07) !important;
    overflow: visible !important;
}

.support-tutorial-header {
    max-width: 860px !important;
    margin-bottom: 1.8rem !important;
}

.support-tutorial-header h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.045em !important;
    font-weight: 900 !important;
    margin: 0 0 1rem !important;
}

.support-tutorial-header p {
    color: #5f6f82 !important;
    font-size: 1.03rem !important;
    line-height: 1.75 !important;
    max-width: 82ch !important;
    margin: 0 !important;
}

.support-tutorial-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    margin-top: 1.6rem !important;
}

.support-tutorial-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 22px !important;
    padding: 1.5rem !important;
    box-shadow: 0 12px 30px rgba(18, 74, 132, 0.05) !important;
}

.support-tutorial-card h3 {
    color: #124a84 !important;
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    margin: 0 0 0.7rem !important;
}

.support-tutorial-card p {
    color: #5f6f82 !important;
    line-height: 1.65 !important;
    margin: 0 0 1.2rem !important;
}

.support-video-btn,
.support-playlist-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0 1.3rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.support-video-btn:hover,
.support-playlist-btn:hover,
.support-video-btn:focus-visible,
.support-playlist-btn:focus-visible {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.support-playlist-action {
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: 1.5rem !important;
    padding-bottom: 0.2rem !important;
}

.support-playlist-btn {
    background: #3B6D11 !important;
    border-color: #3B6D11 !important;
}

.support-playlist-btn:hover {
    background: #124a84 !important;
    border-color: #124a84 !important;
}

/* =========================================================
   REMOVE CUT-OFF ISSUE
========================================================= */

.service-detail-card,
.service-rich-content,
.support-tutorial-section {
    overflow: visible !important;
}

.support-tutorial-section {
    padding-bottom: 2.6rem !important;
}

/* =========================================================
   RESPONSIVE FIX
========================================================= */

@media (max-width: 900px) {
    .support-contact-row {
        grid-template-columns: 1fr !important;
    }

    .support-contact-row a {
        width: 100% !important;
    }

    .support-tutorial-grid {
        grid-template-columns: 1fr !important;
    }

    .support-training-card,
    .service-content-block,
    .support-tutorial-section {
        padding: 1.6rem !important;
    }
}

/* =========================================================
   FINAL PORTFOLIO PAGE REDESIGN
========================================================= */

.portfolio-page {
    background: #f5f7fb !important;
    padding: 4.5rem 0 5rem !important;
    margin: 0 !important;
}

.portfolio-container {
    width: min(1180px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.portfolio-header {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    margin-bottom: 2rem !important;
}

.portfolio-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.4rem !important;
    color: #5f6f82 !important;
    font-weight: 800 !important;
}

.portfolio-breadcrumb a {
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.portfolio-breadcrumb a:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

.portfolio-header .section-kicker,
.portfolio-section-heading .section-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    color: #185FA5 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

.portfolio-header .section-kicker::before,
.portfolio-section-heading .section-kicker::before {
    content: "" !important;
    width: 42px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
}

.portfolio-header h1 {
    color: #124a84 !important;
    font-size: clamp(3rem, 6vw, 5rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.06em !important;
    font-weight: 900 !important;
    margin: 1rem 0 1rem !important;
}

.portfolio-header p {
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    max-width: 82ch !important;
    margin: 0 !important;
}

.portfolio-featured-section {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.08) !important;
}

.portfolio-section-heading {
    max-width: 820px !important;
    margin-bottom: 2rem !important;
}

.portfolio-section-heading h2 {
    color: #124a84 !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 0.9rem 0 0.8rem !important;
}

.portfolio-section-heading p {
    color: #5f6f82 !important;
    font-size: 1.03rem !important;
    line-height: 1.7 !important;
    max-width: 760px !important;
    margin: 0 !important;
}

/* =========================================================
   PORTFOLIO PROJECT CARD GRID
========================================================= */

.portfolio-project-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.4rem !important;
}

.portfolio-project-card {
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(18, 74, 132, 0.07) !important;
    transition: all 0.2s ease !important;
}

.portfolio-project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 24px 60px rgba(18, 74, 132, 0.13) !important;
    border-color: rgba(24, 95, 165, 0.35) !important;
}

.portfolio-project-media {
    background: #eef4fa !important;
    border-bottom: 1px solid #dbe7f3 !important;
    min-height: 220px !important;
}

.portfolio-project-media img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.portfolio-image-placeholder {
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        linear-gradient(135deg, rgba(24, 95, 165, 0.08), rgba(59, 109, 17, 0.06)),
        #f8fafc !important;
    color: #5f6f82 !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

.portfolio-project-body {
    padding: 1.5rem !important;
}

.portfolio-project-body h3 {
    color: #124a84 !important;
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    margin: 0 0 0.7rem !important;
}

.portfolio-project-body p {
    color: #5f6f82 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1.2rem !important;
}

.portfolio-project-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    color: #124a84 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.portfolio-project-link::after {
    content: "\2192" !important;
    transition: transform 0.2s ease !important;
}

.portfolio-project-link:hover {
    color: #185FA5 !important;
}

.portfolio-project-link:hover::after {
    transform: translateX(4px) !important;
}

/* =========================================================
   LEGACY PORTFOLIO CONFLICT OVERRIDES
========================================================= */

.portfolio-page .portfolio-card,
.portfolio-page .project-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* =========================================================
   RESPONSIVE PORTFOLIO
========================================================= */

@media (max-width: 1000px) {
    .portfolio-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .portfolio-page {
        padding: 3rem 0 !important;
    }

    .portfolio-header,
    .portfolio-featured-section {
        padding: 1.6rem !important;
        border-radius: 24px !important;
    }

    .portfolio-project-grid {
        grid-template-columns: 1fr !important;
    }

    .portfolio-header h1 {
        font-size: 2.6rem !important;
    }
}

/* =========================================================
   RESOURCES PAGE REDESIGN
========================================================= */

.resources-page {
    background: #f5f7fb !important;
    padding: 4.5rem 0 5rem !important;
    margin: 0 !important;
}

.resources-container {
    width: min(1120px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
}

.resources-header {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
    margin-bottom: 2rem !important;
}

.resources-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    margin-bottom: 1.4rem !important;
    color: #5f6f82 !important;
    font-weight: 800 !important;
}

.resources-breadcrumb a {
    color: #124a84 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.resources-breadcrumb a:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

.resources-header .section-kicker,
.resources-card-body .section-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    color: #185FA5 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

.resources-header .section-kicker::before,
.resources-card-body .section-kicker::before {
    content: "" !important;
    width: 42px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
}

.resources-header h1 {
    color: #124a84 !important;
    font-size: clamp(2.8rem, 5vw, 4.6rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
    margin: 1rem 0 1rem !important;
}

.resources-header p {
    color: #5f6f82 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
    max-width: 82ch !important;
    margin: 0 !important;
}

.resources-card {
    display: grid !important;
    grid-template-columns: 0.95fr 1.05fr !important;
    gap: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
}

.resources-card-media {
    background: #eef4fa !important;
    min-height: 360px !important;
}

.resources-card-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 360px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.resources-image-placeholder {
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        linear-gradient(135deg, rgba(24, 95, 165, 0.10), rgba(59, 109, 17, 0.08)),
        #eef4fa !important;
    color: #5f6f82 !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

.resources-card-body {
    padding: 3rem !important;
}

.resources-card-body article,
.resources-card-body section {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.resources-card-body h2 {
    color: #124a84 !important;
    font-size: clamp(2rem, 3.6vw, 3.2rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.05em !important;
    font-weight: 900 !important;
    margin: 1rem 0 1rem !important;
}

.resources-card-body p {
    color: #5f6f82 !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    max-width: 70ch !important;
    margin: 0 0 1.5rem !important;
}

.resources-card-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px !important;
    padding: 0 1.4rem !important;
    border-radius: 999px !important;
    background: #185FA5 !important;
    color: #ffffff !important;
    border: 2px solid #185FA5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.resources-card-link:hover,
.resources-card-link:focus-visible {
    background: #124a84 !important;
    border-color: #124a84 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 850px) {
    .resources-card {
        grid-template-columns: 1fr !important;
    }

    .resources-header,
    .resources-card-body {
        padding: 1.7rem !important;
    }

    .resources-card-media,
    .resources-card-media img,
    .resources-image-placeholder {
        min-height: 260px !important;
    }
}

/* =========================================================
   BOARD OF DIRECTORS PAGE CENTERING
========================================================= */

.board-page {
    background: #f5f7fb !important;
    padding: 4.5rem 0 5rem !important;
    margin: 0 !important;
}

.board-container {
    width: min(1120px, calc(100% - 2rem)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.board-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    border-top: 6px solid #185FA5 !important;
    border-radius: 30px !important;
    padding: 2.8rem !important;
    box-shadow: 0 24px 70px rgba(18, 74, 132, 0.10) !important;
}

.board-content {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.board-content p {
    color: #5f6f82 !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    max-width: 82ch !important;
}

.board-content img {
    max-width: 180px !important;
    height: auto !important;
    border-radius: 18px !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 14px 34px rgba(18, 74, 132, 0.10) !important;
    margin-bottom: 1rem !important;
}

.board-content h2,
.board-content h3 {
    color: #124a84 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.15 !important;
}

.board-members-grid {
    margin-top: 2rem !important;
}

@media (max-width: 850px) {
    .board-card {
        padding: 1.7rem !important;
    }
}

/* =========================================================
   CONSISTENT LAST UPDATED DATE
========================================================= */

.page-updated-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
    width: fit-content !important;
    margin: 2.4rem 0 0 auto !important;
    padding: 0.75rem 1rem !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe7f3 !important;
    color: #5f6f82 !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
}

.page-updated-meta::before {
    content: "\21BB" !important;
    color: #185FA5 !important;
    font-weight: 900 !important;
}

.page-updated-meta span {
    color: #5f6f82 !important;
}

.page-updated-meta time {
    color: #124a84 !important;
}

@media (max-width: 700px) {
    .page-updated-meta {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
