/* ==========================================================================
   SUCCESS-RATE.CSS - TRANG TỈ LỆ THÀNH CÔNG IVF 79% (CHUẨN Y KHOA 2026)
   Dự án: Nâng cấp Website Hệ thống IVF Phương Châu 2026
   Áp dụng: Trang Tỉ lệ thành công IVF 79% (/ti-le-thanh-cong-ivf/)
   ========================================================================== */

/* 1. KHỐI BANNER CHÍNH */
.ivf-sr-banner-wrap {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #F1F5F9;
}

.ivf-sr-banner-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. KHỐI 3 THẺ CHỈ SỐ VÀNG (3 KEY STAT CARDS) */
.ivf-sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ivf-sr-stat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1.5px solid #F1F5F9;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.ivf-sr-stat-card.featured {
    background: linear-gradient(145deg, #FFF7FB 0%, #FFFFFF 100%);
    border-color: #F472B6;
    box-shadow: 0 8px 28px rgba(164, 70, 131, 0.1);
}

.ivf-sr-stat-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #FDF2F8;
    color: #BE185D;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid #FCE7F3;
}

.ivf-sr-stat-num {
    font-family: 'Quicksand', sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    color: #A44683;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.ivf-sr-stat-num .percent {
    font-size: 32px;
    font-weight: 700;
    margin-left: 2px;
}

.ivf-sr-stat-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.ivf-sr-stat-desc {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* 3. KHỐI SƠ ĐỒ HÀNH TRÌNH 3 CỘT MỐC MINH BẠCH (TIMELINE) */
.ivf-sr-timeline-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #E2E8F0;
}

.ivf-sr-sec-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 36px auto;
}

.ivf-sr-sec-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #A44683;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #FBCFE8;
    margin-bottom: 10px;
}

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

.ivf-sr-sec-desc {
    font-size: 14.5px !important;
    color: #64748B !important;
    line-height: 1.6;
    margin: 0;
}

.ivf-sr-timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    margin-bottom: 24px;
}

.ivf-sr-step-box {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 26px 20px;
    border: 1.5px solid #E2E8F0;
    position: relative;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.ivf-sr-step-box:hover {
    border-color: #F472B6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(164, 70, 131, 0.08);
}

.ivf-sr-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ivf-sr-step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #FDF2F8;
    color: #A44683;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
}

.ivf-sr-step-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #1E293B;
}

.ivf-sr-step-body {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.ivf-sr-rtac-note {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 22px;
    border-left: 4px solid #A44683;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
}

.ivf-sr-rtac-note strong {
    color: #A44683;
}

/* 4. BẢNG SỐ LIỆU Y KHOA HIỆN ĐẠI (TABLES) */
.ivf-sr-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.ivf-sr-table-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #F1F5F9;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.ivf-sr-table-head {
    background: linear-gradient(135deg, #5E1A45 0%, #8B356D 100%);
    padding: 20px 24px;
    color: #FFFFFF;
}

.ivf-sr-table-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 4px 0 !important;
}

.ivf-sr-table-sub {
    font-size: 12.5px;
    color: #FCE7F3;
    margin: 0;
}

.ivf-sr-table-wrap {
    overflow-x: auto;
    padding: 8px 16px 16px 16px;
}

.ivf-sr-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: center;
}

.ivf-sr-data-table th,
.ivf-sr-data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F1F5F9;
}

.ivf-sr-data-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ivf-sr-data-table td.age-label {
    text-align: left;
    font-weight: 700;
    color: #1E293B;
}

.ivf-sr-val-highlight {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #F0FDF4;
    color: #166534;
    font-weight: 800;
    border: 1px solid #DCFCE7;
}

.ivf-sr-val-normal {
    font-weight: 600;
    color: #334155;
}

.ivf-sr-table-footer {
    font-size: 12px;
    color: #94A3B8;
    padding: 10px 18px 16px 18px;
    font-style: italic;
    border-top: 1px solid #F8FAFC;
}

/* 5. KHỐI 4 TRỤ CỘT TẠO NÊN TỶ LỆ 79% (PILLARS) */
.ivf-sr-pillars-wrap {
    margin-bottom: 50px;
}

.ivf-sr-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ivf-sr-pillar-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1.5px solid #F1F5F9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.ivf-sr-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(164, 70, 131, 0.08);
    border-color: #FBCFE8;
}

.ivf-sr-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    color: #A44683;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ivf-sr-pillar-content h4 {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
}

.ivf-sr-pillar-content p {
    font-size: 13.5px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 6. KHỐI CTA BOX LIÊN HỆ & HOTLINE */
.ivf-sr-cta-banner {
    background: linear-gradient(135deg, #5E1A45 0%, #3B0E2B 60%, #1E1B4B 100%);
    border-radius: 24px;
    padding: 40px 48px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 50px;
    box-shadow: 0 16px 40px rgba(94, 26, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.ivf-sr-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 198, 227, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ivf-sr-cta-left {
    flex: 1 1 auto;
    position: relative;
    z-index: 2;
}

.ivf-sr-cta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #F3C6E3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ivf-sr-cta-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.ivf-sr-cta-desc {
    font-size: 14.5px !important;
    color: #FCE7F3 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 580px;
}

.ivf-sr-cta-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.ivf-sr-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    background: #FFFFFF;
    color: #5E1A45 !important;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ivf-sr-btn-primary:hover {
    background: #FDF2F8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ivf-sr-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
}

.ivf-sr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 7. KHỐI BÀI VIẾT LIÊN QUAN SÁNG RÕ (RELATED CARDS) */
.ivf-sr-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ivf-sr-related-card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.ivf-sr-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(164, 70, 131, 0.1);
    border-color: #FBCFE8;
}

.ivf-sr-related-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #F1F5F9;
}

.ivf-sr-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ivf-sr-related-card:hover .ivf-sr-related-thumb img {
    transform: scale(1.05);
}

.ivf-sr-related-body {
    padding: 22px 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.ivf-sr-related-title {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 14px 0 !important;
}

.ivf-sr-related-title a {
    color: #1E293B !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ivf-sr-related-title a:hover {
    color: #A44683 !important;
}

.ivf-sr-related-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #A44683;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ivf-sr-related-btn:hover {
    color: #8B356D;
}

/* RESPONSIVE CHO TRANG TỈ LỆ THÀNH CÔNG */
@media (max-width: 991px) {
    .ivf-sr-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ivf-sr-timeline-steps {
        grid-template-columns: 1fr;
    }
    
    .ivf-sr-tables-grid {
        grid-template-columns: 1fr;
    }
    
    .ivf-sr-pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .ivf-sr-cta-banner {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
    }
    
    .ivf-sr-cta-right {
        width: 100%;
    }
    
    .ivf-sr-related-grid {
        grid-template-columns: 1fr;
    }
}
