/* Practice Provider Custom Adjustments for Hugo Universal Theme */

/* Brand Header */
.navbar-brand.home {
    display: flex !important;
    align-items: center !important;
    height: 62px;
    padding: 10px 15px;
}

/* Page Title & Headings */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #639a9f; /* every page title fully blue (client request; was dark grey + blue) */
}

.page-title .title-lead,
.page-title .title-rest {
    color: #639a9f;
}

/* Homepage pillar cards: whole heading blue, not "MEDICAL" blue + "BILLING" dark */
.pp-pillar-card .content h4 a,
.pp-pillar-card .content h4 a span {
    color: #487175 !important;
}

.navbar-brand.home img {
    height: 40px !important;
    width: auto !important;
    margin-right: 10px;
}

.navbar-brand.home .brand-title {
    font-family: 'Segoe UI', Frutiger, Linotype, 'DejaVu Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 26px;
    color: #639a9f;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Navigation Menu Links (Remove all text-decoration underlines & dropdown carets) */
.navbar ul.nav > li > a,
.navbar ul.nav > li > a:hover,
.navbar ul.nav > li > a:focus,
.navbar-nav > li > a,
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar .nav > li > a,
.navbar .dropdown-menu > li > a {
    text-decoration: none !important;
}

.navbar .caret,
.navbar-nav .caret,
.navbar ul.nav .caret {
    display: none !important;
    visibility: hidden !important;
}

/* Home Carousel (Two-Column Layout: Left Text, Right Slides, Authentic Practice Provider Medical Background) */
.home-carousel {
    position: relative;
    /* Collage photo tiled at 550px. The tiles are shifted so the slider text's left edge
       lands in the middle of the widest stretch of the photo that has no hard vertical
       edge (x≈348 of each tile, ~119px from the nearest edge). Otherwise one of the
       collage's grid lines / photo joins runs right beside the text and makes
       "MEDICAL BILLING" look cut. The text starts 570 / 470 / 360px left of centre at the
       lg / md / sm container widths, so each width needs its own shift (see media queries
       below). Re-measure if the tile size, image or container widths change. */
    background: url('../img/ppc-bg.jpg') calc(50% - 93px) center repeat !important;
    background-size: 550px auto !important;
    overflow: hidden;
    padding: 0 !important;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .home-carousel { background-position: calc(50% + 7px) center !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .home-carousel { background-position: calc(50% + 117px) center !important; }
}

.home-carousel .dark-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #487175 !important;
    opacity: 0.90 !important;
    display: block !important;
    z-index: 1;
}

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

.home-carousel .owl-carousel {
    padding-top: 45px !important;
    padding-bottom: 25px !important;
    overflow: hidden !important;
}

.home-carousel .owl-wrapper-outer {
    overflow: hidden !important;
}

/* Hide Carousel Next/Prev Arrow Buttons */
.home-carousel .owl-controls .owl-buttons {
    display: none !important;
}

.home-carousel .owl-theme .owl-controls .owl-page span {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.home-carousel .owl-theme .owl-controls .owl-page.active span,
.home-carousel .owl-theme .owl-controls .owl-page:hover span {
    background: #ffffff;
}

.home-carousel .item {
    padding: 10px 0;
}

.pp-carousel-flex {
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .pp-carousel-flex {
        display: block;
    }
}

.home-carousel h1 {
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin-top: 10px;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-carousel .carousel-content p,
.home-carousel p {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.home-carousel .btn-template-transparent-black {
    color: #ffffff !important;
    border-color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 22px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.home-carousel .btn-template-transparent-black:hover {
    background: #ffffff !important;
    color: #487175 !important;
    border-color: #ffffff !important;
}

.pp-carousel-img-frame {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    /* Shadow only below the picture, 0px sideways (blur = -spread). The picture sits flush
       against the slide's right edge, so any sideways shadow leaked into the neighbouring
       slide at the slider's clip edge and drew a hard line right in front of the slide text. */
    box-shadow: 0 26px 24px -24px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: #ffffff;
    transition: transform 0.3s ease;
}

.carousel-mockup-img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

@media (min-width: 992px) {
    .home-carousel .right {
        text-align: left; /* client: slider header, text and button left-aligned (was right) */
        padding-right: 35px;
    }
}

@media (max-width: 991px) {
    .home-carousel .right { text-align: left; }
    .home-carousel h1 {
        font-size: 28px;
    }
    .home-carousel p {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .home-carousel {
        text-align: center !important;
        background: url('../img/ppc-bg.jpg') center center no-repeat !important;
        background-size: cover !important;
    }
    .home-carousel .dark-mask {
        background: #487175 !important;
        opacity: 0.80 !important;
    }
    .home-carousel .right {
        text-align: left !important; /* left on phones too (was centered) */
        margin-bottom: 25px;
        padding-right: 15px;
    }
    .pp-carousel-img-frame {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* Global Focus Ring & Outline Reset (Eliminates browser black square focus boxes on click) */
*:focus,
*:active {
    outline: none !important;
}

a:focus,
a:active,
button:focus,
button:active,
.btn:focus,
.btn:active {
    outline: none !important;
    outline-style: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Feature Boxes */
.box-simple {
    min-height: 230px;
    transition: all 0.3s ease;
}

.box-simple a,
.box-simple .feature-icon-link {
    display: inline-block;
    border-radius: 50% !important;
    outline: none !important;
    outline-style: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.box-simple a:focus,
.box-simple a:active,
.box-simple a:hover,
.box-simple .feature-icon-link:focus,
.box-simple .feature-icon-link:active,
.box-simple .icon,
.box-simple .icon:focus,
.box-simple .icon:active {
    outline: none !important;
    outline-style: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.box-simple h3 a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.box-simple h3 a:hover,
.box-simple:hover h3 a {
    color: #639a9f;
}

/* Blog / Healthcare Insights 2x2 Modern Horizontal Grid */
.pp-insights-grid {
    display: flex;
    flex-wrap: wrap;
}

.pp-insights-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 25px;
}

.pp-insight-horizontal-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e7ecf0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pp-insight-horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(99, 154, 159, 0.2);
    border-color: #639a9f;
}

.pp-insight-media {
    flex: 0 0 195px;
    width: 195px;
    position: relative;
    overflow: hidden;
    background: #eef2f5;
}

.pp-insight-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.pp-insight-media img {
    width: 100%;
    height: 100%;
    min-height: 185px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pp-insight-horizontal-card:hover .pp-insight-media img {
    transform: scale(1.08);
}

.pp-insight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(72, 113, 117, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pp-insight-horizontal-card:hover .pp-insight-overlay {
    opacity: 1;
}

.pp-insight-content {
    flex: 1 1 auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    text-align: left;
}

.pp-insight-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c9ba5;
    margin-bottom: 8px;
}

.pp-insight-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pp-insight-meta i {
    color: #639a9f;
    font-size: 11px;
}

.pp-insight-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.pp-insight-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-insight-horizontal-card:hover .pp-insight-title a {
    color: #639a9f;
}

.pp-insight-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #6a737d;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-insight-action {
    margin-top: auto;
}

.pp-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #639a9f;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pp-read-more-link i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.pp-read-more-link:hover {
    color: #487175;
}

.pp-insight-horizontal-card:hover .pp-read-more-link {
    color: #487175;
}

.pp-insight-horizontal-card:hover .pp-read-more-link i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .pp-insights-grid {
        display: block;
    }
    .pp-insight-horizontal-card {
        flex-direction: column;
    }
    .pp-insight-media {
        flex: none;
        width: 100%;
        height: 180px;
    }
    .pp-insight-media img {
        height: 180px;
        min-height: 180px;
    }
}

/* Customer / Certification Logos Slider */
.customers .item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px;
}

/* Practice Provider 3 Doctor Pillar Cards (Equal Height Flexbox + Theme Signature Hover) */
.pp-pillar-row {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .pp-pillar-row {
        display: block;
    }
}

.pp-pillar-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.pp-pillar-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fdfdfd;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pp-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #639a9f;
}

.pp-pillar-card .top {
    position: relative;
    overflow: hidden;
    height: 175px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.pp-pillar-card .top .image {
    height: 175px;
    overflow: hidden;
    background: #f0f0f0;
}

.pp-pillar-card .top .image img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pp-pillar-card:hover .top .image img {
    transform: scale(1.08);
}

.pp-pillar-card .top .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #639a9f;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.pp-pillar-card:hover .top .bg {
    opacity: 0.75;
}

.pp-pillar-card .top .text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 0 15px;
    text-align: center;
}

.pp-pillar-card:hover .top .text {
    transform: translateY(-50%);
    opacity: 1;
}

.pp-pillar-card .top .text .btn {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 7px 18px;
    text-transform: uppercase;
}

.pp-pillar-card .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px 20px 22px 20px;
}

.pp-pillar-card .content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.03em;
}

.pp-pillar-card .content h4 a {
    color: #333333;
    transition: color 0.2s ease;
}

.pp-pillar-card:hover .content h4 a {
    color: #639a9f;
}

.pp-pillar-card .content p {
    font-size: 13px;
    line-height: 1.55;
    color: #666666;
    margin: 0;
}

.customers .item img {
    max-height: 60px !important;
    width: auto !important;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.customers .item img:hover {
    filter: none !important;
    opacity: 1 !important;
}

/* Footer recent posts thumbnails */
#footer .blog-entries .item .image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: #444;
}

#footer .blog-entries .item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home photo cards: show the whole photo (no crop) near its real size so it stays sharp, like the original site */
.pp-pillar-card .top,
.pp-pillar-card .top .image {
    height: auto;
    background: transparent;
}
.pp-pillar-card .top { padding: 14px 14px 0; }
.pp-pillar-card .top .image img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
.pp-pillar-card:hover .top .image img { transform: scale(1.03); }

/* Healthcare News list: real bullet with hanging indent so wrapped titles line up with the text */
ul.pp-news-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
ul.pp-news-list > li > a {
    position: relative;
    display: block;
    padding-left: 14px;
}
ul.pp-news-list > li > a::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0;
}

/* Page banner photo: same space below it on every page (it was touching the text/quote box) */
.pp-article .pp-banner-img { margin: 0 0 20px 0; }
.pp-article .pp-banner-img img { display: block; max-width: 100%; height: auto; }

/* Floated screenshots (MicroMD page) must not run into the next section */
.pp-article h2.pp-section-subtitle { clear: both; }
.pp-article span[style*="float:right"],
.pp-article table[style*="float:right"] { margin: 0 0 12px 12px; }
.pp-article .rokbox-thumb { border: 1px solid #ddd; padding: 2px; background: #fff; }

/* Blog list: every thumbnail the same size and position, so the left column lines up */
#blog-listing-medium .post .image {
    width: 100%;
    aspect-ratio: 659 / 266;
    overflow: hidden;
    border-radius: 3px;
    background: #fff;
    margin-bottom: 15px;
}
#blog-listing-medium .post .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Long "Read more: ..." buttons wrap inside the text column instead of running into the sidebar */
#blog-listing-medium .post .read-more { text-align: right; }
#blog-listing-medium .post .read-more .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
}

