/* ==========================================================================
   iGOV Tiền lương - trang Bảng giá (Báo giá)
   Figma: Website-iGOV / node 6001:94356 (tab Khởi tạo) + 6001:96501 (tab Gia hạn)
   ========================================================================== */

/* @font-face cho Inter đã khai báo đầy đủ ở library/css/fonts.css
   (mỗi weight = một family named, font-weight: normal).
   Trang này chỉ dùng font-family named, không re-declare. */

.tl-baogia {
    font-family: Inter, sans-serif;
    color: #181d27;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    background: url(/sites/igov/images/pages/igov-tien-luong-bao-gia/bg.webp) no-repeat center top/contain;
}

.tl-baogia :where(*),
.tl-baogia :where(*::before),
.tl-baogia :where(*::after) {
    box-sizing: border-box;
}

.tl-baogia :where(h1, h2, h3, p, ul, li, span) {
    margin: 0;
    padding: 0;
}

.tl-baogia :where(ul) {
    list-style: none;
}

.tl-baogia :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
}

.tl-baogia .tl-container {
    width: 100%;
    max-width: 1328px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Nền trang trí phía trên (render 2x từ node 6392:101527)
   -------------------------------------------------------------------------- */

.tl-baogia .tl-top {
    position: relative;
}

.tl-baogia .tl-top__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    z-index: 0;
    pointer-events: none;
}

.tl-baogia .tl-hero,
.tl-baogia .tl-pricing,
.tl-baogia .tl-training,
.tl-baogia .tl-note {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Hero - tiêu đề
   -------------------------------------------------------------------------- */

.tl-baogia .tl-hero {
    padding-top: 64px;
}

.tl-baogia .tl-hero .tl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-baogia .tl-hero__title {
    display: block;
    width: 100%;
    font-size: 40px;
    line-height: 52px;
    font-family: Inter Bold, Inter, sans-serif;
    letter-spacing: 0;
    text-align: center;
    color: #181d27;
}

/* --------------------------------------------------------------------------
   Tab bảng giá
   -------------------------------------------------------------------------- */

.tl-baogia .tl-pricing {
    margin-top: 104px;
}

.tl-baogia .tl-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tl-baogia .tl-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #d5d7da;
    border-radius: 9999px;
    font-family: Inter Medium, Inter, sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #252b37;
    cursor: pointer;
}

.tl-baogia .tl-tab img {
    flex: none;
    width: 24px;
    height: 24px;
}

.tl-baogia .tl-tab .tl-tab__icon {
    display: none;
}

.tl-baogia .tl-tab .tl-tab__icon-gray {
    display: block;
}

.tl-baogia .tl-tab.is-active {
    border: 2px solid #099250;
    font-family: Inter SemiBold, Inter, sans-serif;
    color: #16b364;
    box-shadow: 0 8px 30px -6px rgba(116, 135, 255, 0.05), 0 8px 30px -4px rgba(10, 27, 137, 0.03);
}

.tl-baogia .tl-tab.is-active .tl-tab__icon {
    display: block;
}

.tl-baogia .tl-tab.is-active .tl-tab__icon-gray {
    display: none;
}

.tl-baogia .tl-panel {
    display: none;
}

.tl-baogia .tl-panel.is-active {
    display: block;
}

/* --------------------------------------------------------------------------
   Card bảng giá (3 cột)
   -------------------------------------------------------------------------- */

.tl-baogia .tl-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

.tl-baogia .tl-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 calc((100% - 48px) / 3);
    min-width: 0;
    padding: 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 30px -6px rgba(116, 135, 255, 0.05), 0 8px 30px -4px rgba(10, 27, 137, 0.03);
}

.tl-baogia .tl-card__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tl-baogia .tl-card__name-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.tl-baogia .tl-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #edfcf2;
    border-radius: 12px;
}

.tl-baogia .tl-card__icon img {
    width: 24px;
    height: 24px;
}

.tl-baogia .tl-card__name {
    display: block;
    font-size: 20px;
    line-height: 28px;
    font-family: Inter SemiBold, Inter, sans-serif;
    letter-spacing: 0;
    color: #252b37;
}

.tl-baogia .tl-card--detail .tl-card__name {
    min-height: 112px;
}

.tl-baogia .tl-panel .tl-card .tl-card__name {
    min-height: 112px;
}

