body {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= NAVBAR ================= */

.navbar {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0px;
}

.nav-container {
  width: 100%;
  margin: auto;
  padding: 0px 100px 0px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  width: 100%;
}

/* MENU CENTER */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
  padding-left: 0px;
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 27px 14px;
  border-radius: 0px;
  transition: all 0.3s ease;
}

/* Hover */
.nav-link:hover {
  background: #f3f6fb;
  color: #224093;
}

/* Active */
.nav-link.active {
  background: #f5f5f5;
  color: #224093;
  font-weight: 600;
}

/* RIGHT AUTH */
.auth-menu {
  display: flex;
  align-items: center;
  gap: 0px;
  padding-left: 10px;
}

.auth-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
}

.auth-link:hover {
  color: #224093;
}

.register {
  padding: 8px 16px;
  color: #444;
  border-radius: 8px;
  transition: 0.3s;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #224093;
}

/* ================= MOBILE ================= */

@media (max-width: 991px) {
  /* MOBILE MENU */

  .nav-menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease forwards;
  }

  /* เปิดเมนู */

  .nav-menu.active {
    display: flex;
  }

  /* LINKS */

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* LINK STYLE */

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
  }

  /* ACTIVE MENU */

  .nav-link.active {
    background: #f5f5f5;
    color: #224093;
    font-weight: 600;
  }

  /* AUTH MENU */

  .auth-menu {
    display: none;
  }

  /* HAMBURGER */

  .hamburger {
    display: block;
    cursor: pointer;
  }
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----------------------------------------
    Footer
-------------------------------------------*/

#footer {
  background-color: #f5f5f5;
  padding: 60px 0px 20px 0px;
}

#footer .logo img {
  width: 50%;
}

.footer_detail {
  font-size: 14px;
  color: #555555;
  padding-top: 10px;
  padding-right: 100px;
}

.head_footer p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.list_menu a {
  line-height: 30px;
  color: #555555;
  text-decoration: none;
  font-size: 14px;
}

.list_menu a:hover {
  line-height: 30px;
  color: #224093;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.detail_contact p {
  color: #555555;
  font-size: 14px;
  line-height: 30px;
}

.box_copyright {
  font-size: 14px;
  padding: 30px 0px 0px 0px;
}

/*-----------------------------------------
    Page Home
-------------------------------------------*/
/*-------------------- Banner ----------------*/
/* ================= SLIDER ================= */

.slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= DOTS (LEFT SIDE) ================= */

.dots {
  position: absolute;
  bottom: 20px;
  left: 40px; /* 👈 ย้ายจากกลางไปฝั่งซ้าย */
}

.dot {
  height: 12px;
  width: 12px;
  margin-right: 8px;
  background: #ddd;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #224093;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .slider {
    height: 20vh;
  }

  .prev,
  .next {
    font-size: 18px;
    padding: 8px 12px;
  }

  .dots {
    left: 20px;
    bottom: 5px;
  }

  .dot {
    height: 8px;
    width: 8px;
    margin-right: 8px;
    background: #ddd;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
  }

  .Box_borcate {
    padding: 20px 10px 20px 10px !important;
  }

  .Head_Title {
    font-size: 20px !important;
    font-weight: 600;
  }

  .Button_web a {
    font-size: 14px !important;
  }

  .Name_cate {
    font-size: 22px !important;
  }

  .nav-container {
    padding: 10px 10px 10px 10px;
  }
}

/* ============ Section Categories ============ */

#sec_categories {
  padding: 60px 0px 40px 0px;
}

.Head_Title {
  font-size: 30px;
  font-weight: 600;
}

.Detail_title p {
  font-size: 14px;
  font-weight: 300;
  color: #555555;
}

p {
  margin-bottom: 0rem;
}

.Button_web {
  display: flex;
  justify-content: flex-end; /* 👈 ชิดขวา */
  align-items: center;
  height: 100%;
}

.Button_web a {
  padding: 8px 18px;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  border: 1px solid #000000;
}

.Button_web a:hover {
  background: #224093;
  color: #fff;
}

.Box_borcate {
  padding: 50px 50px 20px 50px;
}

