.pixel-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    color: #f7d046;
    text-shadow:
      2px 2px 0 #000,
      0 0 5px #f7d046,
      0 0 10px #aaa;
  }
  
.pixel-button {
    background-color: #f7d51d; /* สีเหลือง */
    border: none; /* ลบเส้นขอบเริ่มต้น */
    color: black; /* สีตัวอักษร */
    /* ปรับ Padding ให้น้อยลง */
    padding: 10px 20px; /* ลดช่องว่างภายใน (แนวตั้ง 10px, แนวนอน 20px) */
    font-family: 'Press Start 2P', cursive; /* ใช้ฟอนต์พิกเซล */
    /* ปรับ Font Size ให้เล็กลง */
    font-size: 16px; /* ลดขนาดตัวอักษร */
    cursor: pointer; /* เปลี่ยน cursor เป็นรูปมือ */
    text-align: center;
    text-decoration: none;
    display: inline-block; /* ทำให้ padding และ margin ใช้งานได้ถูกต้อง */
    margin: 4px 2px;
    vertical-align: middle; /* จัดให้อยู่กึ่งกลางแนวตั้งเทียบกับข้อความข้างๆ */
  }

  .pixel-locked-button {
    background-color: #8888aa; /* สีเหลือง */
    border: none; /* ลบเส้นขอบเริ่มต้น */
    color: rgb(255, 255, 255); /* สีตัวอักษร */
    /* ปรับ Padding ให้น้อยลง */
    padding: 10px 20px; /* ลดช่องว่างภายใน (แนวตั้ง 10px, แนวนอน 20px) */
    font-family: 'Press Start 2P', cursive; /* ใช้ฟอนต์พิกเซล */
    /* ปรับ Font Size ให้เล็กลง */
    font-size: 10px; /* ลดขนาดตัวอักษร */
    cursor: pointer; /* เปลี่ยน cursor เป็นรูปมือ */
    text-align: center;
    text-decoration: none;
    display: inline-block; /* ทำให้ padding และ margin ใช้งานได้ถูกต้อง */
    margin: 4px 2px;
    vertical-align: middle; /* จัดให้อยู่กึ่งกลางแนวตั้งเทียบกับข้อความข้างๆ */
  }

  .pixel-start-gst {
    background-color: #6BA3FC; /* สีเหลือง */
    border: none; /* ลบเส้นขอบเริ่มต้น */
    color: rgb(255, 255, 255); /* สีตัวอักษร */
    /* ใช้ Padding และ Font Size ที่ใหญ่ขึ้นสำหรับปุ่มหลัก */
    padding: 11px 25px; /* ขนาดช่องว่างภายในปุ่ม */
    font-family: 'Press Start 2P', cursive; /* ใช้ฟอนต์พิกเซล */
    font-size: 11px; /* ขนาดตัวอักษร */
    cursor: pointer; /* เปลี่ยน cursor เป็นรูปมือ */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    vertical-align: middle; /* ช่วยจัดกลางถ้ามี element อื่นข้างๆ */
  }

