/* ==========================================================================
   Salus EMR - Custom Blog Page Stylesheet (blogstyle.css)
   Colors & Typography adhere to Features page & brand guidelines:
   - Primary Slate Green: #2F4E4E
   - Secondary Bronze/Gold: #CF9B67
   - Warm Off-White Background: #FCF7EB
   - Dark Navy Titles: #0F172A / #12263F
   - Vibrant Category Purple: #cf9b67 / #7C3AED
   ========================================================================== */

/* Font Definitions & Reset */
.blog-page-wrapper {
    font-family: 'muliregular', 'Montserrat', sans-serif;
    color: #334155;
    background-color: #FCF7EB;
    min-height: 100vh;
    padding-bottom: 60px;
}

.blog-page-wrapper a {
    text-decoration: none !important;
    transition: all 0.25s ease;
}

/* ==========================================
   SECTION 1: HERO TITLE SECTION (Features page style)
   ========================================== */
.blog-hero-section {
    background: #FCF7EB;
    padding: 110px 0 50px;
    position: relative;
    border-bottom: 1px solid rgba(47, 78, 78, 0.08);
}

.blog-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(47, 78, 78, 0.1);
    color: #2F4E4E;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.blog-hero-title {
    color: #0F172A;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-hero-title b {
    color: #2F4E4E;
    font-weight: 800;
}

.blog-hero-subtitle {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 30px;
}

/* Filter & Search Bar */
.blog-filter-bar {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #FFFFFF;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #E2E8F0;
}

.blog-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-filter-tag {
    background: #F1F5F9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filter-tag:hover,
.blog-filter-tag.active {
    background: #2F4E4E;
    color: #FFFFFF;
}

.blog-search-box {
    position: relative;
    min-width: 260px;
}

.blog-search-input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    border-radius: 30px;
    border: 1px solid #CBD5E1;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #FAFAFA;
}

.blog-search-input:focus {
    border-color: #2F4E4E;
    background: #FFFFFF;
}

.blog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
}

/* ==========================================
   SECTION 2: FEATURED POST & SIDEBAR (Screenshot 1 Layout)
   ========================================== */
.blog-featured-section {
    padding: 50px 0 40px;
}

/* Featured Left Main Card */
.featured-post-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.featured-img-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #1E293B;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-img-wrap img {
    transform: scale(1.03);
}

/* Wavy background lines overlay graphic */
.wavy-lines-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='600' height='400' viewBox='0 0 600 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M150 -50 C 300 100, 200 300, 550 450' stroke='rgba(255,255,255,0.45)' stroke-width='2' fill='none'/%3E%3Cpath d='M250 -80 C 400 120, 280 320, 620 420' stroke='rgba(255,255,255,0.3)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M50 50 C 200 250, 350 150, 500 350' stroke='rgba(255,255,255,0.25)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: right top;
}

.featured-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-title {
    color: #0F172A;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.featured-title a {
    color: #0F172A;
}

.featured-title a:hover {
    color: #2F4E4E;
}

.featured-tag {
    color: #cf9b67;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-excerpt {
    color: #64748B;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Right Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #E2E8F0;
}

.sidebar-widget-title {
    color: #cf9b67;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list-item {
    padding: 14px 0;
    border-bottom: 1px solid #F1F5F9;
}

.sidebar-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list-item:first-child {
    padding-top: 0;
}

.sidebar-list-item a {
    color: #1E293B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    display: block;
}

.sidebar-list-item a:hover {
    color: #cf9b67;
}

/* ==========================================
   SECTION 3: BLOG POST CARD GRID (Screenshot 2 Layout)
   ========================================== */
.blog-grid-section {
    padding: 30px 0 60px;
}

.blog-grid-section-title {
    color: #0F172A;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-grid-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #E2E8F0;
}

/* Card Design matching Screenshot 2 "Practice Management Tips" */
.blog-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: #CBD5E1;
}

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #1E293B;
}

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

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

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

.blog-card-tag {
    color: #cf9b67;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card-title {
    color: #0F172A;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.blog-card-title a {
    color: #0F172A;
}

.blog-card-title a:hover {
    color: #2F4E4E;
}