/* ===== Content typography rhythm (all inner pages + blog posts) =====
   One consistent scale: title -> 20px, paragraph -> 16px, more space above a
   heading than below it (so it groups with its own content), shallow list indent. */
#page-content > h1,
#page-content .pp-article > h1,
#post-content > h1 { margin: 0 0 20px; line-height: 1.25; }

#page-content p,
#post-content p { margin: 0 0 10px; line-height: 1.7; }

#page-content h2, #page-content h3, #page-content h4,
#post-content h2, #post-content h3, #post-content h4 {
    margin: 36px 0 12px;
    line-height: 1.3;
}
#page-content h2, #post-content h2 { font-size: 24px; }
#page-content h3, #post-content h3 { font-size: 21px; }
#page-content h4, #post-content h4 { font-size: 18px; }
/* first heading right under the title/banner doesn't need the big top gap */
#page-content h1 + h2, #page-content h1 + h3,
#page-content .pp-banner-img + h2, #page-content .pp-banner-img + h3,
#post-content > h2:first-child, #post-content > h3:first-child { margin-top: 0; }

#page-content ul, #page-content ol,
#post-content ul, #post-content ol {
    margin: 0 0 20px;
    padding-left: 20px;
}
#page-content li, #post-content li { margin: 0 0 6px; line-height: 1.6; padding-left: 2px; }
#page-content li:last-child, #post-content li:last-child { margin-bottom: 0; }
#page-content li::marker, #post-content li::marker { color: #38a7bb; }
/* nested lists and the sidebar news list keep their own spacing */
#page-content li ul, #page-content li ol { margin: 6px 0 0; }

