/*
Theme Name: D.MED Clinic Elementor Theme
Theme URI: https://ds.clinic-d.med/
Author: Anatolii Yurchuk
Author URI: https://t.me/AnatoliiYurchuk
Description: Lightweight WordPress theme for the D.MED clinic Elementor migration. Header, footer, page sections and popup are provided by the D.MED Clinic Elementor Widgets plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ds-clinic-theme
*/

body {
    margin: 0;
}

.ds-clinic-theme-content {
    min-height: 60vh;
}

.ds-clinic-fallback {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 0 20px;
    font-family: sans-serif;
}

.ds-clinic-virtual-blog .ds-clinic-theme-content,
.single-post .ds-clinic-theme-content {
    padding-top: 112px;
}

.ds-article-page {
    background:
        radial-gradient(circle at top right, rgba(171, 206, 225, 0.18), transparent 28%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 24%);
}

.ds-article-hero {
    padding: 48px 0 28px;
}

.ds-article-hero__grid {
    display: block;
}

.ds-article-hero__content,
.ds-article-spotlight,
.ds-article-cover-card,
.ds-article-sidebar-card,
.ds-article-cta__card {
    border: 1px solid rgba(226, 236, 242, 0.95);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 50px rgba(52, 97, 127, 0.08);
}

.ds-article-hero__content {
    padding: 34px 36px 38px;
}

.ds-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--primary-dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.ds-article-back:hover {
    color: var(--primary-orange);
}

.ds-article-kicker-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ds-article-kicker-row .section-label {
    margin-bottom: 0;
    line-height: 1;
}

.ds-article-category {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(171, 206, 225, 0.18);
    color: var(--primary-dark-blue);
    font-size: 0.86rem;
    font-weight: 700;
}

.ds-article-title {
    font-size: clamp(1.95rem, 3vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: none;
}

.ds-article-excerpt {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 58ch;
    margin-bottom: 24px;
}

.ds-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ds-article-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(226, 236, 242, 0.95);
    color: var(--primary-dark-blue);
    font-size: 0.92rem;
    font-weight: 600;
}

.ds-article-meta__item .material-icons-round {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.ds-article-spotlight,
.ds-article-cover-card {
    height: 100%;
}

.ds-article-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(171, 206, 225, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ds-article-spotlight__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(241, 78, 35, 0.12);
    color: var(--primary-orange);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ds-article-spotlight h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.4rem);
    margin-bottom: 0;
}

.ds-article-spotlight p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.ds-article-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.ds-article-highlights li {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(226, 236, 242, 0.95);
    color: var(--primary-dark-blue);
    font-size: 0.88rem;
    font-weight: 600;
}

.ds-article-cover-card {
    overflow: hidden;
    min-height: 420px;
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ds-article-cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-article-body {
    padding: 10px 0 34px;
}

.ds-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.ds-article-content {
    padding: 38px 42px 46px;
    border-radius: 32px;
    border: 1px solid rgba(226, 236, 242, 0.95);
    background: #fff;
    box-shadow: 0 24px 50px rgba(52, 97, 127, 0.06);
}

.ds-article-content > *:first-child {
    margin-top: 0;
}

.ds-article-content > *:last-child {
    margin-bottom: 0;
}

.ds-article-content p,
.ds-article-content li {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.9;
}

.ds-article-content p {
    margin: 0 0 1.2rem;
}

.ds-article-content h2,
.ds-article-content h3,
.ds-article-content h4 {
    margin: 2.2rem 0 1rem;
    color: var(--primary-dark-blue);
    line-height: 1.15;
}

.ds-article-content h2 {
    font-size: clamp(1.45rem, 1.7vw, 1.9rem);
}

.ds-article-content h3 {
    font-size: clamp(1.15rem, 1.3vw, 1.4rem);
}

.ds-article-content ul,
.ds-article-content ol {
    margin: 0 0 1.4rem 1.4rem;
    padding: 0;
}

.ds-article-content ul {
    list-style: disc;
}

.ds-article-content ol {
    list-style: decimal;
}

.ds-article-content li::marker {
    color: var(--primary-orange);
}

.ds-article-content li + li {
    margin-top: 0.55rem;
}

.ds-article-content blockquote {
    margin: 2rem 0;
    padding: 24px 26px;
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 24px 24px 0;
    background: rgba(171, 206, 225, 0.12);
}

.ds-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.ds-article-content strong {
    color: var(--primary-dark-blue);
}

.ds-article-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ds-article-content figure,
.ds-article-content .wp-block-image,
.ds-article-content .wp-block-embed {
    margin: 2rem 0;
}

.ds-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.ds-article-sidebar {
    position: sticky;
    top: 124px;
}

.ds-article-sidebar-card {
    padding: 28px;
}

.ds-article-sidebar-card h3 {
    font-size: 1.25rem;
    margin: 0 0 14px;
}

.ds-article-sidebar-card p {
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.7;
}

.ds-article-sidebar-card .btn {
    width: 100%;
}

.ds-article-sidebar-card__phone {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary-dark-blue);
    font-weight: 700;
}

.ds-article-cta {
    padding: 10px 0 84px;
}

.ds-article-cta__card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 34px;
    background:
        radial-gradient(circle at right top, rgba(171, 206, 225, 0.25), transparent 32%),
        linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ds-article-cta__copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 1.9vw, 1.9rem);
}

