/* News / Articles styles for FMR Clinic Theme
   Improves .post-card appearance to match theme.
*/

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(20, 20, 20, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.09);
}

.news-card .post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.news-card .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--gold-dark);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.news-card .post-content {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-card .post-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.news-card .post-category {
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.news-card .post-date {
    color: var(--muted-text);
}

.news-card .post-title a {
    color: var(--text-color);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.3;
    display: inline-block;
    transition: color 0.18s ease;
    font-weight: 600;
}

.news-card .post-title a:hover {
    color: var(--gold-dark);
}

.news-card .post-excerpt {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    flex: 1 1 auto;
}

.news-card .post-excerpt p {
    margin: 0;
}

.news-card .post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card .btn.btn-small {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.news-card .btn.btn-small:hover {
    background: var(--gold-dark);
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 680px) {
    .news-card .post-thumbnail img {
        height: 160px;
    }
}

@media (max-width: 420px) {
    .news-card .post-thumbnail img {
        height: 140px;
    }

    .news-card .post-title a {
        font-size: 1rem;
    }
}

/* Single post styles */
.post-hero {
    position: relative;
    padding: 0;
    margin-bottom: 1.25rem;
}

.post-hero-image {
    position: relative;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.45));
    /* darkened for better contrast */
}

/* Intro block below hero */
.post-intro {
    background: var(--bg-color);
    padding: 1.25rem 0 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.post-intro .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--muted-text);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--muted-text);
}

.breadcrumb .separator {
    color: var(--muted-text);
}

.entry-header-below .entry-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    font-size: 2rem;
    margin: 0.25rem 0 0.5rem;
}

.entry-header-below .entry-meta {
    display: flex;
    gap: 0.9rem;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.entry-header-below .post-category {
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.post-content-section .content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 980px) {
    .post-content-section .content-grid {
        grid-template-columns: 1fr;
    }
}

.article-body {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body h2,
.article-body h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    margin-top: 1.25rem;
}

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

.article-footer {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: unset !important;
}

.post-categories .post-category,
.post-tags .post-tag {
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.sidebar-area .widget {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
}

.sidebar-area .author-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sidebar-area .author-avatar img {
    border-radius: 9999px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-list a {
    color: var(--text-color);
}

/* Floating CTA adjustments to avoid overlap */
.floating-cta-btn {
    right: 18px;
    bottom: 18px;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 680px) {
    .post-hero-image img {
        height: 260px;
    }

    .entry-header-below .entry-title {
        font-size: 1.5rem;
    }

    .article-body {
        padding: 1.2rem;
    }

    .floating-cta-btn {
        right: 12px;
        bottom: 12px;
        padding: 0.55rem 0.8rem;
    }
}