#page-content .pp-banner-img { margin: 0 0 24px; }
#page-content .attention, #page-content .approved, #page-content .notice,
#page-content .pp-approved, #page-content .pp-quote-box { margin: 0 0 20px; }
#page-content .attention p:last-child, #page-content .approved p:last-child,
#page-content .notice p:last-child { margin-bottom: 0; }

/* Paragraph followed by another paragraph: no extra gap, so the space between
   paragraphs equals the normal line spacing (client request) */
#page-content p:has(+ p),
#post-content p:has(+ p) { margin-bottom: 0; }

/* Blog pages: no theme title bar; title sits in the content like the other inner pages */
#content .pp-blog-container { padding-top: 35px; padding-bottom: 30px; }
#blog-listing-medium > h1.page-title,
#blog-post > h1.page-title { margin: 0 0 20px; line-height: 1.25; }

/* ===== Blog list: clean, aligned layout ===== */
#blog-listing-medium .post {
    margin: 0 0 32px;
    padding: 0 0 32px;
    border-bottom: 0; /* client: no gray divider lines between posts; the spacing alone separates them */
}
/* every thumbnail: same box, sharp 2x source; no gray frame (client request) */
#blog-listing-medium .post .image {
    border: 0;
    border-radius: 4px;
    background: #fff;
    margin: 0;
}
#blog-listing-medium .post .image img { object-fit: cover; }
#blog-listing-medium .post .image img[src*="risk-management-thumb"] { object-fit: contain; }
/* titles in normal case like the original site, aligned with the top of the picture */
#blog-listing-medium .post h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
#blog-listing-medium .post h2 a { color: #333; }
#blog-listing-medium .post h2 a:hover { color: #38a7bb; }
#blog-listing-medium .post .clearfix { margin: 0 0 10px; }
#blog-listing-medium .post .author-category,
#blog-listing-medium .post .date-comments { margin: 0; font-size: 12px; line-height: 1.6; }
/* theme adds margin-right: 20px to the date link; drop it so the date lines up with the text's right edge */
#blog-listing-medium .post .date-comments a { margin-right: 0; }
#blog-listing-medium .post .intro { margin: 0 0 14px; line-height: 1.7; }
/* "Read more" sits at the same left edge under every post */
#blog-listing-medium .post .read-more { text-align: left; margin: 0; }
#blog-listing-medium .post .read-more .btn {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 16px;
}

