label.error{
    font-size: 13px;
    color: #CA0B00;
    line-height: normal !important;
    font-weight: normal;
    /*left: 50%;*/
    /*position: absolute;*/
    /*bottom: -30px;*/
    /*transform: translateX(-50%);*/
}

.single-medical_articles .article-tags,
.single-services .article-tags {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid #e7eef8;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 100%);
}

.single-medical_articles .article-tags--simple,
.single-services .article-tags--simple {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-medical_articles .article-tags--simple span,
.single-services .article-tags--simple span {
    margin-inline-end: 6px;
}

.single-medical_articles .article-tags--simple a,
.single-services .article-tags--simple a {
    color: inherit;
    font-size: 15px;
    font-weight: 500;
}

.single-medical_articles .article-tags--simple a:hover,
.single-services .article-tags--simple a:hover {
    color: #ef6e0d;
}

.single-medical_articles .article-tags__icon,
.single-services .article-tags__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1f3c88;
    color: #fff;
    flex: 0 0 42px;
}

.single-medical_articles .article-tags__content,
.single-services .article-tags__content {
    flex: 1;
}

.single-medical_articles .article-tags__label,
.single-services .article-tags__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f3c88;
}

.single-medical_articles .article-tags__list,
.single-services .article-tags__list,
.single-medical_articles .widget_tag_cloud .tagcloud,
.single-services .widget_tag_cloud .tagcloud {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.single-medical_articles .tag-pill,
.single-services .tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    grid-column: span var(--tag-span, 4);
    border-radius: 14px;
    border: 1px solid #d8e5fb;
    background: #fff;
    color: #1f3c88;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(31, 60, 136, 0.06);
    transition: all .2s ease-in-out;
}

.single-medical_articles .tag-pill:hover,
.single-services .tag-pill:hover {
    background: #1f3c88;
    border-color: #1f3c88;
    color: #fff;
    transform: translateY(-1px);
}

.single-medical_articles .tag-link-count,
.single-services .tag-link-count,
.single-medical_articles .tag-more,
.single-services .tag-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(31, 60, 136, 0.08);
    color: #1f3c88;
    font-size: 12px;
    font-weight: 700;
}

.single-medical_articles .tag-pill:hover .tag-link-count,
.single-services .tag-pill:hover .tag-link-count {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.single-medical_articles .widget_tag_cloud--popular,
.single-services .widget_tag_cloud--popular {
    margin-top: 28px;
}

.tag-archive-page {
    padding-bottom: 60px;
}

.tag-archive-hero {
    padding: 28px 30px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #e1eaf8;
}

.tag-archive-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #ef6e0d;
    font-weight: 700;
}

.tag-archive-hero__title {
    margin: 0 0 10px;
    color: #1f3c88;
    font-size: 34px;
    font-weight: 700;
}

.tag-archive-hero__desc {
    margin: 0;
    color: #5d6b82;
    line-height: 1.9;
}

.tag-archive-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag-archive-stat {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe7fb;
    color: #1f3c88;
    font-weight: 600;
}

.tag-archive-block {
    margin-bottom: 28px;
    padding: 24px 26px;
    border: 1px solid #e7eef8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 60, 136, 0.05);
}

.tag-archive-block--all-tags {
    margin-top: 28px;
}

.tag-archive-block__head {
    margin-bottom: 18px;
}

.tag-archive-block__head h2 {
    margin: 0 0 6px;
    color: #1f3c88;
    font-size: 24px;
    font-weight: 700;
}

.tag-archive-block__head p {
    margin: 0;
    color: #6c7890;
}

.tag-archive-page .tagcloud--archive {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.tag-archive-page .tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    grid-column: span var(--tag-span, 3);
    border-radius: 14px;
    border: 1px solid #d8e5fb;
    background: #fff;
    color: #1f3c88;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(31, 60, 136, 0.06);
    transition: all .2s ease-in-out;
}

.tag-archive-page .tag-pill:hover,
.tag-archive-page .tag-pill.is-active {
    background: #1f3c88;
    border-color: #1f3c88;
    color: #fff;
    transform: translateY(-1px);
}

.tag-archive-page .tag-pill:hover .tag-link-count,
.tag-archive-page .tag-pill.is-active .tag-link-count {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.tag-archive-page .tag-link-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(31, 60, 136, 0.08);
    color: #1f3c88;
    font-size: 12px;
    font-weight: 700;
}

.tag-archive-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tag-archive-item {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #edf1f8;
    background: #fbfdff;
}

.tag-archive-item__thumb {
    width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef4ff;
}

.tag-archive-item__thumb img,
.tag-archive-item__thumb--placeholder {
    display: block;
    width: 100%;
    min-height: 190px;
    height: 100%;
    object-fit: cover;
}

.tag-archive-item__thumb--placeholder {
    background: linear-gradient(135deg, #edf3ff 0%, #dfeaff 100%);
}

.tag-archive-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tag-archive-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.tag-archive-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 110, 13, 0.1);
    color: #ef6e0d;
    font-size: 13px;
    font-weight: 700;
}

.tag-archive-date {
    color: #6c7890;
    font-size: 14px;
}

.tag-archive-item__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1f3c88;
}

.tag-archive-item__excerpt {
    margin: 0 0 14px;
    color: #5d6b82;
    line-height: 1.9;
}

.tag-archive-item__link {
    align-self: flex-start;
    padding: 9px 16px;
    border-radius: 999px;
    background: #1f3c88;
    color: #fff !important;
    font-weight: 600;
}

.tag-archive-item__link:hover {
    background: #ef6e0d;
}

.tag-archive-pagination {
    margin-top: 22px;
}

@media (max-width: 767px) {
    .single-medical_articles .article-tags,
    .single-services .article-tags {
        padding: 14px;
    }

    .single-medical_articles .article-tags__list,
    .single-services .article-tags__list,
    .single-medical_articles .widget_tag_cloud .tagcloud,
    .single-services .widget_tag_cloud .tagcloud,
    .tag-archive-page .tagcloud--archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-medical_articles .tag-pill,
    .single-services .tag-pill,
    .tag-archive-page .tag-pill {
        grid-column: span 1 !important;
    }

    .tag-archive-hero {
        padding: 20px;
    }

    .tag-archive-hero__title {
        font-size: 28px;
    }

    .tag-archive-block {
        padding: 18px;
    }

    .tag-archive-item {
        flex-direction: column;
    }

    .tag-archive-item__thumb {
        width: 100%;
        max-width: none;
        flex-basis: auto;
    }
}