html {
  height: 100%;
  background-color: #000000;
  color: #ffffff;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background-color: #000000;
  color: #ffffff;
}
body > footer {
  position: sticky;
  top: 100vh;
  margin-top: 1rem;
}
h1 {
  font-size: 3rem;
  font-weight: 600;
}
h2 {
  font-size: 1.5rem;
}

.nav {
  max-width: 1080px auto;
  align-items: center;
  justify-content: space-around;
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 60px;
  position: relative;
  padding: 1rem;
  background: #18254c;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: #ffffff;
}

.nav-icon {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon a {
  display: flex;
  align-items: center;
}

.menu-list {
  height: 100%;
  width: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  padding-top: 7rem;
  top: 0;
  right: -100%;
  z-index: 10;
  background-color: hsla(231, 20%, 7%, 0.92);
}

@media (min-width: 980px) {
  .menu-list {
    right: 0;
    flex-direction: row;
    background-color: transparent;
    height: 60px;
    position: relative;
    padding: 0;
    width: inherit;
  }

  .mobile_menu {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
  }

  .open-sidebar-button,
  .close-sidebar-button {
    display: none !important;
  }

  .menu-list li {
    padding: 0 !important;
  }

  .menu-list li a {
    font-size: 14px !important;
    padding: 5px 10px !important;
  }

  .dropdown_item {
    position: relative;
  }

  .dropdown_menu {
    position: absolute;
    background-color: #0c2572;
    left: 0;
    width: 100%;
  }

  .dropdown_item:hover a {
    border-radius: 10px 10px 0 0 !important;
    background-color: #0c2572;
    transition: 1s ease-out !important;
  }

  .nav_link a {
    border-radius: 10px 0 !important;
  }
}

.mobile_menu {
  display: flex;
  flex-direction: column;
}

.menu-list li {
  list-style: none;
  padding: 5px;
  display: inline-block;
}

.menu-list li a {
  font-size: 1.3rem;
  box-sizing: border-box;
  padding: 5px;
  transition: 0.3s ease-out;
  border-radius: 10px;
}

.menu-list li a:hover {
  background-color: #0c2572;
}

.nav_link a {
  display: inline-flex;
  align-items: center;
}

.dropdown_menu {
  display: flex;
  flex-direction: column;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown_menu li a {
  font-size: 16px;
  padding: 6px 20px;
}

.dropdown_item:hover .dropdown_menu {
  max-height: 1000px;
  transition: max-height 0.4s ease-in;
}

.dropdown_item .dropdown_arrow {
  transition: all 0.5s ease-out;
}

.dropdown_item:hover .dropdown_arrow {
  transform: rotate(180deg);
  transition: all 0.3s ease-in;
}

nav svg {
  fill: #ffffff;
}

#sidebar-active {
  display: none;
}

.open-sidebar-button,
.close-sidebar-button {
  cursor: pointer;
  height: 32px;
}

.close-sidebar-button {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 10px 20px 10px 10px;
  display: block;
  z-index: 11;
}

#sidebar-active:checked ~ .menu-list {
  right: 0;
}

#overlay {
  position: absolute;
  display: none;
}

#sidebar-active:checked ~ #overlay {
  height: 100vh;
  width: 100%;
  display: flex;
  top: 0;
  left: 0;
  z-index: 9;
}

.list-icon {
  display: flex;
  align-items: center;
}

.login {
  font-size: 12px;
  border: 1px solid white;
  padding: 7px;
  border-radius: 7px;
  transition: 400ms;
}

.login:hover {
  background-color: rgb(255, 255, 255);
  border: 1px solid white;
  color: black;
}

.menu-list-transition {
  transition: 0.35s ease-out;
}

.maincontent {
  position: relative;
  background: url(../images/bg-sec-3.jpg) center no-repeat;
  background-size: cover;
  height: 525px;
  display: flex;
}

@media (min-width: 1024px) {
  .maincontent {
    background: url(../images/bg-sec-3.png) center no-repeat;
  }
}

.maincontent::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: 18254c;
}

.button {
  background-color: #f0f6fe;
  margin-top: 32px;
  color: rgb(0, 0, 0);
  width: 100px;
  padding: 0.3rem;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.content-con {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 450px;
  padding: 2rem;
  margin: 0 auto;
}
.content-item:nth-child(2):before,
.content-item:nth-child(3):before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background-color: #58b4d3;
  bottom: 0;
  margin: 1.3rem 0;
}