/* Bootstrap 3 forces nowrap on table cells below 768px; let our content tables wrap */
@media (max-width: 767px) {
    .table.pp-table-clean > thead > tr > th,
    .table.pp-table-clean > tbody > tr > td,
    .table-responsive > .table.pp-table-clean > thead > tr > th,
    .table-responsive > .table.pp-table-clean > tbody > tr > td,
    .table.pp-vendors-table > tbody > tr > td,
    .table-responsive > .table.pp-vendors-table > tbody > tr > td {
        white-space: normal;
    }
}

/* MACRA/MIPS weights table: tighter cell padding on phones */
@media (max-width: 575px) {
    .table.pp-table-clean > thead > tr > th,
    .table.pp-table-clean > tbody > tr > td,
    .table-responsive > .table.pp-table-clean > thead > tr > th,
    .table-responsive > .table.pp-table-clean > tbody > tr > td {
        padding: 8px 6px;
    }
}

/* Our Vendors table: stack logo above description on phones */
@media (max-width: 575px) {
    .table.pp-vendors-table,
    .table.pp-vendors-table > tbody,
    .table.pp-vendors-table > tbody > tr,
    .table.pp-vendors-table > tbody > tr > td {
        display: block;
        width: 100% !important;
    }
    .table.pp-vendors-table > tbody > tr {
        border: 1px solid #ddd;
        margin-bottom: 16px;
    }
    .table.pp-vendors-table,
    .table.pp-vendors-table > tbody > tr > td {
        border: 0;
    }
    .table.pp-vendors-table > tbody > tr > td {
        padding: 12px;
    }
}