.blog-card-excerpt {
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

/* ==========================================
   LOAD MORE BUTTON & ANIMATION
   ========================================== */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.btn-load-more {
    background: #2F4E4E;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 42px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 78, 78, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: #1F3434;
    color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(47, 78, 78, 0.35);
    transform: translateY(-2px);
}

.blog-card-hidden {
    display: none !important;
}

.blog-card-hidden.blog-card-visible {
    display: flex !important;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 991px) {
    .blog-hero-title {
        font-size: 30px;
        letter-spacing: 0.1em;
    }
    .featured-img-wrap {
        height: 250px;
    }
    .featured-title {
        font-size: 22px;
    }
    .featured-body {
        padding: 22px;
    }
    .blog-sidebar {
        margin-top: 30px;
    }
    .blog-card-img-wrap {
        height: 190px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 90px 0 40px;
    }
    .blog-hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-search-box {
        min-width: 100%;
    }
    .featured-img-wrap {
        height: 210px;
    }
    .featured-title {
        font-size: 20px;
    }
    .sidebar-widget-title {
        font-size: 20px;
    }
}

/* ==========================================
   SECTION 4: BLOG DETAILS PAGE SPECIFIC STYLES
   (Pixel-Perfect Match to Image Reference)
   ========================================== */
.blog-detail-wrapper {
    padding-top: 110px;
    padding-bottom: 60px;
}

.blog-detail-article {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
}

/* Breadcrumb Styling */
.blog-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-breadcrumb a {
    color: #2F4E4E;
}

.blog-breadcrumb a:hover {
    color: #1F3434;
    text-decoration: underline !important;
}

.breadcrumb-separator {
    color: #94A3B8;
}

/* Meta date */
.blog-detail-date {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Article Main Title */
.blog-detail-title {
    color: #0F172A;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

/* Hero Image Wrap */
.blog-detail-hero-wrap {
    position: relative;
    width: 100%;
    max-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #1E293B;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

/* Article Typography */
.blog-detail-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

.lead-paragraph {
    font-size: 19px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-detail-content p {
    margin-bottom: 22px;
}

.blog-detail-content h2 {
    color: #0F172A;
    font-size: 26px;
    font-weight: 800;
    margin-top: 42px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.blog-detail-content h3 {
    color: #1E293B;
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
}

.inline-link {
    color: #2F4E4E;
    font-weight: 700;
    text-decoration: underline !important;
}

.inline-link:hover {
    color: #1F3434;
}

/* ==========================================
   HIGHLIGHT QUOTE / CALLOUT CARD (Salus Brand Color Palette)
   ========================================== */
.blog-quote-highlight-container {
    position: relative;
    background: #EEF3F1;
    border-radius: 20px;
    padding: 44px 32px 32px;
    margin: 40px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(47, 78, 78, 0.06);
}

/* Geometric Wavy/Curved background shape in brand colors */
.blog-quote-bg-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
    background: radial-gradient(circle at 10% 20%, rgba(47, 78, 78, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(207, 155, 103, 0.15) 0%, transparent 60%);
}

.blog-quote-highlight-container::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 220px;
    height: 380px;
    background: linear-gradient(135deg, #2F4E4E 0%, #3E6363 100%);
    border-radius: 120px;
    opacity: 0.85;
    pointer-events: none;
}

.blog-quote-card-inner {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(47, 78, 78, 0.12);
    margin-left: 20px;
}

.quote-text {
    color: #334155;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.55;
    margin: 0 !important;
}

.quote-text strong {
    color: #0F172A;
    font-weight: 800;
}

/* Brand Footer at bottom right */
.blog-quote-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.brand-logo-icon {
    width: 24px;
    height: 24px;
}

.brand-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #2F4E4E;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

/* Feature Bullet List */
.article-feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}

.article-feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.article-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    background: rgba(47, 78, 78, 0.12);
    color: #2F4E4E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* Article CTA Box */
.article-cta-box {
    background: linear-gradient(135deg, #2F4E4E 0%, #1F3434 100%);
    border-radius: 18px;
    padding: 40px 32px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 48px;
    box-shadow: 0 10px 30px rgba(47, 78, 78, 0.2);
}

.article-cta-box h3 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.article-cta-box p {
    color: #CBD5E1;
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto 24px;
}

.btn-cta-primary {
    background: #CF9B67;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 155, 103, 0.3);
}

.btn-cta-primary:hover {
    background: #B88552;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 155, 103, 0.4);
}

/* Sidebar Topics List */
.sidebar-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-topics-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}

.sidebar-topics-list li:last-child {
    border-bottom: none;
}

.sidebar-topics-list a {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    display: block;
    transition: all 0.2s ease;
}

.sidebar-topics-list a:hover,
.sidebar-topics-list a.active-topic {
    color: #2F4E4E;
    font-weight: 700;
    padding-left: 4px;
}

/* Active Post in Sidebar List */
.sidebar-list-item.active-post a {
    color: #2F4E4E;
}

/* Community Widget (Newsletter Form) */
.community-widget {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px 24px;
}

.sidebar-community-title {
    color: #0F172A;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.sidebar-community-subtitle {
    color: #64748B;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.community-form .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.community-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 14px;
    background: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-input:focus {
    background: #FFFFFF;
    border-color: #2F4E4E;
    box-shadow: 0 0 0 3px rgba(47, 78, 78, 0.15);
    outline: none;
}

.btn-community-submit {
    background: #2F4E4E;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 36px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(47, 78, 78, 0.25);
}

.btn-community-submit:hover {
    background: #1F3434;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(47, 78, 78, 0.35);
}

/* Responsive adjustments for Detail Page */
@media (max-width: 991px) {
    .blog-detail-article {
        padding: 24px;
    }
    .blog-detail-title {
        font-size: 28px;
    }
    .blog-quote-highlight-container {
        padding: 32px 20px 24px;
    }
    .blog-quote-card-inner {
        margin-left: 0;
        padding: 24px 20px;
    }
    .quote-text {
        font-size: 18px;
    }
}

