/* Public article index and detail page styles. */
.articles-index-page,
.article-view-page {
    background: #f3f7f8;
    color: #294550;
    font-family: "Exo", sans-serif;
}

.articles-page {
    padding: 48px 0 76px;
}

.articles-page-container {
    max-width: 1180px;
}

.articles-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    padding: clamp(30px, 6vw, 64px);
    border-radius: 20px;
    background: linear-gradient(120deg, #123f52 0%, #176d78 58%, #2b9b91 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(18, 63, 82, .18);
}

.articles-hero::after {
    position: absolute;
    right: -80px;
    bottom: -190px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 75px rgba(255, 255, 255, .025);
    content: "";
    pointer-events: none;
}

.articles-eyebrow {
    display: inline-block;
    color: #79d8c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.articles-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.articles-hero > p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .83);
    font-size: 16px;
    line-height: 1.7;
}

.articles-hero-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: #eefaf8;
    font-size: 12px;
    font-weight: 600;
}

.articles-hero-note i {
    color: #8ce1ce;
}

.article-library {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #e2eaec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 66, 77, .06);
}

.article-library-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.article-library-heading h2 {
    margin: 4px 0 0;
    color: #183b48;
    font-size: 25px;
    font-weight: 700;
}

.article-library-heading .articles-eyebrow {
    color: #168277;
}

.article-search {
    display: block;
    width: min(100%, 360px);
    margin: 0;
    color: #526b74;
    font-size: 11px;
    font-weight: 750;
}

.article-search-field {
    position: relative;
    display: block;
    margin-top: 6px;
}

.article-search-field > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: #71838b;
    transform: translateY(-50%);
}

.article-search-field .form-control {
    min-height: 44px;
    padding-left: 39px;
    border: 1px solid #dce6e8;
    border-radius: 8px;
    background: #fbfdfd;
    color: #294e59;
    font-size: 13px;
}

.article-search-field .form-control:focus {
    border-color: #5ab7aa;
    box-shadow: 0 0 0 .2rem rgba(22, 139, 128, .12);
}

.article-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-article-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e4ecee;
    border-radius: 12px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.public-article-card:hover {
    transform: translateY(-3px);
    border-color: #c8e2dd;
    box-shadow: 0 12px 26px rgba(21, 58, 69, .1);
}

.public-article-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
    background: #eaf1f1;
}

.public-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.public-article-card:hover .public-article-image img {
    transform: scale(1.025);
}

.public-article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px 20px 17px;
}

.public-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #71838b;
    font-size: 11px;
}

.public-article-category {
    color: #168277;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.public-article-card h2 {
    margin: 11px 0 8px;
    color: #183b48;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.public-article-card h2 a {
    color: inherit;
    text-decoration: none;
}

.public-article-card h2 a:hover {
    color: #168277;
}

.public-article-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #647981;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.public-article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf1f2;
    color: #71838b;
    font-size: 11px;
}

.public-article-read-link {
    color: #168277;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.public-article-read-link:hover {
    color: #105d57;
}

.article-empty-state {
    padding: 54px 20px;
    border: 1px dashed #d7e4e6;
    border-radius: 12px;
    background: #f9fbfb;
    text-align: center;
}

.article-empty-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #e5f3ef;
    color: #168277;
    font-size: 20px;
}

.article-empty-state h2 {
    margin: 14px 0 5px;
    color: #183b48;
    font-size: 20px;
    font-weight: 700;
}

.article-empty-state p {
    margin: 0;
    color: #71838b;
    font-size: 13px;
}

.article-pagination {
    margin-top: 24px;
}

.article-pagination .pagination {
    gap: 5px;
    margin: 0;
}

.article-pagination .page-link {
    min-width: 38px;
    border: 1px solid #e1eaed;
    border-radius: 7px;
    color: #267d78;
    text-align: center;
}

.article-pagination .page-item.active .page-link {
    border-color: #168b80;
    background: #168b80;
    color: #fff;
}