/* ===== One type scale for the whole site (client request) =====
   Page titles: one size. Every other heading in the page body: one size.
   Every paragraph / list item in the page body: one size.
   Sidebar widget labels, nav, footer and blog meta lines keep their own small label sizes. */
:root {
    --pp-title-size: 32px;
    --pp-heading-size: 22px;
    --pp-text-size: 15px;
}
@media (max-width: 767px) {
    :root { --pp-title-size: 26px; --pp-heading-size: 20px; }
}
/* page titles + homepage slider titles */
#content h1, .page-title, .pp-carousel-text h1 {
    font-size: var(--pp-title-size) !important;
    line-height: 1.25 !important;
}
/* every section / card heading in the page body */
#page-content h2, #page-content h3, #page-content h4, #page-content h5,
#post-content h2, #post-content h3, #post-content h4, #post-content h5,
#blog-listing-medium .post h2,
.heading h2,
.box-simple h3,
.pp-insight-content h3, .pp-insight-title,
.pp-pillar-card h4,
.background-image-fixed-2 h3,
#error-page h3, #error-page h4 {
    font-size: var(--pp-heading-size) !important;
    line-height: 1.3 !important;
}
/* every paragraph / list item in the page body */
#page-content p, #page-content li,
#post-content p, #post-content li,
#blog-listing-medium .post .intro,
.pp-carousel-text p,
.box-simple p,
.pp-insight-content p, .pp-insight-excerpt,
.pp-pillar-card p,
#homepage-insights .lead, .bar .lead,
.background-image-fixed-2 p {
    font-size: var(--pp-text-size) !important;
    line-height: 1.7 !important;
}
/* titles are bigger now, so show the full title in the homepage insight cards instead of cutting it at 2 lines */
.pp-insight-title a { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* blog post byline: same look as the blog list (author + categories left, date on the right edge) */
#blog-post .pp-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 16px;
    margin: 0 0 20px;
    font-size: 12px;
    line-height: 1.6;
}
#blog-post .pp-post-meta p { margin: 0; }
#blog-post .pp-post-meta .author-category {
    color: #999;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#blog-post .pp-post-meta .author-category a { font-weight: 500; }
#blog-post .pp-post-meta .date-comments { color: #999; margin-left: auto; text-align: right; }

/* Slider: soft teal shade behind the text column only. The background collage has grid
   lines that otherwise run through the slider text ("kata kata"); this fades them out
   behind the text while the photo stays visible around it. It hangs off the container
   (not the slide) because the slide frame clips at the text's left edge, which would
   cut the shade into a new hard line. Desktop/tablet only (phones use another background). */
@media (min-width: 768px) {
    .home-carousel .container::before {
        content: "";
        display: block; /* Bootstrap's clearfix makes this display: table, which ignores top/bottom */
        position: absolute;
        top: 30px;
        bottom: 40px;
        left: -50px;
        width: calc(41.667% + 70px); /* the 5/12 text column plus a margin */
        background: #487175;
        opacity: 0.85;
        filter: blur(30px);
        border-radius: 60px;
        z-index: -1;
        pointer-events: none;
    }
}
/* Keep the slide picture 4px clear of the slide's right edge. It used to end exactly on
   the slider's clip line, so a sub-pixel sliver of the previous slide's picture frame
   showed as a thin line right in front of the next slide's text. Desktop/tablet only. */
@media (min-width: 768px) {
    .home-carousel .pp-carousel-img-frame { width: calc(100% - 4px); }
}

/* All body text justified on every page and every screen size (client request):
   both edges of each paragraph line up; the last line of a paragraph stays left.
   Not touched: menu, top bar, footer, sidebar link lists, author/date lines, buttons,
   headings, and centred logo/name cells in tables. */
