/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    color: #222;
    line-height: 1.6;
    /* กำหนด padding-top เพื่อเว้นช่องสำหรับ header ตรึงอยู่ด้านบน */
    padding-top: 70px;
    position: relative; /* ให้ตำแหน่ง relative กับองค์ประกอบ absolute ภายใน */
    overflow-x: hidden;
  }
  
  /* Background Video */
  .background-video {
    position: fixed;   /* ตรึงไว้ที่พื้นหลัง */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;       /* ให้อยู่ข้างหลังทุกอย่าง */
    /* ปรับให้วิดีโอดูจางลงด้วย filter brightness */
    filter: brightness(1.2);
  }
  
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* สีดำจางด้วยความโปร่งแสง 40% */
    z-index: -1;
    pointer-events: none; /* ไม่ให้ overlay ขัดการคลิก */
  }
  
  /* Header (ตรึงค้างด้านบน) */
  #siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffffca;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between; /* ดันซ้าย-ขวา */
    align-items: center; /* จัดให้อยู่แนวเดียวกันแนวตั้ง */
    padding: 0 20px;
    z-index: 1000;
  }
  
  .back-home {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  
  .uni-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .home-button {
    background-color: #fde047;
    color: #000;
    padding: 8px 16px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .home-button:hover {
    background-color: #fde047;
    transform: scale(1.05);
  }
  
  /* Main content area */
  main {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .bx-wrapper {
    min-height: 400px;
    width: 100%;
    justify-self: start;
    margin-top: 10px; /* หรือลอง 5px */
  }

  .bx-pager, .bx-controls-direction a {
    display: none !important;
  }

  .carousel {
    max-width: 600px;
  margin: 40px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  margin-top: 1px; /* หรือลอง 5px */
  }

  .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    justify-content: center;
    size: 300px;
  }
  
  /* Slide animation */
  @keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
  }
  
  /* Curriculum Section */
  .curriculum {
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    margin: 30px auto;
    border-radius: 8px;
    max-width: 800px;
    margin-top: 10px;
  }
  
  .curriculum h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .curriculum p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .course-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
  }
  
  .course-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    text-align: left;
  }

  ul.carousel {
    margin-bottom: 0px;
    justify-content: center;
    align-items: center;
  }
  
  .course-details {
    margin-top: 0;
  }
  
  
  .course-item h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #000;
  }
  
  .course-item ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
  }
  
  .course-item li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #000;
  }
  
  .course-item p {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .apply-btn {
    display: inline-block;
    background-color: #facc15;
    color: #000;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .apply-btn:hover {
    background-color: #fde047;
    transform: scale(1.03);
  }
  
  /* Footer */
  #siteFooter {
    background: #3333339a;
    color: #fff;
    text-align:start;
    padding: 20px;
    margin-top: 40px;
  }
  
  #siteFooter p {
    margin: 5px 0;
    font-size: 0.9rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .course-details {
      flex-direction: column;
      gap: 20px;
    }
  }
  .give-a-chance-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(22, 24, 53, 0.8);
    padding: 20px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .give-a-chance-img {
    width: 200px; /* ปรับขนาดให้ชัดเจนขึ้น */
    height: auto;
    border-radius: 8px;
  }
  
  ul.carousel {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  ul.carousel li {
    margin-bottom: 0 !important;
  }
  
  ul.carousel img {
    display: block;
    margin-bottom: 0 !important;
  }
  
  .curriculum p {
    margin-bottom: 10px; /* ลดช่องว่างก่อน carousel */
  }
  
  .course-details {
    margin-top: 10px !important; /* ลดช่องว่างหลัง carousel */
  }
  .bx-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .bx-viewport {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    justify-self: center;
  }
  .carousel {
    height: auto !important;
  }
  .curriculum .bx-wrapper {
    margin-bottom: 0 !important;
  }
  
  .curriculum .bx-viewport {
    margin-bottom: 0 !important;
    height: auto !important;
  }
        
  