/* ==========================================================================
   MODULE: CERTS.CSS - CHỨNG NHẬN & TIÊU CHUẨN QUỐC TẾ (SG 2.0)
   Dự án: Nâng cấp Website Hệ thống IVF Phương Châu 2026
   Theme: mediz-child-ivfpc
   Chuẩn hóa theo wireframe 07-certs.html: JCI (Mỹ), RTAC (Úc), ISO 5 (Lab)
   ========================================================================== */

/* 1. KHUNG BAO NGOÀI TOÀN KHỐI */
.ivf-sec-certs-wrap,
.ivf-certs-2026 {
    background: #ffffff !important;
    padding: 72px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.ivf-sec-certs-wrap .gdlr-core-pbf-background-wrap,
.ivf-certs-2026 .gdlr-core-pbf-background-wrap {
    background-color: transparent !important;
    background: none !important;
}

.ivf-sec-certs-wrap .gdlr-core-pbf-wrapper-container,
.ivf-certs-2026 .gdlr-core-pbf-wrapper-container {
    max-width: 1240px !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
}

.ivf-certs-content-wrap {
    width: 100% !important;
}

.ivf-certs-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. HEADER KHỐI (BADGE, TIÊU ĐỀ, PHỤ ĐỀ) */
.ivf-certs-header {
    text-align: center !important;
    max-width: 820px !important;
    margin: 0 auto 44px auto !important;
}

.ivf-certs-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 6px 18px !important;
    border-radius: 999px !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.ivf-certs-badge svg {
    flex-shrink: 0 !important;
    stroke: #b45309 !important;
}

.ivf-certs-title {
    font-family: var(--ivf-font, 'Quicksand', sans-serif) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
    text-transform: none !important;
}

.ivf-certs-subtitle {
    font-family: var(--ivf-font, 'Quicksand', sans-serif) !important;
    font-size: 15.5px !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin: 0 auto !important;
    max-width: 760px !important;
    font-weight: 500 !important;
}

/* 3. LƯỚI 3 THẺ CHỨNG NHẬN (CARDS GRID) */
.ivf-certs-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ivf-cert-item-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 36px 26px 32px 26px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.ivf-cert-item-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09) !important;
    border-color: #087B97 !important;
}

/* Thẻ giữa nổi bật (RTAC Úc) */
.ivf-cert-item-card.is-highlight {
    border: 2px solid #087B97 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%) !important;
    box-shadow: 0 14px 34px rgba(8, 123, 151, 0.12) !important;
}

.ivf-cert-item-card.is-highlight:hover {
    box-shadow: 0 24px 48px rgba(8, 123, 151, 0.18) !important;
}

/* 4. KHUNG HÌNH CHỨNG NHẬN */
.ivf-cert-frame {
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 22px !important;
    width: 100% !important;
}

.ivf-cert-img {
    max-height: 95px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.ivf-cert-item-card:hover .ivf-cert-img {
    transform: scale(1.04) !important;
}

/* 5. THÔNG TIN METADATA (PILL, TÊN, MÔ TẢ) */
.ivf-cert-meta {
    padding-top: 10px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.ivf-cert-pill {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
}

.ivf-cert-pill.gold {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.ivf-cert-pill.teal {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.ivf-cert-pill.purple {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #e9d5ff !important;
}

.ivf-cert-name {
    font-family: var(--ivf-font, 'Quicksand', sans-serif) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
}

.ivf-cert-desc {
    font-family: var(--ivf-font, 'Quicksand', sans-serif) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* 6. RESPONSIVE TABLET & MOBILE */
@media (max-width: 991px) {
    .ivf-certs-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .ivf-cert-item-card:last-child {
        grid-column: span 2 !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

@media (max-width: 680px) {
    .ivf-sec-certs-wrap,
    .ivf-certs-2026 {
        padding: 48px 0 !important;
    }

    .ivf-certs-header {
        margin-bottom: 32px !important;
    }

    .ivf-certs-title {
        font-size: 24px !important;
    }

    .ivf-certs-subtitle {
        font-size: 14px !important;
    }

    .ivf-certs-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .ivf-cert-item-card:last-child {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }

    .ivf-cert-item-card {
        padding: 28px 20px !important;
    }
}