.Box_cate {
  border: 1px solid #eaeaea; /* กรอบดำ */
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ชื่อหมวด */
.Name_cate {
  color: #224093;
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 5px;
  transition: 0.3s;
}

/* จำนวนคอร์ส */
.Number_courses {
  color: #555555;
  font-size: 18px;
  transition: 0.3s;
}

/* Hover Effect */
.Box_cate:hover {
  background: #224093;
  transform: translateY(-8px); /* pop up */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* เปลี่ยนสี text ตอน hover */
.Box_cate:hover .Name_cate,
.Box_cate:hover .Number_courses {
  color: #fff;
}

/* Card */
.course-cardfeatured {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s ease;
  margin-top: 20px;
  border: 1px solid #eaeaea;
}

.course-cardfeatured:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Image */
.course-image {
  position: relative;
}

.course-image img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

/* Badge */
.course-image .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000000;
  color: #ffffff;
  padding: 6px 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

/* Content */
.course-content {
  padding: 20px;
}

.author {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
  line-height: 1.3;
}

/* Meta */
.course-meta {
  display: flex;
  gap: 20px;
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Footer */
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Price */
.old-price {
  text-decoration: line-through;
  color: #000000;
  margin-right: 8px;
}

.new-price {
  color: #55be24;
  font-weight: 600;
}

.new-price2 {
  color: #f51a1a;
  font-weight: 600;
}

/* Button */
.view-more {
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  background-color: #1b357a;
}

.view-more:hover {
  color: #ffffff;
  background-color: #224093;
}

/* ============ Section Empower ============ */

#banner_empower {
  padding: 50px 0px 50px 0px;
}

.box_textempower {
  height: 150px;
  border-radius: 20px;
}

.box_textempower {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 80px 40px;
  border-radius: 20px;
  overflow: hidden;
  height: auto;
}

/* Blue + White Overlay */
.box_textempower::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 64, 147, 0.85) 0%,
    /* น้ำเงินเข้ม */ rgb(58 111 247 / 31%) 50%,
    /* น้ำเงินอ่อน */ rgb(255 255 255 / 0%) 100% /* ขาวใส */
  );
}

/* ทำให้ข้อความอยู่เหนือ overlay */
.box_textempower * {
  position: relative;
  z-index: 1;
  color: #fff;
}

.button_job {
  display: inline-block;
  margin-top: 20px; /* 👈 ปรับระยะตรงนี้ได้ */
}

.box_textempower a {
  padding: 8px 25px;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #fff;
}

.box_textempower a:hover {
  padding: 8px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #224093;
  transform: translateY(-3px);
}

.box_bigcount {
  padding: 20px 50px 20px 50px;
}

.Box_count {
  background: #f5f5f5;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  transition: 0.3s ease;
}

.Box_count:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ตัวเลข */
.Num_count {
  font-size: 36px;
  font-weight: 700;
  color: #224093;
  margin-bottom: 5px;
}

/* ข้อความ */
.detail_count {
  color: #000000;
  font-size: 18px;
}

/* Section owl Instructors */
.instructor-section {
  padding: 60px 5%;
}

/* Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-weight: 700;
}

.section-header p {
  color: #777;
  font-size: 14px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAV */

.custom-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
}

.custom-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.custom-nav button:hover {
  background: #224093;
  color: #fff;
  border-color: #224093;
}

@media (max-width: 768px) {
  .section-header {
    gap: 10px;
  }

  .custom-nav {
    gap: 6px;
  }

  .custom-nav button {
    width: 36px;
    height: 36px;
  }
}

/* Card */
/* Card */
.instructor-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #eaeaea;
}

/* Hover ทั้งกล่อง */
.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ซ่อน meta ก่อน */
.meta-course {
  margin-top: 10px;
  font-size: 14px;
  color: #224093;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

/* แสดง meta ตอน hover */
.instructor-card:hover .meta-course {
  opacity: 1;
  transform: translateY(0);
}

/* img */
.instructor-card img {
  width: 120px;
  height: 120px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
}

.instructor-carousel a {
  text-decoration: none;
  color: inherit;
  display: block; /* สำคัญมาก */
}

.instructor-card h4 {
  margin-bottom: 5px;
  color: #000;
  text-decoration: none;
  font-size: 18px;
}

.instructor-card h5 {
  margin-bottom: 5px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.instructor-card p {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

#Banner_center {
  padding: 20px;
}

.Box-study-aboard {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  min-height: auto; /* ความสูง banner */
  padding: 40px 40px;
  border-radius: 20px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center; /* กลางแนวตั้ง */
  align-items: center; /* กลางแนวนอน */
  text-align: center; /* ข้อความกลาง */
  color: #fff;
}

/* Overlay */
.Box-study-aboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0%); /* ปรับความเข้มได้ */
}

/* ให้เนื้อหาอยู่เหนือ overlay */
.Box-study-aboard * {
  position: relative;
  z-index: 1;
}

/* ระยะห่างข้อความ */
.text-titlestep {
  font-size: 14px;
  margin-bottom: 10px;
}

.Box-study-aboard h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.detail-step {
  font-size: 16px;
  margin-bottom: 25px;
}

/* ปุ่ม */
.button_job2 {
  display: inline-block;
  padding: 8px 25px;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #fff;
}

.button_job2:hover {
  background: #1b357a;
  transform: translateY(-3px);
  color: #ffffff;
}

/* Section feedback-section */
.feedback-section {
  padding: 80px 5%;
  text-align: center;
}

/* Title */
.section-title h2 {
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: #777;
  font-size: 14px;
  margin-bottom: 50px;
}

/* Card */
.feedback-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  transition: 0.3s ease;
  border: 1px solid #eaeaea;
}

