/* style.css */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
}

/* NAVBAR */

.custom-nav {
  background: #05358d;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffc107;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* MOBILE NAVBAR UPGRADES */
@media (max-width: 991px) {
  .navbar-toggler {
    border: none;
    box-shadow: none !important;
    outline: none;
    transition: transform 0.2s ease;
  }
  
  .navbar-toggler:active {
    transform: scale(0.9);
  }

  .navbar-collapse {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .navbar-nav .nav-link {
    font-size: 1.1rem;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #000000 !important;
  }

  .navbar-nav .nav-link:hover {
    color: #05358d !important;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Adjust underline animation for stacked mobile view */
  .navbar-nav .nav-link::after {
    left: 0;
    transform: none;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 100%;
  }
}

/* HERO SECTION */

.hero-section {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 300px;
    padding: 80px 0;
  }
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slide.exit-right {
  transform: translateX(100%);
  z-index: 1;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: #ffffff;
  width: 14px;
  height: 14px;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.search-box {
  /*
  background: rgba(4, 61, 146, 0.75);
  backdrop-filter: blur(8px);

  padding: 10px 20px;
  border-radius: 12px;
*/
  display: inline-block;
  text-align: center;
}

.search-title {
  color: white;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.custom-input {
  height: 55px;
  border-radius: 8px;
}

/*SEARCH BUTTON*/

.btn-search {
  background: #ff6b00;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: #e65f00;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(157, 134, 120, 0.752);
}

.btn-search:active {
  transform: scale(0.98);
}

/* RESULTS */

#resultsSection {

  display: none;

}

.results-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #001b4d;
}

.custom-card {
  border: none;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
}

.custom-card:hover {
  transform: translateY(-5px);
}

/* TABLE DESIGN */

.schedule-table {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
}

.custom-table {
  margin: 0;
}

.custom-table thead {
  background: #001b4d;
  color: white;
}

.custom-table th {
  padding: 20px;
  font-size: 18px;
}

.custom-table td {
  padding: 6px;
  vertical-align: middle;
  font-size: 16px;
}

.custom-table tbody tr {
  transition: 0.2s;
}

.custom-table tbody tr:hover {
  background: #f5f8ff;
}


/* BUS NAME */

.bus-name {

  font-size: 16px;

  font-weight: 600;

  color: #3b4b69;

  line-height: 1.2;

}

/* BUS NUMBER */

.bus-number {

  font-size: 15px;

  color: #8a8a8a;

  margin-top: 4px;

  font-weight: 500;

}

/* STATUS BADGES */

.status-badge {
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
}

.next-bus {
  background: #d1e7dd;
  color: #0f5132;
}

.upcoming {
  background: #fff3cd;
  color: #856404;
}

.departed {
  background: #f8d7da;
  color: #842029;
}

/* NEXT BUS BOX */

.next-bus-box {

  background: linear-gradient(135deg, #001b4d, #0d6efd);

  color: white;

  padding: 40px;

  border-radius: 25px;

  text-align: center;

  box-shadow: 0px 5px 20px rgba(0,0,0,0.2);

}

.next-label {

  font-size: 18px;

  letter-spacing: 3px;

  opacity: 0.8;

}

#nextBusNo,
#returnnextBusNo,
#ctbNextBusNo,
#returnCtbNextBusNo,
#semiNextBusNo,
#returnSemiNextBusNo,
#acNextBusNo,
#returnAcNextBusNo {

  font-size: 35px;

  font-weight: bold;

  margin-top: 10px;

}

#nextBusTime,
#returnnextBusTime,
#ctbNextBusTime,
#returnCtbNextBusTime,
#semiNextBusTime,
#returnSemiNextBusTime,
#acNextBusTime,
#returnAcNextBusTime {

  font-size: 32px;

  color: #ffd166;

  margin-top: 10px;

}

#nextCountdown,
#returnnextCountdown,
#ctbNextCountdown,
#returnCtbNextCountdown,
#semiNextCountdown,
#returnSemiNextCountdown,
#acNextCountdown,
#returnAcNextCountdown {

  margin-top: 15px;

  font-size: 20px;

}

/* AC Warning Notice */
.ac-warning-notice {
  background: #ff6b00;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transition: transform 0.3s ease;
  color: #000;
}

.ac-warning-notice:hover {
  transform: translateY(-2px);
  background: #e66000;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

/*ABOUT US*/

.about-section{
    padding:80px 0;
    background:#f8f9fa;
}

.about-text{
    max-width:800px;
    margin:auto;
    text-align:center;
    font-size:18px;
    color:#555;
}

.about-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.about-card:hover{
    transform:translateY(-5px);
}

.about-card h4{
    margin-bottom:15px;
}

.about-card a{
    text-decoration:none;
    font-weight:600;
    color:#0d6efd;
}

/* FOOTER */

.site-footer {
  background: linear-gradient(135deg, #041e4f, #0b3e9c);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
  border-top: 5px solid #ffb300;
  margin-top: 60px;
}

.site-footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #ffb300;
}

.partner-logos {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.partner-logos img {
  height: 85px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.partner-logos img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.footer-links a:hover {
  color: #ffb300;
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 5px;
  color: #fff;
}

@media (max-width: 768px) {
  .site-footer {
    text-align: center;
    padding: 40px 0 20px;
  }
  .site-footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .partner-logos {
    justify-content: center;
    margin-bottom: 5px;
  }
  .footer-links {
    align-items: center;
    margin-bottom: 5px;
  }
  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }
  .footer-bottom {
    margin-top: 15px;
    padding-top: 15px;
  }
  
  /* Next Bus Box Mobile Optimizations */
  .next-bus-box {
    padding: 25px 15px !important;
  }
  .next-bus-box .next-label {
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 5px !important;
  }
  .next-bus-box h1 {
    font-size: 28px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
  .next-bus-box h2 {
    font-size: 24px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
  .next-bus-box p:not(.next-label) {
    font-size: 16px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
}

/*Terms and Conditions*/

.terms-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.terms-box ol li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.schedule-table {
  display: none;
}

/*View List Button*/ 

.view-schedule-btn {

  background: linear-gradient(
    135deg,
    #043d92,
    #0d6efd
  );

  color: white;

  border: none;

  border-radius: 50px;

  padding: 12px 28px;

  font-weight: 600;

  box-shadow:
    0 4px 15px rgba(4, 61, 146, 0.25);

  transition: all 0.3s ease;

}

.view-schedule-btn:hover {

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(4, 61, 146, 0.35);

}

/*YELLOW LABEL*/

.route-label {

  display: inline-block;

  background: #fed400;

  color: #333;

  font-size: 13px;

  font-weight: 600;

  padding: 6px 14px;

  border-radius: 20px;

  margin: 20px auto 10px;

}

.text-center .route-label {
  display: inline-block;
}

/*MOBILE STYLES*/

@media (max-width: 768px) {

  .hero-prev,
  .hero-next {
    display: none;
  }

}

@media (max-width: 768px) {

  .hero-section {

    min-height: auto !important;
    height: auto !important;

    padding: 20px 0 30px 0;

    background-position: center;
    background-size: cover;

  }

  .search-container {

    margin-top: 10px !important;

  }

  .search-box {

    font-size: 15px;

    padding: 8px 15px;

    margin-bottom: 15px;

  }

}

/*Hide navigation arrows*/

@media (max-width: 768px) {

  .slider-arrow {
    display: none;
  }

}

/*Hide Search Box*/

@media (max-width: 768px) {

  .search-title {

    visibility: hidden;

  }

}

/*Ticket Prices*/

.price-card {

  background: white;

  padding: 25px;

  border-radius: 15px;

  text-align: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  transition: 0.3s;

}

.price-card:hover {

  transform: translateY(-5px);

}

.price-card h4 {

  color: #043d92;

  margin-bottom: 10px;

}

.price-card h3 {

  color: #ff9800;

  font-weight: bold;

}

/* Custom Toast Notifications */
.custom-toast {
  background: rgba(220, 53, 69, 0.95); /* Theme matching error red */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  font-weight: 500;
  animation: slideDown 0.3s ease forwards;
}

.custom-toast .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}

.custom-toast .close-btn:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}