.main-banner {
    position: relative;
    background-image: url('../pics/card/pic1.webp');
    background-size: cover;
    background-position: 70% 30%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner2 {
    position: relative;
    background-image: url('../pics/card/pic2.webp');
    background-size: cover;
    background-position: 70% 4%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner3 {
    position: relative;
    background-image: url('../pics/card/pic3.png');
    background-size: cover;
    background-position: 100% 25%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner4 {
    position: relative;
    background-image: url('../pics/card/pic4.png');
    background-size: cover;
    background-position: 70% 12%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner5 {
    position: relative;
    background-image: url('../pics/card/pic5.webp');
    background-size: cover;
    background-position: 70% 20%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner6 {
    position: relative;
    background-image: url('../pics/card/pic6.png');
    background-size: cover;
    background-position: 70% 20%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner7 {
    position: relative;
    background-image: url('../pics/card/pic7.webp');
    background-size: cover;
    background-position: 70% 62%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 3rem 0;
  }

  .main-banner8 {
    position: relative;
    background-image: url('../pics/card/pic8.webp');
    background-size: cover;
    background-position: 45% 57%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner9 {
    position: relative;
    background-image: url('../pics/card/pic9.webp');
    background-size: cover;
    background-position: 70% 0%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner10 {
    position: relative;
    background-image: url('../pics/card/pic10.webp');
    background-size: cover;
    background-position: 70% 50%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 6rem 0;
  }

  .main-banner11 {
    position: relative;
    background-image: url('../pics/card/pic11.webp');
    background-size: cover;
    background-position: 70% 35%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 72px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 2rem 0;
  }

  .main-banner12 {
    position: relative;
    background-image: url('../pics/card/pic12.webp');
    background-size: cover;
    background-position: 70% 60%;
    height: 50vh;             /* ปรับความสูงตามต้องการ */
    display: flex;
    align-items: flex-start;      /* จัดข้อความให้อยู่กลางแนวตั้ง */
    margin-top: 56px;         /* เว้นที่ให้ navbar fixed */
    justify-content: flex-start;
    padding: 2rem 0;
  }
  
  .main-banner .overlay {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); /* ครึ่งทึบเพื่อให้ข้อความอ่านง่าย */
  }
  
  .banner-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;           /* รีเซ็ต margin เดิม */
    margin: 1rem auto 0 4rem;
    text-align: left;    /* จัดข้อความชิดซ้าย */
    color: #fff;
  }
  
  /* Label */
  .banner-label {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 0.25rem 1rem;
    font-family: 'Inter';
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }
  
  /* Title */
  .banner-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 3.75rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
  }
  
  /* Description */
  .banner-text {
    font-family: 'Inter';
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  /* course body */

  /* === Layout === */
.course-main {
    display: block;
    color: #fff;
  }
  .course-main .row {
    align-items: flex-start;
  }
  
  /* Vertical line */
  .module-list {
    padding-left: 2rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    position: relative;
  }
  .module-list .module-item {
    position: relative;
    margin-bottom: 2rem;
  }
  /* Number circle */
  .module-list .number {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2rem; height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    background: #0e0e1d;
    border: 2px solid #444;
    text-align: center;
    font-weight: 600;
  }
  
  /* === Module Header === */
  .module-header {
    position: relative;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
  }
  .module-header:hover {
    background: rgba(255,255,255,0.1);
  }
  .module-header h5 {
    font-size: 1.125rem;
    margin: 0;
  }
  .module-header .toggle-icon {
    font-size: 0.9rem;
  }
  
  /* === Module Body === */
  .module-body {
    margin-top: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 0.5rem;
  }
  .module-desc {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  .exercise-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .exercise-list li:last-child {
    border-bottom: none;
  }
  
  /* === Sidebar Cards === */
  .sidebar .sidebar-card {
    background: #0e0e1d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
  }
  .sidebar-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 0.95rem;
  }
  .sidebar-card .card-body {
    padding: 1rem;
  }
  .sidebar-card .avatar {
    width: 4rem; height: 4rem;
    border-radius: 50%;
    border: 2px solid #444;
  }
  .sidebar-card .badge-icon {
    width: 2rem; height: 2rem;
  }
  
  /* Course Progress list */
  .sidebar-card ul li {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
  }
  .sidebar-card ul li:last-child {
    border-bottom: none;
  }

  /* ── Color Palette ─────────────────────────────────────────────────────── */
:root {
  --bg-page: #14131f;
  --bg-panel: #1e1e2f;
  --bg-accent: #1f1e2f;
  --border: #2e2e46;
  --text-light: #e4e4f2;
  --text-muted: #8888aa;
  --accent: #7150ff;
  --btn-primary: #5c7cfa;
}

/* ── Page Background ──────────────────────────────────────────────────── */
body {
  background: var(--bg-page);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

/* ── Accordion Container & Timeline Line ──────────────────────────────── */
.module-accordion {
  position: relative;
  padding-left: 2.5rem;
}
.module-accordion::before {
  content: '';
  position: absolute;
  left: 1.6rem; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

/* ── Accordion Item ───────────────────────────────────────────────────── */
.module-accordion .accordion-item {
  background: none;
  border: none;
  margin-bottom: 1rem;
}

/* ── Header Button ────────────────────────────────────────────────────── */
.module-accordion .accordion-button {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem;
  padding-left: 4.5rem;             /* ช่องวาง circle */
  color: var(--text-light);
  font-weight: 600;
  transition: background 0.2s;
}
.module-accordion .accordion-button:not(.collapsed) {
  background: var(--bg-accent);
  color: #fff;
}
.module-accordion .accordion-button:focus {
  box-shadow: none;
}

/* ── Number Circle ────────────────────────────────────────────────────── */
.module-accordion .accordion-button::before {
  content: attr(data-num);
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem;
  line-height: 1.75rem;
  text-align: center;
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-weight: 600;
  color: var(--text-light);
}

/* ── Custom Arrow ─────────────────────────────────────────────────────── */
.module-accordion .accordion-button::after {
  content: "\25B8";                /* ▸ */
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.module-accordion .accordion-button:not(.collapsed)::after {
  content: "\25BE";                /* ▾ */
}

/* ── Body Panel ───────────────────────────────────────────────────────── */
.module-accordion .accordion-body {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: 1rem 1.25rem;
  margin-top: -0.5rem;
}

/* ── Module Description ───────────────────────────────────────────────── */
.module-desc {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ── Exercise List ────────────────────────────────────────────────────── */
.exercise-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.exercise-list li:last-child {
  border-bottom: none;
}
.exercise-list .btn-sm {
  background: var(--btn-primary);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  transition: background 0.2s;
}
.exercise-list .btn-sm:hover {
  background: #486bff; /* หรือคำนวณเอง เช่น 10% เข้มขึ้นจาก #5c7cfa */
}
.locked {
  display: inline-block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
  color: var(--text-muted);
}

/* ── Sidebar Cards ────────────────────────────────────────────────────── */
.sidebar .sidebar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.sidebar-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.sidebar-card .card-body {
  padding: 1rem;
  color: var(--text-light);
}
.sidebar-card .avatar {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.sidebar-card .btn-sm {
  background: var(--btn-primary);
  border: none;
  color: #fff;
}
.sidebar-card .btn-sm:hover {
  background: darken(var(--btn-primary), 10%);
}

/* ── Progress List & Badges ───────────────────────────────────────────── */
.sidebar-card ul li {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  color: var(--text-light);
}
.sidebar-card ul li:last-child {
  border-bottom: none;
}
.badge-icon {
  width: 1.75rem; height: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* pixel text */
.pxt{
    font-family: 'Press Start 2P';
}

/* Inter text */
.inter-text{
    font-family: 'Inter';
}

.inter-text2{
    color: white;
    font-family: 'Inter';
}
  
/* From base.css */

/* กำหนดให้ html และ body มีความสูงเต็ม 100% ของ viewport */
html, body {            /* ตั้งค่ารากฐาน */
    height: 100%;         /* ความสูงเต็มหน้าจอ */
  }
  
  /* กำหนดค่าพื้นฐานให้กับ body */
  body {
    display: flex;                 /* ใช้ Flexbox layout */
    flex-direction: column;        /* จัดเรียงลูกแนวตั้ง */
    background-color: #0a0919;     /* สีพื้นหลังเข้ม */
    color: #fff;                   /* สีตัวอักษรขาว */
    font-family: 'Inter', sans-serif; /* ฟอนต์หลักแบบไม่มีเชิง */
    margin: 0;                     /* ไม่มีระยะขอบ */
    font-size: 1rem;               /* ขนาดฟอนต์เริ่มต้น */
  }
  
  /* โซนเนื้อหาหลักของเว็บ */
  .main-content {
    flex: 1 0 auto;                /* ขยายตามเนื้อหา เหลือพื้นที่ให้ footer */
    font-family: Georgia, serif;  /* ฟอนต์ต่างจาก body เพื่อความโดดเด่น */
  }
  
  /* ส่วนท้ายเว็บ */
  .footer {
    flex-shrink: 0;                /* ไม่ย่อตัวเมื่อพื้นที่จำกัด */
    background-color: #0a0a1b;     /* สีพื้นหลัง footer */
    color: #d4d4d4;                /* สีข้อความอ่อน ๆ */
    padding: 3rem 2rem;            /* ระยะห่างภายใน */
    font-size: 0.9rem;             /* ขนาดข้อความเล็กน้อย */
  }
  .footer a {
    color: #fff;                   /* สีลิงก์เป็นขาว */
    text-decoration: none;        /* ไม่มีเส้นใต้ */
    font-weight: 400;             /* น้ำหนักฟอนต์ปกติ */
  }
  .footer a:hover {
    text-decoration: underline;   /* มีเส้นใต้เมื่อ hover */
  }
  .footer .footer-logo {
    font-family: 'Press Start 2P';
    font-size: 1.25rem;           /* ขนาดโลโก้ */
    font-weight: 600;             /* ฟอนต์หนาปานกลาง */
    color: #fff;                  /* สีขาว */
    margin-bottom: 0.5rem;        /* ระยะห่างด้านล่าง */
  }
  .footer h6 {
    font-size: 0.75rem;           /* ขนาดหัวข้อเล็ก */
    color: #aaa;                  /* สีเทาอ่อน */
    text-transform: uppercase;    /* ตัวพิมพ์ใหญ่ทั้งหมด */
    letter-spacing: 1px;          /* ระยะห่างระหว่างตัวอักษร */
    font-weight: 600;             /* หนา */
    margin-bottom: 1rem;          /* ระยะห่างด้านล่าง */
  }
  .footer ul {
    padding-left: 0;              /* ลบ padding ด้านซ้าย */
  }
  .footer ul li {
    list-style: none;             /* ลบ bullet point */
    margin-bottom: 0.5rem;        /* ระยะห่างระหว่างบรรทัด */
  }
  .footer .social-icons img {
    width: 28px;                  /* กำหนดขนาดไอคอน */
    margin-right: 8px;            /* ระยะห่างระหว่างไอคอน */
  }
  .footer .text-center small {
    color: #888;                  /* สีเทาอ่อนมาก */
  }
  .footer .footer-top {
    display: flex;                /* Flexbox เพื่อจัดกล่องเนื้อหา */
    flex-wrap: wrap;              /* ห่อบรรทัดเมื่อเต็ม */
    justify-content: space-between; /* กระจายเต็มพื้นที่ */
    align-items: flex-start;      /* จัดเรียงบนสุด */
    gap: 2rem;                    /* ช่องว่างระหว่างกล่อง */
  }
  .footer .footer-cols {
    display: flex;                /* Flexbox */
    gap: 3rem;                    /* ช่องว่างระหว่างคอลัมน์ */
    flex-wrap: wrap;              /* ห่อบรรทัด */
  }
  .footer .footer-section {
    min-width: 120px;             /* ความกว้างขั้นต่ำของคอลัมน์ */
  }
  .footer .footer-meta {
    display: flex;                /* Flexbox */
    justify-content: space-between; /* กระจายซ้ายขวา */
    align-items: center;          /* จัดกลางแนวตั้ง */
    flex-wrap: wrap;              /* ห่อถ้าไม่พอ */
    margin-top: 2rem;             /* ระยะห่างด้านบน */
  }
  .footer .footer-meta .copyright {
    color: #888;                  /* สีเทาอ่อน */
  }
  .footer .footer-meta .social-icons {
    margin-top: 1rem;             /* ระยะห่างด้านบน */
  }
  
  /* แถบเมนูด้านบนสุด */
  .navbar {
    position: fixed;              /* ติดอยู่ด้านบนหน้าจอ */
    top: 0;
    width: 100%;
    z-index: 1000;                /* อยู่เหนือทุก element */
    background-color: #09081a;    /* สีพื้นหลังเข้ม */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6); /* เงา */
    padding: 0.75rem 2rem;        /* ช่องว่างภายใน */
    border-bottom: 1px solid #1d1b30; /* เส้นขอบล่าง */
  }
  .navbar .btn-yellow {
    background-color: #f7d046;   /* สีเหลือง */
    color: #000;                 /* ตัวอักษรสีดำ */
    font-weight: 600;            /* ฟอนต์หนา */
    border: none;                /* ไม่มีเส้นขอบ */
    box-shadow: 2px 2px 0px #caa536; /* เงาปุ่ม */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* เอฟเฟกต์ */
  }
  .navbar .btn-yellow:hover {
    background-color: #e0b93c;   /* สีเหลืองเข้มขึ้นเมื่อ hover */
    transform: translateY(-2px); /* ขยับขึ้น */
    box-shadow: 3px 3px 0px #b8962c; /* เงาเข้มขึ้น */
  }
  .navbar .nav-link {
    color: #fff;                 /* ลิงก์สีขาว */
    font-weight: 500;           /* หนาปานกลาง */
    margin: 0 0.5rem;           /* ช่องว่างซ้ายขวา */
  }
  .navbar .nav-link:hover {
    color: #f7d046;             /* เปลี่ยนสีเมื่อ hover */
  }
  
  /* แบนเนอร์หลักด้านบน */
  .banner {
    position: relative;
    background-image: url('../pics/banner/background5.webp');
    background-size: cover;     /* ปรับขนาดภาพให้ครอบคลุม */
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;              /* เต็มความสูงจอ */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* เริ่มต้นด้านบน */
    align-items: center;         /* จัดกึ่งกลางแนวนอน */
    text-align: center;          /* จัดข้อความกึ่งกลาง */
    padding: 20vh 2rem 0;        /* ขอบด้านบน 20% ของจอ */
    overflow: hidden;
  }
  .banner::after {
    content: "";                /* เพิ่มชั้นพื้นหลังไล่สี */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(10, 9, 25, 0) 0%, rgba(10, 9, 25, 1) 100%);
    pointer-events: none;
  }
  .banner > * {
    position: relative;         /* ให้ลูกอยู่ด้านบนพื้นหลัง */
    z-index: 1;
  }

  /* ปุ่มสีเหลืองทั่วไป */
  .btn-yellow {
    background-color: #f7d046;
    color: #000;
    border: none;
    transition: transform 0.2s ease-in-out;
    font-size: 1.2em;
  }
  .btn-yellow:hover {
    background-color: #e0b93c;
    transform: scale(1.05);     /* ขยายเล็กน้อยเมื่อ hover */
  }
  
  /* เอฟเฟกต์แสดงผล fade-in */
  .fade-in {
    opacity: 0;                  /* เริ่มต้นมองไม่เห็น */
    transform: translateY(20px); /* ขยับลง */
    animation: fadeInUp 1s ease-out forwards; /* ค่อย ๆ ปรากฏ */
    animation-delay: 0.4s;       /* หน่วงเวลา */
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ขนาดของ heading */
  h1 {
    font-size: 4rem;
  }
  h5 {
    font-size: 1.5rem;
  }
  p.lead {
    font-size: 1.5rem;
  }
  
  /* โซนแสดงคอร์ส */
  .courses-section {
    font-family: Inter;
    padding: 5rem 2rem;
    background-color: #0a0919;
    text-align: center;
  }
  .courses-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
  }
  .courses-section p {
    color: #bcbccf;
    margin-bottom: 2rem;
  }
  
  /* ปุ่มกรองคอร์ส */
  .filter-buttons .btn {
    margin: 0.25rem;
    border-radius: 20px;
    background-color: #14132b;
    color: #fff;
    border: 1px solid #2e2e46;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .filter-buttons .btn.active {
    background-color: #f7d046;
    color: #000;
    border-color: #f7d046;
    box-shadow: 2px 2px 0px #caa536;
  }
  
  /* การ์ดแสดงคอร์ส */
  .course-card {
    background-color: #0e0e1d;
    border: 1px solid #2b2b3c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  }
  .course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .course-card .p-3 {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .course-card small {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background-color: #1f1e2e;
    font-size: 0.68rem;
    color: #cccde2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .course-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
  }
  .course-card p {
    font-size: 0.85rem;
    color: #bcbccf;
    line-height: 1.4;
    margin: 0;
  }
  .course-card-group {
    display: none;
  }
  .course-card-group.popular {
    display: block;
  }

/* ปุ่ม Get start */

.pixel-gst {
  background-color: #f7d51d; /* สีเหลือง */
  border: none; /* ลบเส้นขอบเริ่มต้น */
  color: black; /* สีตัวอักษร */
  /* ใช้ Padding และ Font Size ที่ใหญ่ขึ้นสำหรับปุ่มหลัก */
  padding: 15px 30px; /* ขนาดช่องว่างภายในปุ่ม */
  font-family: 'Press Start 2P', cursive; /* ใช้ฟอนต์พิกเซล */
  font-size: 16px; /* ขนาดตัวอักษร */
  cursor: pointer; /* เปลี่ยน cursor เป็นรูปมือ */
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  vertical-align: middle; /* ช่วยจัดกลางถ้ามี element อื่นข้างๆ */

  /* สร้างเอฟเฟกต์เงา/ขอบแบบพิกเซล */
  box-shadow:
    /* เงาหลักด้านล่างขวา */
    4px 4px 0px 0px #E59400,
    /* เส้นขอบ */
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;

  position: relative;
  top: 0;
  left: 0;
}

/* เอฟเฟกต์เมื่อเมาส์ชี้ */
.pixel-gst:hover {
  background-color: #f2c409;
  box-shadow:
    4px 4px 0px 0px #E59400,
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;
}

/* เอฟเฟกต์เมื่อกดปุ่ม */
.pixel-gst:active {
  top: 2px; /* ขยับลง */
  left: 2px; /* ขยับขวา */
  box-shadow:
    2px 2px 0px 0px #E59400, /* ลดเงา */
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;
}

/* ปุ่ม Get start */

.pixel-button {
  background-color: #f7d51d; /* สีเหลือง */
  border: none; /* ลบเส้นขอบเริ่มต้น */
  color: black; /* สีตัวอักษร */
  /* ปรับ Padding ให้น้อยลง */
  padding: 10px 20px; /* ลดช่องว่างภายใน (แนวตั้ง 10px, แนวนอน 20px) */
  font-family: 'Press Start 2P', cursive; /* ใช้ฟอนต์พิกเซล */
  /* ปรับ Font Size ให้เล็กลง */
  font-size: 12px; /* ลดขนาดตัวอักษร */
  cursor: pointer; /* เปลี่ยน cursor เป็นรูปมือ */
  text-align: center;
  text-decoration: none;
  display: inline-block; /* ทำให้ padding และ margin ใช้งานได้ถูกต้อง */
  margin: 4px 2px;
  vertical-align: middle; /* จัดให้อยู่กึ่งกลางแนวตั้งเทียบกับข้อความข้างๆ */

  /* สร้างเอฟเฟกต์เงา/ขอบแบบพิกเซล (อาจต้องปรับเล็กน้อยถ้าต้องการ) */
  box-shadow:
    /* เงาหลักด้านล่างขวา */
    3px 3px 0px 0px #E59400, /* ลดขนาดเงาเล็กน้อย */
    /* เส้นขอบ */
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;

  position: relative; /* จำเป็นสำหรับการขยับเมื่อกด */
  top: 0;
  left: 0;
}

/* เอฟเฟกต์เมื่อเมาส์ชี้ */
.pixel-button:hover {
  background-color: #f2c409; /* สีเหลืองสว่างขึ้น */
  box-shadow:
    3px 3px 0px 0px #E59400,
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;
}

/* เอฟเฟกต์เมื่อกดปุ่ม */
.pixel-button:active {
  top: 1px; /* ลดระยะขยับ */
  left: 1px; /* ลดระยะขยับ */
  /* ลดเงาลงเมื่อกด */
  box-shadow:
    2px 2px 0px 0px #E59400, /* ลดขนาดเงาเมื่อกด */
    0px -2px 0px 0px black,
    0px 2px 0px 0px black,
    -2px 0px 0px 0px black,
    2px 0px 0px 0px black;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Press Start 2P', cursive;
}

/* learn dropdown */
/* ตัวเมนูทั้งหมด */
.dropdown-menu {
  background-color: #0a0919;     /* พื้นหลังเข้ม */
  border: none;                  /* เอาเส้นขอบออก */
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* หัวข้อแต่ละคอลัมน์ */
.dropdown-menu h6 {
  color: #f7d046;                /* สีเหลืองไฮไลต์ */
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* ลิงก์ปกติ */
.dropdown-item {
  color: #cccde2;
  padding: 0.35rem 1rem;
  transition: background 0.2s, color 0.2s;
}

/* ลิงก์ที่มีรูป */
.dropdown-item.d-flex img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ลิงก์เมื่อ hover */
.dropdown-item:hover {
  background-color: rgba(247, 208, 70, 0.1); /* เหลืองจางๆ */
  color: #fff;
}

/* ปุ่ม “All Courses” */
.dropdown-menu .btn-primary {
  background-color: #007bff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.dropdown-menu .btn-primary:hover {
  background-color: #0056b3;
}

/* จัด grid spacing */
.dropdown-menu .row {
  gap: 1.5rem;
}

/* กำหนดความสูง scrollbar ถ้าจำเป็น */
.dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
}

/* ปรับ breakpoint ให้ responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static !important;
  }
  .dropdown-menu .container {
    padding: 1rem;
  }
  .dropdown-menu .row {
    display: flex;
    flex-direction: column;
  }
}

/* 1. ให้ dropdown เปิดกว้างเต็ม viewport */
.navbar .dropdown-menu {
  position: absolute;        /* อิงกับ navbar (ที่ fixed) */
  top: 100%;                 /* อยู่ใต้ navbar */
  left: 0 !important;        /* ชิดซ้ายสุด */
  width: 100vw !important;   /* ครอบทั้งหน้าจอ */
  margin: 0;                 /* ลบ margin เดิม */
  padding: 1.5rem 0;         /* ช่องว่างบน-ล่าง */
  background-color: #0a0919; /* พื้นหลังธีมมืด */
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  transform: none !important;/* ยกเลิก translate เดิม */
}

/* กั้นเนื้อหาข้างในให้อยู่กลาง */
.navbar .dropdown-menu > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* จัด spacing ของ grid */
.navbar .dropdown-menu .row {
  justify-content: space-between;
  gap: 2rem;
}

/* all courses */

.pixel-allcourses {
  display: block;
  width: 100%;
  min-width: 200px;
  padding: 0.5rem 0.8rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(to bottom, #007bff 0%, #007bff 100%);
  text-align: center;
  text-decoration: none;

  /* ขอบแบบ pixel */
  border: 1px solid #005ec2;
  /* เงาแบบ pixel ใน 2 ทิศทาง */
  box-shadow:
    2px 2px 0 0 #005ec2,
    -1px -1px 0 0 #76c4ff;

  position: relative;
  user-select: none;
  transition: background 0.1s, box-shadow 0.1s;
}

.pixel-allcourses:hover {
  background: linear-gradient(to bottom, #6ebeff 0%, #339cff 100%);
}

.pixel-allcourses:active {
  top: 2px; left: 2px;
  box-shadow:
    2px 2px 0 0 #005ec2; /* ลดเงาเมื่อกด */
}




  