/* Quote */
.quote {
  font-size: 40px;
  color: #ddd;
  margin-bottom: 10px;
}

/* Text */
.feedback-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Name */
.feedback-card h4 {
  margin: 0;
  font-size: 16px;
}

.feedback-card span {
  font-size: 13px;
  color: #777;
}

/* Section articles */
#articles-section {
  padding: 30px 0px 90px 0px;
}

/* grid layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* เอาเส้นใต้ลิงก์ออก */
.article-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

/* hover */
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* image */
.article-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* content */
.article-content {
  padding: 20px;
}

/* title */
.article-content h4 {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* date */
.article-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

/* text */
.article-content p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

#articles-section .fa-calendar:before {
  content: '\f133';
  color: #224093;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .article-img img {
    height: 200px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-img img {
    height: 180px;
  }

  .article-content {
    padding: 16px;
  }

  .article-content h4 {
    font-size: 16px;
  }
}

/*-----------------------------------------
    Page Courses
-------------------------------------------*/
/* layout */

/* SECTION */
.breadcrumb-section {
  background: #f5f5f5;
  padding: 25px 0px 10px 0px;
}

/* CONTAINER */
.breadcrumb-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* WRAP */
.breadcrumb-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* TITLE */
.breadcrumb-title {
  font-size: 32px;
  font-weight: 400;
  color: #555555;
  margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 14px;
  color: #555555;
}

.breadcrumb a {
  color: #555555;
  text-decoration: none;
  font-weight: 400;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 6px;
  color: #555555;
}

.current {
  color: #a3a3a3;
}

@media (max-width: 768px) {
  .breadcrumb-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .breadcrumb-title {
    font-size: 24px;
  }
}

#courses-section {
  padding: 50px 0px 50px 0px;
}

.courses-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  max-width: 1300px;
  margin: auto;
  padding: 40px;
}

.page-title {
  margin-bottom: 20px;
}

/* course card */

.course-card {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid #eee;
}

/* image */

.course-img {
  position: relative;
  width: 40%;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* tag */

.course-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

/* content */

.course-content {
  padding: 25px;
  flex: 1;
}

.course-author {
  color: #777;
  font-size: 14px;
  margin-bottom: 8px;
}

.course-title {
  margin: 0 0 15px;
  font-size: 20px;
}

.course-card {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s ease;
  margin-top: 20px;
  border: 1px solid #eaeaea;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* meta */

.course-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
}

/* footer */

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* price */

.course-price .old {
  color: #000000;
  margin-right: 8px;
}

.course-price .free {
  color: #2ecc71;
  font-weight: 600;
}

/* button */

.view-more {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
}

/* sidebar */

.courses-sidebar {
  background: #fff;
  padding: 0px 25px 25px 25px;
  border-radius: 15px;
  height: fit-content;
}

/* search */

.search-box input {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  margin-bottom: 25px;
}

/* filter */

.filter-box {
  margin-bottom: 30px;
}

.filter-box h5 {
  margin-bottom: 10px;
  font-size: 18px;
}

.filter-box label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.filter-box label input {
  margin-right: 8px;
}

.filter-box label span {
  margin-left: auto; /* ดันเลขไปขวาสุด */
  color: #777;
}

/* -------- Tablet -------- */

@media (max-width: 1024px) {
  .courses-container {
    grid-template-columns: 1fr;
  }

  .course-card {
    flex-direction: column;
  }

  .course-img {
    width: 100%;
    height: 220px;
  }
}

.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ชิดขวา */
  gap: 15px;
  width: 100%;
}

/* search box */

.search-box {
  position: relative;
  max-width: 200px;
  width: 100%;
}

.search-box input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px 30px 8px 5px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.view-icons {
  display: flex;
  gap: 10px;
}

.view-icons a {
  color: #000;
  font-size: 16px;
}
/* -------- Mobile -------- */

@media (max-width: 600px) {
  .course-content {
    padding: 18px;
  }

  .course-title {
    font-size: 18px;
  }
  .course-meta {
    gap: 10px;
    font-size: 13px;
  }
}

/* PAGINATION CONTAINER */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* NUMBER BUTTON */
.page-number,
.page-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 150px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  transition: all 0.25s ease;
}

/* HOVER */
.page-number:hover,
.page-arrow:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

