html {
  font-family: 'Kanit', Arial, sans-serif;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: #fff;
  color: #333;

  /* จัด layout ให้ footer อยู่ล่าง */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1;
  /* ขยายเต็มพื้นที่เหลือ */
  overflow-y: auto;
  /* scroll ได้ */
}

header {
  padding: 0.25rem 0;

}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 60px;
}

.nav-tabs {
  border-bottom: 3px solid #FFCC00;
  background: #48106C;
  color: #FFCC00;
  font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link {
  font-weight: 200;
  color: #FFCC00;
  border: none;
}

.nav-tabs .nav-link.active {
  background: #581185;
  font-weight: 400;
  color: #FFCC00;
}
.nav-tabs .nav-link:hover {
  background: #581185;
  color: #FFCC00;
}

.doc-card {
  border: 1px solid #e5e5e5;
  padding: 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  background: #fafafa;
  font-size: smaller;
}

.doc-card img {
  width: 40px;
  margin-right: 10px;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-btn {
  background: #555;
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 4px;
  text-decoration: none;
}

.download-btn:hover {
  background: #333;
}

.font-title {
  font-size: larger;
  font-weight: 500;
}

.sub-text {
  justify-content: space-between;
  font-size: smaller;
}

footer {
  font-family: 'Kanit', sans-serif;
}

.footer-top {
  background-color: #eaf2f9;
  padding: 10px 0;
  text-align: center;
}

.footer-bottom {
  background-color: #48106C;
  padding: 10px 0;
  text-align: center;
}

.footer-top p,
.footer-bottom p {
  margin: 0;
  color: #333;
}

.text-header {
  font-size: 1.3rem;
  font-weight: 600;
  color: #48106C;
}

.text-title {
  font-size: 1rem;
  font-weight: 500;
  color: #48106C;
}

.text-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #48106C;
}

.text-normal {
  font-size: 0.8rem;
  font-weight: 300;
  color: #333;
}

.text-primary {
  color: #48106C;
  font-size: larger;
}

a {
  color: #0c77db;
  text-decoration: none;
}

@media (max-width: 576px) {
  .tab-text {
    display: none;
    /* ซ่อนข้อความบนจอเล็ก */
    justify-content: center;
    align-items: center;
  }

  #myTab .nav-link {
    padding: 10px 12px;
    /* ปรับขนาดปุ่มให้กระชับ */
    font-size: 18px;
    /* ขยายไอคอนให้ชัด */
  }
}