@media (min-width: 786px) {
  .content-con {
    flex-direction: row;
    justify-content: center;
    max-width: 1300px;
    gap: 15px;
    padding: 5rem;
  }
  .content-item:nth-child(2) {
    position: relative;
    padding: 0 15px;
  }
  .content-item:nth-child(2):after,
  .content-item:nth-child(2):before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #58b4d3;
    margin: 0;
    height: 100%;
  }
  .content-item:nth-child(2):before {
    left: 0;
  }
  .content-item:nth-child(2):after {
    right: 0;
  }
  .content-item:nth-child(3):before {
    display: none;
  }
}

.border-left {
  border-left: 4px solid #58b4d3;
}

.border-right {
  border-right: 4px solid #58b4d3;
}

.text-second {
  font-size: 50px;
}

/***** Banner3 Start *******/
.textflex {
  text-align: center;
  padding: 2rem;
}
.textflex p {
  font-size: 2rem;
}

.insight-warp {
  width: 100%;
  display: grid;
  gap: 10px;
  padding-inline: 1rem;
  padding-bottom: 4rem;
}

.insight-group {
  width: 100%;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .insight-warp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .insight-group {
    grid-column: span 2 / span 2;
  }
  .item-insight {
    height: 500px !important;
  }
}

.item-read {
  background: url(../images/read.jpg) no-repeat center;
}
.item-watch {
  background: url(../images/watch.png) no-repeat center;
}
.item-listen {
  background: url(../images/listen.png) no-repeat center;
}

.item-insight {
  background-color: #0b043d;
  height: 300px;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  background-size: cover;
}

.item-read::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(7, 20, 123, 0.7);
}

.content-insight {
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 2rem;
}

/***** Banner3 End *******/

/***** Banner คอร์สออนไลน์ Start *******/
.myCourse,
.myBook {
  padding-bottom: 3rem;
}
.course-warper {
  padding: 1rem;
}
.head-course {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.card-warper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #0e1732;
  border-radius: 10px;
}
.card-img {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.card-title {
  height: 50px;
}

.card-title h3 {
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: start;
}

.card-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  height: 4rem;
}
.card-price h3 {
  color: #58b4d3;
  font-size: 1.6rem;
}
.card-view {
  flex-direction: row;
  display: flex;
  align-items: center;
  font-size: 0.6rem;
}
.card-view img {
  width: 40px !important;
}
.caed-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.card-button {
  width: 100%;
  background-color: #58b4d3;
  color: white;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  text-align: center;
}
.card-cart {
  display: flex;
  width: 100px;
}

/***** Banner คอร์สออนไลน์ End *******/

/***** Banner Book Start *******/

.headcourse-book {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
  align-items: end;
}

.contener-book {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.book {
  border-color: #58b4d3;
  border-radius: 20px;
  border-style: solid;
  border-width: 5px;
  width: 316;
  height: 400;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 800px) {
  .contener-book {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }

  .headcourse-g {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
  }

  .flexbox {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-top: 30px;
    gap: 20px;
  }
}

/***** Banner Book End *******/

/********************************** about Start ***************************/
.about {
  background-image: url(../images/b-about.jpg);
  background-size: cover;
  background-position: center top;
  height: 520px;
  display: flex;
  flex-direction: column;
  place-content: center;
  place-items: center;
}
.history-img {
  background: url(../images/second-banner.png) no-repeat center;
  background-size: cover;
}

.myVideo {
  padding: 1rem;
}
.video-event {
  text-align: center;
  padding: 1.3rem;
  background-color: #18254c;
}
.video-event h2 {
  font-weight: 300;
}
.video-event h3 {
  font-size: 1.8rem;
}

.swiper-button-next-myVideo {
  right: 10px;
  left: auto;
}

.swiper-button-prev-myVideo {
  left: 10px;
  right: auto;
}
.swiper-button-next-myVideo:after,
.swiper-button-prev-myVideo:after {
  font-family: "Font Awesome 5 Free"; /* ใช้ไอคอนจาก Font Awesome */
  font-weight: 900;
}

.swiper-button-next-myVideo:after {
  content: "\f105"; /* ไอคอนลูกศรขวา */
}

.swiper-button-prev-myVideo:after {
  content: "\f104"; /* ไอคอนลูกศรซ้าย */
}
:root {
  --swiper-navigation-size: 44px;
  --swiper-theme-color: #007aff;
}

.swiper-button-next-myVideo,
.swiper-button-prev-myVideo {
  position: absolute;
  top: 50%;
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: var(--swiper-navigation-size);
  margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-theme-color);
  font-size: 40px;
}