/* ACTIVE PAGE */
.page-number.active {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

/*-----------------------------------------
    Page Course detail
-------------------------------------------*/

#course-detail .container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* HEADER */

.course-header {
  background: #294a8d;
  color: #fff;
  padding: 60px 0;
}

.header-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.course-info h1 {
  font-size: 32px;
  margin: 10px 0 15px;
}

.badge {
  background: #fff;
  color: #294a8d;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.author {
  opacity: 0.8;
  font-size: 14px;
  color: #000;
}

/* PRICE CARD */

.course-card-price {
  background: #fff;
  padding: 0px 0px 25px 0px;
  border-radius: 12px;
  text-align: center;
  width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card-price img {
  width: 100%;
  margin-bottom: 15px;
}

.price {
  margin: 10px 0;
  padding: 0px 20px 0px 20px;
}

.price .old {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
  font-size: 14px;
}

.price .new {
  font-size: 18px;
  font-weight: 700;
  color: #ff6b00;
}

.discount {
  background: #294a8d;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 5px;
  margin-left: 5px;
}

.btn-start {
  display: block;
  background: #294a8d;
  color: #fff;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  margin: 15px;
  transition: 0.3s;
}

.btn-start:hover {
  background: #1d3570;
}

/* BODY */
.course-body {
  padding: 40px 20px 40px 20px !important;

  .course-tabs {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  }

  /* TABS */

  .tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 10px 18px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 6px;
  }

  .tab-btn.active {
    background: #294a8d;
    color: #fff;
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  * {
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
  }

  /* container */
  .accordion {
    width: 100%;
    max-width: 100%;
    margin: auto;
  }

  /* item */
  .accordion-item {
    margin-bottom: 12px;
  }

  /* header */
  .accordion-header {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    background: #294a8d1c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: 0.3s;
  }

  .accordion-header:hover {
    background: #294a8d;
    color: white;
  }

  .accordion-header.active {
    background: #294a8d;
    color: white;
  }

  /* icon */
  .icon {
    font-size: 18px;
    transition: 0.3s;
  }

  /* content */
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 10px;
  }

  /* inner box */
  .box {
    background: #fff;
    border: 1px solid #3b87b7;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 14px;
  }

  /* 📱 Mobile */
  @media (max-width: 768px) {
    body {
      padding: 15px;
    }

    .accordion-header {
      font-size: 15px;
      padding: 14px;
    }

    .box {
      font-size: 13px;
      padding: 10px;
    }
  }

  /* 📱 เล็กมาก */
  @media (max-width: 480px) {
    .accordion {
      max-width: 100%;
    }

    .accordion-header {
      font-size: 14px;
      padding: 12px;
    }

    .box {
      font-size: 12px;
    }
  }

  .lesson-list {
    max-width: 100%;
    margin: 10px 10px;
  }

  .lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  /* LEFT */
  .lesson-left {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .lesson-number {
    font-weight: bold;
  }

  .lesson-title {
    font-size: 16px;
  }

  /* RIGHT */
  .lesson-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* BUTTONS */
  .btn {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
  }

  .preview {
    background: #294a8d;
    color: #fff;
  }

  .file {
    border: 1px solid #294a8d;
    background: transparent;
    color: #2d7dd2;
  }

  .file:hover {
    border: 1px solid #294a8d;
    background: #294a8d;
    color: #ffffff;
  }

  .download {
    border: 1px solid #294a8d;
    background: #294a8d;
    color: #ffffff;
  }

  .download:hover {
    border: 1px solid #294a8d;
    background: transparent;
    color: #2d7dd2;
  }

  .time {
    color: #666;
    font-size: 14px;
  }

  .check {
    color: green;
  }

  /* 📱 RESPONSIVE */
  @media (max-width: 768px) {
    .lesson-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .lesson-right {
      width: 100%;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .lesson-title {
      font-size: 14px;
    }

    .btn {
      font-size: 12px;
      padding: 5px 10px;
    }
  }

  @media (max-width: 900px) {
    .header-flex {
      flex-direction: column;
      align-items: flex-start;
    }

    .course-card-price {
      width: 100%;
      max-width: 350px;
    }

    .course-info h1 {
      font-size: 26px;
    }
  }

  @media (max-width: 600px) {
    .course-header {
      padding: 40px 0;
    }

    .course-info h1 {
      font-size: 22px;
    }

    .meta {
      gap: 10px;
      font-size: 13px;
    }

    .lesson {
      flex-direction: column;
      gap: 6px;
    }
  }

  .instructor-profile {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
  }

  /* image */
  .profile-left img {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
  }

  /* title */
  .profile-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  /* description */
  .profile-desc,
  .profile-desc2 {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
  }

  /* meta */
  .profile-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 14px;
  }

  .profile-meta i {
    color: #f5a623;
    margin-right: 5px;
  }

  /* social */
  .profile-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .profile-social a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f3f3;
    color: #333;
    font-size: 13px;
    transition: 0.3s;
    text-decoration: none;
  }

  .profile-social a:hover {
    background: #2f4fa2;
    color: #fff;
  }
}

/*-----------------------------------------
    Page Student
-------------------------------------------*/

#Sec_pagestudent {
  padding: 60px 0px 60px 0px;
}

.banner_student img {
  width: 100%;
  height: 800px;
  object-fit: cover;
}

#Sec_pagestudent a {
  text-decoration: none;
}

/*-----------------------------------------
    Page Teacher
-------------------------------------------*/

#Sec_pageteacher {
  padding: 60px 0px 60px 0px;
}

#Sec_pageteacher a {
  text-decoration: none;
}

