/* ==========================================================================
   MEDICAL-KNOWLEDGE.CSS - HIỂU ĐÚNG VỀ HIẾM MUỘN & KIẾN THỨC Y KHOA (2026)
   Dự án: Nâng cấp Website Hệ thống IVF Phương Châu 2026
   Áp dụng: Trang Hiểu Đúng Về Hiếm Muộn (/hieu-dung-ve-hiem-muon-2026/)
   Thiết kế:
   - Chuẩn nhận diện IVF Phương Châu 2026 (Quicksand, Plum #A44683, Slate #0F172A)
   - Mockup thẻ bài viết chuẩn E-E-A-T y khoa:
       + Badge danh mục pill + ⏱️ Thời gian đọc
       + Tiêu đề đậm + Tóm tắt ngắn gọn
       + Đường viền gạch chấm dashed divider
       + Tham vấn bác sĩ chuyên khoa
   - Phân nhóm học thuật chuyên sâu (6-8 bài/nhóm) + Nút xem thêm
   ========================================================================== */

/* 0. HIDE DEFAULT MEDIZ THEME PAGE TITLE BANNER ON 2026 PAGES */
.category .mediz-page-title-wrap,
.page-template-page-thong-tin-y-khoa .mediz-page-title-wrap {
    display: none !important;
}

/* 0.1 CONTAINER AN TOÀN & WRAPPER */
.ivf-mk-wrapper {
    width: 100% !important;
    background: #F8FAFC !important;
    font-family: 'Quicksand', sans-serif !important;
}

.ivf-mk-main-container {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 20px 60px 20px !important;
    box-sizing: border-box !important;
}

.ivf-mk-content-wrapper .gdlr-core-pbf-wrapper-container,
.ivf-mk-content-wrapper .gdlr-core-container {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* 1. HERO BANNER CHUẨN 2026 */
.ivf-mk-hero,
.ivf-mk-hero-section {
    position: relative !important;
    background: linear-gradient(135deg, #5E1A45 0%, #3B0D2A 100%) !important;
    padding: 60px 20px 50px 20px !important;
    text-align: center !important;
    color: #ffffff !important;
}

.ivf-mk-hero-container {
    max-width: 860px !important;
    margin: 0 auto !important;
}

.ivf-mk-badge {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 16px !important;
    text-transform: uppercase !important;
}

.ivf-mk-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.35 !important;
}

.ivf-mk-subtitle {
    font-size: 16px !important;
    color: #CBD5E1 !important;
    line-height: 1.65 !important;
    margin: 0 auto !important;
    max-width: 780px !important;
}

/* 2. THANH ĐIỀU HƯỚNG PILL NAV BAR */
.ivf-mk-nav-bar,
.ivf-mk-nav-pills-wrap {
    position: sticky !important;
    top: 75px !important;
    z-index: 100 !important;
    margin-top: -24px !important;
    margin-bottom: 40px !important;
    padding: 10px 0 !important;
}

.ivf-mk-nav-container,
.ivf-mk-nav-pills {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    border: 1.5px solid #E2E8F0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    max-width: fit-content !important;
    margin: 0 auto !important;
}

.ivf-mk-pill,
.ivf-mk-nav-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    background: #F1F5F9 !important;
    border: 1px solid transparent !important;
}

.ivf-mk-pill:hover,
.ivf-mk-pill.active,
.ivf-mk-nav-pill:hover,
.ivf-mk-nav-pill.active {
    background: #FDF2F8 !important;
    color: #A44683 !important;
    border-color: #FBCFE8 !important;
    transform: translateY(-2px) !important;
}

.ivf-mk-nav-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid #F1F5F9;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    max-width: fit-content;
    margin: 0 auto;
}

.ivf-mk-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-decoration: none !important;
    transition: all 0.25s ease;
    background: #F8FAFC;
    border: 1px solid transparent;
}

.ivf-mk-nav-pill:hover,
.ivf-mk-nav-pill.active {
    background: #FDF2F8;
    color: #A44683;
    border-color: #FBCFE8;
    transform: translateY(-2px);
}

/* 3. KHỐI 4 TRỤ CỘT KIẾN THỨC Y KHOA */
.ivf-mk-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.ivf-mk-pillar-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 26px 20px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ivf-mk-pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(164, 70, 131, 0.12);
    border-color: #FBCFE8;
    background: #FFFFFF;
}

.ivf-mk-pillar-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
    display: inline-block;
}

.ivf-mk-pillar-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
}

.ivf-mk-pillar-desc {
    font-size: 13px !important;
    color: #64748B !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* 4. CÁC NHÓM BÀI VIẾT HỌC THUẬT (GROUP SECTIONS) */
.ivf-mk-group-section {
    margin-bottom: 65px;
    padding-bottom: 45px;
    border-bottom: 1.5px dashed #E2E8F0;
    scroll-margin-top: 140px;
}

.ivf-mk-group-section:last-of-type {
    border-bottom: none;
    margin-bottom: 40px;
    padding-bottom: 0;
}

.ivf-mk-group-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px auto;
}

.ivf-mk-articles-badge {
    display: inline-block;
    padding: 5px 16px;
    background: #FDF2F8;
    color: #A44683;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #FBCFE8;
}

.ivf-mk-group-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
}

.ivf-mk-group-desc {
    font-size: 15px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 5. LƯỚI BÀI VIẾT (3 CỘT TIÊU CHUẨN) */
.ivf-mk-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 30px;
}

