/* ==========================================================================
   Schone Clinic - Blogs & Articles Custom Styling
   ========================================================================== */

/* Modern styling for the Blog Cards */
.blog-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0 !important; /* Reset padding to overwrite cached versions */
}
.blog-card:hover {
    transform: none !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.blog-card .dz-media {
    height: 240px !important;
    margin-bottom: 0 !important;
    border-top-left-radius: 12px !important; /* Matches top of the card */
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important; /* Flat bottom corners */
    border-bottom-right-radius: 0 !important;
    overflow: hidden !important;
}

.blog-card .dz-media img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.blog-card:hover .dz-media img {
    transform: scale(1.08);
}

.blog-card .dz-info {
    padding-top: 14px !important;
}
.blog-card .dz-meta {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.hover-text-primary {
    transition: color 0.2s ease-in-out;
}
.hover-text-primary:hover {
    color: #F46700 !important; /* Brand golden-orange */
}

/* Blog Card Read More Button Styling */
.blog-card .btn-outline-primary {
    color: #0A3366 !important; /* Matches heading dark navy */
    border-color: #F46700 !important; /* Orange outline */
}
.blog-card .btn-outline-primary:hover {
    color: #fff !important;
    background-color: #F46700 !important;
    border-color: #F46700 !important;
}
/* Style filters */
.filter-btn {
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.filter-btn.active,
.btn-primary.filter-btn,
.btn-primary.filter-btn:hover,
.btn-primary.filter-btn:focus,
.btn-primary.filter-btn:active {
    border-color: #F46700 !important;
    background-color: #F46700 !important;
    box-shadow: 0 4px 10px rgba(244, 103, 0, 0.3) !important;
}
.input-group-text {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
#blogSearch {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border: 1px solid #ddd;
}
#blogSearch:focus {
    border-color: #F46700;
    box-shadow: 0 0 0 0.2rem rgba(244, 103, 0, 0.25);
}

/* Related Articles Card Styling */
.related-article-card {
    transition: box-shadow 0.3s ease !important;
}
.related-article-card:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* Related Articles Sidebar Item Hover (legacy, kept for backward compat) */
.related-sidebar-item:hover {
    background: rgba(244, 103, 0, 0.05) !important;
}

/* ============================================================
   sc-related-widget — Sidebar Related Articles Component
   ============================================================ */
.sc-related-widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.sc-related-widget__header {
    padding: 20px 20px 14px;
    border-bottom: 2px solid #F46700;
}
.sc-related-widget__title {
    font-weight: 800;
    font-size: 17px;
    color: #0A3366;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-related-widget__title-icon {
    color: #F46700;
    font-size: 16px;
}
.sc-related-widget__body {
    padding: 12px;
}
.sc-related-widget__footer {
    border-top: 1px solid #f0f0f0;
    padding: 14px 20px 20px;
    text-align: center;
}
.sc-related-widget__view-all {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: 1.5px solid #F46700;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #0A3366;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}
.sc-related-widget__view-all:hover {
    background: #F46700;
    color: #fff;
}

/* sc-related-item — individual article row */
.sc-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.sc-related-item:hover {
    background: rgba(244, 103, 0, 0.05);
}
.sc-related-item__thumb {
    width: 110px;
    min-width: 110px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sc-related-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sc-related-item__content {
    flex-grow: 1;
    min-width: 0;
}
.sc-related-item__cat {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #F46700;
    background: rgba(244,103,0,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}
.sc-related-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #0A3366;
    line-height: 1.4;
    margin: 0 0 5px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sc-related-item__date {
    font-size: 11px;
    color: #aaa;
}
.sc-related-item__date-icon {
    font-size: 10px;
    margin-right: 3px;
}
.sc-related-item__divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 8px;
}

/* ============================================================
   sc-cta-widget — Sidebar Consultation CTA Block
   ============================================================ */
.sc-cta-widget {
    background-color: #0A3366;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sc-cta-widget__title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 12px 0;
}
.sc-cta-widget__text {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.sc-cta-widget__btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background-color: #F46700;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
}
.sc-cta-widget__btn:hover {
    background-color: #d95d00;
    color: #fff;

}

/* ============================================================
   sc-share-box — Social Share Bar
   ============================================================ */
.sc-share-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding-top: 20px;
}
.sc-share-box__label {
    font-weight: 700;
    font-size: 14px;
    color: #0A3366;
    white-space: nowrap;
}
.sc-share-box__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.sc-share-btn:hover {

    color: #fff;
    opacity: 0.92;
}
.sc-share-btn--whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
.sc-share-btn--whatsapp:hover {
    box-shadow: 0 6px 18px rgba(37,211,102,0.5);
}
.sc-share-btn--facebook {
    background: #1877F2;
    box-shadow: 0 4px 12px rgba(24,119,242,0.35);
}
.sc-share-btn--facebook:hover {
    box-shadow: 0 6px 18px rgba(24,119,242,0.5);
}
.sc-share-btn--x {
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.sc-share-btn--x:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.sc-share-btn--instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 4px 12px rgba(214,36,159,0.35);
}
.sc-share-btn--instagram:hover {
    box-shadow: 0 6px 18px rgba(214,36,159,0.5);
}


/* ============================================================
   sc-post-title & sc-post-meta — Article Header Meta Details
   ============================================================ */
.sc-post-title {
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    font-size: 32px;
    color: #0A3366;
}
.sc-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    font-size: 14px;
    color: #666;
}
.sc-post-meta__author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-post-meta__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(244, 103, 0, 0.1);
    color: #F46700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.sc-post-meta__name {
    font-weight: 700;
    color: #0A3366;
}
.sc-post-meta__divider {
    color: #ccc;
    user-select: none;
}
.sc-post-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sc-post-meta__item i {
    color: #F46700;
}
.sc-post-meta__category {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: #F46700;
    background-color: rgba(244, 103, 0, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

/* CSS overrides for related articles & detail styling */
.blog-detail-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
.blog-detail-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0A3366;
    font-size: 24px;
}
.blog-detail-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.blog-detail-content ul li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.8;
}

/* ============================================================
   Responsive Typography & Spacing Overrides (Mobile-First / Max-Width)
   ============================================================ */
@media (max-width: 768px) {
    /* Banner Title */
    .sc-bnr-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    /* Blog Detail Title */
    .sc-post-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    /* Blog Detail Metadata Bar */
    .sc-post-meta {
        font-size: 12px !important;
        gap: 8px 10px !important;
        margin-bottom: 20px !important;
    }
    
    .sc-post-meta__avatar {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
    }
    
    /* Blog detail main paragraph font sizes */
    .blog-detail-content p, 
    .blog-detail-content ul li {
        font-size: 14.5px !important;
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
    }
    
    /* Blog detail H3 sub-headings */
    .blog-detail-content h3 {
        font-size: 19px !important;
        margin-top: 24px !important;
        margin-bottom: 10px !important;
    }
    
    /* Social Share Container on Mobile */
    .sc-share-box {
        margin-top: 30px !important;
        padding-top: 15px !important;
        gap: 12px !important;
    }
    
    .sc-share-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    /* Sidebar Widgets Margins on Mobile */
    .sc-related-widget, 
    .sc-cta-widget {
        margin-bottom: 20px !important;
    }
    
    /* Featured image max-height on mobile to keep a nice aspect ratio */
    .dz-media img {
        max-height: 280px !important;
    }
}

/* ============================================================
   Console Error Fix: Prevent browser from requesting missing bg02.svg
   ============================================================ */
.icon-bx-wraper.style-3:after {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}


