@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');
body {
  margin: 0;
  padding: 0;
  font-family: 'Kanit', sans-serif;
  background: #f5f5f5;
}

header {
  height: 80px;
  background: #a00ad7;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  gap: 35px;    
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.logo img{ max-width: 400px ;}

@media (max-width: 550px){
.logo img{ max-width:400px;}
.logo .fs-3{
    text-align: center;
}
}

h1 {
  color: #003366;
  font-weight: bold;
}
.topic{
    background-color: blueviolet;
    color: #fff;
    line-height: 2;
    padding-left: 10px}
   
h2 {
  color: #003366;
  font-weight: bold;
}
.sub-topic{
    background-color: rgba(193, 255, 77, 0.567);
    line-height: 2;
    padding-left: 10px} 
header {
  background: #a00ad7;
  color: #fff;
  display: flex;
  padding: 10px 20px;
  height: inherit;
}
.table-oit {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0px 5px ;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 5px solid #003366;
}
 .td-oit-l a{
  text-decoration: none;
  color: #003366;
}

 .td-oit-l a:hover{

  color: #ffffff;
}
.td-oit-l:hover{
  
  color: #ffffff;
  background-color: #2d8700;
}
.td-oit-l:hover a{
  color: #ffffff;
}
.table-oit th, .table-oit td {
  padding: 14px 16px;
  border: 1px solid #0c0000;
}
 .table-oit td.td-oit-r{
  padding-top: 0px;
 }

.table-oit th {
  background: #003366;
  color: #fff;
  text-align: left;
}
.td-oit-l {
  width: 450px;
  vertical-align: top;
}
.td-oit-r {
  text-align: left;
  

}
@media (max-width: 550px) {
.td-oit-l {  width: 150px;}
.td-oit-r{ font-size:10px ;}
}
.logo h1 {
  color: #fff;        
}
/* ปุ่ม hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

nav {
  display: flex; 
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 0 100px;
  font-size: 1.2rem;
  z-index: 9999;
}

.dropdown {
    min-width: 200px;  
    position: relative;
}
nav > a, nav > .dropdown {
  position: relative;
  text-align: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  display: block;
  transition: background 0.2s;
}

nav a:hover {
  background: #8000aa;
}
.dropdown-content {
  text-align: left;  
  display: none;
  position: absolute;
  background: #fff;
  min-width: 400px;
  top: 100%;
  left: 0;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  overflow: hidden;
}
.dropdown-content.show {
  display: block;
}
.dropdown-content a {
  color: #333;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #a0ef9f;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* สำหรับ dropdown ขวาสุด ให้เมนูย่อยเลื่อนออกซ้าย ถ้าเกินจอ */
.dropdown-right .dropdown-content {
  left: auto;
  right: 0;
}

@media (max-width: 670px) {
  nav {
    flex-direction: column;
    width: 100%;
    padding: 0;
    align-items: stretch;
    margin: 0;
  }

  nav a {
    padding: 15px;
    background: #a00ad7;
    border-bottom: 1px solid #8000aa;
    text-align: left;
  }

  .dropdown-content {
    position: relative;
    display: block;
    background: #e5e5e5;
    min-width: unset;
    box-shadow: none;
    border-radius: 0;

  }

  .dropdown-content a {
    color: #333;
    padding: 12px 18px;
    border-bottom: 1px solid #ccc;
    background: #fff;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}
@media (max-width: 700px) {
  nav {
    width: 100%;
    padding: 0;
    align-items: stretch;
    margin: 0;
  }
}

main {
  display: flex;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.content {
  flex:1;
}


.content p {
  margin-bottom: 20px;
}


footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}

h1 {
  color: #003366;
  margin-top: 40px;
  font-size:33px
}
h2 {
  color: #003366;
  margin-top: 30px;
}

h3 {
  color: #004080;
  margin-top: 20px;
  font-size: 18px;
}

.indicator-section {
  margin-bottom: 30px;
}

.button-group {
  
  display: flex;
  flex-direction: column; /* เรียงเป็นแนวตั้ง */
  gap: 20px; /* เว้นระยะระหว่างปุ่ม */
}

.tag-btn {

  display: inline-block;
  width: 100%;
  padding: 20px 16px;
  margin-top: 10px;
  background: #066bb3;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.2s ease;
}
.tag-btn:hover {
  background: #004d99;
}



/* Effect Animations เหมือนเดิม */
.carousel-inner {
  overflow: hidden;
}
.carousel-item {
  max-height:1200px;
  overflow: hidden;
  border-radius:20px;
}
.carousel-item img {
  width: 100%;
  object-fit: cover;
}

.fade-effect {
  animation: fadeEffect 1s;
}
.zoom-effect {
  animation: zoomEffect 1s;
}
.slide-left-effect {
  animation: slideLeftEffect 1s;
}
.slide-right-effect {
  animation: slideRightEffect 1s;
}

@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomEffect {
  from { transform: scale(1.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideLeftEffect {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRightEffect {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px; /* หรือขนาดที่ต้องการ */
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3); /* ปรับสีพื้นหลังให้ดูนุ่มๆ */
  border-radius: 50%;
}

.carousel-control-prev {
  left: 10px; /* ปรับระยะชิดซ้าย */
}

.carousel-control-next {
  right: 10px; /* ปรับระยะชิดขวา */
}


/* slider */
    .hero-image {
        width: 1200px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .custom-btn {
        border-radius: 12px;
        padding: 15px;
        font-weight: 700;
        text-transform: uppercase;
        transition: all 0.3s;
    }
    .btn-green {
        background: linear-gradient(135deg, #6fd67b, #38b000);
        color: white;
    }
    .btn-green:hover {
        background: linear-gradient(135deg, #38b000, #2d8700);
    }
    .btn-pink {
        background: linear-gradient(135deg, #ff4d94, #d63384);
        color: white;
    }
    .btn-pink:hover {
        background: linear-gradient(135deg, #d63384, #a82c6f);
    }
    .labelnd {
        background: linear-gradient(35deg, #6fd67b, #38b000);
        color: white;
        border-radius: 12px;
        padding: 1rem;
    }
    .fsnd {
        font-weight: 700;
        font-size: calc(1vh + 0.8rem);
        letter-spacing: 2px;
    }
    .responsive-img {
        width: 1200px;
        border-radius: 20px;
        margin-bottom: 1rem;
    }