#Sec_pageteacher .instructor-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #eaeaea;
  height: 300px;
}

/*-----------------------------------------
    Page Teacher Detail
-------------------------------------------*/

#Sec_teacherdetail {
  padding: 80px 0px;
}

.Box_teacherbig img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: auto;
}

#Sec_teacherdetail .Head_Title {
  background-color: #224093;
  border-radius: 8px;
  color: white;
  font-size: 23px;
  padding: 10px;
  text-align: center;
}

.box_detailbig {
  padding: 30px 20px 10px 20px;
}

.box_detailbig h5 {
  font-size: 20px;
  font-weight: bold;
  color: #224093;
}

#Sec_teacherdetail .fa-graduation-cap:before {
  content: '\f19d';
  font-size: 26px;
}

.list_detailteacher {
  padding: 20px 60px;
}

.box_detailbig2 {
  padding: 10px 20px 10px 20px;
}

.box_detailbig2 h5 {
  font-size: 20px;
  font-weight: bold;
  color: #224093;
}

#Sec_teacherdetail .fa-list-alt:before {
  content: '\f022';
  font-size: 26px;
}

/*-----------------------------------------
    Page News
-------------------------------------------*/

#Sec_allnews {
  padding: 60px 0px 60px 0px;
}

#Sec_detailnewspage {
  padding: 60px 0px 60px 0px;
}

#Sec_detailnewspage .box_pageshownewsdetail {
  padding: 30px 0px;
}

#Sec_detailnewspage .box_pageshownewsdetail .article-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* SIDEBAR */
.blog-sidebar {
  padding: 30px;
}

/* WIDGET */
.sidebar-widget {
  margin-bottom: 40px;
}

/* TITLE */
.widget-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* CATEGORY LIST */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.category-list a {
  text-decoration: none;
  color: #555555;
  font-size: 16px;
}

.category-list a:hover {
  color: #224093;
  font-weight: 500;
}

.category-list span {
  color: #555555;
}

/* RECENT POSTS */
.recent-post {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* POST ITEM */
.recent-post-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  align-items: center;
}

.recent-post-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.recent-post-item p {
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  margin: 0;
}

.recent-post-item p.active {
  color: #224093;
  font-weight: 500;
}

.recent-post-item:hover p {
  color: #224093;
  font-weight: 500;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
  .blog-sidebar {
    padding: 25px;
  }

  .widget-title {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .blog-sidebar {
    padding: 20px;
  }

  .recent-post-item img {
    width: 60px;
    height: 60px;
  }

  .recent-post-item p {
    font-size: 13px;
  }
}

.blognav-section {
  padding: 50px 0;
}

/* WRAPPER */
.blognav-wrapper {
  position: relative;
}

/* CARD */
.blognav-card {
  background: #f5f5f500;
  border-radius: 18px;
  padding: 25px 30px;
  border: 1px solid #e8e8e8;
}

.blognav-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.blognav-label {
  font-size: 14px;
  color: #888;
}

/* ARROW */
.blognav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 10px;

  background: #f1f1f1;
  cursor: pointer;

  font-size: 18px;
}

.blognav-prev {
  left: -25px;
}

.blognav-next {
  right: -25px;
}

.blognav-arrow:hover {
  background: #e5e5e5;
}

/* MOBILE */
@media (max-width: 768px) {
  .blognav-prev {
    left: -10px;
  }

  .blognav-next {
    right: -10px;
  }
}

/*-----------------------------------------
    Page Contact us
-------------------------------------------*/

#sec_contact {
  padding: 50px 0px;
}

.box-imageicon {
  background-color: #f5f5f5;

  width: 45px;
  aspect-ratio: 1 / 1;

  border-radius: 8px;
  color: #224093;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* icon */
.box-imageicon i {
  font-size: 20px;
}

.box-imageicon {
  width: 45px;
  aspect-ratio: 1/1;
}

@media (max-width: 768px) {
  .box-imageicon {
    width: 38px;
  }
}

/* SECTION */
.contact-section {
  padding: 30px 0px;
}

/* TITLE */
.contact-title {
  margin-bottom: 40px;
}

.contact-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-title p {
  color: #666;
}

/* FORM */
.contact-form {
  max-width: 100%;
  margin: 0;
}

/* ROW */
.contact-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-col {
  flex: 1;
}

.contact-col-full {
  width: 100%;
}

/* INPUT */
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #224093;
}

/* BUTTON */
.contact-btn button {
  background: #224093;
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-size: 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-btn button:hover {
  background: #162c6d;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
  }

  .contact-form {
    padding: 25px;
  }
}

/*-----------------------------------------
    Page Login Resgister
-------------------------------------------*/

#Sec_choice {
  padding: 80px 0px;
}

.box_login {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 35px;
}

.box_login .btnlogin {
  display: block;
  width: 100%;
  background-color: #224093;
  border-radius: 50px;
  color: #fff !important;
  padding: 10px;
  text-align: center;
  text-decoration: none;
}

