/* BƯỚC 69 - Giao diện các khối nội dung dùng chung: Showcase (Chứng nhận/Đối tác), Đội ngũ, FAQ.
   Tiền tố "cb-" để không đụng class của theme. Màu lấy từ biến CSS của site (--primary, --primary-second), có giá trị dự phòng. */
.cb-section-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: var(--primary, #1d1f5c); }
.cb-section-desc { color: #6c757d; margin: -.5rem 0 1rem; }
.cb-page-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary, #1d1f5c); }
.cb-section { margin-bottom: 2.5rem; }
.cb-back { text-decoration: none; }
.cb-viewall { text-align: center; margin-top: 1rem; }
.cb-richtext img { max-width: 100%; height: auto; }
.cb-lead { font-size: 1.1rem; color: #444; }

/* ---------- Showcase: lưới + slider ---------- */
.cb-showcase { margin: 2rem 0; }
.cb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
           grid-template-columns: repeat(var(--cb-cols, 6), minmax(0, 1fr)); }
.cb-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cb-grid li > a { display: block; width: 100%; }
.cb-grid img { display: block; width: 100%; height: auto; object-fit: contain; }   /* phủ kín bề ngang ô, giữ nguyên tỉ lệ ảnh */
.cb-grid-certs img { border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; padding: 4px; transition: transform .2s, box-shadow .2s; }
.cb-grid-certs a:hover img, .cb-grid-certs a:focus-visible img { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.cb-cert-title { margin-top: .5rem; font-size: .875rem; color: #555; }
@media (max-width: 991px) { .cb-grid { grid-template-columns: repeat(min(var(--cb-cols, 6), 4), minmax(0, 1fr)); } }
@media (max-width: 575px) { .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cb-slider:not(.owl-loaded) { display: flex; gap: 1rem; overflow-x: auto; }   /* trước khi Owl chạy / khi tắt JS */
.cb-slide { display: flex; align-items: center; justify-content: center; padding: .5rem; }
.cb-slider .cb-slide > a, .cb-slider .cb-slide > img { display: flex; align-items: center; justify-content: center; width: 100%; }
.cb-slider .cb-slide img { display: block; width: 100%; height: auto; object-fit: contain;  opacity: 1; transition: filter .25s, opacity .25s; }
.cb-slider .cb-slide:hover img, .cb-slider .cb-slide a:focus-visible img { filter: none; opacity: 1; }
.cb-team-slider .cb-slide img { filter: none; opacity: 1; }
.cb-team-slider .cb-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.cb-slider .owl-nav button { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45) !important; color: #fff !important; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; border: 0; transition: background .2s; }
.cb-slider .owl-nav button:hover, .cb-slider .owl-nav button:focus-visible { background: var(--primary-second, #e99417) !important; }
.cb-slider .owl-nav button.disabled { opacity: .35; cursor: default; }
.cb-slider .owl-nav .owl-prev { left: 4px; } .cb-slider .owl-nav .owl-next { right: 4px; }

.cb-slider .owl-dots { text-align: center; margin-top: .75rem; }
.cb-slider .owl-dots .owl-dot { background: none; border: 0; padding: 0; display: inline-block; }
.cb-slider .owl-dots .owl-dot span { display: block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: #cfd4da; transition: background .2s, transform .2s; }
.cb-slider .owl-dots .owl-dot.active span, .cb-slider .owl-dots .owl-dot:hover span { background: var(--primary-second, #e99417); transform: scale(1.2); }

/* ---------- Lightbox (chứng nhận) ---------- */
.cb-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.cb-lb img { max-width: 94vw; max-height: 82vh; object-fit: contain; background: #fff; border-radius: 4px; }
.cb-lb-cap { color: #fff; margin-top: .75rem; text-align: center; max-width: 90vw; }
.cb-lb button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.cb-lb button:hover, .cb-lb button:focus-visible { background: rgba(255,255,255,.35); }
.cb-lb-close { top: 14px; right: 14px; } .cb-lb-prev { left: 14px; top: 50%; } .cb-lb-next { right: 14px; top: 50%; }

/* ---------- Đội ngũ ---------- */
.cb-team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cb-team-card { background: var(--bg-light); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;border:1px solid var(--border) }
.cb-team-card.border {border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; }
.cb-team-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-3px); }
.cb-team-photo { aspect-ratio: 1 / 1; background: var(--color2, #d5eaff); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cb-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-team-initial { font-size: 3.5rem; font-weight: 700; color: var(--primary, #1d1f5c); }
.cb-team-body { padding: 1rem; text-align: center; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cb-team-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.cb-team-name a { color: var(--primary, #1d1f5c); text-decoration: none; }
.cb-team-name a:hover { color: var(--primary-second, #e99417); }
.cb-team-job { color: var(--primary-second, #e99417); font-weight: 600; margin: 0; }
.cb-team-group, .cb-team-years { color: #6c757d; font-size: .875rem; margin: 0; }
.cb-team-bio { color: #555; font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cb-team-more { margin-top: auto; padding-top: .5rem; font-weight: 600; text-decoration: none; }
.cb-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.cb-tags li { background: var(--color2, #d5eaff); color: var(--primary, #1d1f5c); font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; }
.cb-social { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.cb-social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: 999px; background: var(--primary, #1d1f5c); color: #fff; font-size: .7rem; font-weight: 700; text-decoration: none; }
.cb-social-link:hover, .cb-social-link:focus-visible { background: var(--primary-second, #e99417); color: #fff; }
.cb-profile-card { text-align: center; border: 1px solid #e9ecef; border-radius: 8px; padding: 1.25rem; background: #fff; }
.cb-profile-photo { width: 100%; max-width: 260px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.cb-profile-name { font-size: 1.4rem; font-weight: 700; color: var(--primary, #1d1f5c); }
.cb-contact { list-style: none; padding: 0; margin: .75rem 0; text-align: left; }
.cb-contact li { margin-bottom: .25rem; word-break: break-word; }
.cb-contact span { color: #6c757d; }

/* ---------- FAQ ---------- */
.cb-faq { margin: 2rem 0; }
.cb-faq-group { margin-bottom: 1.75rem; }
.cb-faq-group-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; color: var(--primary, #1d1f5c); }
.cb-faq-item { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: .6rem; background: #fff; }
.cb-faq-item summary { cursor: pointer; padding: .85rem 2.5rem .85rem 1rem; font-weight: 600; list-style: none; position: relative; }
.cb-faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary-second, #e99417); }
.cb-faq-item[open] summary::after { content: "\2212"; }
.cb-faq-item[open] summary { border-bottom: 1px solid #eef0f2; color: var(--primary, #1d1f5c); }
.cb-faq-item summary:focus-visible { outline: 2px solid var(--primary-second, #e99417); outline-offset: 2px; }
.cb-faq-answer { padding: .85rem 1rem; }
.cb-image-rouder .cb-team-photo{border-radius:50%;overflow:hidden;}
.cb-team{
    padding:20px 0;
}