.search-container {
  display: block;
  width: 100%;
  height: 60px;
  padding: 1rem;
}

input#search-bar {
  margin: 0 auto;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  font-size: 1rem;
  border: 1px solid #d0cfce;
  border-radius: 1rem;
  outline: none;
}
input#search-bar:focus {
  border: 1px solid #008abf;
  transition: 0.35s ease;
  color: #008abf;
}
input#search-bar:focus::-webkit-input-placeholder {
  transition: opacity 0.45s ease;
  opacity: 0;
}
input#search-bar:focus::-moz-placeholder {
  transition: opacity 0.45s ease;
  opacity: 0;
}
input#search-bar:focus:-ms-placeholder {
  transition: opacity 0.45s ease;
  opacity: 0;
}

.search-icon {
  position: relative;
  float: right;
  width: 30px;
  height: 30px;
  top: -38px;
  right: 5px;
  color: #000000;
}

.inline-box {
  display: flex;
  gap: 10px;
  color: #ffffff;
}
.active_pagination {
  background-color: #000000;
  color: white;
}

.ui-checkbox {
  --primary-color: #1677ff;
  --secondary-color: #fff;
  --primary-hover-color: #4096ff;
  /* checkbox */
  --checkbox-diameter: 20px;
  --checkbox-border-radius: 5px;
  --checkbox-border-color: #d9d9d9;
  --checkbox-border-width: 1px;
  --checkbox-border-style: solid;
  /* checkmark */
  --checkmark-size: 1.2;
}

.ui-checkbox,
.ui-checkbox *,
.ui-checkbox *::before,
.ui-checkbox *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.ui-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--checkbox-diameter);
  height: var(--checkbox-diameter);
  border-radius: var(--checkbox-border-radius);
  background: var(--secondary-color);
  border: var(--checkbox-border-width) var(--checkbox-border-style)
    var(--checkbox-border-color);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.ui-checkbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5)
    var(--primary-color);
  box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
  border-radius: inherit;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  -o-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.ui-checkbox::before {
  top: 40%;
  left: 50%;
  content: "";
  position: absolute;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  -ms-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),
    opacity 0.1s;
  -o-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
  transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
}

/* actions */

.ui-checkbox:hover {
  border-color: var(--primary-color);
}

.ui-checkbox:checked {
  background: var(--primary-color);
  border-color: transparent;
}

.ui-checkbox:checked::before {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) rotate(45deg)
    scale(var(--checkmark-size));
  -ms-transform: translate(-50%, -50%) rotate(45deg)
    scale(var(--checkmark-size));
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  -o-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.ui-checkbox:active:not(:checked)::after {
  -webkit-transition: none;
  -o-transition: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  transition: none;
  opacity: 1;
}

.icon-box .icon-like,
.icon-box .icon-share {
  width: 30px;
  height: auto;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item-details,
.info-item-course,
.info-item-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #fff;
  padding: 1rem;
  border-radius: 0.7rem;
}

.info-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 1rem;
}

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  cursor: pointer;
  z-index: 2;
  font-size: 5rem;
}

.icon {
  width: 20px;
  height: 20px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-pic {
  width: 3rem;
}

.icon-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.icon-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button-register {
  background-color: #58b4d3;
  color: white;
  border-radius: 10px;
  padding: 1rem;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-top: 1rem;
}

/* Accordion Styles */
.accordion-wrapper {
  margin-top: 1rem;
  width: 100%;
}

.course-info,
.course-content {
  margin-top: 1rem;
}

.divider {
  margin: 1rem 0;
}

.accordion {
  width: 100%;
  border: 1px solid #000000;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 1rem;
}

.accordion-item {
  border-bottom: 1px solid #000000;
}

.accordion-header {
  width: 100%;
  color: #fff;
  background-color: #374149;
  padding: 15px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.accordion-header:hover {
  background-color: #ddd;
  color: #374149;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: rgb(0, 0, 0);
  padding: 0 15px;
}

.accordion-content p {
  margin: 0;
  padding: 15px 0;
}

.progress1 {
  width: 100%;
  height: 10px;
}

.progress-wrap {
  background: #58b4d3;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.progress-wrap .progress-bar {
  background: #ddd;
  left: 0;
  position: absolute;
  top: 0;
}

.time-course-warper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.time-course {
  font-size: 0.9rem;
  font-weight: 300;
}

.icon-checkmark {
  font-size: 1.8rem;
  margin-right: 1rem;
}
