/* ============================================
   TransportBook - Main Stylesheet
   Responsive, Accessible, Modern Design
   ============================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --primary-color: #051e3d;
  --primary-dark: #01091cbd;
  --primary-light: #1dbf73;
  --primary-lighter: #e6f5ed;
  --secondary-color: #ccff11;
  --secondary-dark: #e6d900;
  --secondary-light: #fff9b3;
  --accent-color: #bf1e2e;
  --accent-dark: #9a1825;
  --accent-light: #f5d4d8;

  /* Status Colors */
  --success-color: #1dbf73;
  --warning-color: #fef200;
  --danger-color: #bf1e2e;
  --info-color: #1dbf73;

  /* Neutral Colors */
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
  --bg-gradient: linear-gradient(135deg, #051e3d 0%, #015a7e 100%) !important;
  /* background: linear-gradient(135deg, #1DBF73 0%, #1DBF73 100%) !important; */
  --bg-gradient-light: linear-gradient(135deg, #f8f9fa8e 0%, #e9ecef 100%);

  /* Text Colors */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #adb5bd;
  --text-muted: #868e96;

  /* Border Colors */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --border-focus: #051e3d9d#051e3d#BF1E2E;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-colored: 0 10px 30px -5px rgba(0, 165, 79, 0.25);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Spacing (Industry Standard) */
  --spacing-xs: 0.25rem;
  /* 4px */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 1.5rem;
  /* 24px */
  --spacing-xl: 2rem;
  /* 32px */
  --spacing-2xl: 3rem;
  /* 48px */

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --step-primary: #01091cbd;
  --step-primary-dark: #051e3dde;
  --step-primary-darker: #051e3d;

  --step-shadow-light: rgba(5, 30, 61, 0.3);
  --step-shadow-medium: rgba(5, 30, 61, 0.4);
  --step-shadow-strong: rgba(5, 30, 61, 0.6);
  --primary-darker: #051e3d;

  /* Font size */
  --base-font-size: 16px;
  --font-size-offset: -3px;

  /* --bs-primary-rgb:rgb(255, 0, 0);
  --bs-bg-opacity:1 */
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-light);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

h3 {
  color: var(--bg-white);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1em;
}

a,
a:focus,
a:active {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}
/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 44px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--bg-white);
}

.btn-danger:hover {
  background-color: var(--accent-dark);
}

/* Header */

#common-header {
  position: sticky;
  top: 0;
  z-index: 400;
}

.navbar-brand {
  white-space: normal !important;
  display: flex;
  align-items: center;
  max-width: 65%;   /* 🔥 limit only text area */
}

.logo-block {
  flex: 0 0 auto;
  margin-right: 12px;
}

.header-title-desc {
  flex: 1;
  min-width: 0;
}

#appName {
  font-size: 1.3rem !important;
  font-weight: 700;
  margin-bottom: 4px;
  word-break: break-word;
}

#appTagline {
  font-size: 0.75rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}


.main-header,
.dashboard-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  /* padding: 1rem 0; */
  padding:0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

nav.navbar {
    padding: 15px;
}


.logo h1 {
  color: var(--primary-color);
}

.nav-links a {
  color: var(--primary-color);
}

.nav-links a:hover {
  color: var(--primary-dark);
}

/* Hero */
.hero {
  /* background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-color)
    ) !important; */
  color: var(--bg-white);
}

.hero h1,
.link-text {
  color: var(--bg-white);
}

/* Feature cards */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
}

/* Status badge */
.status-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color)
  ) !important;
}

.status-pending {
  background-color: var(--secondary-light);
  color: var(--warning-color);
}

.status-upcoming {
  background-color: var(--bg-gray);
  color: var(--text-secondary);
}

/* Timeline */
.timeline-item.active .timeline-marker {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-lighter);
}

/* Ticket */
.ticket-header,
.route-line,
.progress-fill {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color)
  ) !important;
  color: var(--bg-white);
}

.ticket-qr {
  background: var(--bg-white);
}

/* Passenger statuses */
.passenger-row-status.pending {
  background-color: var(--secondary-light);
}

.passenger-row-status.picked,
.status-picked {
  background-color: var(--primary-lighter);
  color: var(--primary-dark);
}

.passenger-row-status.reached,
.status-reached {
  background-color: var(--success-light);
  color: var(--success-color);
}

/* Footer */
.main-footer {
  background-color: var(--text-primary);
  color: var(--bg-white);
}

.main-footer a {
  color: var(--bg-white);
}

/* Print */
@media print {
  body {
    background: var(--bg-white);
  }

  .ticket-container {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .ticket-header {
    background: var(--primary-color) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Logo */
.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-block img {
  width: 58px;
  border-radius: 12px;
}

.navbar-brand {
  gap: 12px;
  max-width: 31%;
}

main {
  margin-left: 10px;
  margin-right: 10px;
}

.container-bar {
  margin-left: 12rem;
  margin-right: 12rem;
}

/* ================= MOBILE & TABLET ================= */
@media (max-width: 991px) {
  main {
    margin-left: 0;
    margin-right: 0;
  }

  .container-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  main,
  .container-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  main,
  .container-bar {
    padding: 0;
  }

    .navbar-brand {
    max-width: 75%;
    gap: 0;
}

}

@media (max-width: 992px) {
  main,
  .container-bar {
    margin: 0 !important;
  }
}

/* ===============================
       SIXTH BANNER / ABOUT SECTION
       =============================== */
.sixth-banner-services {
  background: var(--primary-color);
  /* padding: var(--spacing-2xl) 0; */
  color: #fff;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
}

/* LEFT IMAGE */
.sixth-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sixth-left img {
  /* max-width: 340px; */
  width: 80%;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.35));
}

/* RIGHT CONTENT */
.sixth-rigth {
  padding-left: var(--spacing-xl);
}

.services.service2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.we-offer2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  /* color: #fff; */
}

