/**
 * Doctor profile — trusted medical articles (related specialty)
 *
 * @package aldoctorz-theme
 */

.doctor-related-articles-wrap {
    padding: 0;
    margin-top: 1.25rem;
}

.doctor-related-articles {
    --dra-ink: #0a305e;
    --dra-ink-soft: #1e3a5f;
    --dra-muted: #64748b;
    --dra-accent: #34c3db;
    --dra-page-bg: #f1f5f9;
    --dra-card-radius: 16px;
    --dra-panel-radius: 20px;
    background: var(--dra-page-bg);
    border-radius: var(--dra-panel-radius);
}

.doctor-related-articles__panel {
    background: #fff;
    border-radius: 13px;
    border: 1px solid #e6ecf0;
    padding: clamp(1.25rem, 2.5vw, 1.85rem);
    animation: doctorRelatedArticlesIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .doctor-related-articles__panel {
        animation: none;
    }
}

@keyframes doctorRelatedArticlesIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-related-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}

/*
 * Section title — base layout only.
 * Customize title/icon/colors in assets/css/doctor-profile-user.css (loads last).
 */
/* Section title layout (icon + text row) */
.doctor-related-articles__title {
    margin: 0;
    text-align: start;
}

.doctor-related-articles__title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
}

.doctor-related-articles__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(52, 195, 219, 0.2) 0%, rgba(10, 48, 94, 0.1) 100%);
    color: var(--dra-accent);
    font-size: 1.05rem;
}

/* Section title typography — edit here to match your design */
.doctor-related-articles__title-text {
    font-size: 20px;
    font-weight: 800;
    color: #606267;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

[dir="rtl"] .doctor-related-articles__title {
    text-align: right;
}

.doctor-related-articles__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dra-ink);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.doctor-related-articles__view-all:hover {
    color: var(--dra-accent);
    text-decoration: none;
    gap: 0.65rem;
}

.doctor-related-articles__view-all--header {
    white-space: nowrap;
}

.doctor-related-articles__footer {
    margin-top: 1.35rem;
    text-align: center;
}

.doctor-related-articles__footer .doctor-related-articles__view-all {
    display: inline-flex;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a305e 0%, #3f4079 100%);
    color: #fff;
}

.doctor-related-articles__footer .doctor-related-articles__view-all:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 48, 94, 0.28);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .doctor-related-articles__view-all--header {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .doctor-related-articles__footer {
        display: none;
    }
}

.doctor-related-articles__carousel {
    position: relative;
    margin: 0 -0.35rem;
}

.doctor-related-articles__slick .slick-slide {
    padding: 0 0.5rem;
    height: auto;
}

.doctor-related-articles__slick .slick-slide > div {
    height: 100%;
}

.doctor-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--dra-card-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.doctor-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 195, 219, 0.35);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.doctor-article-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.doctor-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.doctor-article-card:hover .doctor-article-card__media img {
    transform: scale(1.05);
}

.doctor-article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
    padding: 1rem 1rem 1.15rem;
    text-align: start;
}

[dir="rtl"] .doctor-article-card__body {
    text-align: right;
}

.doctor-article-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dra-muted);
}

.doctor-article-card__date i {
    color: var(--dra-ink);
    opacity: 0.75;
}

.doctor-article-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.doctor-article-card__title a {
    color: var(--dra-ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-article-card__title a:hover {
    color: var(--dra-accent);
}

.doctor-article-card__excerpt {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--dra-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.doctor-article-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--dra-ink);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.doctor-article-card__more:hover {
    color: var(--dra-accent);
    text-decoration: none;
    gap: 0.6rem;
}

/* Slick arrows — match hospital section */
.doctor-related-articles__slick .slick-prev,
.doctor-related-articles__slick .slick-next {
    z-index: 3;
    width: 44px;
    height: 44px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.12) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-related-articles__slick .slick-prev:before,
.doctor-related-articles__slick .slick-next:before {
    font-size: 20px;
    line-height: 1;
    color: var(--dra-ink) !important;
    opacity: 0.85 !important;
}

.doctor-related-articles__slick .slick-prev {
    left: -6px;
}

.doctor-related-articles__slick .slick-next {
    right: -6px;
}

[dir="rtl"] .doctor-related-articles__slick .slick-prev {
    left: auto;
    right: -6px;
}

[dir="rtl"] .doctor-related-articles__slick .slick-next {
    right: auto;
    left: -6px;
}

@media (max-width: 576px) {
    .doctor-related-articles__slick .slick-prev,
    .doctor-related-articles__slick .slick-next {
        display: none !important;
    }
}

/* Slick dots — match hospital section */
.doctor-related-articles__dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    list-style: none !important;
}

.doctor-related-articles__dots li {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

.doctor-related-articles__dots li button {
    width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    font-size: 0 !important;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease, transform 0.25s ease;
}

.doctor-related-articles__dots li.slick-active button {
    width: 22px !important;
    background: var(--dra-accent) !important;
}

.doctor-related-articles__dots li button:before {
    display: none !important;
}

.doctor-related-articles__slick.slick-carousel.slick-initialized.slick-slider.slick-dotted {
    margin-bottom: 0;
}