/* 6. THẺ BÀI VIẾT CHUẨN MOCKUP Y KHOA */
.ivf-mk-article-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.ivf-mk-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(164, 70, 131, 0.12);
    border-color: #FBCFE8;
}

.ivf-mk-article-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #F8FAFC;
    flex-shrink: 0;
}

.ivf-mk-article-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.ivf-mk-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.ivf-mk-article-card:hover .ivf-mk-article-thumb img {
    transform: scale(1.06);
}

.ivf-mk-article-body {
    padding: 22px 20px 20px 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ivf-mk-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.ivf-mk-article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #FDF2F8;
    color: #A44683;
    font-weight: 700;
    font-size: 11.5px;
    border: 1px solid #FBCFE8;
    line-height: 1.3;
}

.ivf-mk-article-readtime {
    font-size: 12.5px;
    color: #94A3B8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ivf-mk-article-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 17.5px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    min-height: 48px;
    display: flex;
    align-items: flex-start;
}

.ivf-mk-article-title a {
    color: #0F172A !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ivf-mk-article-card:hover .ivf-mk-article-title a {
    color: #A44683 !important;
}

.ivf-mk-article-desc {
    font-size: 13.5px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ivf-mk-article-author {
    border-top: 1px dashed #E2E8F0 !important;
    padding-top: 14px !important;
    margin-top: auto !important;
    font-size: 13px !important;
    color: #64748B !important;
    display: flex;
    align-items: center;
}

.ivf-mk-author-name {
    font-weight: 700 !important;
    color: #A44683 !important;
}

/* 7. NÚT XEM THÊM BÀI VIẾT */
.ivf-mk-group-more {
    text-align: center;
    margin-top: 24px;
}

.ivf-mk-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #FFFFFF;
    color: #A44683 !important;
    border: 1.5px solid #FBCFE8;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.ivf-mk-more-btn:hover {
    background: #A44683;
    color: #FFFFFF !important;
    border-color: #A44683;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 70, 131, 0.2);
}

/* 8. KHỐI HỎI ĐÁP (FAQ ACCORDION) */
.ivf-mk-faq-wrap {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 38px 36px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
    margin-top: 20px;
    margin-bottom: 50px;
}

.ivf-mk-faq-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 28px auto;
}

.ivf-mk-faq-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 8px 0 0 0 !important;
}

.ivf-mk-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ivf-mk-faq-item {
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.ivf-mk-faq-item[open] {
    border-color: #FBCFE8;
    background: #FFFDFE;
    box-shadow: 0 4px 16px rgba(164, 70, 131, 0.05);
}

.ivf-mk-faq-q {
    padding: 18px 22px;
    font-family: 'Quicksand', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 48px;
    user-select: none;
    transition: color 0.2s ease;
}

.ivf-mk-faq-q::-webkit-details-marker {
    display: none;
}

.ivf-mk-faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #A44683;
    font-weight: 700;
}

.ivf-mk-faq-item[open] .ivf-mk-faq-q {
    color: #A44683;
}

.ivf-mk-faq-item[open] .ivf-mk-faq-q::after {
    content: '−';
}

.ivf-mk-faq-a {
    padding: 14px 22px 20px 22px;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    border-top: 1px dashed #FCE7F3;
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1199px) {
    .ivf-mk-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .ivf-mk-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .ivf-mk-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .ivf-mk-nav-pills {
        border-radius: 20px;
        padding: 8px 12px;
    }
    .ivf-mk-group-title {
        font-size: 22px !important;
    }
}

@media (max-width: 640px) {
    .ivf-mk-pillars-grid {
        grid-template-columns: 1fr;
    }
    .ivf-mk-articles-grid {
        grid-template-columns: 1fr;
    }
    .ivf-mk-faq-wrap {
        padding: 24px 18px;
    }
    .ivf-mk-faq-q {
        font-size: 14.5px;
        padding: 14px 16px;
    }
    .ivf-mk-faq-a {
        padding: 12px 16px 16px 16px;
        font-size: 13.5px;
    }
}

/* 10. BOTTOM CTA BANNER & PAGINATION 2026 */
.ivf-mk-bottom-cta {
    max-width: 1240px !important;
    margin: 40px auto 60px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.ivf-mk-cta-box {
    background: linear-gradient(135deg, #087B97 0%, #0F172A 100%) !important;
    padding: 50px 30px !important;
    border-radius: 24px !important;
    color: #ffffff !important;
    text-align: center !important;
    box-shadow: 0 12px 36px rgba(8, 123, 151, 0.18) !important;
}

.ivf-mk-cta-box h2 {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 12px 0 !important;
}

.ivf-mk-cta-box p {
    font-size: 16px !important;
    color: #E2E8F0 !important;
    max-width: 700px !important;
    margin: 0 auto 24px auto !important;
    line-height: 1.6 !important;
}

.ivf-mk-btn-primary {
    display: inline-block !important;
    background: #A44683 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 34px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(164, 70, 131, 0.35) !important;
}

.ivf-mk-btn-primary:hover {
    background: #8A265E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(164, 70, 131, 0.45) !important;
}

.ivf-mk-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1.5px solid #E2E8F0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.ivf-mk-pagination .page-numbers.current,
.ivf-mk-pagination .page-numbers:hover {
    background: #A44683 !important;
    color: #ffffff !important;
    border-color: #A44683 !important;
}

