.news-sectiond {
  margin: 32px auto 0 auto;
  width: 100%;
  margin-bottom: 30px;
  padding: 0 16px;
}
.main-sectiont {
  display: flex;
  padding: 40px 20px;
  background-color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.news-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: none;
}
.news-body {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin: 20px auto 0 auto;
  width: 50%;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/public/assets/images/news1.1.jpg");
  background-size: 100%;
  width: 100%;
  background-position: center;
  filter: blur(6px);
  transform: scale(1.1);
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.news-meta {
  font-size: 14px;
  color: #ddd;
}
.overlay-wrapper {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.news-overlay-image ul {
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.news-overlay-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 4;
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-top: 4vw;
  border-right: 1px solid #ccc;
}
.search-section {
  padding-top: 5vh;
  justify-content: center;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.search-section > div {
  position: relative;
  display: flex;
  align-items: center;
}
.search-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #222;
}
.search-section input {
  width: 25vw;
  box-sizing: border-box;
}
.searchbusstation {
  display: flex;
  gap: 20px;
  flex-direction: column;
  margin-left: 50px;
}
.search-section button.clear-btn {
  display: none;
  margin-left: 5px;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
}
.search-section button.clear-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.autocomplete-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.like-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
#like-btn {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#like-btn:hover {
  background-color: #c92c3a;
}
#like-count {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.comment-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.comment-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comment-textarea {
  width: 96%;
  height: 180px;
  font-size: 16px;
}
.comment-inputs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.comment-input {
  flex: 1;
  min-width: 220px;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.comment-checkbox {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-submit {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s;
}
.comment-submit:hover {
  background-color: #c92c3a;
}
.content-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.news-body {
  flex: 3;
  width: 90%;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}
.news-widget {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.news-widget h3 {
  font-size: 18px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e22828;
  padding-bottom: 6px;
  color: #e22828;
}
.news-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-widget ul li {
  margin-bottom: 10px;
}
.news-widget ul li a {
  text-decoration: none;
  color: #222;
  font-size: 15px;
}
.news-widget ul li a:hover {
  color: #e22828;
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar {
    max-width: 100%;
  }
}
.page-wrapper {
  display: flex;
  gap: 20px;
  max-width: 60vw;
  margin: 0 auto;
  padding: 20px;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 20px;
  width: 100%;
}
.news-headline {
  font-size: 28px;
  background-color: #f0f8ff;
  border-left: 6px solid #0078d4;
  border-radius: 6px;
  color: #0078d4;
  padding: 20px 0 20px 20px;
  margin-bottom: 20px;
}
.news-body {
  margin-top: 20px;
  line-height: 1.6;
}
.bullet-list {
  margin-left: 20px;
}
.comment-section {
  margin-top: 40px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-input,
.comment-textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.comment-submit {
  padding: 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.like-section {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}
.site-header {
  background-color: #0078d4;
  color: white;
  padding: 20px;
  text-align: center;
}
.page-title {
  font-size: 32px;
  margin: 0;
}
.layout-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}
.news-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.news-body {
  line-height: 1.6;
}
.news-body h2 {
  font-size: 24px;
  margin-top: 0;
}
.news-body ul {
  margin-left: 20px;
}
.site-footer {
  background-color: #eee;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  .main-content {
    margin-right: 0;
  }
}
.sidebar-main {
  height: 60%;
  padding-top: 9vh;
}
.sidebar {
  position: sticky;
  top: 7vw;
  width: 15vw;
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.sidebar .news-overlay-image {
  width: 100%;
  margin-bottom: 15px;
}
.sidebar .news-overlay-image img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.sidebar h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #e22828;
  border-bottom: 2px solid #e22828;
  padding-bottom: 6px;
}
.related-news-container {
  flex: 1;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 5px;
}
.related-news-container::-webkit-scrollbar {
  width: 6px;
}
.related-news-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.related-news-container::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar ul li {
  border-top: 1px solid #f0f0f0;
  padding: 8px 0;
}
.sidebar ul li a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  display: block;
  transition: color 0.2s;
}
.sidebar ul li a:hover {
  color: #e22828;
}
#result-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
#result-table th,
#result-table td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
}
#result-table th {
  background-color: #082040;
  color: #ffffff;
  font-weight: 600;
}
.custom-table {
  width: 70%;
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.custom-table th,
.custom-table td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
}
.custom-table th {
  background-color: #082040;
  color: #ffffff;
  font-weight: 600;
}
.custom-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.custom-table tr:hover {
  background-color: #eef6ff;
  transition: background 0.2s ease;
}
.table-wrapper {
  width: 80%;
  margin: 40px auto;
  padding: 0 20px;
}
.search-boxes {
  display: flex;
  gap: 16px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.autocomplete-container {
  position: relative;
  display: flex;
  width: 15vw;
  align-items: center;
}
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 17vw;
  border-bottom: 1px #000000;
  right: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.autocomplete-suggestions div {
  padding: 8px 10px;
  width: 15vw;
  cursor: pointer;
  border-bottom: 1px #000000;
}

.autocomplete-suggestions div:hover {
  background-color: #f0f0f0;
}
#name-search {
  width: 15vw;
  height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#route-search {
  width: 20vw;
  height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.station-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.station-group .autocomplete-container {
  flex: 1;
  position: relative;
  min-width: 200px;
}
#start-station,
#end-station {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  outline: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.comment-section {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.comment-section h2,
.comment-section h3 {
  margin-bottom: 12px;
}
#commentForm input,
#commentForm textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#commentForm button {
  background: #007bff;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#commentForm button:hover {
  background: #0056b3;
}
.comment-item {
  border: none;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.comment-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.comment-actions {
  display: flex;
  gap: 12px;
  border-bottom: 1px #082040;
  margin-top: 6px;
}
.comment-actions button {
  border: none;
  background: none;
  color: #c4c5c5;
  cursor: pointer;
  font-size: 13px;
}
.comment-actions button:hover {
  text-decoration: underline;
}
#image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}
#image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
#modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}
.chiglelsection {
  margin-top: 40px;
  background-color: #082040;
  text-align: center;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 8vh;
}
.chiglelsection h1 {
  color: white;
  padding: 15px 0;
  padding-bottom: 5vh;
  margin: 0;
}
.bus-container {
  width: 80%;
  height: auto;
  flex-wrap: wrap;
  gap: 20px;
  justify-self: center;
}
.content {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.map-box,
.route-box {
  height: 27.7vw;
  justify-items: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.map-box img {
  width: 60vw;
  height: 27.7vw;
  border-radius: 8px;
}
.route-title {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
}
.bus-numbers {
  height: 25vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  text-align: center;
}
.bus-numbers button {
  border: 1px solid #d1d5db;
  background: white;
  color: #1e40af;
  width: 5vw;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
  height: 4vh;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bus-numbers button:hover {
  background: #1e40af;
  color: white;
}
.bus-numbers button.active {
  background: #1e40af;
  color: white;
  font-weight: bold;
}
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 14px;
}
.box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #374151;
}
.box li {
  margin-bottom: 6px;
}
.legend {
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.blue {
  background: #2563eb;
}
.red {
  background: #dc2626;
}
.yellow {
  background: #facc15;
}
.mobile-news-list {
  display: none; 
  width: 100%;
  margin-bottom: 20px;
}
.news-video {
  margin: 24px 0;
  text-align: center;
}

.news-video iframe {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}


@media (max-width: 1024px) {
  .layout-wrapper,
  .content-wrapper,
  .page-wrapper,
  .content {
    flex-direction: column;
    align-items: center;
  }
  #sidebar-placeholder {
    display: none !important;
  }
  .mobile-news-list {
    display: block;
  }
  .mobile-news-list h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .mobile-news-list ul {
    list-style: none;
    padding: 0;
  }
  .mobile-news-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
  }
  .mobile-news-list a {
    text-decoration: none;
    color: #222;
    font-size: 16px;
  }
  .mobile-news-list a:hover {
    text-decoration: underline;
  }
  .main-content {
    width: 100%;
    border-right: none;
  }
  .search-section input,
  #name-search,
  #route-search,
  .autocomplete-container,
  .station-group input {
    width: 100%;
  }
  .map-box img {
    width: 100%;
    height: auto;
  }
  .bus-numbers {
    grid-template-columns: repeat(3, 1fr);
  }
  .info {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .main-content {
    width: 100%;
  }
  .news-details {
    width: 100%;
  }
  .page-wrapper,
  .layout-wrapper,
  .content-wrapper {
    flex-direction: column;
    width: 100% !important;
    max-width: 90% !important;
  }
  #sidebar-placeholder {
    display: none;
  }
  .mobile-news-list {
    display: none;
  }

  .mobile-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1vw;
  }
  .mobile-news-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .mobile-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .mobile-news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .mobile-news-image img {
    width: 100%;
    object-fit: cover;
  }
  .mobile-news-title {
    font-weight: 500;
    padding: 8px 12px 4px 12px;
    font-size: 14px;
  }
  .mobile-news-date {
    font-size: 12px;
    color: #666;
    padding: 0 12px 8px 12px;
  }
  .news-body {
    width: 100%;
    font-size: 16px;
  }
  .search-section {
    flex-direction: column;
    align-items: stretch;
  }
  .search-boxes {
    flex-direction: column;
    width: 100%;
  }
  #name-search,
  #route-search,
  #start-station,
  #end-station {
    width: 100%;
  }
  .bus-numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bus-numbers button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
  .map-box,
  .route-box {
    width: 100%;
    height: auto;
  }
  .info {
    grid-template-columns: 1fr;
  }
  .comment-section {
    width: 90%;
  }
  .custom-table,
  #result-table {
    width: 100%;
    font-size: 14px;
  }
  .custom-table th,
  .custom-table td,
  #result-table th,
  #result-table td {
    padding: 8px;
  }
  .chiglelsection {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-bg {
    background-size: cover;
  }
  .news-headline {
    font-size: 22px;
    padding: 12px;
  }
}
