/* ====================================================
   Blog Page Component - Juniors Children's Clinic
   ==================================================== */

.blog-section {
    padding: 50px 0;
    background-color: var(--section-bg);
    position: relative;
    width: 100%;
}

/* Header */
.blog-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 79, 78, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border-radius: var(--radius-xl);
    margin-bottom: 18px;
    border: 1px solid rgba(240, 79, 78, 0.25);
}

.blog-badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-round);
}

.blog-section h2.blog-main-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.blog-main-title span {
    color: var(--primary-color);
}

.blog-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Category Filter Tabs */
.blog-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.cat-pill {
    padding: 9px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    font-family: var(--primary-font);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* 3-Column Responsive Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Blog Card */
.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: border-color .3s ease, box-shadow .3s ease;
    transform: none !important;
    animation: none !important;
    height: 100%;
}

.blog-card:hover {
    border-color: rgba(240, 79, 78, 0.4);
    box-shadow: var(--shadow-md);
    transform: none !important;
}

/* Card Image Box */
.blog-thumb-box {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.06);
}

.blog-badge-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Card Body */
.blog-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta Information */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-item svg {
    width: 15px;
    height: 15px;
    color: var(--secondary-color);
}

/* Post Title */
.blog-card h3.blog-post-title {
    font-size: 1.3rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-post-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* Read More Link */
.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    width: fit-content;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.blog-read-link svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-link {
    color: var(--secondary-color);
}

.blog-card:hover .blog-read-link svg {
    transform: translateX(5px);
}

/* =====================
   Pagination
   ===================== */
.blog-pagination {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.page-btn svg {
    width: 18px;
    height: 18px;
}

/* ====================================================
   Responsive Breakpoints
   ==================================================== */
@media (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .blog-section {
        padding: 80px 0;
    }

    .blog-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .blog-section {
        padding: 60px 0;
    }

    .blog-categories {
        gap: 8px;
        margin-bottom: 35px;
    }

    .cat-pill {
        padding: 7px 16px;
        font-size: 0.85rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-thumb-box {
        height: 200px;
    }

    .blog-card-body {
        padding: 22px 18px;
    }

    .blog-card h3.blog-post-title {
        font-size: 1.2rem !important;
    }
}

.blog-categories {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0 52px;
}

.cat-pill {
    background: #fff;
    border: 1px solid #dfe5e2;
    border-radius: 30px;
    color: #263631;
    cursor: pointer;
    font-size: 16px;
    padding: 14px 28px;
    transition: .25s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: #b40000;
    border-color: #b40000;
    box-shadow: 0 8px 18px rgba(180, 0, 0, .18);
    color: #fff;
}

.blog-card {
    animation: blogCardShow .3s ease;
}

@keyframes blogCardShow {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .blog-categories {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .cat-pill {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 11px 18px;
    }
}

/* blog empty state css */
.blog-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e4ebe8;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(31, 48, 42, .06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 35px auto;
    max-width: 520px;
    min-height: 230px;
    padding: 35px 25px;
    text-align: center;
}

.blog-empty-state i {
    align-items: center;
    background: #fbe9e7;
    border-radius: 50%;
    color: #b33d3e;
    display: flex;
    font-size: 25px;
    height: 62px;
    justify-content: center;
    margin-bottom: 17px;
    width: 62px;
}

.blog-empty-state h3 {
    color: #25352f;
    font-family: 'Philosopher', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.blog-empty-state p {
    color: #87958f;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 576px) {
    .blog-empty-state {
        margin: 25px 12px;
        min-height: 190px;
        padding: 28px 18px;
    }

    .blog-empty-state h3 {
        font-size: 21px;
    }

    .blog-empty-state p {
        font-size: 13px;
    }
}
/* single blog post css */

.article-content h1 
{
    display: none;
}

.article-content h2 
{
font-size:1.75rem;
color:var(--primary-color) !important;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.article-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #2e9b68;
    font-size: 18px;
    font-weight: 700;
}

.article-content ul li p {
    margin: 0;
}

/* article faq section css */
.article-faq {
    --faq-primary: var(--primary-color, #a00000);
    --faq-secondary: var(--secondary-color, #2e936b);
    --faq-heading: var(--heading-color, #26332f);
    --faq-text: var(--text-light, #68746f);
    --faq-border: var(--border-color, #e5e9e7);

    max-width: 920px;
    margin: 10px auto;
    padding: 34px 0;
}

.article-faq > h2 {
    margin-bottom:20px;
    color: var(--faq-heading) !important;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.25;
    font-weight: 700;
    text-align: start;
}

.article-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: article-faq-counter;
}

.article-faq-item {
    position: relative;
    overflow: hidden;
    counter-increment: article-faq-counter;
    background: #ffffff;
    border: 1px solid var(--faq-border);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    font-family: var(--primary-font);
}

.article-faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--faq-primary),
        var(--faq-secondary)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-faq-item:hover {
    border-color: color-mix(
        in srgb,
        var(--faq-primary) 35%,
        #ffffff
    );
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-faq-item[open] {
    border-color: color-mix(
        in srgb,
        var(--faq-primary) 35%,
        #ffffff
    );
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.article-faq-item[open]::before {
    opacity: 1;
}

.article-faq-item > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 18px 70px 18px 78px !important;
    box-sizing: border-box;
}

.article-faq-item summary::-webkit-details-marker {
    display: none;
}

.article-faq-item summary::before {
    content: counter(article-faq-counter, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68746f;
    background: #f3f5f4;
    border: 1px solid var(--faq-border);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    transform: translateY(-50%);
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.article-faq-item > summary::after {
    content: "⏷";
    position: absolute;
    top: 50% !important;
    right: 18px !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0;
    color: var(--primary-color);
    background: #f8faf9;
    border: 1px solid #dfe7e3;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    transform: translateY(-50%) !important;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}
.article-faq-item[open] summary {
    color: var(--faq-primary);
    background: rgba(249, 250, 251, 0.8);
}

.article-faq-item > summary::before {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.article-faq-item[open] > summary::after {
    color: #ffffff;
    background: var(--primary-color);
    transform: translateY(-50%) rotate(-90deg) !important;
}

.article-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px 0 78px;
    color: var(--faq-text);
    background: rgba(249, 250, 251, 0.8);
    border-top: 1px dashed transparent;
    font-size: 0.96rem;
    line-height: 1.8;
    opacity: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        padding 0.35s ease,
        border-color 0.3s ease;
    padding-bottom:20px !important;    
}

.article-faq-item[open] .article-faq-answer {
    padding-top: 2px;
    padding-bottom: 23px;
    border-top-color: #e5e9e7;
    opacity: 1;
    
}

.article-faq-answer p {
    margin: 16px 0 0;
    color: var(--faq-text);
    font-size: 0.96rem;
    line-height: 1.8;
}

.article-faq-item summary:focus-visible {
    outline: 3px solid rgba(46, 147, 107, 0.25);
    outline-offset: -3px;
}

@media (max-width: 600px) {
    .article-faq {
        margin: 35px auto;
        padding: 20px 0;
    }

    .article-faq > h2 {
        padding: 0 15px;
        font-size: 1.8rem;
    }

    .article-faq-item summary {
        min-height: 68px;
        padding: 17px 58px 17px 65px;
        font-size: 0.95rem;
    }

    .article-faq-item summary::before {
        left: 17px;
        width: 30px;
        height: 30px;
    }

    .article-faq-item summary::after {
        right: 16px;
        width: 30px;
        height: 30px;
    }

    .article-faq-answer {
        padding-left: 65px;
        padding-right: 17px;
        font-size: 0.9rem;
    }

    .article-faq-answer p {
        font-size: 0.9rem;
    }
}

/* blog empty state css */
.blog-empty-reset {
    background: #b40000;
    border-radius: 25px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    margin-top: 16px;
    padding: 11px 20px;
    text-decoration: none;
    transition: .25s ease;
    font-family: var(--primary-font);
    font-weight: 900;
}

.blog-empty-reset:hover {
    background: #8f0000;
    color: #fff;
    transform: translateY(-2px);
}

.search-result-heading {
    border-bottom: 1px solid #e7ecea;
    margin: 25px 0 28px;
    padding-bottom: 18px;
}

.search-result-label {
    color: var(--primary-color);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    text-transform: uppercase;
    text-align: center;
}

.search-result-heading h2 {
    color: #1f302a;
    font-family: var(--primary-font);
    font-size: 28px;
    margin: 0 0 14px;
    text-align: center;
}

.search-result-items {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: center;
}

.search-result-item {
    align-items: center;
    background: #f8faf9;
    border: 1px solid #e2e9e6;
    border-radius: 25px;
    display: inline-flex;
    gap: 8px;
    max-width: 100%;
    padding: 8px 13px;
}

.search-result-category {
    background: #b40000;
    border-radius: 15px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 5px 8px;
    text-transform: uppercase;
}

.search-result-item strong {
    color: #40534b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .search-result-heading h2 {
        font-size: 23px;
    }

    .search-result-item {
        align-items: flex-start;
        border-radius: 12px;
        flex-direction: column;
        width: 100%;
    }

    .search-result-item strong {
        white-space: normal;
    }
}