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

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;
}

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

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

.doc-card {
  border: 1px solid #e5e5e5;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  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: large;
  font-weight: 500;
  margin-bottom: 0;
}

.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;
  margin-bottom: 0;
}

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

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

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

.btn-primary {
  background-color: #48106C !important;
  color: #FFCC00 !important;
  border: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #4c1d69 !important;
  color: #FFCC00 !important;
  border: none !important;
}