html,
body {
  height: 100%;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}
.nav-link.active {
  color: #c00;
  font-weight: 20vw;
}
.nav-link.active .chevron-icon {
  stroke: #c00;
  fill: #c00;
}
.nav-link.active .chevron-icon path {
  stroke: #c00;
}
main {
  flex: 1;
}
.main-content {
  flex: 1;
  margin-top: 100px;
}
.document-list {
  width: 100%;
  align-items: center;
  margin: 40px auto;
  font-family: sans-serif;
}
.main-contentt {
  flex: 1;
  width: 80%;
  margin: 40px auto;
  margin-top: 100px;
}
.document-item {
  background-color: #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
  border-left: 6px solid #007bff;
}
.document-title {
  flex: 0 0 80%;
  margin-right: 20px;
  font-size: 16px;
  white-space: normal;
  color: #333;
}
.home-pic-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 18px;
  margin-top: 0;
  padding-top: 0;
}
.home-pic {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #fff;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  border-radius: 4px;
  z-index: 1010;
  flex-direction: column;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: flex;
}
.nav-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #eee 10%, #c00 50%, #eee 90%);
  border-radius: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}
.nav-link {
  font-weight: 500;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  padding: 10px 6px;
  min-width: 120px;
  cursor: pointer;
}
.nav-link.active {
  color: #c00;
}
.nav-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #eee 10%, #c00 50%, #eee 90%);
  margin: 10px 0 0 0;
  border-radius: 2px;
}
.dropdown a {
  color: #222;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
.dropdown a:last-child {
  border-bottom: none;
}
.dropdown a:hover {
  background: #f5f5f5;
  color: #c00;
}
.route-search {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
}
.route-search .container {
  margin-top: 0;
  padding-top: 0;
}
.stats-bar {
  background: #ffffff;
  margin-bottom: 5vw;
  height: 40vw;
  align-content: center;
}
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}
.stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 20%;
  flex: 1 1 0;
  max-width: 500px;
  border: 2px solid #1756b3;
  gap: 12px;
}
.stat-icon {
  width: 8vw;
  height: 8vw;
  object-fit: contain;
  margin-right: 10px;
}
.video-section {
  width: 100%;
  height: 35vw;
  background-color: #082040;
}
.news-section {
  margin: 32px auto 0 auto;
  width: 90%;
  align-content: center;
  height: 25vw;
  padding-bottom: 5vw;
}
.news-section h2 {
  font-size: 26px;
  font-weight: bold;
  margin-left: 7vw;
  margin-bottom: 2vw;
  color: #1756b3;
}
.news-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5vw;
  gap: 2vw;
  justify-content: flex-start;
  overflow-x: unset;
}
.news-title {
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 1vw;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
}
.news-date {
  font-size: 13px;
  color: #888;
  margin: 0 10px 10px 10px;
}
.news-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}
.news-list-wrapper {
  flex: 1;
  overflow: hidden;
}
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: space-between;
}
.news-card img {
  width: 100%;
  height: 15vw;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.2s;
}
.news-card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(23, 86, 179, 0.18);
}
.news-card {
  flex: 0 0 calc(33.3% - 18px);
  /* max-width: calc(33.3% - 18px); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  text-decoration: none;
  transition: transform 0.2s;
  color: inherit;
}
.news-slider .news-card {
  margin-right: 20px;
}
.slider-wrapper {
  overflow: hidden;
  width: 80%;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slider-btn {
  background-color: #007bff;
  color: white;
  border: none;
  margin-bottom: 5vw;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
}
.slider-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.marquee-bar {
  width: 100%;
  background: #1756b3;
  overflow: hidden;
  padding: 8px 0;
  margin-top: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #fff;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-btn {
  display: inline-block;
  background: #fff;
  color: #1756b3;
  border: none;
  border-radius: 20px;
  padding: 6px 22px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  transition: background 0.2s, color 0.2s;
  margin-right: 8px;
}
.marquee-btn:hover {
  background: #1756b3;
  color: #fff;
}
.contact-bar {
  width: 100%;
  background: #fff;
  padding: 16px 0 10px 0;
  display: flex;
  justify-content: center;
}
.contact-container {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  background: #082040;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  box-sizing: border-box;
}
.contact-copy {
  color: #bfc8d6;
  font-size: 15px;
  margin-left: 16px;
}
.contact-icon {
  font-size: 18px;
  color: #1756b3;
}
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.footer-bar {
  background: #082040;
  padding: 50px 0 12px 0;
  width: 100%;
  box-sizing: border-box;
}
.search-container {
  display: flex;
  gap: 12px;
  margin: 20px;
  align-items: center;
}
#bus-selector,
#stop-search {
  padding: 8px;
  font-size: 16px;
}
button {
  padding: 8px 16px;
  background-color: #1756b3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #0d3e8c;
}
.footer-up {
  flex-direction: column;
}
.footer-content {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  box-sizing: border-box;
}
.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.footer-copy {
  color: #bfc8d6;
  font-size: 15px;
  margin-left: 350px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-social-btn {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  transition: background 0.2s;
}
.footer-social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: none;
  border-radius: 6px;
  display: block;
}
.footer-social-btn:hover {
  background: #1756b3;
}
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  overflow-x: unset;
}
.request-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #f33a3a;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  margin-right: 16px;
  padding: 12px 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(149, 36, 76, 0.12);
  transition: background 0.2s, color 0.2s;
  z-index: 1100;
}
.request-btn:hover {
  background: #c00;
  color: #fff;
}
.btn-icon {
  display: flex;
  align-items: center;
  margin-left: 6px;
}
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.dropdown-sub {
  padding-left: 18px;
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .right-dropdown {
  display: none;
}
.dropdown-submenu:hover .right-dropdown,
.dropdown-submenu:focus-within .right-dropdown {
  display: flex;
}
.dropdown-submenu .nav-link.active {
  color: #c00;
  font-weight: 600;
}
.dropdown-submenu .nav-link.active .chevron-icon path {
  stroke: #fff;
  fill: none;
}
.right-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 86, 179, 0.08);
  border-radius: 4px;
  z-index: 1020;
  flex-direction: column;
}
.table-section {
  max-width: 1200px;
  margin: 40px auto;
}
.view-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  background-color: #dc3545;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.view-button:hover {
  background-color: #b02a37;
  transform: scale(1.05);
}
.document-item:hover {
  background-color: #e6e6e6;
}
@media (max-width: 600px) {
  .document-item {
    flex-direction: column;
    align-items: stretch;
  }
  .view-button {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}
.photo-album {
  width: 100%;
  align-content: center;
  height: 40vw;
  padding-bottom: 60px;
  background-color: #082040;
}
.photo-album h2 {
  text-align: left;
  font-size: 26px;
  height: 10%;
  margin-left: 12vw;
  color: #ffffff;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: 65%;
  padding-top: 30px;
  width: 90%;
  margin: 0 auto;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 45px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.photo-item:hover {
  transform: scale(1.03);
}
.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-item::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.photo-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  font-size: 48px;
  color: #666;
  cursor: pointer;
}
@media (max-width: 1200px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.department-overview {
  padding-top: 4vw;
  padding-bottom: 5vw;
  margin-top: 50px;
  background-color: #ffffff;
}
.overview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 90%;
  margin: 0 auto;
  align-items: flex-start;
}
.image-column {
  align-self: center;
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
}
.image-column img {
  width: 150%;
  object-fit: cover;
}
.department-column {
  flex: 1 1 55%;
}
.department-column h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.department-card {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  background-color: #eaeaea;
  color: #333;
  text-align: center;
  transition: transform 0.3s ease;
}
.department-card:hover {
  transform: scale(1.03);
  background-color: #eef6ff;
}
.department-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 16px;
}
.department-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.title-logo {
  width: 48px;
  height: auto;
}
.department-title h2 {
  font-size: 24px;
  color: #333;
  margin: 0;
}
.info-panel {
  flex: 1;
  padding: 30px;
  min-width: 300px;
}
.info-panel h2 {
  color: #0077cc;
  margin-top: 20px;
}
.info-panel ul {
  padding-left: 20px;
}
.device-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-width: 300px;
}
.device-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.modal-content {
  background: #082040;
  width: 100%;
  padding: 80px 0 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.mod-content {
  background: #ffffff;
  width: 100%;
  padding: 80px 0 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ubcard-section,
.tseh-section {
  padding-bottom: 60px;
  align-content: center;
  width: 90%;
  margin-left: 2vw;
  font-family: "Segoe UI", sans-serif;
}
.ubcard-layout,
.tseh-layout {
  margin-left: 50px;
  margin-right: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
}
.ubcard-text,
.tseh-text {
  flex: 1 1 45%;
  padding: 30px;
  border-radius: 15px;
}
.ubcard-text {
  background-color: #1e255285;
  color: #ffffff;
}
.tseh-text {
  background-color: #f9f9f9;
  color: #000000;
}
.ubcard-text h1,
.tseh-text h1 {
  font-size: 24px;
  margin-bottom: 16px;
}
.intro,
.tseh-intro {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: justify;
  line-height: 1.6;
}
.check-list,
.tseh-check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li,
.tseh-check-list li {
  margin-bottom: 10px;
  font-size: 17px;
  display: flex;
  align-items: center;
  text-align: justify;
}
.check-list li {
  color: #ffffff;
}
.tseh-check-list li {
  color: #000000;
}
.check-icon {
  color: #00aa55;
  font-weight: bold;
  margin-right: 8px;
  font-size: 18px;
}
.ubcard-images,
.tseh-images {
  flex: 1 1 45%;
  padding-left: 10vw;
  padding-right: 13vw;
  display: flex;
  position: relative;
  box-sizing: border-box;
}
.image-wrapper {
  position: relative;
  width: 90%;
}
.main-img {
  left: -5vw;
  width: 200%;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.uboverlay-img {
  position: absolute;
  bottom: -7vw;
  left: -10vw;
  width: 16vw;
  border: 8px solid #082040;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.uboverlay-img2 {
  position: absolute;
  top: -7vw;
  right: -22vw;
  width: 15vw;
  border: 8px solid #082040;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.overlay-img {
  position: absolute;
  bottom: -7vw;
  left: -10vw;
  width: 16vw;
  border: 8px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.overlay-img2 {
  position: absolute;
  top: -7vw;
  right: -22vw;
  width: 15vw;
  height: 70%;
  border: 8px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.stat-value {
  font-size: 50px;
  text-align: center;
  font-weight: bold;
  color: #0077cc;
  display: block;
  transition: transform 0.3s ease;
}
.stat-label {
  font-size: 14px;
  color: #222;
  text-align: center;
}
.stat-card:hover .stat-value {
  transform: scale(1.1);
}
.vision-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 450px;
}
.vision-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
}
.vision-card {
  position: relative;
  flex: 0 0 100%;
  height: 450px;
  background-size: cover;
  text-align: justify;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}
.vision-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff 40%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}
.vision-card > * {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}
.vision-card h2 {
  color: black;
  font-size: 24px;
  margin-left: 10vw;
  font-weight: bold;
  margin-bottom: 16px;
}
.vision-card p {
  color: black;
  font-size: 20px;
  margin-left: 6vw;
  line-height: 1.6;
  margin-bottom: 20px;
}
.vision-detail-btn {
  padding: 10px 20px;
  border: none;
  background-color: #2a4eff;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  width: 10%;
  text-align: left;
  margin-left: 0;
}
.vision-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
.vision-btn.prev {
  left: 10px;
}
.vision-btn.next {
  right: 10px;
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-width: unset;
    text-align: center;
  }
  .stats-bar {
    height: auto;
    padding: 20px 0;
  }
  .stats-row {
    flex-direction: column;
  }
  .stat-card {
    width: 90%;
    max-width: none;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  .news-section {
    height: auto;
    padding: 20px 0;
  }
  .news-card {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  .news-title {
    font-size: 16px;
  }
  .photo-album {
    height: auto;
    padding: 20px 0;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .overview-container {
    flex-direction: column;
  }
  .image-column img {
    width: 100%;
  }
  .department-grid {
    grid-template-columns: 1fr;
  }
  .vision-card {
    height: auto;
    padding: 20px;
  }
  .vision-card h2 {
    font-size: 20px;
    margin-left: 0;
  }
  .vision-card p {
    font-size: 16px;
    margin-left: 0;
  }
  .vision-detail-btn {
    width: auto;
    margin: 10px auto;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-copy {
    margin-left: 7vw;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
    margin-top: 12px;
  }
  .footer-social-btn {
    width: 40px;
    height: 40px;
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .contact-icon {
    font-size: 24px;
  }
  .contact-card {
    width: 100%;
    justify-content: center;
  }
  .contact-copy {
    margin-left: 0;
    text-align: center;
  }
}
