:root {
  --brand-red:        #AF0E1A;
  --brand-red-dark:   #901217;   /* ~15% darker */
  --brand-red-light:  rgba(175,14,26,0.15);
}
  /* ========== GLOBAL ========== */
  @font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
   }
  @font-face {
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../webfonts/fa-brands-400.woff2") format("woff2"),
         url("../webfonts/fa-brands-400.ttf")  format("truetype");
  }
  
body {
    font-family:
       'Inter', 
       'Segoe UI', 
       'Helvetica Neue', 
       Arial, 
       sans-serif;
    background-color: #FCFCFD;
    color: #1A1A1A;
    font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 1rem;
  line-height: 1.3;
}
  
  h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
  }
  
  h2 {
    font-size: 2.25rem;
    letter-spacing: -0.4px;
  }
  
  h3 {
    font-size: 1.75rem;
    letter-spacing: -0.3px;
  }
  
  h4 {
    font-size: 1.375rem;
    font-weight: 600;
  }
  
  h5 {
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #6C757D;
  }
  
  .subheading {
    color: #ADB5BD;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  p {
    font-size: 1.0625rem; 
    line-height: 1.75;
    color: #343A40; 
    margin-bottom: 1.25rem;
    font-weight: 400;
  }
  
  p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1A1A1A;
    line-height: 1.6;
  }

  ::selection {
    color: #343A40;
    background-color: #FFF0F0;
  }
  
  @media (min-width: 768px) {
  .section-bg {
    background-color: #F4F5F7;
    padding: 4rem 2rem;
    border-radius: 20px;
  }
  .section-white {
    background-color: #FCFCFD;
    padding: 4rem 2rem;
    border-radius: 20px;
  }
}
  /* ========== BUTTONS ========== */
  .btn {
    font-weight: 600;
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  .btn-primary {
    background-color: #AF0E1A; /* higher contrast than #AF0E1A */
    border-color: transparent;
    color: #ffffff; /* max contrast */
  }
  
  .btn-primary:hover {
    background-color: var(--brand-red-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(175,14,26,0.15);
  }
  
  .btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible {
    background-color: #e05252 !important;
    border-color: transparent;
    outline: none !important;
    box-shadow: 0 0 0 0.25rem var(--brand-red-light);
    }
  
  .btn-outline-success {
    color: #147C60;
    border: 2px solid #147C60;
    background-color: transparent;
  }
  
  .btn-outline-success:hover {
    background-color: #147C60;
    border: 2px solid #147C60;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 245, 228, 0.3);
  }
  
  .btn-outline-secondary {
    color: #147C60;
    border: 2px solid #147C60;
    background-color: transparent;
  }
  
  .btn-outline-secondary:hover {
    background-color: #147C60;
    color: #fff;
    border-color: #147C60;
    box-shadow: 0 6px 15px rgba(20, 124, 96, 0.3);
  }
  
  .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(20, 124, 96, 0.4);
  }
  
  
/* === Header Wrapper with Gradient === */
.header {
  background: linear-gradient(120deg, #FFF0F0 0%, #F0FBFB 100%);
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: inherit;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

/* === Nav Container (Pill) === */
.nav-wrapper {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

/* === Nav Links === */
.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav .nav-item {
  display: inline-block;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: #1A1A1A;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: #AF0E1A;
}

/* === Primary Button Style in Nav === */
.navbar-nav .btn-primary {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  transition: all 0.3s ease;
}

.navbar-nav .btn-primary:hover {
  background-color: var(--brand-red-dark);
  box-shadow:      0 6px 20px var(--brand-red-light);
  transform: translateY(-1px);
  color: #fff;
}

/* === Responsive === */
@media (max-width: 991.98px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .navbar-nav .btn-primary {
    width: 100%;
    text-align: centre;
  }
}

  
  /* ========== HERO SECTION ========== */
  #hero {
    background: linear-gradient(120deg, #FFF0F0 0%, #F0FBFB 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
  }
  
  /* === Custom Hero Image Styling === */
.hero-image-right {
  height: 350px;
  max-height: 100%;
  object-fit: contain;
}


  #hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
  }
  
  #hero p {
    font-size: 1.25rem;
    margin-top: 1rem;
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px); /* optional slight lift-in effect */
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-image-float {
    animation: fadeIn 1.5s ease-out forwards; /* only runs once */
    opacity: 0; /* ensures it starts invisible */
  }
   
  @media (max-width: 576px) {
    .hero-image-right {
      margin-top: 3rem;
      max-height: 280px;
      width: 100%;
    }
  }
  /* === LOGIN/REGISTER STYLING === */
  .reset-link {
    color: #AF0E1A;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
  }
  
  .reset-link:hover {
    color: var(--brand-red-dark);
    text-decoration: underline;
  }
 
  .auth-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  @media (max-width: 576px) {
    .auth-container {
      padding-left: 12px;
      padding-right: 12px;
    }
  }
 
.auth-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.auth-icon {
  font-size: 2.25rem;
  color: #AF0E1A;
  margin-bottom: 1rem;
}

/* Password Reset Page */
.password-reset-info {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 2rem;
}

/* === Password Reset === */
.reset-password-page h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.reset-password-page form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
}

.reset-password-page label {
  font-weight: 600;
}

.reset-password-page .form-control:focus {
  border-color: #AF0E1A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.reset-password-page .btn-primary {
  width: 100%;
  margin-top: 1rem;
}


/* Force footer to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

/* Optional SEO paragraph styling */
.help-text {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 2rem;
  text-align: left;
}

.form-label {
  font-weight: 600;
}

input.form-control:focus, .form-select:focus {
  border-color: #AF0E1A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.alert-danger {
  background-color: #fff1f1;
  color: #cc1f1a;
  border: 1px solid #f5c2c7;
}

.alert-success {
  background-color: #e7fbee;
  color: #20744a;
  border: 1px solid #c3e6cb;
}

.form-text.text-success {
  color: #28a745 !important;
}

.form-text.text-danger {
  color: #dc3545 !important;
}

input[type="radio"]:checked + img {
  border: 2px solid #AF0E1A;
}
/* ========== FEATURES TABLE ========== */
.table-features {
  width: 100%;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-collapse: separate;
  border-spacing: 0;
}

.table-features thead th {
  background: #f7f9fb;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem;
  color: #1A1A1A;
  text-align: left;
  border-bottom: 1px solid #E9ECEF;
}

.table-features tbody td {
  padding: 1.1rem;
  vertical-align: middle;
  font-size: 1rem;
  color: #343A40;
  border-top: 1px solid #f1f3f5;
}

.table-features tbody tr:hover td {
  background-color: #FDF1F1;
}

.table-features .info-icon {
  color: #AF0E1A;
  margin-left: 6px;
  font-size: 0.95rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.table-features .info-icon:hover {
  transform: scale(1.2);
}

/* Centre icons in the two comparison columns */
.table-features td.text-center {
  text-align: center;
  font-size: 1.3rem;
}

/* Tick & Cross Icon Enhancements */
.feature-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.feature-icon.text-success {
  color: #147C60;
}

.feature-icon.text-danger {
  color: #AF0E1A;
}

/* Tooltip Enhancements */
.tooltip-inner {
  background-color: #AF0E1A;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.tooltip .tooltip-arrow::before {
  border-top-color: #AF0E1A !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .table-features thead th,
  .table-features tbody td {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .feature-icon {
    font-size: 1.2rem;
  }
}
.feature-icon {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* How It Works Section */
#how-it-works {
  background-color: #F9FAFB;
  border-radius: 20px;
}

#global-stats {
  background-color: #F9FAFB;
  border-radius: 20px;
}

#quick-benefits {
  background-color: #F9FAFB;
  border-radius: 20px;
}

.how-it-works-card {
  transition: all 0.3s ease;
  border: 1px solid #F0F0F0;
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.how-it-works-card .icon i {
  color: #147C60;
  transition: transform 0.3s ease;
}

.how-it-works-card:hover .icon i {
  transform: scale(1.15);
}

#how-it-works h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

  
  /* ========== ICONS ========== */
  .icon i,
  .card .fa,
  .how-it-works-card .fa {
    font-size: 2.5rem;
    color: #147C60;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
  }
  

.recent-route-card {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 1.5rem;
}

.recent-route-card:hover {
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.recent-route-header {
  font-size: 1.25rem;
  color: #1A1A1A;
}
.recent-route-card .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
#recent-routes {
 background: linear-gradient(120deg, #FFF0F0 0%, #F0FBFB 100%);
 border-radius: 20px;
}


  /* ========== CTA SECTION ========== */
  #cta {
    background-color: #F4F5F7;
    padding: 4rem 2rem;
    border-radius: 20px;
  }
  
/* ========== FOOTER STYLING ========== */
.footer {
  background-color: #F8F9FA;
  border-top: 1px solid #EAEAEA;
  font-size: 0.95rem;
  color: #6C757D;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #6C757D;
}

.footer-social a {
  color: #6C757D;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;;
}

.footer-social a:hover {
  color: #AF0E1A;
  transform: translateY(-2px);
}
/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #AF0E1A;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
  background-color: #e05252;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

  
  /* ========== TOOLTIP ========== */

.tooltip.show {
  opacity: 1 !important;
}

.tooltip-inner {
  background-color: #AF0E1A;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
}

/* Tooltip arrow colour to match */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #AF0E1A;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: #AF0E1A;
}

  
  /* ========= FEATURES COMPARISON TABLE ========== */
  .table {margin-bottom: 0}
  .table-features {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.table-features thead th {
  background: #F8F9FA;
  border-bottom: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
}

.table-features tbody td {
  vertical-align: middle;
  padding: 1rem;
  border-top: 1px solid #f1f3f5;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.table-features tbody tr:hover td {
  background-color: #FDF1F1;
}

.table-features .info-icon {
  color: #AF0E1A;
  margin-left: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.table-features .info-icon:hover {
  transform: scale(1.2);
}

.feature-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.table-features tbody tr:last-child td {
  border-top: 1px solid #f1f3f5;
  border-bottom: none;
}

.text-success {
  color: #147C60 !important;
}

.text-danger {
  color: #AF0E1A !important;
}

.table-responsive {
  border-radius: 16px;
  overflow-x: auto;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  #features h2 {
    font-size: 2rem;
  }

  .table-features thead th,
  .table-features tbody td {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .feature-icon {
    font-size: 1.1rem;
  }
}

/* === Feature Icons (Check/Cross) === */
.feature-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.feature-icon.text-success {
  color: #147C60;
}

.feature-icon.text-danger {
  color: #AF0E1A;
}

.animated-icon:hover {
  transform: scale(1.2) rotate(2deg);
  opacity: 1;
}

/* Optional: animate on page load with slight delay */
.animated-icon {
  animation: fadeZoomIn 0.6s ease-in-out;
}

@keyframes fadeZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.85;
  }
}
/* === ADVANCED OPTIONS COLLAPSIBLE === */
details.advanced-options {
  margin-top: 2rem;
  border: 1px solid #E9ECEF;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background-color: #FAFAFA;
}

.advanced-options summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  color: #AF0E1A;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary:after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  line-height: 1.2;
}

