/* =========================
   TOKENS / BASE
======================== */
:root {
  --font-heading: "Signika", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --tfi-green: #008540; /* R0 G166 B81 change to present green for WCAG score improvement (4.74:1) */
  --tfi-blue: #1d4d71;
  --tfi-teal: #00a69d; /* #00A89B change to present teal to improve WCAG score (3.03:1) */
  --tfi-yellow: #fcaf17;
  --tfi-lime: rgb(215, 223, 35);
  --tfi-green-tint: rgb(180, 221, 192);
  --tfi-blue-tint: rgb(185, 204, 218);
}

body {
  margin: 0;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden !important;
  color: var(--tfi-blue);
}

p, li, td {
  font-weight: 500;
}

h1,
h2,
h3,
nav,
button {
  font-family: var(--font-heading);
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

/* =========================
   COOKIE BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border-top: 4px solid var(--tfi-green);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__content h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--tfi-blue);
}

.cookie-banner__content p {
  margin: 0;
  color: #222;
  line-height: 1.6;
  font-size: 0.98rem;
  max-width: 780px;
}

.cookie-banner__policy {
  margin-top: 0.75rem !important;
  font-size: 0.92rem;
}

.cookie-banner__policy a {
  color: var(--tfi-blue);
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner__policy a:hover {
  color: var(--tfi-green);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn--primary {
  background: var(--tfi-green);
  color: #fff;
}

.cookie-btn--secondary {
  background: var(--tfi-blue);
  color: #fff;
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--tfi-blue);
  border: 1px solid rgba(29, 77, 113, 0.28);
}

.cookie-preferences {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.cookie-option input {
  accent-color: var(--tfi-green);
}

.cookie-btn:focus-visible,
.cookie-option input:focus-visible,
.footer-cookie-link:focus-visible {
  outline: 3px solid var(--tfi-yellow);
  outline-offset: 3px;
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* =========================
   COOKIE BANNER RESPONSIVE
========================= */
@media (max-width: 900px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    padding: 1rem 0.9rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-preferences {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   STICKY HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 200ms ease-in-out;
  border-radius: 0 0 20px 20px;
}

header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =========================
   NAV
========================= */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.nav-logo {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav a {
  color: var(--tfi-blue);
  text-decoration: none;
  font-size: 1.5rem;
}

.active {
  border-bottom: 2.5px dashed var(--tfi-blue);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 1rem;
  font-weight: 500; /* improve WCAG score by increasing contrast of text against bg */
}

.nav-menu a {
  color: var(--tfi-blue);
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  line-height: 0;
}

.nav-icon img {
  width: 2rem;
  height: 2rem;
  transition: transform 200ms ease-in-out;
}

.nav-icon img:hover {
  transform: scale(1.1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropbtn {
  background: transparent;
  border: 0;
  color: var(--tfi-blue);
  font: inherit;
  font-size: 1.5rem;
  padding: 0.35rem 0;
  line-height: 1.2;
  cursor: pointer;
  margin: 0;
}

.nav-dropdown-menu a {
  color: var(--tfi-blue);
  text-decoration: none;
}

.nav-caret {
  display: inline-block;
  transition: transform 200ms ease;
}

.nav-dropbtn[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {

  .nav-dropdown:hover .nav-caret,
  .nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
  }
}

/* =========================
   ACCESSIBILITY
========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================
   HAMBURGER
========================= */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--tfi-blue);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--tfi-blue);
  transition: transform 200ms ease, top 200ms ease, opacity 200ms ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* =========================
   IRISH SWITCH
========================= */
.lang-tab {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  z-index: 9999;
  padding: 12px 14px;
  background: var(--tfi-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.lang-tab:hover,
.lang-tab:focus-visible {
  filter: brightness(0.95);
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: var(--tfi-blue);
}

/* =========================
   HERO / SLIDESHOW
========================= */
.hero {
  background: var(--tfi-teal);
}

.hero button {
  padding: 0.7rem 1.2rem;
  background: var(--tfi-green);
  color: #fff;
  border: none;
}

.slideshow-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  height: clamp(260px, 40vw, 575px);
}

.mySlides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2200ms ease;
}

.mySlides.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mySlides.is-initial {
  transition: none;
}

.hero-slide {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: var(--tfi-blue);
}

/* Hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: 5;
  pointer-events: none;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.35) 38%,
      rgba(0, 0, 0, 0) 70%);
}

.hero-overlay__panel {
  position: relative;
  pointer-events: auto;
  max-width: min(520px, 92vw);
  color: #fff;
  padding: clamp(1.25rem, 2.8vw, 1.85rem);
  border-radius: 20px;
  background: rgb(0 143 134 / 50%);
  border: 5px dashed rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  margin-left: clamp(0rem, 6vw, 4.5rem);
}

.hero-overlay__kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.hero-overlay__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

.hero-overlay__text {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.5;
}

.hero-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease-in-out, filter 160ms ease,
    background-color 160ms ease, border-color 160ms ease;
}

.hero-btn--primary {
  background: var(--tfi-green);
  color: #fff;
}

.hero-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.4);
}

.hero-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .hero-overlay {
    align-items: flex-end;
  }

  .hero-overlay__panel {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-overlay {
    padding: 0.6rem;
  }

  .hero-overlay__panel {
    max-width: 260px;
    padding: 0.7rem 0.8rem;
    border-width: 2px;
    border-radius: 14px;
    margin: auto;
  }

  .hero-overlay__kicker {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
  }

  .hero-overlay__title {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    text-align: center;
  }

  .hero-overlay__text {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
  }

  .hero-overlay__actions {
    gap: 0.4rem;
    justify-content: center;
  }

  .hero-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .trip-actions .hero-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .hero-overlay__panel {
    max-width: 240px;
  }

  .hero-overlay__text {
    display: none;
  }
}

/* =========================
   CARDS
========================= */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 1rem;
}

.card {
  border-radius: 18px;
  overflow: hidden;
  color: var(--tfi-blue);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-color 180ms ease;
}

.card-link {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.25rem 0.9rem 0.95rem;
  color: inherit;
  text-decoration: none;
  min-height: 78px;
  height: 100%;
}

.card-main {
  min-width: 0;
  flex: 1;
  padding: 0.5rem;
}

.card-link h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}

.h3-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.card-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--tfi-blue);
}

.card-desc {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--tfi-blue);
  opacity: 0.82;
}

