@font-face {
  font-family: KCTTabienrod;
  src: url("../fonts/kt_smarn.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  size-adjust: 172%;
}
@font-face {
  font-family: KCTTabienrod;
  src: url("../fonts/kt_smarn.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
  size-adjust: 172%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Kanit, sans-serif;
  line-height: 1.1;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: auto;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-header {
  background: #2c3e50;
  padding: 10px 0;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.header-container {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 15px;
}
.logo-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.logo-image {
  height: 120px;
  width: auto;
}
.content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
}
.title-row {
  flex: 1;
  display: flex;
  align-items: center;
}
.website-name {
  font-size: clamp(1.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #f1c40f;
  margin: 0;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: Kanit, sans-serif;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 5px 15px;
  white-space: nowrap;
  font-size: clamp(0.8rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  height: clamp(35px, 5vw, 55px);
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.contact-icon {
  width: clamp(25px, 3.5vw, 40px);
  height: clamp(25px, 3.5vw, 40px);
  object-fit: cover;
  border-radius: 50%;
}
.line-icon {
  border: none !important;
  background: 0 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}
.admin-icon {
  border-radius: 50%;
  object-fit: cover;
}
.admin-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.racing-car-section {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 0 0;
  text-align: center;
}
.racing-car-container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 0;
}
.racing-car {
  width: 100%;
  height: auto;
  aspect-ratio: 1280/720;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}
.search-section {
  background: linear-gradient(135deg, #f0f2f5, #f0f2f5);
  padding: 2px 0;
  margin-bottom: 2px;
  color: #fff;
}
.search-input-container {
  margin-bottom: 5px;
}
.search-input {
  width: 100%;
  padding: 11.25px 15px;
  font-size: 0.825rem;
  border: none;
  border-radius: 18.75px;
  outline: 0;
  font-family: Kanit, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.search-filters {
  display: flex;
  gap: 11.25px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-select {
  padding: 9px 15px;
  border: none;
  border-radius: 18.75px;
  font-size: 0.75rem;
  font-family: Kanit, sans-serif;
  background: #fff;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  min-width: 112.5px;
}
.filter-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.search-buttons {
  display: flex;
  gap: 11.25px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 9px 22.5px;
  border: none;
  border-radius: 18.75px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Kanit, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-search {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}
.btn-home {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: #fff;
  width: 100%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.data-section {
  background: #f8f9fa;
  padding: 2px 0;
}
.table-header {
  text-align: center;
  margin-bottom: 5px;
}
.table-header h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 600;
  background: linear-gradient(135deg, #3de439, #f39c12);
  padding: 0;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.data-table {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid !important;
  gap: 3px !important;
  padding: 5px !important;
  width: 100%;
  border-collapse: collapse;
}
@media (min-width: 1025px) {
  .data-table {
    grid-template-columns: repeat(7, 1fr) !important;
  }
}
@media (min-width: 1200px) {
  .data-table {
    grid-template-columns: repeat(7, 1fr) !important;
  }
}
.table-row {
  display: contents;
}
.table-row:last-child {
  border-bottom: none;
}
.table-cell {
  padding: 0;
  text-align: center;
  border: none;
  background: 0 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
}
.table-cell.hidden {
  display: none;
}
.table-cell:last-child {
  border-right: none;
}
.table-cell:hover {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.license-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #fff, #f0f0f0);
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  padding: 10px 5px;
  margin: 0;
  min-height: 100px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}
.license-text span {
  vertical-align: baseline;
}
.license-text {
  font-family: KCTTabienrod, Kanit, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 5px;
  margin-top: 0;
  text-align: center;
  line-height: 1.2;
  font-stretch: normal;
  text-shadow: none;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  letter-spacing: -1px;
  position: relative;
  width: 100%;
}
.license-text .thai-consonant {
  font-size: 1em;
  letter-spacing: -0.02em;
  vertical-align: middle;
  display: inline-block;
  font-weight: 900;
}
.license-text .number {
  font-size: 1em;
  letter-spacing: -0.02em;
  vertical-align: middle;
  display: inline-block;
  font-weight: 900;
}
.license-price {
  font-family: Kanit, sans-serif !important;
  font-size: 1.1rem !important;
  color: #333;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0;
  width: 100%;
  margin-top: 2px;
  text-shadow: none;
  opacity: 0.9;
}
.license-text .thai-vowel-upper {
  font-size: 0.8em;
  margin-left: -0.35em;
  margin-right: -0.15em;
  position: relative;
  top: -0.85em;
  display: inline-block;
  width: auto;
  pointer-events: none;
  vertical-align: middle;
  overflow: visible;
  line-height: 1;
}
.license-text .thai-tone {
  font-size: 0.8em;
  margin-left: -0.35em;
  margin-right: -0.15em;
  position: relative;
  top: -1.15em;
  display: inline-block;
  width: auto;
  pointer-events: none;
  vertical-align: middle;
  overflow: visible;
  line-height: 1;
}
.license-text .thai-vowel-lower {
  font-size: 0.8em;
  margin-left: -0.35em;
  margin-right: -0.15em;
  position: relative;
  top: 0.25em;
  display: inline-block;
  width: auto;
  pointer-events: none;
  vertical-align: middle;
  overflow: visible;
  line-height: 1;
}
.license-plate:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}
.background-ขาวดำ {
  background-image: url("../shared_assets/white_black.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  color: #000 !important;
}
.background-ทอง {
  background-image: url("../shared_assets/gold.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  color: #000 !important;
  border-color: #000 !important;
}
.background-ฟ้า {
  background-image: url("../shared_assets/blue.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  color: #000 !important;
}
.background-เขียว {
  background-image: url("../shared_assets/green.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  color: #000 !important;
}
.background-ม่วง {
  background-image: url("../shared_assets/purple.webp") !important;
  background-size: cover !important;
  color: #000 !important;
  background-position: center center !important;
  border-color: #000 !important;
}
.background-ขาวฟ้า {
  background-image: url("../shared_assets/ขาวฟ้า.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #e3f2fd !important;
  color: #000 !important;
  border-color: #4682b4 !important;
}
.background-ขาวเขียว {
  background-image: url("../shared_assets/ขาวเขียว.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #e8f5e9 !important;
  color: #000 !important;
  border-color: #228b22 !important;
}
.background-ทอง .license-text,
.background-ฟ้า .license-text,
.background-ม่วง .license-text,
.background-เขียว .license-text {
  text-shadow:
    1px 1px 2px rgba(255, 255, 255, 0.8),
    -1px -1px 2px rgba(255, 255, 255, 0.8) !important;
}
.license-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background-color: #1877f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
  border: 2px solid #fff;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.data-section,
.search-section {
  animation: fadeInUp 0.6s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.table-cell {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.license-plate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.table-cell:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}
.footer-space {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  padding: 250px 0;
  text-align: center;
  margin-top: 20px;
}
.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.footer-content p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.license-plate.van,
.license-plate.van .license-text {
  color: #00f;
  border-color: #00f;
}
.license-plate.pickup,
.license-plate.pickup .license-text {
  color: green;
  border-color: green;
}
.btn-upload {
  background: linear-gradient(135deg, #1877f2, #1565c0);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 18.75px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
  margin-left: 10px;
}
.btn-upload:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}
.upload-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.upload-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-modal-content {
  background: #fff;
  border-radius: 0;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.upload-modal-header {
  background: linear-gradient(135deg, #7890cf, #34495e);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upload-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.upload-modal-close {
  background: 0 0;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.upload-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.upload-modal-body {
  height: calc(100% - 80px);
  overflow: hidden;
}
.upload-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.dynamic-plate {
  animation: fadeIn 0.3s ease-in;
}
.dynamic-plate .license-plate.default-border {
  border: 1px solid #000 !important;
  background-color: #fff;
}
.dynamic-plate .license-plate.default-border .license-text {
  color: #000;
  font-weight: 900;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 0 rgba(0, 0, 0, 0.3);
}
.dynamic-plate .license-plate.default-border .license-price {
  color: #000;
  font-weight: 400;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.8);
}
.dynamic-plate .license-plate.van-border {
  border: 1px solid #2196f3 !important;
  background-color: #fff;
}
.dynamic-plate .license-plate.van-border .license-text {
  color: #1565c0;
  font-weight: 900;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 0 rgba(21, 101, 192, 0.3);
}
.dynamic-plate .license-plate.van-border .license-price {
  color: #000;
  font-weight: 400;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.8);
}
.dynamic-plate .license-plate.pickup-border {
  border: 1px solid green !important;
  background-color: #fff;
}
.license-plate {
  position: relative;
}
.license-sum-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.background-ทอง .license-sum-badge,
.background-ฟ้า .license-sum-badge,
.background-ม่วง .license-sum-badge,
.background-เขียว .license-sum-badge {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
}
.dynamic-plate .license-plate.pickup-border .license-text {
  color: #2e7d32;
  font-weight: 900;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 0 rgba(46, 125, 50, 0.3);
}
.dynamic-plate .license-plate.pickup-border .license-price {
  color: #000;
  font-weight: 400;
  letter-spacing: 0.75px;
  font-stretch: expanded;
  text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.8);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.table-cell.price-hidden {
  display: none !important;
}
.table-cell.sum-hidden {
  display: none !important;
}
.license-plate-display.ขาวดำ,
.license-plate.background-ขาวดำ {
  background-image: url("../shared_assets/white_black.webp");
  background-size: cover;
  background-position: center;
}
.license-plate-display.ทอง,
.license-plate.background-ทอง {
  background-image: url("../shared_assets/gold.webp");
  background-size: cover;
  background-position: center;
}
.license-plate-display.ฟ้า,
.license-plate.background-ฟ้า {
  background-image: url("../shared_assets/blue.webp");
  background-size: cover;
  background-position: center;
}
.license-plate-display.เขียว,
.license-plate.background-เขียว {
  background-image: url("../shared_assets/green.webp");
  background-size: cover;
  background-position: center;
}
.license-plate-display.ม่วง,
.license-plate.background-ม่วง {
  background-image: url("../shared_assets/purple.webp");
  background-size: cover;
  background-position: center;
}
.license-plate {
  position: relative;
}
.sum-circle {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background-color: #1877f2;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.sum-circle.hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.main-logo {
  font-size: 3.15rem !important;
}
.logo-subtitle {
  font-size: 1.125rem !important;
}
.contact-label {
  font-size: 1.23rem !important;
}
.contact-details-single-line .contact-label {
  font-size: 1.05rem !important;
}
.contact-item {
  font-size: 1.065rem !important;
}
.search-input {
  font-size: 1.2375rem !important;
}
.filter-select {
  font-size: 1.125rem !important;
}
.btn {
  font-size: 1.2375rem !important;
}
.table-header h3 {
  font-size: 1.8rem !important;
}
.license-text {
  font-family: KCTTabienrod, Kanit, sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  letter-spacing: -0.5px !important;
  text-shadow:
    1px 1px 0 #fff,
    2px 2px 2px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.license-price {
  font-family: Kanit, sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  opacity: 0.9 !important;
}
.contact-info,
.header-content,
.search-buttons,
.search-filters {
  flex-wrap: nowrap !important;
}
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-size-adjust: 100% !important;
  }
}
.line-icon {
  filter: none !important;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  font-weight: 700;
}
.close:focus,
.close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.qr-code-image {
  max-width: 100%;
  height: auto;
}
.facebook-posts-section {
  background: #f0f2f5;
  padding: 20px 0;
}
.facebook-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fb-post-wrapper {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 100%;
  min-width: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fb-title {
  margin-bottom: 10px;
  color: #1877f2;
  font-size: 1.2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .fb-post-wrapper {
    width: 100%;
    min-width: unset;
    padding: 5px;
  }
  .fb-post-wrapper .fb-page,
  .fb-post-wrapper .fb-page iframe,
  .fb-post-wrapper .fb-page span {
    width: 100% !important;
  }
}
@media (max-width: 480px) {
  .facebook-container {
    gap: 10px;
  }
  .fb-title {
    font-size: 1rem;
  }
}
.slideshow-section {
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
  padding: 30px 0;
  margin: 20px 0;
}
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  background: #f5f5f5;
  will-change: transform;
}
.slide {
  flex: 0 0 33.333%;
  padding: 10px;
  box-sizing: border-box;
}
.slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.fade {
  animation: fade 1s ease-in-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.next,
.prev {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 3px;
  user-select: none;
  z-index: 100;
}
.next {
  right: 0;
}
.prev {
  left: 0;
}
.next:hover,
.prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}
.dots-container {
  text-align: center;
  padding: 20px 0;
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.dot.active,
.dot:hover {
  background-color: #717171;
}
@media (max-width: 1200px) {
  .slideshow-container {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .slideshow-container {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px auto;
  }
  .slide {
    flex: 0 0 50%;
  }
  .next,
  .prev {
    padding: 12px;
    font-size: 16px;
    margin-top: -18px;
  }
  .dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
  }
  .dots-container {
    padding: 15px 0;
  }
}
@media (max-width: 480px) {
  .slideshow-container {
    max-width: 100%;
  }
  .slide {
    flex: 0 0 100%;
  }
  .next,
  .prev {
    padding: 10px;
    font-size: 14px;
    margin-top: -16px;
  }
  .dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
  }
  .dots-container {
    padding: 10px 0;
    gap: 5px;
  }
}
.modal-content.zoom-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  height: 90%;
}
.zoomed-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.close-zoom {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
}
.close-zoom:focus,
.close-zoom:hover {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


/* =========================================================
   KCTTabienrod Green UX Refresh
   ========================================================= */
:root {
  --kct-green-950: #12352b;
  --kct-green-900: #14532d;
  --kct-green-800: #166534;
  --kct-green-700: #15803d;
  --kct-green-600: #16a34a;
  --kct-green-500: #22c55e;
  --kct-green-100: #dcfce7;
  --kct-green-50: #f0fdf4;
  --kct-ink: #17332a;
  --kct-muted: #60756b;
  --kct-border: #d7e8dd;
  --kct-surface: #ffffff;
  --kct-shadow: 0 12px 32px rgba(20, 83, 45, 0.10);
  --kct-radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--kct-ink);
  background: linear-gradient(180deg, var(--kct-green-50) 0, #fff 38rem);
}
::selection { background: var(--kct-green-100); color: var(--kct-green-950); }

.header, header {
  background: linear-gradient(135deg, var(--kct-green-950), var(--kct-green-800)) !important;
  box-shadow: 0 4px 18px rgba(18, 53, 43, .18);
}
.logo, .brand, .site-title, h1, h2, h3 { color: var(--kct-green-900); }
.header h1, .header h2, .header h3, header h1, header h2, header h3 { color: #fff; }

.card, .content-card, .search-section, .stats-card, .stat-card,
.plate-card, .table-container, .slideshow-container, .modal-content {
  border: 1px solid var(--kct-border);
  border-radius: var(--kct-radius);
  box-shadow: var(--kct-shadow);
}
.search-section, .content-card, .table-container { background: rgba(255,255,255,.96); }

button, .btn, input[type="submit"], input[type="button"] {
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 83, 45, .16);
}
.btn-primary, .primary-btn, button.primary, .search-btn {
  background: linear-gradient(135deg, var(--kct-green-700), var(--kct-green-600)) !important;
  border-color: var(--kct-green-700) !important;
  color: #fff !important;
}
.btn-primary:hover, .primary-btn:hover, button.primary:hover, .search-btn:hover { background: var(--kct-green-800) !important; }
.btn-secondary, .secondary-btn { background: var(--kct-green-50) !important; color: var(--kct-green-800) !important; border-color: var(--kct-border) !important; }

input, select, textarea {
  border: 1px solid #cfe1d5 !important;
  border-radius: 10px !important;
  color: var(--kct-ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(34,197,94,.28) !important;
  outline-offset: 2px;
  border-color: var(--kct-green-600) !important;
}

.badge, .status, .tag, .category-badge {
  border-radius: 999px;
  background: var(--kct-green-100);
  color: var(--kct-green-900);
  font-weight: 600;
}
.stats-card i, .stat-card i, .icon-green { color: var(--kct-green-600) !important; }
.next, .prev { background: rgba(20,83,45,.78); }
.next:hover, .prev:hover { background: var(--kct-green-800); }
.dot.active, .dot:hover { background: var(--kct-green-600); }

@media (max-width: 768px) {
  body { background: #f7fcf8; }
  .container { width: min(100% - 24px, 1120px); }
  .search-section, .content-card, .table-container { border-radius: 14px; }
  .btn, button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Transparent circular logo sizing */
.logo-box { padding: 0; width: clamp(78px, 10vw, 120px); height: clamp(78px, 10vw, 120px); }
.logo-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 768px) {
  .header-container { gap: 10px; padding: 0 12px; }
  .logo-box { width: 76px; height: 76px; }
  .logo-image { max-width: 76px; max-height: 76px; }
}


/* Responsive cover refresh */
.cover-image, .hero-cover, .cover img, img.cover {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 0 16px 16px;
}
@media (max-width: 768px) {
  .cover-image, .hero-cover, .cover img, img.cover { aspect-ratio: 16 / 7; }
}