.lostpass a {
  color: #000;
  text-decoration: none;
}

.lostpass a:hover {
  color: #224093;
  text-decoration: none;
}

.box_login {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 35px;
}

.box_regis {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 35px;
}

.box_regis .btnregis {
  display: block;
  width: 100%;
  background-color: #224093;
  border-radius: 50px;
  color: #fff !important;
  padding: 10px;
  text-align: center;
  text-decoration: none;
}

/*-----------------------------------------
    My account
-------------------------------------------*/

/* SECTION */

.dashui-section {
  padding: 60px 20px;
  background: #f5f6f800;
}

.dashui-container {
  max-width: 1200px;
  margin: auto;
}

.dashui-title {
  margin-bottom: 20px;
}

/* TAB MENU */

.dashui-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dashui-tab {
  border: none;
  background: #eeeeee00;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
}

.dashui-tab:hover {
  background: #224093;
  color: #fff;
}

.dashui-tab.active {
  background: #224093;
  color: #fff;
  box-shadow: 0 5px 15px rgb(0 0 0 / 16%);
}

.dashui-course h4 {
  font-size: 18px;
  font-weight: 600;
}

.dashui-tagvideo {
  background: #2240932e;
  color: #224093;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0px 10px 0px 0px;
}

/* TAB CONTENT */

.dashui-tabcontent {
  display: none;
}

.dashui-tabcontent.active {
  display: block;
}

/* STATS */