.card-chevron {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  color: var(--tfi-blue);
  opacity: 0.55;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.card-link:focus-visible {
  outline: 3px solid var(--tfi-teal);
  outline-offset: -3px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .card-link {
    transition: none;
  }
}

/* =========================================
   WHO WE ARE — SPLIT 
========================================= */
.home-gradient-band{
  background: linear-gradient(
    -4deg,
    rgba(29,77,113, 1) 0%,
    rgba(0,166,81, 0.45) 38%,
    #fff 80%
  );
  overflow: hidden;
}

.home-gradient-band .info-cards,
.home-gradient-band .who-we-are{
  background: transparent;
}

.who-we-are.who-split{
  color: var(--tfi-blue);
  padding: clamp(2rem, 5vw, 6rem) 1rem;
  position: relative;
  overflow: hidden;
}

.who-inner{
  width: min(1100px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.who-split__wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; 
  gap: 2rem;
  align-items: stretch; 
}

.who-copy{
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.who-title{
  margin: 0 0 1.5rem;
  font-size: 2rem;
}

.who-text{
  margin: 0 0 .85rem;
  line-height: 1.65;
  max-width: 70ch;
}

/* Inline span-style links */
.who-link{
  color: var(--tfi-blue);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.who-link span{
  font-weight: 700;
}

.who-link:hover{
  color: #fff;
}

/* Map Card */
.who-we-are .map-card{
  margin: 0;
  position: relative;
  border-radius: 30px;
  padding: 1.1rem;
  border: 1px solid rgba(29,77,113,.12);
  background: linear-gradient(135deg,
      rgb(0, 166, 81) 0%,
      rgb(0, 150, 74) 55%,
      rgb(0, 135, 67) 100%);
  box-shadow: 0 1.1rem 2.2rem rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
  overflow: hidden;
  min-height: 320px;
}

.who-copy,
.who-we-are .map-card{
  min-width: 0;
}

.map-img{
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px) scale(.985);
}

.who-we-are.is-visible .map-img{
  animation: mapFadeIn .7s ease-out forwards;
}

@keyframes mapFadeIn{
  from{
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* stylised route lines overlay */
.map-routes{
  position:absolute;
  inset: 0;
  z-index: 3;
  opacity: .35;
  background:
    radial-gradient(circle at 30% 45%, rgba(29,77,113,.9) 0 1px, transparent 2px) 0 0/18px 18px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0 13%, transparent 78%);
}

/* Pins */
.pin{
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 2px solid rgba(29,77,113,.45);
  box-shadow: 0 .6rem 1rem rgba(0,0,0,.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  transform: translateY(-90px) scale(.92);
}

.pin::before{
  content: "";
  position: absolute;
  inset: -10px;
}

.pin-dot{
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--tfi-yellow);
  animation: pinPulse 1.8s ease-in-out infinite;
}

@keyframes pinPulse{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.4); opacity: .55; }
}

.pin--l{ top: 41%; left: 43%; }
.pin--w{ top: 42%; left: 51%; }
.pin--r{ top: 45%; left: 56%; }

/* Tooltip */
.pin-tooltip{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  background: rgba(29,77,113,.96);
  color: #fff;
  padding: .45rem .7rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 .6rem 1rem rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.pin-tooltip::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(29,77,113,.96) transparent transparent transparent;
}

.pin:hover .pin-tooltip,
.pin:focus-visible .pin-tooltip,
.pin:active .pin-tooltip{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pin:focus-visible{
  outline: 3px solid rgba(252,175,23,.8);
  outline-offset: 4px;
}

.map-arrow{
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: 110px;
  height: auto;
  opacity: 0;
  transform: translateY(-70px) rotate(-14deg) scale(.92);
}

.map-arrow--westmeath{
  top: 32%;
  left: 57%;
}

.map-office{
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: 58px;
  height: auto;
  top: 36%;
  left: 81%;
  opacity: 0;
  transform: translateY(-55px) scale(.9);
}

.who-we-are.is-visible .pin{
  animation: pinDrop 1s cubic-bezier(.22, .9, .32, 1) forwards;
}

.who-we-are.is-visible .pin--l{ animation-delay: 1.12s; }
.who-we-are.is-visible .pin--w{ animation-delay: 1.3s; }
.who-we-are.is-visible .pin--r{ animation-delay: 1.48s; }

.who-we-are.is-visible .map-arrow{
  animation: dropArrow .95s cubic-bezier(.22, .9, .32, 1) forwards;
  animation-delay: 1.68s;
}

.who-we-are.is-visible .map-office{
  animation: dropOffice .9s cubic-bezier(.22, .9, .32, 1) forwards;
  animation-delay: 1.9s;
}

@keyframes pinDrop{
  0%{
    opacity: 0;
    transform: translateY(-90px) scale(.95);
  }
  70%{
    opacity: 1;
    transform: translateY(5px) scale(1.02);
  }
  88%{
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dropArrow{
  0%{
    opacity: 0;
    transform: translateY(-70px) rotate(-14deg) scale(.95);
  }
  70%{
    opacity: 1;
    transform: translateY(4px) rotate(-14deg) scale(1.01);
  }
  88%{
    opacity: 1;
    transform: translateY(-1px) rotate(-14deg) scale(1);
  }
  100%{
    opacity: 1;
    transform: translateY(0) rotate(-14deg) scale(1);
  }
}

@keyframes dropOffice{
  0%{
    opacity: 0;
    transform: translateY(-55px) scale(.95);
  }
  70%{
    opacity: 1;
    transform: translateY(4px) scale(1.01);
  }
  88%{
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce){
  .pin,
  .map-arrow,
  .map-office{
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}



@media (max-width: 820px){
  .who-split__wrap{
    grid-template-columns: 1fr;
  }

  .who-we-are.who-split{
    padding: 2rem;
  }

  .who-we-are .map-card{
    min-height: 280px;
  }

  .map-arrow{
    width: 75px;
  }

  .map-arrow--westmeath{
    top: 33%;
    left: 59%;
  }

  .map-office{
    width: 39px;
    top: 37%;
    left: 82%;
  }
}

/* =========================
   STATS 
========================= */
.whats-next {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: var(--tfi-blue);
  overflow: hidden;
}

.next-media {
  position: relative;
  flex: 1 1 52%;
  overflow: hidden;
}

.next-media__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ci-logo-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  width: clamp(120px, 18vw, 230px);
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.next-panel {
  flex: 1 1 48%;
  padding: 35px 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.next-title {
  margin: 0 20px 18px;
  font-size: 26px;
  font-weight: 800;
}

.next-body,
.next-list {
  margin: 0 20px 18px;
  color: #fff;
  line-height: 2rem;
  font-size: 1rem;
}

.next-list {
  padding-left: 18px;
}

.next-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 20px;
}

.stats {
  background: var(--tfi-teal);
  padding: 4rem 2rem;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  color: #fff;
}

.stat {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: center;
}

.stat-icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  height: 100%;
  width: auto;
  max-height: 110px;
  display: block;
}

.stat-text {
  margin: 0;
  line-height: 1.5;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 7ch;
  text-align: center;
  opacity: 0;
  transform: translateY(2px);
}

.stats.is-counting .stat-value {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial {
  background: rgba(252, 175, 23, 0.75);
  padding: 2rem 8rem 7rem;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/images/placeholders/overlay.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: min(765px, 90vw);
  opacity: 0.25;
  mix-blend-mode: multiply;
  filter: saturate(0) contrast(1.1);
}

.testimonial-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonial-title {
  margin: 2.5rem;
  color: var(--tfi-blue);
  font-size: 2.25rem;
}

.testimonial-cards {
  display: grid;
  gap: 2rem;
  justify-content: center;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.t-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 55%, #f2f2f2 100%),
    radial-gradient(120% 90% at 20% 0%, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(140% 100% at 85% 120%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 60%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 -10px 22px rgba(0, 0, 0, .10) inset,
    0 10px 26px rgba(0, 0, 0, .12);
  border: 4px dashed color-mix(in srgb, var(--tfi-yellow) 90%, transparent);
  border-radius: 20px;
  padding: 2.75rem 2.75rem 2.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: var(--tfi-blue);
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* .t-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, .12),
    0 4px 10px rgba(0, 0, 0, .08);
} */

.t-quote {
  margin: 0;
  line-height: 1.75;
}

.t-name {
  margin: .9rem 0 0;
  font-weight: 700;
  opacity: .85;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonial-title {
    margin: 2rem;
    font-size: 2rem;
  }

  .testimonial {
    padding: 2rem 4rem 7rem;
  }

  .testimonial::before {
    background-position: center;
    background-size: min(900px, 130vw);
    opacity: 0.25;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .t-card {
    text-align: center;
    padding: 2rem;
  }
}

/* Feature tiles (mobile-only rules exist below) */
.feature-card {
  width: min(280px, 100%);
}

.feature-tile {
  position: relative;
  padding: 56px 16px 18px;
  border-radius: 12px;
  background: #1f4d6d;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.feature-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgb(0, 167, 157);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.feature-icon img,
.feature-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.feature-title {
  font-size: 18px;
}

@media (max-width: 900px) {
  .whats-next {
    flex-direction: column-reverse;
  }

  .next-panel {
    padding: 50px 16px;
  }

  .ci-logo-badge {
    right: 12px;
    bottom: 12px;
    top: auto;
    width: 130px;
  }

  .next-media {
    min-height: 220px;
  }

  .next-title {
    margin: 0 20px 18px;
    font-size: 24px;
    font-weight: 700;
  }

  .next-body,
  .next-list {
    margin: 0 20px 18px;
    color: #fff;
    line-height: 1.5;
    font-size: .9rem;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 16px 12px 28px;
  }

  .stat {
    flex: 1 1 100%;
  }
}

/* =========================
   ROUTES PAGE
========================= */
.routes-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem;
}

.routes-wrap {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.routes-title {
  margin: 0 0 0.5rem;
}

.routes-intro {
  margin: 0;
  max-width: 100%;
  line-height: 1.6;
  padding-bottom: 1rem;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.service-card-image {
  margin: 0 0 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.service-card-image img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-link-wrap {
  margin: 0.75rem 0 0;
  text-align: center;
}

.service-card-link,
.service-card-link-drt {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--tfi-green);
  font-weight: 700;
  text-decoration: none;
}

.service-card-link {
  padding: 2rem 0 0;
}

.service-card-link:hover,
.service-card-link:focus-visible,
.service-card-link-drt:hover,
.service-card-link-drt:focus-visible {
  color: var(--tfi-teal);
  text-decoration: none;
}

.steps-list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.steps-list li+li {
  margin-top: 0.25rem;
}

.door-to-door p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.door-note {
  padding: 2rem 0 0;
}

.door-note a {
  color: var(--tfi-teal);
  text-decoration: none;
  font-weight: 700;
}

.door-note a:hover,
.door-note a:focus-visible {
  color: var(--tfi-blue);
  text-decoration: none;
}

.areas-intro {
  margin: 0 0 0.9rem;
  line-height: 1.55;
}

.areas-grid {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.area-card {
  background: rgba(0, 166, 81, 0.08);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.area-card h3 {
  margin: 0 0 0.35rem;
}

.area-card p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--tfi-green);
  font-weight: 700;
  text-decoration: none;
}

.area-link:hover,
.area-link:focus-visible {
  color: var(--tfi-teal);
  text-decoration: none;
}

.routes-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.routes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--tfi-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.routes-btn:hover,
.routes-btn:focus-visible {
  background: var(--tfi-blue);
}

.routes-btn--alt {
  background: #fff;
  color: var(--tfi-blue);
  border-color: rgba(29, 77, 113, 0.25);
}

.routes-btn--alt:hover,
.routes-btn--alt:focus-visible {
  background: rgba(29, 77, 113, 0.08);
  color: var(--tfi-blue);
}

@media (min-width: 900px) {
  .service-card-image img {
    height: 180px;
  }

  .service-cards {
    flex-direction: row;
    align-items: stretch;
  }

  .service-card {
    flex: 1;
  }

  .areas-grid {
    flex-direction: row;
  }

  .area-card {
    flex: 1;
  }
}

/* =========================
   COUNTY IMAGE + LIGHTBOX
========================= */
.area-image {
  margin: 0 0 0.75rem;
}

.image-zoom-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.image-zoom-btn img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 200ms ease;
}

.image-zoom-btn:hover img,
.image-zoom-btn:focus-visible img {
  transform: scale(1.02);
}

.image-zoom-btn:focus-visible {
  outline: 3px solid var(--tfi-teal);
  outline-offset: 2px;
}

.area-image figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--tfi-blue);
  opacity: 0.8;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  max-height: 88vh;
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.image-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 1rem);
  object-fit: contain;
  border-radius: 10px;
  background: #f5f5f5;
}

.image-lightbox__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tfi-blue);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: #fff;
  outline: 3px solid var(--tfi-teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .image-zoom-btn img {
    transition: none;
  }
}

/* =========================
   JOURNEY PLANNER CARD
========================= */
.journey-card {
  width: min(100%, 680px);
  margin: 1rem auto 6rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg,
      rgb(0, 166, 81) 0%,
      rgb(0, 150, 74) 55%,
      rgb(0, 135, 67) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.journey-card-link {
  display: block;
  padding: 0.9rem;
  border-radius: 14px;
  color: #082d49;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.journey-card-link h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  text-align: center;
  color: #082d49;
}

.journey-card-link p {
  margin: 0 0 0.8rem;
  text-align: center;
  line-height: 1.45;
  color: #082d49;
}

.journey-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tfi-blue);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.journey-card-cta:hover,
.journey-card-cta:focus-visible {
  background: #fff;
  text-decoration: none;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.journey-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.journey-links a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #082d49;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.journey-links a:hover,
.journey-links a:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  text-decoration: none;
  outline: none;
}

@media (max-width: 768px) {
  .journey-card {
    width: 80%;
    margin: auto;
    border-radius: 22px;
    padding: 0.6rem;
    margin-bottom: 5rem;
  }

  .journey-card-link {
    padding: 0.8rem;
  }

  .journey-card-link p,
  .journey-links a {
    font-size: 0.95rem;
  }
}

/* =========================
   TIMETABLE PAGE
========================= */
.timetable-page {
  color: var(--tfi-blue);
  padding: 1rem 1rem 2rem;
}

.timetable-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tt-switch-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tt-switch-btn {
  min-height: 44px;
  border: 1px solid rgba(29, 77, 113, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--tfi-blue);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 9px rgba(0, 0, 0, 0.18);
}

.tt-switch-btn.is-active {
  background: rgba(0, 166, 81, 0.2);
  border-color: rgba(0, 166, 81, 0.25);
  border-left: 5px solid var(--tfi-green);
  padding-left: calc(0.9rem - 4px);
}

.tt-view {
  display: block;
}

.rrs-table-wrap {
  display: none;
}

.rrs-cards {
  display: grid;
  gap: 2rem;
  margin-top: 0.75rem;
}

.rrs-card {
  background: rgba(0, 166, 81, 0.06);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 5px solid var(--tfi-green);
  border-radius: 12px;
  padding: 0.75rem;
}

.rrs-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--tfi-blue);
}

.rrs-card p {
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.rrs-card .rrs-pdf {
  margin-top: 0.35rem;
}

.rrs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.rrs-filter-btn {
  /* min-height: 40px; */
  padding: 1rem;
  border: 1px solid rgba(29, 77, 113, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--tfi-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.rrs-filter-btn.is-active {
  background: rgba(0, 166, 81, 0.2);
  border-color: rgba(0, 166, 81, 0.28);
}

.rrs-filter-btn:hover,
.rrs-filter-btn:focus-visible {
  background: rgba(0, 166, 81, 0.06);
  border-color: rgba(0, 166, 81, 0.35);
}

.drt-top-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.drt-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.drt-select,
.drt-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--tfi-blue);
  background: #fff;
}

.drt-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drt-days {
  display: none;
}

.drt-results-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.drt-day-heading {
  margin: 0;
  font-size: 1.05rem;
}

.drt-table-wrap {
  display: none;
}

.drt-cards {
  display: grid;
  gap: 0.65rem;
}

.drt-card {
  background: rgba(0, 166, 81, 0.06);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 5px solid var(--tfi-green);
  border-radius: 12px;
  padding: 0.75rem;
}

.drt-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.drt-card-route {
  margin: 0;
  font-size: 1rem;
}

.drt-card-frequency {
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(29, 77, 113, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.drt-card-area {
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.drt-card-meta {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.drt-empty {
  margin-top: 0.5rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(29, 77, 113, 0.06);
}

.drt-fare-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #fff;
}

.drt-fare-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  color: var(--tfi-blue);
  font-size: 1.1rem;
}

.drt-fare-list {
  margin: 0;
  padding-left: 1.2rem;
}

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

.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0.45rem 0.75rem;
  border-radius: 18px;
  background: var(--tfi-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 7px 9px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.pdf-btn:hover,
.pdf-btn:focus-visible {
  background: var(--tfi-teal);
  text-decoration: none;
}

.drt-booking-note {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.drt-booking-note p {
  margin: 0;
  line-height: 1.45;
  color: var(--tfi-blue);
  font-size: 0.95rem;
}

.drt-booking-note a {
  color: var(--tfi-green);
  font-weight: 700;
  text-decoration: none;
}

.drt-booking-note a:hover,
.drt-booking-note a:focus-visible {
  color: var(--tfi-blue);
  text-decoration: none;
}

@media (min-width: 900px) {
  .tt-switch-buttons {
    flex-direction: row;
  }

  .tt-switch-btn {
    text-align: center;
  }

  .rrs-table-wrap {
    display: block;
    margin-top: 0.75rem;
  }

  .rrs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
  }

  .rrs-table th,
  .rrs-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
  }

  .rrs-table th {
    font-family: var(--font-heading);
  }

  .rrs-cards {
    display: none;
  }

  .drt-mobile-controls {
    display: none;
  }

  .drt-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    align-items: start;
  }

  .drt-days {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #fff;
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 110px;
  }

  .drt-day-btn {
    min-height: 44px;
    border: 1px solid rgba(29, 77, 113, 0.14);
    border-radius: 10px;
    background: #fff;
    color: var(--tfi-blue);
    font: inherit;
    font-weight: 700;
    text-align: left;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
  }

  .drt-day-btn.is-active {
    background: rgba(0, 166, 81, 0.1);
    border-color: rgba(0, 166, 81, 0.3);
    border-left: 4px solid var(--tfi-green);
    padding-left: calc(0.7rem - 3px);
  }

  .drt-results-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .drt-search-wrap {
    width: min(360px, 100%);
  }

  .drt-table-wrap {
    display: block;
  }

  .drt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
  }

  .drt-table th,
  .drt-table td {
    text-align: left;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
  }

  .drt-table th {
    font-family: var(--font-heading);
  }

  .drt-cards {
    display: none;
  }
}

/* Timetable disclaimer */
.tt-disclaimer {
  padding: 3rem;
}

.tt-disclaimer__text {
  color: var(--tfi-blue);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================================
   FARES PAGE
========================================= */
.fare-result {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fare-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fare-result__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fare-box {
  background: rgba(0, 166, 81, 0.06);
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 5px solid var(--tfi-green);
  border-radius: 12px;
  padding: 1rem;
}

.fare-box h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  color: var(--tfi-blue);
}

.fare-box p {
  margin: 0.25rem 0;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .fare-result__grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fare-box {
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 220px;
  }
}

.fares-page{
  color: var(--tfi-blue);
  padding: 2rem 1rem 3rem;
}

.fares-wrap{
  width: min(1100px, 100%);
  margin: 0 auto;
}

.panel{
  background: #fff;
  /* border-radius: 16px; */
  padding: 1.25rem;
  /* box-shadow: 0 6px 18px rgba(0,0,0,0.08); */
}

.fares-hero{
  width: min(1100px, 94%);
  margin: 0 auto;
}

.fares-hero__inner{
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

.fares-hero__copy{
  flex: 1 1 auto;
}

.fares-title{
  margin: 0 0 .5rem;
  font-family: var(--font-heading);
}

.fares-intro{
  margin: 0 0 1rem;
  max-width: 70ch;
}

.fares-hero__chips{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.fares-hero__note{
  flex: 0 0 300px;
}

.mini-title{
  margin: 0 0 .5rem;
  font-family: var(--font-heading);
}

.section-title{
  margin: 0 0 .75rem;
  font-family: var(--font-heading);
}

.muted{ opacity: .9; }

.fares-layout{
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.fares-main{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fares-aside{
  flex: 0 0 320px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fare-filter-wrap {
  background: #fff;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.fare-filter-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  color: var(--tfi-blue);
  font-size: 1.4rem;
}

.fare-filter-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

.fare-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fare-field label {
  font-weight: 600;
  color: var(--tfi-blue);
}

.fare-field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(29, 77, 113, 0.2);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.fare-pdf-action {
  margin-top: 1.5rem;
  text-align: center;
  max-width: 90%;
}

@media (max-width: 768px) {
  .fare-filter-grid {
    grid-template-columns: 1fr;
  }
}

.pay-intro {
  margin: 0 0 1rem;
  line-height: 1.6;
  max-width: 75ch;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.pay-method {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
  background: var(--tfi-blue);
  border-radius: 18px;
  padding: 1rem;
  color: #fff;
  width: 100%;
}

.pay-title {
  margin: 0;
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 600;
}

.pay-method p {
  margin: 0;
  line-height: 1.55;
}

.pay-link {
  max-width: 70ch;
}

.pay-link a {
  text-decoration: none;
  font-weight: 700;
  color: var(--tfi-teal);
}

.pay-link a:hover {
  color: var(--tfi-green);
}

.pay-method--apps {
  width: 100%;
}

.pay-method__copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pay-apps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pay-app {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid rgba(29, 77, 113, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  background: linear-gradient(135deg,
      rgb(0, 166, 81) 0%,
      rgb(0, 150, 74) 55%,
      rgb(0, 135, 67) 100%);
}

.pay-app img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
}

.pay-app__label {
  margin: 0;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.pay-app:hover,
.pay-app:focus-visible {
  transform: translateY(-1px);
}

/* Tablet and desktop */
@media (min-width: 768px) {
  .pay-methods {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .pay-methods > .pay-method:not(.pay-method--apps) {
    flex: 1 1 calc(33.333% - 0.67rem);
    max-width: calc(33.333% - 0.67rem);
  }

  .pay-method--apps {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .pay-method--apps .pay-method__copy {
    flex: 1 1 40%;
    min-width: 220px;
  }

  .pay-apps {
    flex: 1 1 60%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
  }

  .pay-app {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 220px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pay-methods > .pay-method,
  .pay-method--apps,
  .pay-app {
    width: 100%;
    max-width: 100%;
  }

  .pay-app {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .pay-method,
  .pay-app {
    padding: 0.85rem;
  }

  .pay-app img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
}
.callout{
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(29,77,113,0.06);
  border: 1px solid rgba(29,77,113,0.12);
}

.table-wrap {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(29, 77, 113, 0.14);
  overflow: hidden;
}

.fare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fare-table th,
.fare-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(29, 77, 113, 0.12);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fare-table thead th {
  background: var(--tfi-blue);
  color: #fff;
}

.fare-table tbody tr:nth-child(odd) {
  background: rgba(29, 77, 113, 0.08);
}

.fare-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .fare-table th,
  .fare-table td {
    padding: 0.6rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .fare-table th,
  .fare-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

.filters-row{
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-top: .75rem;
}

select{
  width: 100%;
  border: 1px solid rgba(29,77,113,0.25);
  border-radius: 12px;
  padding: .65rem .75rem;
  font: inherit;
  color: var(--tfi-blue);
  background: #fff;
}

.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .65rem .9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-heading);
  cursor: pointer;
}

.btn--solid{
  background: var(--tfi-green);
  color: #fff;
}

.link-list{
  padding-left: 1.1rem;
  margin: .75rem 0 0;
  line-height: 1.75rem;
}
.link-list a{
  color: var(--tfi-blue);
  text-decoration: none;
}
.link-list a:hover{
  color: var(--tfi-teal);
}

@media (max-width: 980px){
  .fares-hero__inner{ flex-direction: column; }
  .fares-hero__note{ flex: 1 1 auto; }

  .fares-layout{ flex-direction: column; }
  .fares-aside{ position: static; width: 100%; flex: 1 1 auto; }
  .pay-grid{ grid-template-columns: 1fr; }
}

/* =========================================
   DISCOVER TRIPS
========================================= */
.discover-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem;
}

.discover-wrap {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero / intro panel */
/* .discover-hero {
  background: #fff;
  padding: 2rem 1rem 2rem;
  width: min(1100px, 90%);
  margin: 0 auto;
  border-radius: 12px;
}

.discover-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discover-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
} */
.discover-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem;
  background:
    linear-gradient(
      135deg,
      rgba(29, 77, 113, 0.96) 0%,
      rgba(0, 166, 157, 0.88) 45%,
      rgba(0, 133, 64, 0.9) 100%
    ),
    url("../assets/images/discover-trips-hero.webp") center/cover no-repeat;
  color: #fff;
  overflow: visible;
}

.discover-hero__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.discover-hero__content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.discover-hero__cluster {
  position: relative;
  min-height: 400px;
  z-index: 2;
}

.cluster-img {
  position: absolute;
    width: clamp(180px, 24vw, 300px);
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  border: 4px dashed rgba(255, 255, 255, 0.85);
}

.cluster-img--top {
  top: 4px;
  right: 5%;
  transform: rotate(10deg);
}

.cluster-img--middle {
  top: 95px;
  left: -12%;
  transform: rotate(-5deg);
}

.cluster-img--bottom {
  bottom: -22px;
  right: 20%;
  transform: rotate(3deg);
}

.discover-hero .eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.discover-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.discover-hero p {
  max-width: 60ch;
  line-height: 1.7;
}

@media (min-width: 821px) and (max-width: 1024px) {
  .discover-hero__cluster {
    min-height: 320px;
    max-width: 420px;
  }

  .cluster-img {
    width: clamp(180px, 22vw, 240px);
    aspect-ratio: 16 / 10;
  }

  .cluster-img--top {
    top: 0;
    right: 4%;
    transform: rotate(4deg);
  }

  .cluster-img--middle {
    top: 78px;
    left: -5%;
    transform: rotate(-4deg);
  }

  .cluster-img--bottom {
    top: 195px;
    right: 12%;
    bottom: auto;
    transform: rotate(2deg);
  }
}

@media (max-width: 900px) {
  .discover-hero {
    min-height: auto;
    padding: 2.5rem 1rem 3rem;
  }

  .discover-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .discover-hero__content {
    max-width: 100%;
  }

  .discover-hero__cluster {
    min-height: 250px;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }

  .cluster-img {
    width: 190px;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .cluster-img--top {
    top: 0;
    right: 8px;
    transform: rotate(4deg);
    z-index: 3;
  }

  .cluster-img--middle {
    top: 52px;
    left: 0;
    transform: rotate(-4deg);
    z-index: 2;
  }

  .cluster-img--bottom {
    top: 118px;
    right: 24px;
    bottom: auto;
    transform: rotate(2deg);
    z-index: 1;
  }
}

@media (max-width: 520px) {
  .discover-hero {
    padding: 2.25rem 1rem 2.75rem;
  }

  .discover-hero__cluster {
    min-height: 230px;
    max-width: 300px;
  }

  .cluster-img {
    width: 170px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .cluster-img--top {
    top: 0;
    right: 0;
  }

  .cluster-img--middle {
    top: 46px;
    left: 0;
  }

  .cluster-img--bottom {
    top: 130px;
    right: 40px;
  }
}

.discover-title {
  margin: 0 0 0.5rem;
}

.discover-intro {
  margin: 0;
  max-width: 70ch;
  line-height: 1.6;
}

.discover-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 166, 81, 0.12);
  color: var(--tfi-blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.discover-hero__media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.discover-hero__media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Main content layout */
.discover-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.discover-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discover-aside {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Panels */
.discover-filters {
  padding: 1rem 1.25rem;
  margin: 1rem;
}


.discover-aside .panel {
  background: #fff;
  border-radius: 12px;
  padding: 3rem 1.25rem;
}

/* Filters */
.discover-filters-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field--grow {
  flex: 1 1 auto;
}

.field label {
  font-weight: 700;
}

.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(29, 77, 113, 0.18);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--tfi-blue);
  background: #fff;
}

.filters-meta {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Cards layout */
.discover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Trip cards */
.trip-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trip-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(29, 77, 113, 0.08);
}

.trip-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 4px dashed var(--tfi-blue);
}

.trip-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(29, 77, 113, 0.08);
  color: var(--tfi-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.trip-title {
  margin: 0;
  color: var(--tfi-blue);
  font-size: 1.35rem;
}

.trip-desc {
  margin: 0;
  line-height: 1.55;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Smaller buttons */
.discover-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: auto;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: background 180ms ease, color 180ms ease,
    transform 180ms ease, border-color 180ms ease;
}

.discover-page .btn--solid {
  background: var(--tfi-green);
  color: #fff;
}

.discover-page .btn--solid:hover,
.discover-page .btn--solid:focus-visible {
  background: var(--tfi-blue);
  color: #fff;
}

.discover-page .btn--ghost {
  background: #fff;
  color: var(--tfi-blue);
  border-color: rgba(29, 77, 113, 0.25);
  box-shadow: none;
}

.discover-page .btn--ghost:hover,
.discover-page .btn--ghost:focus-visible {
  background: rgba(29, 77, 113, 0.08);
  color: var(--tfi-blue);
}

.discover-page .btn:hover {
  transform: translateY(-1px);
}

/* Aside content */
.aside-title {
  margin: 0 0 0.75rem;
}

.aside-subtitle {
  margin: 0.25rem 0 0;
}

.tick-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.sep {
  border: none;
  border-top: 3px dashed rgba(29, 77, 113, 0.15);
  margin: 2rem 0;
}

.aside-note,
.muted {
  line-height: 1.55;
}

/* Tablet */
@media (min-width: 768px) {
  .discover-hero__inner {
    flex-direction: row;
    align-items: stretch;
  }

  .discover-hero__copy {
    flex: 1 1 58%;
  }

  .discover-hero__media {
    flex: 1 1 42%;
  }

  .discover-hero__media img {
    height: 100%;
    min-height: 260px;
  }

  .filters-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
  }

  .field {
    flex: 1 1 220px;
  }

  .field--grow {
    flex: 1 1 260px;
  }

  .trip-card {
    width: calc(50% - 0.625rem);
    flex: 0 0 calc(50% - 0.625rem);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .discover-layout {
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem;
  }

  .discover-main {
    flex: 1 1 auto;
  }

  .discover-aside {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .trip-card {
    flex: 0 0 90%;
    margin: auto;
  }

  .trip-actions {
    flex-direction: column;
  }

  .trip-actions .btn,
  .filters-row .btn {
    width: 100%;
  }
}

/* =========================
   FAQ PAGE
========================= */
.faq-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem;
}

.faq-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.faq-header,
.faq-panel,
.faq-aside .news-panel {
  background: #fff;
  padding: 1.25rem;
}

.faq-title {
  margin: 0 0 0.5rem;
  color: var(--tfi-blue);
}

.faq-intro {
  margin: 0;
  line-height: 1.55;
  max-width: 70ch;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(29, 77, 113, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 166, 81, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tfi-blue);
  padding: 1rem;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: rgba(0, 167, 157, 0.08);
  outline: none;
}

.faq-question .faq-icon {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] {
  background: rgba(0, 166, 81, 0.12);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  line-height: 1.6;
  display: grid;
  gap: 0.75rem;
  background: rgba(0, 166, 81, 0.12);
}

.faq-answer p {
  margin: 0;
}

.faq-answer ul {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-answer li {
  margin: 0 0 0.35rem;
}

.faq-answer a {
  color: var(--tfi-blue);
  text-decoration: none;
  font-weight: 700;
}

.faq-answer a:hover {
  color: var(--tfi-teal);
  text-decoration: none;
}

.faq-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.faq-aside .news-links a {
  color: var(--tfi-blue);
  text-decoration: none;
}

.faq-aside .news-links a:hover {
  color: var(--tfi-teal);
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .faq-aside {
    position: sticky;
    top: 100px;
  }
}

/* =========================
   NEWS PAGE
========================= */
.news-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem;
}

.news-wrap {
  max-width: 1100px;
  margin: 0 auto 4rem;
  display: grid;
  gap: 1.5rem;
}

.news-header {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}

.news-title {
  margin: 0 0 0.5rem;
}

.news-intro {
  margin: 0;
  max-width: 70ch;
}

.news-grid {
  display: grid;
  gap: 1.25rem;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}

.news-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.news-tag {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 166, 81, 0.12);
  font-weight: 700;
}

.news-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.news-card-text {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  max-width: 80ch;
}

.news-card-link {
  display: inline-flex;
  font-weight: 800;
  text-decoration: none;
  color: var(--tfi-green);
}

.news-card-link:hover,
.news-card-link:focus-visible {
  text-decoration: none;
  color: var(--tfi-blue);
}

/* .news-panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}

.news-panel-title {
  margin: 0 0 0.75rem;
} */

.news-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.news-links a {
  color: var(--tfi-blue);
  text-decoration: none;
  font-weight: 700;
}

.news-links a:hover,
.news-links a:focus-visible {
  text-decoration: none;
  color: var(--tfi-teal);
}

.news-media {
  margin: 0 0 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tfi-teal);
}

.news-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.news-aside {
  display: none;
}

@media (min-width: 900px) {
  .news-wrap {
    grid-template-columns: 1fr 0.38fr;
    align-items: start;
  }

  .news-header {
    grid-column: 1 / -1;
  }

  .news-aside {
    display: block;
  }
}

/* =========================
   ABOUT PAGE
========================= */

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

.about-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.staff-panel {
  background: var(--tfi-blue-tint);
  border-radius: 18px;
  border: 4px dashed #fff;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.staff-panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--tfi-blue);
}

.office-number {
  margin-bottom: 1.25rem;
}

.office-number a {
  color: var(--tfi-blue);
  text-decoration: none;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.person-card {
  background: #f8fbfc;
  border: 1px solid rgba(29, 77, 113, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.person-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--tfi-blue);
}

.person-role {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--tfi-teal);
}

.person-meta {
  margin: 0;
  color: #444;
  line-height: 1.5;
  font-size: 0.95rem;
}

.person-card a {
  display: block;
  margin-top: 0.35rem;
  text-decoration: none;
  color: var(--tfi-blue);
  word-break: break-word;
}

.person-card a:hover {
  color: var(--tfi-teal);
}

@media (max-width: 768px) {
  .staff-panel {
    padding: 1.1rem;
  }
}

.company-docs {
  margin: 5rem 0 5rem;
}

.company-docs h2 {
  color: var(--tfi-blue);
  margin-bottom: 2rem;
  color: var(--tfi-blue);
  font-size: 2rem;
}

.company-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.doc-card {
  display: block;
  background: var(--tfi-blue);
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--tfi-blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(29, 77, 113, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.doc-card h3 {
  text-align: center;
  font-size: 1.5rem;
}

.doc-card p {
  margin-bottom: 1rem;
  color: #fff;
}

.doc-link {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tfi-yellow);
  font-weight: 700;
  transition: color 0.2s ease;
}

.doc-link__text {
  font-weight: 600;
}

.doc-link img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  display: block;
}

.doc-card:hover .doc-link,
.doc-card:focus-visible .doc-link,
.doc-card:active .doc-link {
  color: var(--tfi-teal);
}

/* =========================
   CONTACT PAGE
========================= */
.contact-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem;
}

.contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-title {
  margin: 0 0 1.25rem;
}

.hours {
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--tfi-blue);
  line-height: 2rem;
}

.hours h2 {
  margin: 0 0 0.75rem;
}

.hours p {
  margin: 0.4rem 0;
}

.hours-note {
  margin-top: 0.9rem;
  max-width: 70ch;
}

.hours-note a {
  text-decoration: none;
  font-weight: 700;
  color: var(--tfi-teal);
}

.hours-note a:hover {
  color: var(--tfi-blue);
}

.contact-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-left {
    flex: 1.2;
  }

  .contact-right {
    flex: 0.8;
  }
}

.map-embed {
  margin-top: 1rem;
  border-radius: 18px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

.contact-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.contact-form form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.btn-primary {
  justify-self: start;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--tfi-green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-primary:hover {
  background: var(--tfi-blue);
  transform: scale(1.03);
}

.hidden-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  line-height: 1.4;
  font-weight: 600;
}

label.checkbox-row input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  display: inline-block;
  flex: 0 0 auto;
}

label.checkbox-row span {
  display: inline;
  flex: 1;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.recaptcha-wrap {
  margin: 1rem 0 1.25rem;
  /* overflow-x: auto; */
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding-top: 1rem;
}

.panel-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  transform: translateY(1px);
}

.map-card {
  background: linear-gradient(135deg,
      rgb(0, 166, 81) 0%,
      rgb(0, 150, 74) 55%,
      rgb(0, 135, 67) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-radius: 30px;
  overflow: hidden;
  color: #082d49;
  padding: 1rem;
  line-height: 1.5rem;
  /* box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.6); */
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.map-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.5);
}

.map-card-link {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  height: 100%;
  transition: filter 200ms ease;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.map-card-link:hover,
.map-card-link:focus-visible {
  background: radial-gradient(circle at bottom right,
      rgb(0, 140, 68) 0%,
      var(--tfi-green) 65%);
}

.map-card-link-office h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  text-align: center;
}

/* =========================================
   PASSENGER POLICY PAGE
========================================= */
.policy-page {
  color: var(--tfi-blue);
  padding: 2rem 1rem 3rem;
}

.policy-hero {
  padding: 1rem 0 2rem;
}

.policy-hero__inner,
.policy-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.policy-hero__inner {
  text-align: center;
}

.policy-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto 1rem;
}

.policy-title {
  margin: 0 0 0.75rem;
  color: var(--tfi-blue);
  font-size: clamp(2rem, 4vw, 3rem);
}

.policy-intro {
  margin: 0 auto;
  max-width: 70ch;
  line-height: 1.6;
}

.policy-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-panel {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  max-width: 90%;
}

.policy-panel h2 {
  margin: 0 0 0.75rem;
  color: var(--tfi-blue);
}

.policy-panel p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.policy-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.policy-list li + li {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .policy-page {
    padding: 1.5rem 0.75rem 2rem;
  }

  .policy-panel {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .policy-list {
    padding-left: 1rem;
  }
}

/* =========================
   FOOTER
========================= */
footer {
  background: linear-gradient(to bottom, var(--tfi-blue) 0%, #0d3656 100%);
  color: #fff;
  padding: 2rem;
  font-family: var(--font-body);
  position: relative;
  padding-top: 2.5rem;
}

.footer-bus {
  position: absolute;
  top: -22px;
  right: clamp(12px, 4vw, 32px);
  width: clamp(64px, 10vw, 120px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  transform: translate3d(calc(120vw + 200px), -55%, 0);
  overflow: hidden;
}

footer.bus-go .footer-bus {
  animation: bus-arrive 1.1s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes bus-arrive {
  to {
    transform: translate3d(0, -55%, 0);
  }
}

.footer-note {
  color: var(--tfi-teal);
  text-decoration: none;
  font-weight: 600;
}

.footer-note:hover {
  color: #fff;
}

.footer-sign {
  position: absolute;
  top: -25px;
  right: 170px;
  transform: translateY(-55%);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* On small screens, shrink a bit */
@media (max-width: 600px) {
  .footer-bus {
    transform: translateY(-45%);
    width: 85px;
    top: -26px;
  }

  .footer-sign {
    top: -18px;
    right: 120px;
    height: 55px;
  }
}

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  padding: 1rem;
}

.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-app-title {
  margin: 0;
}

.footer-app-icons {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  align-items: center;
}

.footer-app-icons img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-app-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--tfi-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.footer-btn:hover,
.footer-btn:focus-visible {
  background: var(--tfi-teal);
  transform: translateY(-1px);
}

.contact-details {
  padding: 1rem;
}

.footer-hours-bottom {
  margin-bottom: 2rem;
}

.footer-hours-top {
  margin-top: 2rem;;
}

.footer-policies {
  display: flex;
  text-align: center;
  gap: 5rem;
  padding: 1rem;
  justify-content: center;
}

.footer-policies a {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0;
  font-weight: 700;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  background: radial-gradient(circle, #ffffff 52%, #d6e2eb 74%, #1d4d71 100%);
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
}

.facebook {
  background: #fff;
  background: radial-gradient(circle, #ffffff 60%, #dfe8ef 78%, #1d4d71 100%);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

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

/* =========================
   THANK YOU PAGE
========================= */
.thankyou-panel {
  max-width: 720px;
  margin: 3rem auto;
  text-align: center;
}

.thankyou-actions {
  margin-top: 2rem;
}

.thankyou-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
}

/* =========================
   ERROR PAGES
========================= */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  background:
    linear-gradient(
      135deg,
      rgba(29, 77, 113, 0.08) 0%,
      rgba(0, 166, 81, 0.08) 100%
    );
}

.error-wrap {
  width: min(720px, 100%);
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(0, 166, 81, 0.18);
  border-left: 6px solid var(--tfi-green);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 2rem;
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 1;
  color: var(--tfi-green);
}

.error-title {
  margin: 0 0 1rem;
  color: var(--tfi-blue);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.error-text {
  margin: 0 auto 1.5rem;
  max-width: 60ch;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.error-links {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;

}

.error-links-title {
  margin: 0 0 0.75rem;
  color: var(--tfi-blue);
  font-size: 1.2rem;
}

.error-links ul {
  list-style: none;
}

.link-list li {
  font-weight: 600;
}

@media (max-width: 768px) {
  .error-wrap {
    padding: 1.5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .routes-btn {
    width: 80%;
    text-align: center;
    margin: 0 auto;
  }

  .error-links {
    max-width: 100%;
    text-align: center;
  }

    .error-links ul {
    padding-left: 0;
    margin: 0;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .lang-tab {
    top: 22%;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-desc {
    font-size: 0.85rem;
  }


  .stats {
    flex-wrap: nowrap;
  }

  .stat-text {
    font-size: 1.2rem;
  }

  .footer-sign {
    top: -22px;
    right: 150px;
  }
}

@media (min-width: 789px) {
  .nav-container {
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    height: 130px;
  }

  .nav-menu {
    align-items: center;
    flex-direction: row;
    padding: 0;
    gap: 1rem;
  }

  .nav-menu a {
    padding: 0;
  }

  .nav-dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 0.5rem;
    z-index: 2000;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 280ms ease, opacity 200ms ease, transform 200ms ease;
  }

  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 1.1rem;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
  }

  .info-cards {
    flex-direction: row;
  }

  .card {
    flex: 1;
  }

  .footer-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .contact-details {
    max-width: 520px;
  }
}

@media (max-width: 788px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .active {
    border-bottom: none;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-icon img {
    width: 3rem;
    height: 3rem;
  }

  .nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 300ms ease, opacity 250ms ease,
      transform 250ms ease, padding 250ms ease;
  }

  .nav-menu.is-open {
    max-height: 800px;
    padding: 0 1rem 1rem;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropbtn {
    width: 100%;
    text-align: left;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 1.35rem;
  }

  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .info-cards {
    padding: 2rem 1rem;
    gap: 0.85rem;
  }

  .card {
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  }

  .card-link {
    padding: 0.85rem 0.9rem;
    min-height: 74px;
  }

  .h3-icon {
    width: 40px;
    height: 40px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-desc {
    font-size: 1rem;
  }

  .map-card {
    padding: 1rem;
    line-height: 1.5rem;
  }

  .lang-tab {
    top: auto;
    bottom: 16px;
    right: 12px;
    transform: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    background: var(--tfi-teal);
  }

  .lang-tab:hover {
    background-color: var(--tfi-blue);
  }

  .prev,
  .next {
    display: none;
  }

  .pdf-btn {
    min-height: 38px;
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    width: 50%;
    margin: auto;
  }

  .tt-disclaimer {
    padding: 2rem;
  }

  .footer-policies {
    gap: 3rem;
  }

  .footer-policies a {
    font-size: 0.75rem;
  }
}