.advanced-options[open] summary:after {
  content: "–";
}

.advanced-options .form-check,
.advanced-options .form-label,
.advanced-options .form-select,
.advanced-options .form-control {
  margin-bottom: 1rem;
}

.advanced-options .form-select:focus,
.advanced-options .form-control:focus {
  border-color: #AF0E1A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* Additional spacing utilities */
.mb-4 {
  margin-bottom: 2rem !important;
}

#routeForm .form-label {
  font-weight: 600;
}

#routeForm .form-control:focus {
  border-color: #AF0E1A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

#routeForm .input-group-text.drag-handle {
  background-color: #f8f9fa;
  cursor: move;
}

#routeForm .btn-outline-danger.remove-address {
  border-radius: 0 0.375rem 0.375rem 0;
}

.card .card-header {
  background-color: #f9f9f9;
  font-weight: 600;
  font-size: 1.1rem;
}

.card .card-body {
  background-color: #fff;
}

#saveJourneyBtn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
}

.modal-content {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

#map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
}

.adp, .adp table, .adp button {font-family: inherit !important; width: 100% !important;}

/* Custom Toast Styling */
.save-toast {
  background-color: #e7fbee; /* Light green background similar to your alert-success */
  color: #20744a;            /* Darker green for text */
  border: 1px solid #c3e6cb;
  border-radius: 12px;
}

