html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('/assets/images/bg_nbda.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  color: white;
}


.header {
  padding: 20px 0;
  flex-shrink: 0;
}

.logo {
  max-height: 75px;
  width: auto;
  filter: drop-shadow(5px 5px 5px #222);
}

.nav-link {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  position: relative;
  padding-bottom: 10px;
  padding: 0 12px;
  text-transform: uppercase;
}

.nav-link:hover {
  text-decoration: none;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px!important;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  background: url(/assets/images/home_taxi_menu_active.png) no-repeat center bottom;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  background: url(/assets/images/home_taxi_menu_active.png) no-repeat center bottom;
}


.main-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0 20px;
}

.section-pair {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.section-pair > div {
  flex: 0 0 48%;
}

.section-pair > div:nth-child(1) h2 {
  text-shadow: 2px 2px 4px #000000;
  margin-top: 15px;
  font-weight: 400;
  font-size: 42px;
  line-height: 42px;
  font-family: "Roboto Slab", Arial, Tahoma, sans-serif;
  margin-bottom: 15px;
}

.section-pair > div:nth-child(2) {
  background: url(/assets/images/home_taxi_form_bg.png) no-repeat right top;
  padding: 30px;
  border-radius: 20px 0 20px 20px;
  position: relative;
  filter: drop-shadow(5px 5px 5px #222);
  color: black;
}

.app-store-logo {
  position: absolute;
  top: 30px;
  right: 80px;
  max-width: 120px;
  height: auto;
}

.search-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.search-header h2 {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-control {
  flex: 1;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
}

.btn-search {
  background-color: black;
  color: white;
  border: none;
}

.btn-search:hover {
  background-color: #333;
  color: white;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.image-card {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-card img {
  width: 100%;
  height: auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.image-label {
  background-color: black;
  color: white;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.freeReg {
  padding: 10px 30px 10px 20px;
  position: relative;
  float: left;
  overflow: hidden;
  margin: 20px 10px;
  background: -webkit-linear-gradient(top, #feda71 0%, #febb4a 100%);
  box-shadow: 0 1px 1px #d3d3d3, inset 0 1px 0 #fee395;
  transition: all 0.2s linear;
  filter: drop-shadow(5px 5px 5px #222);
  border-radius: 5px 5px 5px 5px;
  color: black;
}

.regNowText {
  font-size: 20px;
  color: #000;
  text-shadow: 0 1px 0 #fedd9b;
  line-height: 16px;
  font-weight: bold;
  font-family: "Myriad Pro", "Trebuchet MS", sans-serif;
  display: block;
  padding-bottom: 5px;
  padding-top: 5px;
}

.joinNowText {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
}

a {
  text-decoration: none;
}

.freeReg:hover {
  transform: scale(1.05);
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu {
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 16px;
  transition: background-color 0.2s;
}

.mobile-nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.section-header {
  background: linear-gradient(135deg, #feda71 0%, #febb4a 100%);
  padding: 20px;
  border-radius: 12px 12px 0 0;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  color: black;
}

.section-footer {
  background: white;
  border-bottom: 5px solid #feda71;
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer {
  background: #111;
  margin-top: auto;
  flex-shrink: 0;
  padding: 2rem 0 1rem 0 !important;
}

.footer .text-muted {
  color: #999 !important;
}

.footer hr {
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-address {
  line-height: 1.6;
}

.footer .col-md-4:nth-child(2) .col-6 {
  flex: 0 0 auto;
  width: 40%;
}

.footer .col-md-4:nth-child(2) .col-6:first-child {
  width: 60%;
}

@media (max-width: 768px) {
  .footer .col-md-6 .row {
    margin-top: 1rem;
  }
  
  .footer .col-md-6 .row > div {
    margin-bottom: 1.5rem;
  }
  
  .footer .col-md-4:nth-child(2) .col-6 {
    width: 50% !important;
  }
}

/* Centered content layout - for pages like why.php */
.centered-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  width: 100%;
}

.centered-content .row {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.centered-content .card {
  width: 100%;
}

@media (max-width: 768px) {
  .centered-content {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }
  
  .centered-content .row {
    margin-top: 1rem;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .header {
    padding: 15px 0;
  }

  .logo {
    max-height: 50px;
  }

  .main-grid {
    padding: 0 15px;
    justify-content: flex-start;
    gap: 30px;
  }

  .section-pair {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }

  .section-pair > div {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .section-pair > div:nth-child(1) h2 {
    font-size: 28px;
    line-height: 32px;
    text-align: center;
  }

  .section-pair > div:nth-child(1) img {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
  }

  .section-pair > div:nth-child(1) {
    text-align: center;
  }

  .freeReg {
    float: none;
    margin: 20px auto;
    display: inline-flex;
  }

  .section-pair > div:nth-child(2) {
    padding: 20px;
  }

  .app-store-logo {
    position: static;
    max-width: 100px;
    margin-left: 10px;
  }

  .search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-header h2 {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .image-row {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
  }

  .image-card {
    width: 45%;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-height: 40px;
  }

  .section-pair > div:nth-child(1) h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .regNowText {
    font-size: 16px;
  }

  .joinNowText {
    font-size: 9px;
  }

  .freeReg {
    padding: 8px 20px 8px 15px;
  }

  .freeReg i {
    font-size: 1.5rem !important;
  }

  .image-card {
    width: 100%;
    max-width: 200px;
  }
}