.col-md-8.col-sm-12 > p,
#page-content p, #page-content li,
#post-content p, #post-content li,
#page-content td:not([style*="text-align: center"]):not([style*="text-align:center"]),
#blog-listing-medium .post .intro,
.bar .lead,
.background-image-fixed-2 p {
    text-align: justify !important;
    text-justify: inter-word;
}
/* labels and buttons inside those areas stay as they were */
#page-content p.buttons, #page-content .read-more, #blog-listing-medium .read-more,
.carousel-btn-wrap, .pp-pillar-card .top p {
    text-align: inherit !important;
}
/* text that was centred (homepage cards, section intro lines, call-to-action band):
   full lines justified, last line centred, so a one-line text stays centred */
.bar .lead,
.background-image-fixed-2 p {
    text-align-last: center;
}
/* Not justified: slider text and the small homepage cards (pillar cards, service boxes,
   insight cards). Their lines hold only a few words, often in capitals, so justify opened
   big gaps between words. They keep their original alignment (slider left, cards centred,
   insight excerpts left). */

/* Slider description in normal sentence case (client request). The theme forces
   .home-carousel p to uppercase; the slide headings stay in capitals. */
.home-carousel .carousel-content p {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Homepage service boxes (End to End Medical Billing, Denials & Appeals Recovery, ...):
   keep every box in a row lined up. A longer title wrapped to two lines and pushed its
   text below the neighbours' text (client: alignment must stay right).
   1) less letter spacing so the titles fit on one line where they can (size stays 22px);
   2) on desktop each row is a grid whose icon / title / text bands are shared by the three
      boxes (subgrid), so the text always starts on the same line even if a title wraps. */
.box-simple h3 { letter-spacing: 0.5px !important; }
@media (min-width: 992px) {
    .bar .row:has(> .col-md-4 > .box-simple) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto auto;
    }
    .bar .row:has(> .col-md-4 > .box-simple)::before,
    .bar .row:has(> .col-md-4 > .box-simple)::after { display: none; }
    .bar .row:has(> .col-md-4 > .box-simple) > .col-md-4 {
        float: none;
        width: auto;
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
    }
    .bar .row > .col-md-4 > .box-simple {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        align-items: start;
    }
}
/* Service box text: #999 was too light to read comfortably (2.85:1 contrast on white);
   use the same grey as the pillar cards above (#666, 5.74:1). */
.box-simple p { color: #666 !important; }
/* Centred text in the homepage service boxes and pillar cards: balance the line lengths so
   each block has an even shape instead of ragged edges and a one-word last line
   (client: "alignment gula thik mone hocche na"). Word spacing stays normal. */
.box-simple h3,
.box-simple p,
.pp-pillar-card .content h4,
.pp-pillar-card .content p {
    text-wrap: balance;
}

/* ===== Phones (under 768px) ===== */
@media (max-width: 767px) {
    /* Justified text on a ~330px phone column spreads 5-6 words per line into big gaps.
       On phones body text goes back to normal left alignment; centred lines stay centred.
       Tablets and desktops stay justified. */
    .col-md-8.col-sm-12 > p,
    #page-content p, #page-content li,
    #post-content p, #post-content li,
    #page-content td:not([style*="text-align: center"]):not([style*="text-align:center"]),
    #blog-listing-medium .post .intro {
        text-align: left !important;
    }
    .bar .lead,
    .background-image-fixed-2 p {
        text-align: center !important;
        text-align-last: auto;
    }
    /* less empty space between the slider and the intro text */
    .home-carousel { margin-bottom: 0 !important; }
    .home-carousel + section, section:has(> .home-carousel) { margin-bottom: 0 !important; }
    section.bar.background-white.no-mb[style*="padding: 40px 0 20px"] { padding-top: 24px !important; }
    /* All slides are as tall as the tallest one (descriptions differ in length).
       Text starts at the top and the picture is pinned to the bottom of every slide,
       so the picture sits in exactly the same place on each slide (no jumping up and
       down when the slide changes). */
    .home-carousel .owl-wrapper { display: flex !important; }
    .home-carousel .owl-item { float: none !important; display: flex; }
    .home-carousel .owl-item > .item { display: flex; flex-direction: column; width: 100%; }
    .home-carousel .owl-item > .item > .pp-carousel-flex { flex: 1; display: flex !important; flex-direction: column; }
    .home-carousel .pp-carousel-media { margin-top: auto; }
    /* picture as wide as the text above it, so their left and right edges line up */
    .home-carousel .pp-carousel-img-frame { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
}

/* long web addresses written out in the text (e.g. the CMS link in the HCC post) may break
   onto the next line instead of pushing the page wider than a phone screen */
#page-content a, #post-content a { overflow-wrap: anywhere; }

/* Phones: screenshots that float right next to the text (MicroMD EMR page) squeezed the text
   into a narrow strip. On phones they sit centred on their own line above the text instead. */
@media (max-width: 767px) {
    #page-content span[style*="float:right"],
    #page-content span[style*="float: right"] {
        float: none !important;
        display: block;
        text-align: center;
        padding-left: 0 !important;
        margin: 0 0 14px;
    }
    #page-content table[style*="float:right"],
    #page-content table[style*="float: right"] {
        float: none !important;
        margin: 0 auto 14px;
    }
    #page-content table[style*="float:right"] td,
    #page-content table[style*="float: right"] td {
        padding: 0 0 10px !important;
        text-align: center !important;
    }
}