.save-toast-header {
  background-color: #d4f0dc; /* A slightly lighter shade for the header */
  color: #20744a;
  border-bottom: 1px solid #c3e6cb;
}

.save-toast-body {
  font-size: 1rem;
  font-weight: 500;
}

.form-check-label i {
  transition: transform 0.2s ease;
}

.form-check-input:checked + .form-check-label i {
  transform: scale(1.2);
  opacity: 0.95;
}
.preference-card {
  display: flex;
  align-items: center;
  background-color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.preference-card:hover {
  background-color: #fffaf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.preference-card i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: #AF0E1A;
}

.preference-card label {
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.optional-badge {
  background-color: #FDE9E9;
  color: #d9534f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  margin-left: 0.5rem;
}

.pro-tip {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: block;
}

.stat-icon {
  font-size: 1.75rem;
  margin-right: 0.75rem;
  min-width: 2rem;
  display: inline-block;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.975rem;
}

.stat-block div {
  line-height: 1.4;
}

.leg-card {
  border-radius: 16px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.leg-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.leg-card .card-body {
  padding: 1.5rem;
}

@media (max-width: 576px) {
  .stat-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-block .stat-icon {
    margin-bottom: 0.5rem;
  }
}

/* Enhanced Journey Card Styling */
.journey-card .card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  background: #fff;
  }
  
  .journey-card .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  }
  
  .journey-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #AF0E1A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  }
  
  .journey-card .card-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  }
  
  .journey-card ol {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  }
  
  .journey-card small.text-muted {
  font-size: 0.875rem;
  color: #6c757d;
  }
  
  /* Button Styling */
  .journey-card .btn-sm {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  }
  
  /* Dropdown Menu */
  .journey-card .dropdown-menu {
  border-radius: 12px;
  font-size: 0.9rem;
  min-width: 8rem;
  }
  
  /* Tag Pills */
  .journey-card .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 50px;
  background-color: #F0F0F0;
  color: #333;
  }
  
  /* Travel Mode Icon Enhancements */
  .travel-mode-icon {
  margin-right: 0.35rem;
  font-size: 1rem;
  vertical-align: middle;
  }
  
  .travel-mode-driving::before { content: "\f5e4"; } 
  .travel-mode-walking::before { content: "\f554"; } 
  .travel-mode-bicycling::before {content: "\f206";} 
  .travel-mode-transit::before { content: "\f207"; } 
  
  /* Responsive tweaks */
  @media (max-width: 768px) {
  .journey-card .card-body {
  padding: 1rem;
  }
  .journey-card .btn-sm {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  }
  .journey-card .card-footer {
  flex-direction: column;
  align-items: stretch;
  }
  }
  
  /* Travel Mode Badge Colors */
  .badge-driving { background-color: #AF0E1A; color: white; }
  .badge-walking { background-color: #147C60; color: white; }
  .badge-transit { background-color: #6C757D; color: white; }
  .badge-bicycling { background-color: #FFD166; color: black; }
  
  /* No Journey Alert Enhancements */
  .no-journey-cta {
  background: #fef9f9;
  border: 1px solid #f8d7da;
  padding: 1.5rem;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #842029;
  margin-top: 2rem;
  }
  
  .no-journey-cta a.btn {
  margin-top: 0.75rem;
  }
  
  /* ======================
   Community Page Styles
====================== */

.community-header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.community-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-transform: capitalize;
}

.community-header .lead {
  font-size: 1.125rem;
  color: #6C757D;
  text-transform: capitalize;
}

.journey-card .badge {
  background-color: #F0F0F0;
  color: #333;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 50px;
  display: inline-block;
}

.journey-card .btn-sm:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.no-journey-cta {
  background: #fef9f9;
  border: 1px solid #f8d7da;
  padding: 1.5rem;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #842029;
  margin-top: 2rem;
  text-align: centre;
}

.top-contributors img,
.recent-comments img {
  border: 2px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tag-badges span {
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .top-contributors,
  .recent-comments {
    flex-direction: column;
  }
}

.recent-comments .card {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  padding: 1rem;
}

.recent-comments .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.contributor-card {
  border: 1px solid #eee;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
  background: #fff;
}

.contributor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.contributor-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

@media (max-width: 576px) {
  .contributor-card {
    padding: 1.25rem 1rem;
  }
}
.top-contributor-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: #FFD700;
  color: #fff;
  padding: 0.4rem;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  font-size: 1.1rem;
  z-index: 1;
}

.top-contributor-badge i {
  color: #fff;
}
.top-contributor-badge:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* === Journey Cards === */
.journey-card .card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  background: #fff;
}

.journey-card .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.journey-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #AF0E1A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journey-card .card-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.journey-card ol {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.journey-card small.text-muted {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Button Styling */
.journey-card .btn-sm {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Dropdown Menu */
.journey-card .dropdown-menu {
  border-radius: 12px;
  font-size: 0.9rem;
  min-width: 8rem;
}

/* Tag Pills */
.journey-card .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 50px;
  background-color: #F0F0F0;
  color: #333;
}

/* Travel Mode Icon Enhancements */
.travel-mode-icon {
  margin-right: 0.35rem;
  font-size: 1rem;
  vertical-align: middle;
}

.travel-mode-driving::before { content: "\f5e4"; } 
.travel-mode-walking::before { content: "\f554"; } 
.travel-mode-bicycling::before {content: "\f206";} 
.travel-mode-transit::before { content: "\f207"; } 

/* Responsive tweaks */
@media (max-width: 768px) {
  .journey-card .card-body {
    padding: 1rem;
  }
  .journey-card .btn-sm {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .journey-card .card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Travel Mode Badge Colors */
.badge-driving { background-color: #AF0E1A; color: white; }
.badge-walking { background-color: #147C60; color: white; }
.badge-transit { background-color: #6C757D; color: white; }
.badge-bicycling { background-color: #FFD166; color: black; }

/* No Journey Alert Enhancements */
.no-journey-cta {
  background: #fef9f9;
  border: 1px solid #f8d7da;
  padding: 1.5rem;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #842029;
  margin-top: 2rem;
}

.no-journey-cta a.btn {
  margin-top: 0.75rem;
}


.profile-header {
  background: linear-gradient(120deg, #FFF0F0 0%, #F0FBFB 100%);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.profile-details h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.profile-details p {
  font-size: 1rem;
  color: #6C757D;
  margin-bottom: 0.5rem;
}

.profile-details .text-muted {
  font-size: 0.9rem;
}
#follow-button-container .btn {
  border-radius: 12px;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
}
.follower-card {
  text-align: center;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.follower-card:hover {
  transform: translateY(-4px);
}

.follower-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
/* Dash */
.activity-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.activity-row a {
  font-weight: 500;
  color: #1A1A1A;
}
.activity-row a:hover {
  color: #AF0E1A;
}

.stat-icon i {
  color: #AF0E1A;
  transition: transform 0.3s ease;
}

.stat-icon i:hover {
  transform: scale(1.1);
}
/* Fade-out effect */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* PAGINATION RESET */
.pagination {
  margin-top: 2rem;
  justify-content: center;
  gap: 0.5rem;
}

/* ALL PAGE LINKS */
.page-link {
  color: #AF0E1A;
  background-color: #fff;
  border: 1px solid #AF0E1A;
  border-radius: 12px !important;
  padding: 0.5rem 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* HOVER EFFECT */
.page-link:hover {
  background-color: var(--brand-red);
  box-shadow:0 4px 12px var(--brand-red-light);
  color: white;
  border-color: #AF0E1A;
  }

/* ACTIVE PAGE */
.page-item.active .page-link {
  background-color: #AF0E1A;
  color: #fff;
  border-color: #AF0E1A;
  box-shadow: 0 6px 18px var(--brand-red-light);
}

/* DISABLED STATE */
.page-item.disabled .page-link {
  color: #ccc;
  background-color: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
  pointer-events: none;
}

/* REMOVE ODD FIRST/LEFT EDGE EFFECT */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
  border-radius: 12px !important; /* keep consistent */
}

/* Accordion */
      /* Wrapper for the entire accordion to space it out a bit. */
      #faqAccordion {
        margin-top: 1.5rem;
      }

      /* The outer container of each FAQ item */
      .accordion-item {
        border: none; /* Remove default border */
        border-radius: 0.5rem; /* Rounded corners */
        border: 1px solid #ddd; /* Light grey border */
        overflow: hidden; /* So corners remain rounded */
        margin-bottom: 1rem; /* Spacing between each item */
      }

      /* Accordion header button */
      .accordion-header .accordion-button {
        background-color: #f9f9f9; /* Light grey background */
        font-weight: 600;          /* Slightly bolder text */
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 0;          /* Flatten corners so they match the outer container */
      }

      /* When the accordion is expanded (not collapsed) */
      .accordion-header .accordion-button:not(.collapsed) {
        color: #fff;               /* White text */
        background-color:#AF0E1A; /* Bootstrap primary, or your brand colour */
        box-shadow: inset 0 -1px 5px rgba(0,0,0,0.15);
      }

      /* Remove focus ring if you prefer a cleaner look */
      .accordion-button:focus {
        box-shadow: none;
      }

      /* The inner body of each FAQ item */
      .accordion-body {
        background-color: #fff;
        padding: 1rem 1.25rem;
        color: #555;
      }
/* Features Page */
@media (max-width: 576px) {
  /* Hide the table header on small screens */
 #all-features .table.table-features thead {
    display: none;
  }
  /* Make each row a “card” */
  #all-features .table.table-features tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
  }
  #all-features .table.table-features tbody tr td {
    display: block;
    width: 100%;
    border: none;
  }
  /* Give the first TD (the "Feature" column) some emphasis */
  #all-features  .table.table-features tbody tr td:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* optional styling to differentiate */
  }
  /* For the second TD, you could tweak spacing or font-size if you like */
  #all-features .table.table-features tbody tr td:last-child {
    color: #555;
  }
  /* If you want to style the “info circle” icon differently, do it here */
  #all-features .table.table-features tbody tr td:first-child .fa-info-circle {
    margin-left: 0.25rem;
  }
}

.story-section {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 0.5rem;
}