.tl-baogia .tl-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.tl-baogia .tl-card__money {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.tl-baogia .tl-card__price {
    font-size: 32px;
    line-height: 40px;
    font-family: Inter Bold, Inter, sans-serif;
    letter-spacing: -0.2px;
    color: #252b37;
    white-space: nowrap;
}

.tl-baogia .tl-card__unit {
    font-size: 20px;
    line-height: 28px;
    font-family: Inter SemiBold, Inter, sans-serif;
    letter-spacing: 0;
    color: #a4a7ae;
    white-space: nowrap;
}

.tl-baogia .tl-card__breakdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tl-baogia .tl-card__bd-line {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.tl-baogia .tl-card__bd-strong {
    font-family: Inter Bold, Inter, sans-serif;
    color: #535862;
}

.tl-baogia .tl-card__desc {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.tl-baogia .tl-check {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tl-baogia .tl-check li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.tl-baogia .tl-check li img {
    flex: none;
    width: 24px;
    height: 24px;
}

/* --------------------------------------------------------------------------
   Đào tạo - heading + 2 cột mỗi nhóm
   -------------------------------------------------------------------------- */

.tl-baogia .tl-training {
    margin-top: 64px;
}

.tl-baogia .tl-training .tl-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tl-baogia .tl-group {
    background: #fff;
    border: 1px solid #e9eaeb;
    border-radius: 24px;
    overflow: hidden;
}

.tl-baogia .tl-group__title {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid #e9eaeb;
    font-size: 24px;
    line-height: 32px;
    font-family: Inter Bold, Inter, sans-serif;
    letter-spacing: -0.2px;
    text-align: center;
    color: #252b37;
}

.tl-baogia .tl-group__body {
    display: flex;
    align-items: stretch;
}

.tl-baogia .tl-group__col {
    flex: 1 1 50%;
    min-width: 0;
    padding: 24px;
}

.tl-baogia .tl-group__col:first-child {
    border-right: 1px solid #e9eaeb;
}

.tl-baogia .tl-course {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.tl-baogia .tl-course .tl-check {
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Lưu ý
   -------------------------------------------------------------------------- */

.tl-baogia .tl-note {
    margin-top: 64px;
    padding-bottom: 48px;
}

.tl-baogia .tl-note__box {
    padding: 24px;
    background: #fff;
    border: 1px solid #f8aa0a;
    border-radius: 24px;
}

.tl-baogia .tl-note__content {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #535862;
}

.tl-baogia .tl-note__label {
    font-family: Inter Bold, Inter, sans-serif;
}

.tl-baogia .tl-note__content ul {
    padding-left: 24px;
    list-style: disc;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .tl-baogia .tl-hero {
        padding-top: 96px;
    }

    .tl-baogia .tl-hero__title {
        font-size: 34px;
        line-height: 44px;
    }

    .tl-baogia .tl-card__price {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 1024px) {
    .tl-baogia .tl-pricing,
    .tl-baogia .tl-training,
    .tl-baogia .tl-note {
        margin-top: 48px;
    }

    .tl-baogia .tl-card {
        flex: 1 1 100%;
    }

    .tl-baogia .tl-card--detail .tl-card__name,
    .tl-baogia .tl-panel .tl-card .tl-card__name {
        min-height: 0;
    }

    .tl-baogia .tl-group__body {
        flex-direction: column;
    }

    .tl-baogia .tl-group__col:first-child {
        border-right: none;
        border-bottom: 1px solid #e9eaeb;
    }

    .tl-baogia .tl-note {
        padding-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .tl-baogia .tl-container {
        padding: 0 16px;
    }

    .tl-baogia .tl-top__bg {
        display: none;
    }

    .tl-baogia .tl-hero {
        padding-top: 56px;
    }

    .tl-baogia .tl-hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .tl-baogia .tl-pricing,
    .tl-baogia .tl-training,
    .tl-baogia .tl-note {
        margin-top: 32px;
    }

    .tl-baogia .tl-training .tl-container {
        gap: 16px;
    }

    .tl-baogia .tl-tabs {
        gap: 12px;
    }

    .tl-baogia .tl-tab {
        width: 100%;
    }

    .tl-baogia .tl-card {
        gap: 20px;
        padding: 20px;
    }

    .tl-baogia .tl-card__name,
    .tl-baogia .tl-card__unit {
        font-size: 18px;
        line-height: 26px;
    }

    .tl-baogia .tl-card__price {
        font-size: 26px;
        line-height: 34px;
    }

    .tl-baogia .tl-group__title {
        font-size: 20px;
        line-height: 28px;
    }

    .tl-baogia .tl-group__col {
        padding: 20px;
    }

    .tl-baogia .tl-note {
        padding-bottom: 32px;
    }

    .tl-baogia .tl-note__box {
        padding: 16px;
    }

    .tl-baogia .tl-note__content ul {
        padding-left: 20px;
    }
}