.dashui-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.dashui-stat {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.dashui-stat i {
  padding: 10px;
  border-radius: 8px;
}

.butview {
  color: black;
  text-decoration: none;
}

/* NOTICE */

.dashui-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #224093, #2580d5);
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.dashui-notice button {
  background: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

/* COURSES */

.dashui-courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashui-course {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.dashui-image {
  position: relative;
}

.dashui-image img {
  width: 100%;
  display: block;
}

.dashui-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.dashui-coursebody {
  padding: 15px;
}

.dashui-author {
  font-size: 13px;
  color: #777;
}

.dashui-author2 {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.dashui-lessons {
  font-size: 13px;
  margin-bottom: 10px;
}

.dashui-progress-box {
  margin-top: 10px;
}

.dashui-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: #666;
}

.dashui-progress {
  height: 8px;
  background: #e5e5e5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.dashui-bar {
  height: 100%;
  background: #224093;
  border-radius: 20px;
}

.dashui-btn {
  width: 100%;
  background: #224093;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 20px;
  cursor: pointer;
}

.dashui-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.dashui-btnprocess {
  width: 100%;
  background: #d9d9d9;
  color: #555555;
  border: none;
  padding: 8px;
  border-radius: 20px;
  cursor: pointer;
}

.dashui-notice2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #040000;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
}

.dashui-tagexp {
  background: #dc354517;
  color: #dc3545;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0px 10px 0px 0px;
}

.dashui-progress2 {
  height: 8px;
  background: #e5e5e5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.dashui-bar2 {
  height: 100%;
  background: #8c8c8c;
  border-radius: 20px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .dashui-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashui-courses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashui-stats {
    grid-template-columns: 1fr;
  }

  .dashui-courses {
    grid-template-columns: 1fr;
  }

  .dashui-notice {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.ordpay-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.ordpay-header h2 {
  margin-bottom: 5px;
}

.ordpay-header p {
  color: #777;
  margin-bottom: 20px;
}

/* TOOLBAR */

.ordpay-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ordpay-search {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 250px;
}

.ordpay-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.ordpay-export {
  background: #f2f2f2;
}

/* TABS */

.ordpay-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.ordpay-tab {
  background: none;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  color: #555;
}

.ordpay-tab.active {
  color: #224093;
  border-bottom: 2px solid #224093;
}

/* CARD */

.ordpay-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* HEADER */

.ordpay-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.ordpay-status {
  background: #ffe7cc;
  color: #d4831f;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 10px;
}

.ordpay-date {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.ordpay-price {
  font-weight: 600;
}

/* COURSE */

.ordpay-course {
  display: flex;
  gap: 15px;
  background: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.ordpay-course img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.ordpay-course-meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.ordpay-tag {
  background: #000;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* FOOTER */

.ordpay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ordpay-note {
  font-size: 13px;
  color: #777;
}

.ordpay-actions button {
  border-radius: 30px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.ordpay-footer .ordpay-payment {
  background: #224093;
  color: #fff;
  border: none;
  margin-left: 8px;
  text-decoration: none !important;
}

.ordpay-footer a {
  text-decoration: none !important;
}

#payments .pagination {
  display: flex;
  justify-content: end;
  align-items: end;
  gap: 8px;
  margin-top: 0px;
  flex-wrap: wrap;
}

.ordpay-course-info h4 {
  font-size: 16px;
}

.payform-wrapper {
  max-width: 500px;
  margin: auto;
  padding: 60px 20px 60px 20px;
}

.payform-title {
  text-align: center;
  margin-bottom: 25px;
}

/* CARD */

.payform-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.payform-label {
  color: #777;
  font-size: 14px;
}

.payform-amount {
  margin-top: 6px;
}

/* BANK */

.payform-bank {
  display: flex;
  flex-direction: column; /* เรียงบนลงล่าง */
  justify-content: center; /* จัดกลางแนวตั้ง */
  align-items: center; /* จัดกลางแนวนอน */
  gap: 20px;
  text-align: center; /* ให้ text อยู่กลาง */
}

.payform-bank-icon {
  width: 60px;
  height: 60px;
  background: #999;
  border-radius: 50%;
}

/* FORM */

.payform-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payform-form label {
  font-size: 14px;
  margin-top: 10px;
}

.payform-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* BUTTON */

.payform-submit {
  margin-top: 20px;
  padding: 12px;
  border: none;
  background: #2d4a92;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.payform-submit:hover {
  background: #223a75;
}

.payform-back {
  text-align: center;
  display: block;
  margin-top: 15px;
  color: #333;
  text-decoration: none;
}

.payform-card h3 {
  font-size: 18px;
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 480px) {
  .payform-wrapper {
    padding: 30px 15px;
  }

  .payform-card {
    padding: 15px;
  }

  .payform-bank-icon {
    width: 50px;
    height: 50px;
  }

  .payform-submit {
    font-size: 15px;
  }
}

.profset-wrapper {
  max-width: 1300px;
  margin: auto;
  padding: 30px 20px;
}

/* HEADER */

.profset-header h2 {
  margin-bottom: 5px;
}

.profset-header p {
  color: #777;
  margin-bottom: 25px;
}

/* SECTION */

.profset-section-title {
  border-left: 4px solid #224093;
  padding-left: 10px;
  margin-bottom: 20px;
}

/* AVATAR */

.profset-avatar {
  text-align: center;
  margin-bottom: 25px;
}

.profset-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: auto;
  margin-bottom: 8px;
}

.profset-avatar a {
  font-size: 14px;
  color: #224093;
  text-decoration: none;
}

/* GRID */

.profset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.profset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.profset-field {
  display: flex;
  flex-direction: column;
}

.profset-field label {
  font-size: 13px;
  margin-bottom: 5px;
}

.profset-field input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* PASSWORD BOX */

.profset-password {
  background: #eef0f6;
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
}

.profset-pass-title {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ACTIONS */

.profset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.profset-cancel {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.profset-save {
  background: #224093;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .profset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .profset-grid {
    grid-template-columns: 1fr;
  }

  .profset-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .profset-save {
    width: 150px;
  }
}

#Sec_pageaboutus {
  padding: 60px 0px 60px 0px;
}

.box_detailabout {
  padding: 20px;
}

.banner_aboutus img {
  width: 100%;
  height: 800px;
  object-fit: cover;
}

#Sec_education {
  background: #294a8d;
  color: #fff;
  padding: 60px 0;
}

.education-info h1 {
  font-size: 40px;
  margin: 10px 0 15px;
}

.education_detail {
  padding: 10px 20px 10px 0px;
}

.banner_education img {
  width: 100%;
  border-radius: 16px;
}

.button_education .button_email {
  padding: 15px 30px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #2580d5;
}

.button_education .button_phone {
  padding: 15px 30px;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #fff;
}

.button_education .button_email:hover {
  padding: 15px 30px;
  color: #000000;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #fff;
}

.button_education .button_phone:hover {
  padding: 15px 30px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  border-radius: 150px;
  background-color: #000000;
}

#check_order {
  padding: 60px 0px 60px 0px;
}

/* HEADER */
#check_order .order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #d9d9d9;
}

#check_order .order-header h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

#check_order .badge {
  background: #ffe8cc;
  color: #ff9800;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 10px;
}

#check_order .date {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

#check_order .price {
  font-size: 24px;
  color: #2f4a8a;
  font-weight: bold;
}

/* COURSE */
#check_order .course-box {
  display: flex;
  gap: 15px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
}

#check_order .course-box h4 {
  font-size: 16px;
}

#check_order .course-box img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

#check_order .meta {
  margin-top: 5px;
  display: flex;
  gap: 10px;
}

#check_order .tag {
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
}

/* CONTENT */
#check_order .content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* LEFT */
#check_order .payment-proof {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
}

#check_order .payment-proof h4 {
  font-size: 20px;
}

#check_order .proof-img {
  margin-top: 15px;
}

#check_order .proof-img img {
  width: 100%;
  border-radius: 10px;
  height: 300px;
  object-fit: scale-down;
}

/* RIGHT */
#check_order .payment-info {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
}

/* ROW */
/* container */
#check_orderpay {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 20px;
}

#check_orderpay h4 {
  font-size: 20px;
}

/* row layout */
#check_orderpay .row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

