*, ::after, ::before {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, a, ul, ol, li, i, svg, button {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}

i {
    display: inline-flex;
}

svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

body {
    font-family: 'Poppins', sans-serif;    
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

main {
    position: relative;
}

#kb-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 9;
}

#kb-block-container {
    display: flex;
    height: 100%;
    min-height: 100vh;
}

#main-container, #page-container {
    position: relative;
}

div#page-container {
    height: 100%;
    min-height: 100vh;
}

.kb-header-sticky {
    z-index: 999;
    position: sticky;
    top: 0;
}

.kb-footer-sticky {
    z-index: 999;
    position: sticky;
    bottom: 0;
}

.kb-d-none {
    display: none!important;
}

.kb-block-active-action {
    cursor: pointer;
}

.kb-column-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: inherit;
    gap: inherit;
    width: 100%;
    height: 100%;
}

.kb-column {
    display: inline-block;
    padding: 0px 20px;
    flex: 1;
}

.kb-content-container {
    display: flex;
    flex-direction: column;
    justify-content: inherit;
    gap: inherit;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.kb-button-block {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    background-color: transparent;
}

.kb-button-block>span {
    display: inline-flex;
    flex-direction: column;
}

.kb-button-block:not(:has(svg)) span.kb-button-text {
    flex: 1;
}

.kb-menu-block {
    display: flex;
    flex-direction: row;
}

.kb-block-container {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.kb-element-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    align-items: inherit;
    overflow-wrap: break-word;
}

.kb-element-content img {
    max-width: 100%;
}

.kb-video-block,
.kb-form-content-block {
    overflow: hidden;
}

.kb-video-block video,
.kb-video-block iframe,
.kb-video-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-element, .kb-code-block {
    width: 100%;
}

.kb-row.kb-block-container {
    width: 80%;    
    height: auto;
    margin: auto;
}

.kb-text-block.kb-is-icon-list ul,
.kb-text-block.kb-is-icon-list ol { 
    padding: 0px;
}

.kb-text-block.kb-is-icon-list li {
    padding-left: 2em;
    position: relative;
    list-style: none;
}

.kb-text-block.kb-is-icon-list li:before {
    content: '';
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    height: 0.9em;
    width: 0.9em;
    background-image: var(--list-marker);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.kb-icon-block {
    text-decoration: none;
}

/* menu responsiveness */

.kb-menu-resp-container {
    display: none !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kb-menu-sidebar-block {
    background-color: #e9e9e9;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;
    min-width: 50%;
    height: 100%;
    padding: 10px;
    transition: 0.2s ease-out;
}

.kb-menu-sidebar-block.kb-sidebar-left {
    left: -100%;
    right: auto;
}

.kb-menu-sidebar-block.kb-sidebar-left.kb-is-open {
    left: 0%;
}

.kb-menu-sidebar-block.kb-sidebar-right {
    left: auto;
    right: -100%;
}

.kb-menu-sidebar-block.kb-sidebar-right.kb-is-open {
    right: 0%;
}

.kb-menu-sidebar-block>ul.kb-menu {
    flex-direction: column;
}

.kb-d-flex {
   display: flex!important;
}

.kb-menu-bar {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    --menu-bar-color: #1E1E1E;
}
  
.kb-menu-bar1, .kb-menu-bar2, .kb-menu-bar3 {
    display: block;
    width: 20px;
    height: 4px;
    background-color: var(--menu-bar-color);
    transition: 0.1s ease;
}

.kb-menu-bar-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.kb-menu-bar-close .kb-menu-bar1 {
    transform: translate(0, 7px) rotate(-45deg);
}

.kb-menu-bar-close .kb-menu-bar2 {
    opacity: 0;
}

.kb-menu-bar-close .kb-menu-bar3 {
    transform: translate(0, -7px) rotate(45deg);
}

ul.kb-menu {
    list-style: none;
    padding: 0px;
    margin: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: inherit;
    align-items: inherit;
    justify-content: inherit;
    gap: inherit;
}

ul.kb-menu a {
    text-decoration: none;
    display: block;
}

ul.kb-menu li, a:active {
    color: inherit;
}

.kb-menu-has-logo {
    flex: 1 1 auto;
    display: flex;
}

.kb-menu-has-logo.kb-menu-logo-start {
    justify-content: flex-start;
}

.kb-menu-has-logo.kb-menu-logo-center {
    justify-content: center;
}

.kb-menu-has-logo.kb-menu-logo-end {
    justify-content: flex-end;
}

.kb-menu-has-dropdown {
    position: relative;
} 

.kb-menu-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 6px;
    z-index: -999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.kb-menu-dropdown .kb-menu {
    display: flex;
    flex-direction: column;
}

.kb-menu-dropdown .kb-menu-item {
    padding: 8px 20px!important;
    transition: 0.1s ease-in-out;
}

.kb-menu-dropdown a:hover {
    background-color:rgba(128, 128, 128, 0.2);
}

.kb-menu-dropdown-open {
    z-index: 999;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.kb-universal-drop {
    border: 1px solid rgba(120, 120, 120, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
    appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

.kb-is-text-bg {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kb-main-body {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.kb-course-list {
    display: grid;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-course-item {
    max-width: 100%;
    overflow: hidden;
}

.kb-course-item>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kb-course-item img {
    height: 100%;
}

.kb-course-list.kb-course-list-view .kb-course-item {
    display: flex;
    column-gap: 15px;
}

.kb-form-input-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kb-form-input-wrap textarea::placeholder,
.kb-form-input-wrap input::placeholder,
.kb-form-rc-label input::placeholder {
    color: inherit;
    opacity: 0.6;
}

.kb-card-block, .kb-card-thumbnail, .kb-card-content {
    display: flex;
    flex-wrap: wrap;
}

.kb-card-thumbnail, .kb-card-content {
    flex-direction: column;
}

.kb-card-block .kb-card-wrap {
    position: relative!important;
    display: flex;
    overflow: hidden;
}

.kb-card-grid-layout .kb-card-wrap {
    flex-direction: column;
}

.kb-card-list-layout .kb-card-wrap {
    flex-direction: row;
}

/* popup */

.kb-popup-section {
    position: fixed!important;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow: auto;
    z-index: 999;
}

.kb-popup-section.kb-popup-open {
    opacity: 1;
    visibility: visible;
}

.kb-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    z-index: 9;
}

.kb-popup-bar1, .kb-popup-bar2, .kb-popup-bar3 {
    display: block;
    width: 20px;
    height: 4px;
    background-color: #dc3545;
    transition: 0.1s ease;
}

.kb-popup-close-btn .kb-popup-bar1 {
    transform: translate(0, 7px) rotate(-45deg);
}

.kb-popup-close-btn .kb-popup-bar2 {
    opacity: 0;
}

.kb-popup-close-btn .kb-popup-bar3 {
    transform: translate(0, -7px) rotate(45deg);
}

/* popup */

.kb-progress-bar-block {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.kb-progress-text {
    width: 100%;
    height: auto;
    z-index: 2;
}

.kb-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    z-index: 1;
    transition: width 0.3s ease-in-out;
}

/* membership styling */

.kb-course-progress-text {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 99;
}

.kb-hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.kb-avatar-wrapper {
    cursor: pointer;
    position: relative;
}

.kb-image-block img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    border-radius: inherit;
}

.kb-profile-loading {
    position: relative;
}

::ng-deep .kb-loading-shimmer:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: linear-gradient(
        90deg,
        #444 10%, #555 20%, #666 30%, #555 40%, #444 50%,
        #444 60%, #555 70%, #666 80%, #555 90%, #444 100%
    );
    background-size: 200% 100%;
    border-radius: inherit;
    opacity: 0.4;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.kb-form-avatar-icon {
    position: absolute;
    bottom: 0;
    right: 0;
}

.kb-form-avatar-icon i {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* audio player */

.kb-audio-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kb-audio-block .kb-audio-play-btn {
    color: var(--play-color);
    font-size: 2em;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.kb-audio-block .kb-audio-time-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.kb-audio-block .kb-audio-seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--thumb-color) 0%, var(--track-color) 0%);
  outline: none;
  transition: background 0.3s;
  cursor: pointer;
}

.kb-audio-block .kb-audio-seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--thumb-color);
  cursor: pointer;
}

.kb-audio-block .kb-audio-seek-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--thumb-color);
  cursor: pointer;
}

.kb-line-truncate {
  display: -webkit-box;
  overflow: hidden;
  box-orient: vertical;
  -webkit-box-orient: vertical;
}

.kb-line-clamp-2 {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.kb-line-clamp-3 {
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.kb-universal-border {
    border: 1px solid rgba(128, 128, 128, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background-color: transparent;
}

/* media query */

@media (max-width: 768px) {    
    .kb-row .kb-column.kb-block-container,
    .kb-card-block .kb-card-wrap {
        width: 100%!important;
        max-width: 100%!important;
    }
    .kb-row {
        flex-direction: column;
    }
}

@media (min-width: 1025px) {
    .kb-d-desk-none {
        display: none!important;
    }

    .kb-desk-column-rev {
        flex-direction: row-reverse;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .kb-d-tab-h-none {
        display: none!important;
    }

    .kb-tab-h-flex-rev {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) and (min-width: 426px) {
    .kb-tab-v-column-rev {
        flex-direction: column-reverse!important;
    }

    .kb-d-tab-v-none, .kb-menu-resp-none {
        display: none!important;
    }

    .kb-menu-resp-container {
        display: inherit!important;
    }
}

@media (max-width: 426px) {
    .kb-mob-column-rev {
        flex-direction: column-reverse!important;
    }
    
    .kb-d-mob-none, .kb-menu-resp-none {
        display: none!important;
    }

    .kb-menu-resp-container {
        display: inherit!important;
    }

}