.ds-article-cta__copy p {
    margin: 0;
    max-width: 58ch;
    color: var(--text-muted);
    line-height: 1.75;
}

.ds-article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .ds-article-hero__grid,
    .ds-article-layout,
    .ds-article-cta__card {
        grid-template-columns: 1fr;
    }

    .ds-article-sidebar {
        position: static;
    }

    .ds-article-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .ds-article-sidebar {
        display: none;
    }

    .ds-clinic-virtual-blog .ds-clinic-theme-content,
    .single-post .ds-clinic-theme-content {
        padding-top: 92px;
    }

    .ds-article-hero {
        padding: 28px 0 20px;
    }

    .ds-article-hero__content,
    .ds-article-content,
    .ds-article-sidebar-card,
    .ds-article-spotlight,
    .ds-article-cta__card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .ds-article-title {
        font-size: 37px;
        max-width: none;
    }

    .ds-article-excerpt,
    .ds-article-content p,
    .ds-article-content li {
        font-size: 1rem;
    }

    .ds-article-content h2 {
        font-size: 1.3rem;
    }

    .ds-article-content h3 {
        font-size: 1.08rem;
    }

    .ds-article-cover-card {
        min-height: 260px;
    }

    .ds-article-cta {
        padding-bottom: 56px;
    }

    .ds-article-cta__actions .btn {
        width: 100%;
    }
}

.ds-blog-archive-page {
    background:
        radial-gradient(circle at top right, rgba(171, 206, 225, 0.16), transparent 30%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 24%);
}

.ds-blog-hero {
    padding: 48px 0 24px;
}

.ds-blog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
    gap: 32px;
    align-items: stretch;
}

.ds-blog-hero__content,
.ds-blog-hero__panel-card,
.ds-blog-card,
.ds-blog-empty {
    border: 1px solid rgba(226, 236, 242, 0.95);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 50px rgba(52, 97, 127, 0.08);
}

.ds-blog-hero__content {
    padding: 36px;
}

.ds-blog-hero__content h1 {
    font-size: clamp(2.6rem, 3vw, 4.25rem);
    line-height: 1.3;
    margin-bottom: 18px;
}

.ds-blog-hero__content p {
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.ds-blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.ds-blog-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(171, 206, 225, 0.16);
    color: var(--primary-dark-blue);
    font-size: 0.92rem;
    font-weight: 700;
}

.ds-blog-hero__panel-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(171, 206, 225, 0.28), transparent 36%),
        linear-gradient(180deg, rgba(248, 251, 254, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ds-blog-hero__panel-card .material-icons-round {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(241, 78, 35, 0.12);
    color: var(--primary-orange);
    font-size: 1.7rem;
}

.ds-blog-hero__panel-card h2 {
    margin: 0;
    font-size: 2rem;
}

.ds-blog-hero__panel-card p {
    color: var(--text-muted);
    line-height: 1.75;
}

.ds-blog-archive-listing {
    padding: 10px 0 84px;
}

.ds-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ds-blog-card {
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ds-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(52, 97, 127, 0.12);
}

.ds-blog-card__link {
    display: block;
    height: 100%;
}

.ds-blog-card__media,
.ds-blog-card__visual {
    position: relative;
    height: 220px;
    background:
        radial-gradient(circle at top right, rgba(171, 206, 225, 0.3), transparent 35%),
        linear-gradient(180deg, rgba(248, 251, 254, 1) 0%, rgba(233, 243, 249, 0.92) 100%);
}

.ds-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-blog-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-blog-card__visual .material-icons-round {
    font-size: 4rem;
    color: rgba(52, 97, 127, 0.5);
}

.ds-blog-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark-blue);
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 1;
}

.ds-blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 24px;
}

.ds-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6a8193;
    font-size: 0.86rem;
    font-weight: 600;
}

.ds-blog-card__body h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.15;
}

.ds-blog-card__body p {
    color: var(--text-muted);
    line-height: 1.75;
}

.ds-blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary-orange);
    font-weight: 700;
}

.ds-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 34px;
}

.ds-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(226, 236, 242, 0.95);
    background: #fff;
    color: var(--primary-dark-blue);
    font-weight: 700;
}

.ds-blog-pagination .page-numbers.current,
.ds-blog-pagination .page-numbers:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #fff;
}

.ds-blog-empty {
    padding: 34px;
    text-align: center;
}

@media (max-width: 1100px) {
    .ds-blog-hero__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .ds-blog-hero {
        padding: 28px 0 20px;
    }

    .ds-blog-hero__content,
    .ds-blog-hero__panel-card,
    .ds-blog-empty {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .ds-blog-hero__content h1 {
        font-size: clamp(2.1rem, 12vw, 1rem);
        max-width: none;
    }

    .ds-blog-hero__content p {
        font-size: 1rem;
    }

    .ds-blog-grid {
        grid-template-columns: 1fr;
    }

    .ds-blog-card {
        border-radius: 24px;
    }

    .ds-blog-card__media,
    .ds-blog-card__visual {
        height: 200px;
    }

    .ds-blog-card__body h2 {
        font-size: 1.35rem;
    }

    .ds-blog-archive-listing {
        padding-bottom: 56px;
    }
}