/* reset element ข้างใน (ตัวการหลัก) */
#check_orderpay .row span {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
}

/* ซ้าย */
#check_orderpay .row span:first-child {
  color: #333;
}

/* ขวา */
#check_orderpay .row span:last-child {
  text-align: right;
  font-weight: 500;
}

/* divider */
#check_orderpay .divider {
  height: 1px;
  background: #e6e6e6;
  margin: 8px 0;
}

/* total */
#check_orderpay .row.total {
  font-size: 18px;
  font-weight: 700;
  padding: 16px 0;
}

#check_orderpay .row.total span:last-child {
  font-size: 24px;
  color: #2f4a8a;
}

/* status */
#check_orderpay .status {
  background: #ffe8cc;
  color: #ff9800;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 10px;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  #check_order .order-header {
    flex-direction: column;
    gap: 10px;
  }

  #check_order .content {
    grid-template-columns: 1fr;
  }

  #check_order .price {
    align-self: flex-end;
  }
}

.but_paymentbutton a {
  display: block;
  background: #294a8d;
  color: #fff;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  margin: 15px;
  transition: 0.3s;
}

/*-----------------------------------------
    RESPONSIVE
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .box_bigcount {
    padding: 10px 10px 10px 10px;
  }

  .Box_count {
    margin-bottom: 10px;
  }

  .Num_count {
    font-size: 24px;
  }

  .detail_count {
    color: #000000;
    font-size: 16px;
  }

  .Number_courses {
    color: #555555;
    font-size: 16px;
    transition: 0.3s;
  }

  #sec_categories {
    padding: 30px 0px 20px 0px;
  }

  #banner_empower {
    padding: 30px 0px 30px 0px;
  }

  .instructor-section {
    padding: 20px 5%;
  }

  .Box-study-aboard h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
  }

  #Banner_center {
    padding: 10px;
  }

  .courses-container {
    padding: 15px;
  }

  .course-info h1 {
    font-size: 22px;
    margin: 10px 0 15px;
  }

  #course-detail .author {
    opacity: 0.8;
    font-size: 14px;
    color: #ffffff;
  }

  #course-detail .course-header {
    background: #294a8d;
    color: #fff;
    padding: 25px 0;
  }

  #course-detail .course-card-price {
    background: #fff;
    padding: 0px 0px 25px 0px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .course-body {
    .course-tabs {
      background: #fff;
      border-radius: 10px;
      padding: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
  }

  .course-body {
    .tab-btn {
      padding: 4px 10px;
      border: none;
      background: #eee;
      cursor: pointer;
      border-radius: 6px;
      font-size: 16px;
    }
  }

  .course-body {
    .profile-left img {
      width: 50%;
      height: 150px;
      border-radius: 8px;
      object-fit: cover;
      margin-bottom: 20px;
    }
  }

  .banner_student img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .instructor-card h5 {
    margin-bottom: 5px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
  }

  #Sec_pageteacher {
    padding: 30px 0px 60px 0px;
  }

  #Sec_pagestudent {
    padding: 30px 0px 60px 0px;
  }

  #Sec_teacherdetail {
    padding: 30px 0px;
  }

  .Box_teacherbig img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: auto;
  }

  #Sec_teacherdetail .Head_Title {
    background-color: #224093;
    border-radius: 8px;
    color: white;
    font-size: 23px;
    padding: 10px;
    text-align: center;
    margin-top: 30px;
  }

  .list_detailteacher {
    padding: 20px 30px;
  }

  #Sec_allnews {
    padding: 30px 0px 60px 0px;
  }

  #Sec_detailnewspage {
    padding: 30px 10px 60px 10px;
  }

  #Sec_detailnewspage .box_pageshownewsdetail .article-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
  }

  #sec_contact {
    padding: 30px 0px;
  }

  .dashui-section {
    padding: 30px 20px;
    background: #f5f6f800;
  }

  #footer {
    background-color: #f5f5f5;
    padding: 30px 0px 20px 0px;
  }

  .head_footer p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 10px;
  }

  #Sec_choice {
    padding: 40px 0px;
  }

  .box_login {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
}
@media screen and (min-width: 1280px) {
}
@media screen and (min-width: 320px) and (max-width: 374px) {
}
@media screen and (min-width: 375px) and (max-width: 413px) {
}
@media screen and (min-width: 414px) and (max-width: 424px) {
}
@media screen and (min-width: 425px) and (max-width: 767px) {
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
}
@media screen and (min-width: 1024px) and (max-width: 1279px) {
}
@media screen and (min-width: 1280px) and (max-width: 1359px) {
}
@media screen and (min-width: 1360px) and (max-width: 1439px) {
}
@media screen and (min-width: 1440px) and (max-width: 1599px) {
}
@media screen and (min-width: 1600px) and (max-width: 1919px) {
}
@media screen and (min-width: 1920px) and (max-width: 2559px) {
}
@media screen and (min-width: 2560px) {
}