.sixth-small {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
}

/* COMPANY INFO */
.company-info {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--spacing-lg);
}

.company-info strong {
  color: #fff;
  font-weight: 600;
}

/* APP DOWNLOAD */
.download-app {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.download-app img {
  height: 50px;
  transition: var(--transition);
}

.download-app a:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sixth-banner-services {
    text-align: center;
  }

  .sixth-rigth {
    padding-left: 0;
    margin-top: var(--spacing-xl);
  }

  .download-app {
    justify-content: center;
  }

  .sixth-left img {
    max-width: 280px;
  }
}

.home-bg-image {
  text-align: center;
  color: #ffffff;
  background-image: url(./animate/first-banner.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 100px 0px;
  position: relative;
    min-height: 400px; 
      max-height: 550px;
}

.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Dot */
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

/* Active dot */
.hero-dots button.active {
  background: #ffffff;
  transform: scale(1.4);
}

/* Buttons */
.btn {
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.no-link a:hover {
  color: #ffff;
}

/* Step Card Wrapper */
.x {
  background: #e9f8ff;
  /* soft light blue like image */
  padding: var(--spacing-2xl) var(--spacing-lg);
  border-radius: var(--radius-xl);
  height: 100%;
  transition: var(--transition);
}

/* Hover effect (optional but recommended) */
.x:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Icon Circle */
.x .rounded-circle {
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-md);
}

/* Step Badge */
.x .badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

/* Title */
.x h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Description */
.x p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 260px;
  margin: auto;
}

/* <!-- Owl Carousel  */

/* ===============================
   SERVICES SECTION
   =============================== */
.second-banner-services {
  padding: 50px 0px;
  text-align: center;
  background-color: #ffffff;
  color: #000;
  position: relative;
}

.second-star {
  position: absolute;
  right: 0;
}

.second-star img {
  width: 100%;
  max-width: 100px;
}

.services-carousel img.service-image {
  width: 100%;
  max-width: 60px;
  margin-bottom: 10px;
  display: inline-block !important;
}

.services-carousel .address-pickup {
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
}

.services-carousel .always {
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: #5e6282;
  margin-bottom: 0px;
}

.services-carousel {
  /* background-color: #fff; */
  background-color: #fff;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
  padding: 30px 20px;
  border-radius: 50px;
  margin: 10px;
  position: relative;
}

.services-carousel:hover {
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.after-image {
  position: absolute;
  width: 100%;
  max-width: 60px;
  bottom: -14px;
  left: -31px;
}

.after-image img {
  width: 100%;
}

.we-offer {
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  margin-bottom: 62px;
}

.services {
  margin-bottom: 0px;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: #5e6282;
}

.card {
  border-radius: 1.5rem;
}

.home .btn:hover {
  color: var(--primary-dark) !important;
}

footer.bg-dark {
  background-color: rgb(1, 1, 2) !important;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--primary-lighter);
}

p#aboutTitle {
  width: 60%;
}

.blog-wrapper {
  max-width: 1200px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d2d2d;
}

.section-header p {
  font-size: 15px;
  color: #777;
  max-width: 650px;
  margin: auto;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.blog-img {
  position: relative;
}

.blog-img img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.blog-date {
  position: absolute;
  bottom: -12px;
  left: 20px;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
}

/* CONTENT */
.blog-content {
  padding: 25px 20px 30px;
}

.blog-category {
  font-size: 19px;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

/* ==============================
   Toast Notification Styles
   ============================== */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 250px;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Show animation */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Types */
.toast-success {
  background: #28a745;
}

.toast-error {
  background: #dc3545;
}

.toast-warning {
  background: #ffc107;
  color: #000;
}

.toast-info {
  background: #0d6efd;
}

.social-icon {
  transition: 0.3s;
}

.social-icon:hover {
  color: #0f9ed5 !important;
  transform: translateY(-2px);
}

.blog-read-more {
  color: var(--primary-color) !important;
}

.blog-read-more:hover {
  color: var(--primary-color);
}

/* ===== FULL PAGE LOADER ===== */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

/* Spinner */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e5e5e5;
  border-top: 5px solid #ff9800; /* Your theme color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide loader */
#pageLoader.hide {
  opacity: 0;
  pointer-events: none;
}

#blogGrid .owl-dots {
  text-align: center;
}

#blogGrid button.owl-dot {
  background-color: #747474 !important;
  height: 10px;
  width: 10px;
  border-radius: 20px;
  margin-left: 10px;
}

#blogGrid button.owl-dot.active {
  background-color: var(--primary-color) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #home .col-lg-12 {
    margin: 0 !important;
  }

  p#aboutTitle {
    width: 100%;
  }

  .forth-left {
    padding-left: 0px;
  }

  #blogGrid .owl-item.active {
    padding: 20px;
  }

}


        @media (max-width: 600px) {

      nav.navbar {
    padding: 15px;
}

nav.navbar .container {
    padding: 0 !important;
}
nav.a.navbar-brand{
  margin: 0;
  padding: 0;
}
.home-bg-image{
        height: auto !important;
        max-height: fit-content;
}

}



@media (max-width: 580px) {
  #toast-container {
    position: fixed;
    top: 70px;
    right: 10px;
    z-index: 9999;
  }
  .toast {
    padding: 10px;
  }
}

button#viewAllBlogsBtn {
  margin: 20px 0;
}


@media (min-width: 1920px) {
.container {
    width: 60%;
}
}