/* Article reading page */
.article-view-section {
    padding-top: 42px;
    background: #f3f7f8;
}

.article-view-section > .container {
    max-width: 1120px;
}

.article-detail-card {
    overflow: hidden;
    border: 1px solid #e1eaed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(21, 58, 69, .08);
}

.article-detail-hero {
    display: block;
    width: 100%;
    max-height: 460px;
    aspect-ratio: 16 / 7;
    background: #eaf1f1;
    object-fit: cover;
    object-position: center;
}

.article-brand-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(20px, 4vw, 48px);
    background: linear-gradient(110deg, #123f52, #176d78);
    color: #fff;
}

.article-brand-banner span {
    color: #83dcca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.article-brand-banner h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.article-social-link {
    border: 0;
    border-radius: 7px;
    color: #176d78;
    font-size: 12px;
    font-weight: 700;
}

.article-content-body {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 58px) !important;
}

.article-title {
    margin: 0 0 14px;
    color: #183b48;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.17;
    overflow-wrap: anywhere;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 28px;
    color: #71838b;
    font-size: 12px;
}

.article-byline i {
    color: #168277;
}

.article-body {
    color: #344f59;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-body br + br {
    display: block;
    margin-bottom: 8px;
    content: "";
}

.featured-doctor-card {
    padding: 24px;
    border: 1px solid #dcebe7;
    border-radius: 12px;
    background: #f4faf8;
}

.featured-doctor-card .card {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

.featured-doctor-card .card-body {
    padding: 0;
}

.featured-doctor-card h5 {
    color: #168277 !important;
}

.featured-doctor-card h6 {
    color: #183b48;
    font-size: 17px;
    font-weight: 700;
}

.featured-doctor-card p,
.featured-doctor-card small {
    color: #5d727a !important;
    line-height: 1.6;
}

.featured-doctor-image {
    width: 150px;
    height: 150px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #eaf1f1;
    object-fit: cover;
    box-shadow: 0 5px 18px rgba(21, 58, 69, .13);
}

.article-back-link {
    border-radius: 7px;
    font-weight: 700;
}

.article-additional-content,
.article-seo-note {
    border: 1px solid #e3ebed;
    border-radius: 10px;
    background: #f8fbfb;
    color: #526b74;
    line-height: 1.75;
}

.article-share-panel {
    overflow: hidden;
    border: 1px solid #e1eaed;
    border-radius: 12px;
    background: #f8fbfb;
}

.article-share-panel h5 {
    color: #183b48;
}

.article-share-panel .btn {
    min-height: 42px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.article-ecosystem {
    border-top: 1px solid #dfe9eb;
    background: #edf4f5;
}

.article-ecosystem h3,
.article-ecosystem h4 {
    color: #183b48 !important;
}

.article-ecosystem .card {
    border: 1px solid #e1eaed !important;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(21, 58, 69, .05) !important;
}

@media (max-width: 767.98px) {
    .articles-page {
        padding: 24px 0 46px;
    }

    .articles-page-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .articles-hero {
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .articles-hero > p {
        font-size: 14px;
    }

    .articles-hero-note {
        align-items: flex-start;
        border-radius: 10px;
    }

    .article-library {
        padding: 16px;
        border-radius: 12px;
    }

    .article-library-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .article-search {
        width: 100%;
    }

    .article-results-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .public-article-image {
        aspect-ratio: 16 / 9;
    }

    .public-article-card-body {
        padding: 15px;
    }

    .article-view-section {
        padding: 22px 0 0;
    }

    .article-view-section > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .article-detail-card {
        border-radius: 12px;
    }

    .article-detail-hero {
        max-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .article-brand-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .article-content-body {
        padding: 22px 18px !important;
    }

    .article-byline {
        margin-bottom: 20px;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.8;
    }

    .featured-doctor-card {
        padding: 17px;
    }

    .article-share-panel .btn {
        justify-content: center;
        width: 100%;
    }
}
