/* K-Digital shared components. Scoped to .kd-page. */

/* ---- Tab bar ---- */
.kd-page .section-tabbar {
    position: relative;
    z-index: 900;
    width: 100%;
    height: 42px;
    background: var(--kd-navy-700);
    color: #fff;
}
.kd-page .section-tabbar .container {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 42px;
}
.kd-page .tabbar-list {
    display: flex;
    margin: 0 0 0 -24px;
    padding: 0;
    list-style: none;
}
.kd-page .tabbar-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.kd-page .tabbar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 42px;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.92;
}
.kd-page .tabbar-link:hover,
.kd-page .tabbar-link.is-active {
    opacity: 1;
    box-shadow: inset 0 -3px 0 var(--kd-cyan-400);
}
.kd-page .tabbar-link:focus-visible,
.kd-page .tabbar-course-trigger:focus-visible {
    outline: 2px solid var(--kd-cyan-400);
    outline-offset: -2px;
}
.kd-page .tabbar-course {
    position: relative;
    display: flex;
}
.kd-page .tabbar-course-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px 0 24px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.kd-page .tabbar-course-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff url(/menu/course-detail/k-digital/assets/images/gov.png) center / 16px 16px no-repeat;
}
.kd-page .tabbar-course-arrow {
    transition: transform 0.2s ease;
}
.kd-page .tabbar-course.is-open .tabbar-course-arrow {
    transform: rotate(180deg);
}
.kd-page .tabbar-course-menu {
    position: absolute;
    right: 0;
    top: 42px;
    z-index: 950;
    width: 340px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: var(--kd-shadow-float);
}
.kd-page .tabbar-course-menu[hidden] {
    display: none;
}
.kd-page .tabbar-course-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.kd-page .tabbar-course-option {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--kd-text-900);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.kd-page a.tabbar-course-option:hover,
.kd-page .tabbar-course-option.is-current {
    background: var(--kd-sky-100);
    color: var(--kd-blue-600);
}
.kd-page .tabbar-course-option.is-disabled {
    color: #9aa3b2;
    cursor: default;
}

.kd-page .section-tabbar.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 6px 18px rgba(10, 25, 80, 0.2);
}
.kd-page .tabbar-holder {
    display: block;
    width: 100%;
    height: 0;
}

/* ---- Common atoms ---- */
.kd-page .kd-pill {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 18px;
    border-radius: var(--kd-radius-pill);
    background: #E3EDFF;
    color: var(--kd-blue-600);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}
.kd-page .kd-ico {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.kd-page .kd-img {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.kd-page em {
    font-style: normal;
}

/* ---- Final CTA (in-page section) ---- */
.kd-page .section-final-cta {
    position: relative;
    padding: 86px 0 74px;
    background: var(--kd-navy-800) center / cover no-repeat;
    color: #fff;
    text-align: center;
}
/* Own alignment: do not inherit from .container (LMS may set text-align there) or from any other section */
.kd-page .section-final-cta .container,
.kd-page .section-final-cta h2,
.kd-page .section-final-cta .desc,
.kd-page .section-final-cta .meta {
    text-align: center !important;
}
.kd-page .section-final-cta h2 {
    margin: 0 0 24px;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.2;
}
.kd-page .section-final-cta .desc {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 19.8px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}
.kd-page .section-final-cta .meta {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.85);
}
.kd-page .section-final-cta .meta li::before {
    content: "\00B7";
    margin-right: 6px;
}
.kd-page .section-final-cta .buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
}
.kd-page .section-final-cta .kd-btn {
    min-width: 249px;
    height: 54px;
    font-size: 20px;
}
