/* ============================================================
   KYARA CLINIC — BLOG & ARTICLES STYLESHEET
   ============================================================ */

/* Reading Progress Bar */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary, #C2185B), var(--gold, #B8860B));
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* ── Blog Hero ── */
.blog-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at 80% 20%, rgba(194, 24, 91, 0.08) 0%, rgba(255, 255, 255, 0) 60%),
                linear-gradient(180deg, #FDF7F9 0%, #FFFFFF 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(194, 24, 91, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero .section-tag {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary, #C2185B);
    background: rgba(194, 24, 91, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-hero h1 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 3rem;
    font-weight: 700;
    color: #1A1025;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.1rem;
    color: #5D506C;
    max-width: 680px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

/* ── Search & Filter Controls ── */
.blog-controls-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.blog-search-box {
    position: relative;
    width: 100%;
    max-width: 540px;
}

.blog-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9E8EA8;
    font-size: 1rem;
}

.blog-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1.5px solid rgba(194, 24, 91, 0.16);
    background: #FFFFFF;
    border-radius: 50px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    color: #1A1025;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.04);
    outline: none;
    transition: all 0.25s ease;
}

.blog-search-input:focus {
    border-color: var(--primary, #C2185B);
    box-shadow: 0 8px 24px rgba(194, 24, 91, 0.12);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5D506C;
    background: #FFFFFF;
    border: 1px solid #EADEE5;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary, #C2185B);
    color: #FFFFFF;
    border-color: var(--primary, #C2185B);
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.25);
}

/* ── Blog Grid ── */
.blog-listing-section {
    padding: 60px 0 100px;
    background: #FAFAFA;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #F0E6EB;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(194, 24, 91, 0.12);
}

.blog-card-media {
    position: relative;
    width: 100%;
    height: 300px;
    background: #FDF4F7;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--primary, #C2185B);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #8C7F9B;
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1A1025;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary, #C2185B);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #635870;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    border-top: 1px solid #F3ECF0;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary, #C2185B);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: var(--primary-dark, #880E4F);
}

/* ── No Results State ── */
.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px dashed #E0D4DC;
}

.no-posts-found i {
    font-size: 3rem;
    color: #C0B2C0;
    margin-bottom: 16px;
}

/* ── Single Article Page Layout ── */
.article-header {
    padding: 150px 0 40px;
    background: radial-gradient(circle at 90% 10%, rgba(194, 24, 91, 0.09) 0%, transparent 60%),
                linear-gradient(180deg, #FAF4F7 0%, #FFFFFF 100%);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #7B7191;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-breadcrumbs a {
    color: #7B7191;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumbs a:hover {
    color: var(--primary, #C2185B);
}

.article-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1025;
    margin-bottom: 18px;
    max-width: 960px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #F0E6EB;
    border-bottom: 1px solid #F0E6EB;
    font-size: 0.88rem;
    color: #635870;
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    padding: 50px 0 90px;
    align-items: start;
}

/* Featured Poster Visual Card */
.article-poster-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid #F0E3E9;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.08);
    margin-bottom: 40px;
    position: relative;
}

.article-poster-img {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    background: #FFF8FA;
}

.poster-caption {
    font-size: 0.85rem;
    color: #8C7F9B;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Quick Medical Takeaways Alert */
.medical-takeaway-box {
    background: #FDF6F9;
    border-left: 4px solid var(--primary, #C2185B);
    padding: 22px 26px;
    border-radius: 0 14px 14px 0;
    margin-bottom: 35px;
}

.medical-takeaway-box h4 {
    font-size: 1.05rem;
    color: var(--primary-dark, #880E4F);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medical-takeaway-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.medical-takeaway-box li {
    font-size: 0.92rem;
    color: #3D3050;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.medical-takeaway-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary, #C2185B);
    font-weight: 700;
}

/* Article Body Typography */
.article-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #2D2338;
}

.article-body h2 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.95rem;
    font-weight: 700;
    color: #1A1025;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-body h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1025;
    margin: 30px 0 14px;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body ul, .article-body ol {
    margin: 0 0 24px 22px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    background: #FFF9FA;
    border-left: 3px solid var(--gold, #B8860B);
    padding: 18px 24px;
    font-style: italic;
    color: #4C3C5A;
    border-radius: 0 10px 10px 0;
    margin: 28px 0;
}

/* Doctor / Author Bio */
.doctor-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FAF6F8;
    border: 1px solid #F0E3E9;
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
}

.doctor-author-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #C2185B);
    flex-shrink: 0;
}

.doctor-author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1025;
    margin-bottom: 4px;
}

.doctor-author-info .doctor-role {
    font-size: 0.84rem;
    color: var(--primary, #C2185B);
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-author-info p {
    font-size: 0.88rem;
    color: #635870;
    margin: 0;
    line-height: 1.5;
}

/* Sidebar Widgets */
.article-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #F0E6EB;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.sidebar-widget-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A1025;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2.5px;
    background: var(--primary, #C2185B);
    border-radius: 2px;
}

/* Consultation Box */
.consultation-cta-card {
    background: linear-gradient(135deg, #FFF1F5 0%, #FFFFFF 100%);
    border: 1.5px solid rgba(194, 24, 91, 0.2);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
}

.consultation-cta-card i.cta-icon {
    font-size: 2.4rem;
    color: var(--primary, #C2185B);
    margin-bottom: 14px;
}

.consultation-cta-card h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.5rem;
    color: #1A1025;
    margin-bottom: 10px;
}

.consultation-cta-card p {
    font-size: 0.9rem;
    color: #5D506C;
    margin-bottom: 22px;
}

.cta-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-btn-stack .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.9rem;
}

.btn-call-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--primary, #C2185B);
    border: 1.5px solid var(--primary, #C2185B);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 10px 18px;
    font-size: 0.88rem;
}

.btn-call-outline:hover {
    background: var(--primary, #C2185B);
    color: #FFFFFF;
}

.btn-wa-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    padding: 10px 18px;
    font-size: 0.88rem;
}

.btn-wa-outline:hover {
    background: #1EBE5D;
}

/* Related Posts Strip */
.related-posts-section {
    padding: 70px 0 90px;
    background: #FAFAFA;
    border-top: 1px solid #EFE6EC;
}

/* Homepage Blog Preview Section */
.home-blog-section {
    padding: 90px 0;
    background: #FAFAFA;
    position: relative;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .article-content-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .article-sidebar {
        position: static;
    }
    .blog-hero h1 {
        font-size: 2.4rem;
    }
    .article-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        padding: 130px 0 40px;
    }
    .blog-hero h1 {
        font-size: 2rem;
    }
    .article-header {
        padding: 130px 0 30px;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .doctor-author-card {
        flex-direction: column;
        text-align: center;
    }
}