/* Phones: no divider lines between items (client: "majkhane majkhane line gula kothao chai na").
   Spacing alone separates them. Desktop and tablet keep their lines.
   Kept on purpose: the teal accent bar under section titles, table lines (MACRA table),
   card outlines and buttons. */
@media (max-width: 767px) {
    /* "Healthcare News" sidebar: dotted lines between the articles, and the line under the title */
    .pp-news-list li { border-bottom: 0 !important; }
    .sidebar-news-widget > h4,
    .col-md-4.col-sm-12 > div > h4 { border-bottom: 0 !important; padding-bottom: 0 !important; }
    /* footer: line under each recent post, and the grey lines between the footer sections */
    #footer .blog-entries .item { border-bottom: 0 !important; }
    #footer hr { display: none !important; }
    #footer .col-md-4.col-sm-6 { margin-bottom: 28px; }
    /* phone menu (the menu button): line above the open menu and lines between the
       dropdown items (Overview, ...) */
    .navbar-collapse { border-top: 0 !important; box-shadow: none !important; }
    .navbar .dropdown-menu > li,
    .navbar .dropdown-menu > li > a { border-bottom: 0 !important; border-top: 0 !important; }
    /* teal bar under section titles ("Certifications & Industry Accreditations", ...) */
    .heading h2 { border-bottom: 0 !important; padding-bottom: 0 !important; }
    .heading h2::after, .heading::after { display: none !important; }
    /* 404 page: lines above and below the message */
    #error-page .box { border-top: 0 !important; border-bottom: 0 !important; }
}

/* ===== No divider lines between items, on every screen size (PC, tablet, phone) =====
   Client: "majkhane majkhane line gula kothao chai na" ... "pc teo koro". Spacing alone
   separates the items. Kept on purpose: the MACRA table row lines (needed to read the
   table), the small bar on the active menu item (shows the current page), card and
   button outlines. */
/* "Healthcare News" box: lines between the articles and under the title */
.pp-news-list li { border-bottom: 0 !important; }
.sidebar-news-widget > h4,
.col-md-4.col-sm-12 > div > h4 { border-bottom: 0 !important; }
/* footer: line under each recent post, grey lines between the footer sections (tablet) */
#footer .blog-entries .item { border-bottom: 0 !important; }
#footer hr { display: none !important; }
/* Services / About dropdown menus: lines between the items */
.navbar .dropdown-menu > li,
.navbar .dropdown-menu > li > a { border-bottom: 0 !important; }
/* teal bar under section titles */
.heading h2 { border-bottom: 0 !important; }
.heading h2::after, .heading::after { display: none !important; }
/* 404 page: lines above and below the message */
#error-page .box { border-top: 0 !important; border-bottom: 0 !important; }
