/*
Theme Name: msb-website
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.5.67
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* =================================================
   MSB – Flatsome Tabs (Custom)
   Scope: .custom-tab-style (wrapper)
   Figma: title 26px, tabs 16px, pill + hover/active style
================================================= */
.custom-tab-style {
  max-width: 1366px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* 1) Title của block tabs (heading) */
.custom-tab-style .section-title,
.custom-tab-style .section-title-main,
.custom-tab-style .ux-tabs-title,
.custom-tab-style>h1,
.custom-tab-style>h2,
.custom-tab-style>h3,
.custom-tab-style>h4 {
  font-size: 26px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #0b1f44 !important;
  /* xanh đậm */
  margin-bottom: 14px !important;
  text-transform: unset !important;
}

/* 2) Container tabs */
.custom-tab-style .nav,
.custom-tab-style .tabbed-content .nav,
.custom-tab-style .ux-nav {
  gap: 10px;
}

/* 3) Reset style mặc định của Flatsome */
.custom-tab-style .nav>li,
.custom-tab-style .ux-nav>li {
  margin: 0 !important;
}

/* 4) Nút tab (pill) */
.custom-tab-style .nav>li>a,
.custom-tab-style .ux-nav>li>a {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  color: #091E42 !important;
  /* xanh đậm */
  background: #ffffff !important;
  border: 1px solid #DEE5EF !important;
  /* xanh nhạt */
  border-radius: 32px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

/* 5) Hover: cam + nền cam nhạt */
.custom-tab-style .nav>li>a:hover,
.custom-tab-style .ux-nav>li>a:hover {
  color: #ff6a00 !important;
  background-color: rgba(255, 106, 0, 0.12) !important;
  border-color: rgba(255, 106, 0, 0.35) !important;
}

/* 6) Active: cam + nền cam nhạt (giống hover) */
.custom-tab-style .nav>li.active>a,
.custom-tab-style .nav>li.is-active>a,
.custom-tab-style .ux-nav>li.active>a,
.custom-tab-style .ux-nav>li.is-active>a {
  color: #F4600C !important;
  background-color: #FEEFE7 !important;
  border-color: #F8A06D !important;
  box-shadow: none !important;
}

/* 7) Nếu Flatsome có underline/after mặc định thì tắt */
.custom-tab-style .nav>li>a:after,
.custom-tab-style .ux-nav>li>a:after {
  display: none !important;
}

/* 8) Responsive: giữ đúng layout, cho phép xuống dòng nếu nhiều tab */
@media (max-width: 991px) {
  .custom-tab-style {
    padding-left: 3%;
    padding-right: 3%;
  }

  .custom-tab-style .nav,
  .custom-tab-style .ux-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .custom-tab-style .nav>li>a,
  .custom-tab-style .ux-nav>li>a {
    padding: 9px 14px !important;
  }
}

@media screen and (max-width: 480px) {
  .msb-breadcrumb-section {
    padding: 16px 16px 0px 16px !important;
  }

  .msb-highlight {
    padding: 56px 16px 0px 16px !important;
  }

  .msb-highlight-card {
    min-height: unset;
    aspect-ratio: 1/1;
  }

  .msb-tabs {
    padding: 56px 16px !important;
  }

  .msb-faq {
    padding: 18px 16px !important;
  }

  .msb-modal__dialog {
    width: 100vw !important;
    position: absolute !important;
    bottom: 0;
    margin-bottom: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
  }

  .msb-modal__close {
    right: 0;
  }

  .msb-modal__header {
    padding-right: 44px;
    border-bottom: 1px solid #DEE5EF;
    margin-bottom: 16px;
  }

  .msb-modal__title {
    line-height: 1.4rem;
  }
}

.tab-panels .msb-fi-inner {
  padding: 0;
}

.tab-panels .msb-fr-inner {
  padding: 0;
}

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* --- Responsive Table for News Detail --- */
@media (max-width: 1024px) {

  .msb-single-post .msb-news-content__detail table,
  .msb-single-post .msb-promo-info__content table {
    display: block;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
  }

  .msb-single-post .msb-news-content__detail table tbody,
  .msb-single-post .msb-promo-info__content table tbody,
  .msb-single-post .msb-news-content__detail table tr,
  .msb-single-post .msb-promo-info__content table tr,
  .msb-single-post .msb-news-content__detail table td,
  .msb-single-post .msb-promo-info__content table td {
    display: block;
    width: 100% !important;
  }

  .msb-single-post .msb-news-content__detail table tr,
  .msb-single-post .msb-promo-info__content table tr {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #eee !important;
  }

  .msb-single-post .msb-news-content__detail table td,
  .msb-single-post .msb-promo-info__content table td {
    padding: 8px 0 !important;
    border: none !important;
    text-align: left !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

  .msb-single-post .msb-news-content__detail table td:first-child,
  .msb-single-post .msb-promo-info__content table td:first-child {
    /* font-weight: 700; */
    /* color: #F4600C; */
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 8px;
    padding-bottom: 12px !important;
  }
}

/* --- MSB Header Custom Text Styling --- */
.msb-header-custom-text {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 26px !important;
  line-height: 36px !important;
  color: #091E42 !important;
  padding: 21px 0 !important;
  margin: 0 !important;
  text-transform: none !important;
}

/* MSB Leadership Mobile Dropdown & Bottom Sheet */
/* Breakpoint sp: max-width 767px */

/* Hide mobile trigger on desktop */
.msb_leadership_tabs .msb_leadership_mobile_trigger {
  display: none;
}

/* Hide bottom sheet on desktop */
.msb_leadership_tabs .msb_leadership_mobile_sheet {
  display: none;
}

@media (max-width: 767px) {
  /* Mobile trigger button */
  .msb_leadership_tabs .msb_leadership_mobile_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #dee5ef;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 0 0 16px;
    cursor: pointer;
  }

  .msb_leadership_tabs .msb_leadership_mobile_trigger_label {
    font-size: 16px;
    font-weight: 500;
    color: var(--alias-text-primary, #091e42);
  }

  .msb_leadership_tabs .msb_leadership_mobile_trigger_icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide desktop tabs on mobile */
  .msb_leadership_tabs .msb_leadership_tabs_head {
    display: none;
  }

  /* Bottom sheet */
  .msb_leadership_tabs .msb_leadership_mobile_sheet {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet.open {
    pointer-events: auto;
    opacity: 1;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet.open .msb_leadership_mobile_sheet_inner {
    transform: translateY(0);
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    /* padding: 20px 16px 40px; */
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid #dee5ef;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_head span {
    font-size: 18px;
    font-weight: 700;
    color: var(--alias-text-primary, #091e42);
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_close {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0) url(./assets/images/package_images/ic_close.svg) no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin: 0px;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_list {
    list-style: none;
    margin: 0;
    padding: 0px 16px;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_list li {
    border-bottom: 1px solid var(--alias-border-default, #dee5ef);
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_list li:last-child{
    border-bottom: 0px;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_list li a {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--alias-text-primary, #091e42);
    padding: 16px 0;
  }

  .msb_leadership_tabs .msb_leadership_mobile_sheet_list li a.active {
    font-weight: 600;
  }

  .msb-hero-detail__title--mobile{
    font-size: 32px;
  }
}

/* ============================================================
   MSB Error Code
   ============================================================ */
.msb_error_code_wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.msb_error_code_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.msb_error_code_icon {
    width: 144px;
    height: 144px;
    margin-bottom: 16px;
}

.msb_error_code_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.msb_error_code_title {
    font-size: 16px;
    font-weight: 700;
    color: #091E42;
    margin-bottom: 16px;
}

.msb_error_code_description {
    font-size: 14px;
    color: #091E42;
    margin-bottom: 16px;
}

.msb_error_code_btn {
    display: inline-block;
    padding: 10px 12px;
    background: linear-gradient(324.32deg, #E45F35 20.9%, #FFA95A 110.29%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    opacity: 1;
    min-width: 163px;
}

.msb_error_code_btn:hover {
    opacity: 0.88;
    color: #fff;
}

@media (max-width: 768px) {
    .msb_error_code_icon {
        width: 140px;
        height: 140px;
    }
}
