/* ==========================================================
   RailPass — Stylesheet
   Colors sampled from reference design:
   Navy  #011E45 | Orange #FE6701 | Light BG #F8FAFC
   ========================================================== */

:root {
  --navy: #0b1f3a;
  --navy-deep: #011E45;
  --orange: #FE6701;
  --orange-dark: #e35c00;
  --text-dark: #10233f;
  --text-body: #5b6675;
  --text-muted: #8a93a3;
  --bg-light: #f8fafc;
  --border-light: #e7eaf0;
  --white: #ffffff;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(1, 30, 69, 0.06);
  --shadow-lift: 0 16px 40px rgba(1, 30, 69, 0.12);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reveal animation */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(254,103,1,.15);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 8px 24px rgba(254,103,1,.22); transform: translateY(-2px); }
.btn-primary:active { box-shadow: 0 2px 8px rgba(254,103,1,.15); transform: translateY(0); }

.btn-white {
  background: #fff;
  color: var(--navy-deep);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-navy {
  background: var(--navy-deep);
  color: #fff;
}
.btn-navy:hover { background: #05294f; transform: translateY(-2px); }

.btn-outline-navy {
  background: #fff;
  color: var(--navy-deep);
  border-color: var(--border-light);
}
.btn-outline-navy:hover { border-color: var(--navy-deep); transform: translateY(-2px); }

.btn-outline {
  background: #fff;
  color: var(--navy-deep);
  border-color: var(--border-light);
  font-size: 13px;
  padding: 11px 18px;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-ghost {
  background: #fff;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover { border-color: var(--navy-deep); color: var(--navy-deep); }

.btn-nav { padding: 10px 20px; }
.btn-login { border-color: var(--navy, #0a2540); color: var(--navy, #0a2540); background: transparent; }
.btn-login:hover { background: var(--navy, #0a2540); color: #fff; border-color: var(--navy, #0a2540); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(1,30,69,.06); }

.main-nav { display: block; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo { height: 40px; width: auto; max-width: 180px; }

/* Shared API loader: shown only while the website is waiting for live data. */
.railpass-loader {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .9);
  transition: opacity .18s ease, visibility .18s ease;
}
.railpass-loader.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.railpass-loader-mark {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.railpass-loader-mark img {
  width: min(210px, 68vw);
  height: auto;
  animation: railpass-loader-pulse 1.2s ease-in-out infinite;
}
.railpass-loader-track {
  display: block;
  width: 116px;
  height: 3px;
  overflow: hidden;
  background: #d8e0e8;
}
.railpass-loader-track span {
  display: block;
  width: 48%;
  height: 100%;
  background: var(--orange, #fe6701);
  animation: railpass-loader-progress .9s ease-in-out infinite;
}
@keyframes railpass-loader-pulse {
  50% { opacity: .56; transform: scale(.98); }
}
@keyframes railpass-loader-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}
@media (prefers-reduced-motion: reduce) {
  .railpass-loader-mark img,
  .railpass-loader-track span { animation: none; }
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a.active { color: var(--navy-deep); font-weight: 600; }
.main-nav > ul > li > a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
}

.has-dropdown { position: relative; }
.main-nav .dropdown-menu { display: block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s var(--ease);
}
.dropdown-menu li { width: 100%; }
.has-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--navy-deep); }
.dropdown-menu li a.active { color: var(--orange); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Mobile-only menu actions (Login / Book Ticket inside hamburger) */
.nav-mobile-action { display: none; }
.nav-mobile-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 16px;
  transition: background .2s, color .2s;
}
.nav-mobile-login { border: 1.5px solid var(--navy-deep); color: var(--navy-deep); }
.nav-mobile-login:hover { background: var(--navy-deep); color: #fff; }
.nav-mobile-book { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(254,103,1,.2); }
.nav-mobile-book:hover { background: var(--orange-dark); }

.lang-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  color: #fff;
  padding-top: 76px;
  padding-bottom: 100px;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 62%;
}
.hero-slider {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 62%;
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  border-color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,15,35,.55) 0%, rgba(1,20,45,.3) 45%, rgba(1,20,45,.5) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; }

.hero-text { max-width: 700px; }
.hero-text h1 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.journey-card {
    margin-top: 56px;
    margin-bottom: -70px;
    position: relative;
    top: 13rem;
    z-index: 5;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(1, 15, 35, .35);
    padding: 28px 32px 30px;
    max-width: 1186px;
    scroll-margin-top: 130px;
    width: 100%;
    left: 0;
    transform: translateX(50%);
}
@media (max-width: 768px) {
  .journey-card {
    top: 8rem;
    margin-top: 30px;
    margin-bottom: -50px;
    padding: 20px 20px 24px;
    transform: none;
    left: 0;
  }
}
.journey-card h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--navy-deep);
}
.journey-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 16px;
}
@media (min-width: 769px) {
  .journey-form {
    grid-template-columns: 1fr auto 1fr 1fr auto;
    gap: 16px;
  }
}
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.field .pin { width: 13px; height: 13px; }
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border-light);
  background: #eef2f9;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s, background .2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235b6675' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field select:invalid { color: #98a3b3; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  background-color: #fff;
}
.field input::placeholder { color: #98a3b3; }
.field.field-invalid select,
.field.field-invalid input { border-color: #e23744; background: #fff5f5; }

.field-error {
  display: none;
  color: #e23744;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}
.field-error.show { display: block; }

.swap-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform .3s var(--ease), border-color .2s, color .2s;
}
.swap-btn:hover { transform: rotate(180deg); border-color: var(--orange); color: var(--orange); }

.search-btn { white-space: nowrap; padding: 13px 26px; }

#dateField { transition: opacity .3s; }
#dateField .travel-date-note {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
}
.date-input-wrap {
  position: relative;
  width: 100%;
}
#travelDateDisplay,
#travelDateSelect {
  width: 100%;
  border: 1px solid var(--border-light);
  background: #eef2f9;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
#travelDateDisplay {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
#travelDateSelect.date-picker-native {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}
.date-calendar-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  color: var(--text-dark);
  line-height: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
#travelDateSelect.date-picker-native:focus + .date-calendar-icon,
#travelDateSelect.date-picker-native:focus {
  outline: none;
}
.date-input-wrap:focus-within #travelDateDisplay {
  border-color: var(--orange);
  background-color: #fff;
}

/* ==========================================================
    SELECT TRAVEL (journey card, landing page)
    ========================================================== */
.travel-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.travel-section[hidden] { display: none; }
.travel-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.travel-section-head .bar {
  width: 3px;
  height: 16px;
  background: var(--orange);
  border-radius: 2px;
  align-self: center;
}
.travel-section-head h3 {
  font-size: 17px;
  color: var(--navy-deep);
}
.travel-section-head p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.travel-list .train-row { cursor: pointer; }
.travel-list .train-row:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.travel-state {
  text-align: center;
  padding: 26px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.travel-state.is-loading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.travel-state.is-error { color: #e23744; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(254, 103, 1, .25);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: rpSpin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes rpSpin { to { transform: rotate(360deg); } }
.travel-retry {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-deep);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.travel-retry:hover { border-color: var(--orange); color: var(--orange); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about { padding: 210px 0 100px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--orange);
  margin-bottom: 14px;
}

.about-text h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.about-text p { font-size: 15.5px; line-height: 1.8; margin-bottom: 26px; max-width: 520px; }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mv-divider { background: var(--border-light); }
.mv-card { padding: 34px 30px; transition: background .3s; }
.mv-card:hover { background: var(--bg-light); }
.mv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #FFF1E8;
  margin-bottom: 16px;
}
.mv-card h3 { font-size: 17px; margin-bottom: 10px; }
.mv-card p { font-size: 14px; line-height: 1.7; color: var(--text-body); }

/* ==========================================================
   TRAINS / CLASSES
   ========================================================== */
/* ==========================================================
   SEARCH RESULTS
   ========================================================== */
.results { padding: 60px 0 90px; }
.results-banner {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  color: #fff;
  margin-bottom: 34px;
}
.results-crumb { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.results-crumb span { color: #fff; }
.results-route { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.results-route h2 { color: #fff; font-size: 22px; }
.route-line { opacity: .8; }

.results-list {
  border: 1.5px solid rgba(1, 30, 69, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.results-list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.results-list-head .bar { width: 3px; height: 16px; background: var(--orange); border-radius: 2px; }

.train-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: background .25s;
  cursor: pointer;
}
.train-row:last-child { border-bottom: none; }
.train-row:nth-child(odd) { background: var(--bg-light); }
.train-row:nth-child(even) { background: #fff; }
.train-row:hover { background: #eef1f6; }

.train-id { display: flex; align-items: center; gap: 12px; }
.train-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #FFF1E8;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.train-icon-orange { background: #FFF1E8; color: #FE6701; }
.train-icon-green { background: #E4F7EC; color: #1C9A4B; }
.train-icon-blue { background: #E7EEFF; color: #2563EB; }

.train-name-row { display: flex; align-items: center; gap: 10px; }
.train-id strong { font-size: 14.5px; color: var(--navy-deep); }
.train-no { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }

.status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-on-time { background: #E4F7EC; color: #1C9A4B; }
.status-delayed { background: #FDECEC; color: #E23744; }

.train-time { font-size: 13.5px; color: var(--text-body); text-align: left; }
.train-time.right { text-align: right; }
.train-time strong { display: block; font-size: 15px; color: var(--navy-deep); margin-bottom: 2px; }

.train-duration { text-align: center; font-size: 12px; color: var(--text-muted); }
.duration-track {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.duration-line-seg { flex: 1; height: 1px; background: var(--border-light); }
.duration-arrow {
  width: 0; height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
}
.duration-arrow.left { border-right: 5px solid var(--text-muted); }
.duration-arrow.right { border-left: 5px solid var(--text-muted); }
.duration-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.results-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .train-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "id id"
      "from to"
      "duration duration";
    gap: 12px;
    padding: 16px 20px;
  }
  .train-id { grid-area: id; }
  .train-time:first-of-type { grid-area: from; }
  .train-time.right { grid-area: to; text-align: left; }
  .train-duration { grid-area: duration; text-align: left; }
  .duration-track { max-width: 220px; }
  .results-banner { padding: 22px; }
}

.trains { padding: 90px 0; background: var(--bg-light); }

.section-heading.center { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 12px; }
.section-heading p { font-size: 15px; line-height: 1.7; color: var(--text-body); }

.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--navy-deep);
  padding: 6px;
  border-radius: 999px;
  margin: 0 auto 48px;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs { display: flex; justify-content: center; }
@media (max-width: 768px) {
  .tabs {
    justify-content: flex-start;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}
.tab-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  padding: 11px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tab-btn.active { background: #fff; color: var(--navy-deep); font-weight: 600; }
.tab-btn:not(.active):hover { color: #fff; }

.tab-panels { position: relative; }
.tab-panel {
  display: none;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.tab-panel.active { display: grid; animation: panelFade .5s var(--ease); }
@keyframes panelFade { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }

.panel-text h3 { font-size: 24px; margin-bottom: 14px; }
.panel-text p { font-size: 15px; line-height: 1.75; margin-bottom: 22px; }

.check-list { margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  padding-left: 24px;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23011E45'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.panel-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ==========================================================
   APP SECTION
   ========================================================== */
.app-section {
  padding: 100px 0 90px;
  text-align: center;
}
.phone-wrap { max-width: 640px; margin: 0 auto 30px; }
.phone-wrap img { margin: 0 auto; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF1E8;
  color: var(--text-dark);
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.rating strong { color: var(--navy-deep); }

.app-tagline {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.app-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ==========================================================
   NEWS
   ========================================================== */
.news { padding: 90px 0; }
.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.news-heading h2 { font-size: clamp(24px, 3vw, 30px); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(6, 43, 85, 0.12);
  border-color: rgba(255, 107, 0, 0.25);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.news-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.04);
}
.news-card-arrow-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange, #FF6B00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 300ms ease, transform 300ms ease;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
  z-index: 2;
}
.news-card:hover .news-card-arrow-btn {
  opacity: 1;
  transform: scale(1);
}
.news-card-arrow-btn svg { pointer-events: none; }

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.news-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange, #FF6B00);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted, #8a93a3);
}
.news-card-date svg { flex-shrink: 0; }

.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep, #011E45);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body, #5b6675);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange, #FF6B00);
  margin-top: auto;
  transition: gap 300ms ease;
}
.news-card-link svg {
  transition: transform 300ms ease;
}
.news-card-link:hover svg,
.news-card:hover .news-card-link svg {
  transform: translateX(7px);
}

/* Legacy tag/date classes kept for backward compat */
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-orange { background: #FFEEE2; color: var(--orange); }
.tag-blue { background: #E6EEFC; color: #2856C8; }
.tag-purple { background: #F1E9FE; color: #7A3FE0; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding: 90px 0; background: var(--bg-light); }
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}
.accordion-head {
  width: 100%;
  background: none;
  border: none;
  border-left: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: border-color .25s;
}
.accordion-item.active .accordion-head { border-left-color: var(--orange); color: var(--navy-deep); }
.accordion-item:not(.active) .accordion-head { border-left-color: #c7cedb; }
.chev { flex-shrink: 0; color: var(--text-muted); transition: transform .3s var(--ease); }
.accordion-item.active .chev { transform: rotate(180deg); color: var(--orange); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  padding: 0 18px;
}
.accordion-item.active .accordion-body { max-height: 200px; padding: 0 18px 22px; }
.accordion-body p { font-size: 14px; line-height: 1.75; color: var(--text-body); }

/* ==========================================================
   CTA
   ========================================================== */
.cta { padding: 90px 0; }
.cta-inner {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center;
}
.cta-text h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; max-width: 420px; }
.cta-text p { font-size: 14.5px; max-width: 380px; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.cta-buttons { display: flex; gap: 12px; }
.cta-points { display: flex; gap: 22px; flex-wrap: wrap; }
.cta-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--navy-deep); color: #c9d2e0; padding-top: 64px; overflow: visible; }
.site-footer .container { min-width: 0; }
.footer-grid, .footer-strip, .footer-bottom { min-width: 0; }
.footer-brand { min-width: 0; max-width: 100%; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { height: 40px; width: auto; max-width: 220px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #9fb0c8; max-width: 300px; margin-bottom: 22px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .25s, transform .25s;
}
.social-links a:hover { background: var(--orange); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: #9fb0c8; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.strip-label { display: block; font-size: 11px; letter-spacing: 1px; color: #7f8fac; margin-bottom: 6px; }
.footer-strip strong { font-size: 14px; color: #fff; font-weight: 600; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: #8b9bb6; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; color: #8b9bb6; }
.footer-bottom-links a:hover { color: #fff; }

/* ==========================================================
   BACK TO TOP
   ========================================================== */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(1,30,69,.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 90;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--orange); }

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

@media (max-width: 900px) {
  .main-nav { max-height: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, visibility .3s ease; }
  .menu-toggle { display: flex; }
  .lang-select { display: none; }

  /* Header buttons move into the hamburger menu */
  .header-actions .btn-nav { display: none; }
  .main-nav.open .nav-mobile-action { display: block; padding: 6px 24px 2px; }

  .main-nav.open {
    opacity: 1; visibility: visible; max-height: calc(100vh - 60px);
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 30px rgba(1,30,69,.08);
    overflow-y: auto;
    z-index: 300;
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .main-nav.open ul > li { opacity: 0; transform: translateY(-8px); animation: navItemIn .25s ease forwards; }
  .main-nav.open ul > li:nth-child(1) { animation-delay: 0s; }
  .main-nav.open ul > li:nth-child(2) { animation-delay: .04s; }
  .main-nav.open ul > li:nth-child(3) { animation-delay: .08s; }
  .main-nav.open ul > li:nth-child(4) { animation-delay: .12s; }
  .main-nav.open ul > li:nth-child(5) { animation-delay: .16s; }
  .main-nav.open ul > li:nth-child(6) { animation-delay: .2s; }
  .main-nav.open ul > li:nth-child(7) { animation-delay: .24s; }
  .main-nav.open ul > li:nth-child(8) { animation-delay: .28s; }
  @keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }
  .main-nav.open ul > li > a { padding: 14px 24px; width: 100%; }
.main-nav.open .nav-mobile-book { background: var(--orange); color: #fff !important; font-weight: 600; border-radius: 8px; text-align: center; }
  .main-nav.open a.active::after { display: none; }
  .has-dropdown .dropdown-menu {
    position: static; overflow: hidden; max-height: 0; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s ease;
    box-shadow: none; border: none; margin: 0 24px 0; background: var(--bg-light);
    border-radius: 0;
  }
  .has-dropdown.open .dropdown-menu { max-height: 400px; opacity: 1; visibility: visible; }
  .has-dropdown .dropdown-menu li { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
  .has-dropdown.open .dropdown-menu li { opacity: 1; transform: translateY(0); }
  .has-dropdown.open .dropdown-menu li:nth-child(1) { transition-delay: .05s; }
  .has-dropdown.open .dropdown-menu li:nth-child(2) { transition-delay: .1s; }
  .has-dropdown.open .dropdown-menu li:nth-child(3) { transition-delay: .15s; }
  .has-dropdown.open .dropdown-menu li:nth-child(4) { transition-delay: .2s; }
  .has-dropdown.open .dropdown-menu li:nth-child(5) { transition-delay: .25s; }
  .has-dropdown .dropdown-menu li a { padding: 10px 24px; display: block; }
  .has-dropdown .dropdown-chevron { transition: transform .25s ease; display: inline-block; }
  .has-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .tab-panel { grid-template-columns: 1fr; gap: 30px; }
  .tab-panel .panel-img { order: -1; }
  .panel-img img { height: 280px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-strip { grid-template-columns: 1fr; gap: 16px; padding:29px 23px; }
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; padding-bottom: 40px; min-height: unset; }
  .hero-text p { font-size: 15px; }
  .journey-card { padding: 22px 18px; margin-top: 40px; margin-bottom: -60px; }
  .journey-form { grid-template-columns: 1fr; }
  .swap-btn { transform: rotate(90deg); margin: -4px auto; }
  .swap-btn:hover { transform: rotate(270deg); }
  .search-btn { width: 100%; justify-content: center; }

  .about { padding-top: 150px; }

  .mission-vision { grid-template-columns: 1fr; }
  .mv-divider { height: 1px; width: 100%; }

  .news-grid, .blog-grid { grid-template-columns: 1fr; }
  .news-heading { align-items: flex-start; }

  /* --- Footer mobile: brand full-width, link columns side-by-side --- */
  .site-footer { padding-top: 44px;  overflow: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-bottom: 36px; margin-bottom: 0; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-logo { height: auto; max-width: 220px; margin-bottom: 14px; }
  .footer-brand p { font-size: 13.5px; margin-bottom: 18px; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col a { font-size: 13.5px; }

  /* Strip: stacked, label on top, value below (wraps safely) */
  .footer-strip { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 24px; gap: 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-strip > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; overflow: visible; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-strip > div:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-strip > div strong { text-align: left; word-break: break-word; overflow-wrap: anywhere; }
  .strip-label { margin-bottom: 0; font-size: 10.5px; letter-spacing: .6px; }
  .footer-strip strong { font-size: 13px; }

  /* Bottom: stacked, clear of floating back-to-top button */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; padding-bottom: 16px; }
  .footer-bottom-links { gap: 8px 14px; }

  .trips { padding: 60px 0; }
}


/* --- Tablet landscape & below --- */
@media (max-width: 1028px) {
  .main-nav ul { gap: 12px; }
}

@media (max-width: 938px) {
  .main-nav ul { gap: 10px; }
  .main-nav a { font-size: 12.5px; }
  .btn-nav { padding: 7px 14px; font-size: 12px; }
  .header-inner { gap: 12px; }
  .brand-logo { max-width: 140px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { white-space: normal; }
  .hero-text h1 { font-size: 30px; }
  .hero-btns { flex-direction: column; align-self: stretch; }
  .hero-btns .btn { justify-content: center; }
  .tabs { width: 100%; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }
  .cta-inner { padding: 34px 22px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { justify-content: center; }
}
/* ================= Profile menu (logged-in header) ================= */
.profile-menu { position: relative; }
.profile-chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--border, #E7EAF0);
  border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--heading, #0D1B2E);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.profile-chip-btn:hover { border-color: var(--orange, #FE6701); }
.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy, #011E45); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.profile-caret { transition: transform .15s ease; color: #5A6B80; }
.profile-menu.is-open .profile-caret { transform: rotate(180deg); }
.profile-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 220px; background: #fff; border: 1px solid #E7EAF0;
  border-radius: 14px; box-shadow: 0 18px 44px rgba(13,27,46,.14);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.profile-menu.is-open .profile-dropdown { opacity: 1; visibility: visible; transform: none; }
.profile-dropdown-head {
  padding: 10px 12px 12px; border-bottom: 1px solid #EEF1F5; margin-bottom: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.profile-dropdown-head strong { font-size: 14px; color: #0D1B2E; }
.profile-dropdown-head span { font-size: 12px; color: #7A8698; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown a, .profile-dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  font-size: 13.5px; font-weight: 500; color: #33415C; text-decoration: none;
  background: none; border: none; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.profile-dropdown a:hover, .profile-dropdown button:hover { background: #FFF3E8; color: #E45A00; }
.profile-dropdown button:last-child { color: #E23744; }
.profile-dropdown button:last-child:hover { background: #FDECEC; color: #C42B37; }

@media (max-width: 768px) {
  .profile-name, .profile-caret { display: none; }
  .profile-chip-btn { padding: 4px; border: none; }
}

/* ==========================================================
   RESPONSIVE POLISH (all devices)
   ========================================================== */

/* --- Tablet landscape & below --- */
@media (max-width: 1024px) {
  .train-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .train-row .train-time.right { display: none; }
  .app-section { padding: 80px 0 70px; }
}

@media (max-width: 860px) {
  .journey-form { grid-template-columns: 1fr; gap: 12px; }
  .journey-form .field-select select, .journey-form input { width: 100%; }
  .swap-btn { transform: rotate(90deg); margin: -2px auto; }
  .search-btn { width: 100%; justify-content: center; }
  .train-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .train-row .train-time.right { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 340px) {
  .journey-card h2 { font-size: 16px; }
  .field label { font-size: 12px; margin-bottom: 6px; }
  .field input, .field select { padding: 10px 11px; font-size: 12.5px; border-radius: 6px; }
  .swap-btn { width: 32px; height: 32px; }
  .train-row { padding: 12px 14px; }
  .train-id strong { font-size: 13px; }
  .train-time strong { font-size: 13px; }
  .stats-inner { grid-template-columns: 1fr; gap: 14px; }
}

/* --- Header on small devices --- */
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .btn-nav { padding: 8px 14px; font-size: 13px; }
  .btn-nav.btn-login { padding: 8px 12px; }
  .brand-logo { height: 40px; }
  .menu-toggle { margin-left: 2px; }
  .main-nav.open { top: 64px; max-height: calc(100vh - 64px); }
  .profile-dropdown { position: fixed; top: 64px; left: 12px; right: 12px; min-width: unset; }
  .journey-card { scroll-margin-top: 110px; }
}

/* --- Very small phones --- */
@media (max-width: 400px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .btn-nav { padding: 6px 10px; font-size: 12px; }
  .btn-nav.btn-primary { padding: 6px 10px; font-size: 12px; }
  .brand-logo { height: 34px; }
  .hero-text h1 { font-size: 26px; }
  .section-heading h2 { font-size: 23px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 8px 14px; }
  .footer-strip strong { font-size: 13px; }
}

/* --- 320px phones --- */
@media (max-width: 340px) {
  .container { padding: 0 14px; }
  .header-inner { height: 60px; gap: 4px; }
  .journey-card { scroll-margin-top: 100px; }
  .brand-logo { height: 30px; }
  .btn-nav { padding: 7px 10px; font-size: 12px; min-height: 36px; }
  .menu-toggle { width: 30px; height: 30px; }
  .hero { padding-top: 30px; padding-bottom: 30px; min-height: unset; }
  .hero-text h1 { font-size: 22px; margin-bottom: 12px; }
  .hero-text p { font-size: 13px; margin-bottom: 20px; }
  .hero-btns .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 13px; }
  .journey-card { padding: 16px 14px; margin-top: 20px; margin-bottom: -50px; border-radius: 12px; }
  .journey-card h2 { font-size: 17px; margin-bottom: 12px; }
  .field input, .field select { padding: 11px 12px; font-size: 13px; }
  .search-btn { padding: 11px 16px; font-size: 13px; }
  .about { padding-top: 120px; padding-bottom: 60px; }
  .about-text h2 { font-size: 22px; }
  .about-text p { font-size: 14px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
  .panel-img img { height: 200px; }
  .check-list li { font-size: 13px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 13px; }
  .news-card, .blog-card { border-radius: 12px; }
  .news-card-img img, .blog-card-img img { aspect-ratio: 16 / 9; }
  .news-card-body, .blog-card-content { padding: 16px; }
  .news-card-title, .blog-card-title { font-size: 15px; }
  .news-card-desc, .blog-card-excerpt { font-size: 13px; }
  .accordion-head { font-size: 13.5px; padding: 16px 14px; }
  .accordion-body p { font-size: 13px; }
  .cta-inner { padding: 28px 18px; }
  .cta-text h2 { font-size: 20px; }
  .cta-text p { font-size: 13px; }
  .site-footer { padding-top: 36px; padding-bottom: 48px; margin-top: 1rem; margin-bottom: 0rem; overflow: visible; }
  .footer-grid { gap: 24px 14px; padding-bottom: 28px; }
  .footer-logo { height: 32px; max-width: 180px; }
  .footer-brand { padding-bottom: 10px; margin-bottom: 6px; }
  .footer-brand p { font-size: 13px; max-width: 100%; margin-bottom: 14px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 10px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 12.5px; }
  .footer-strip { gap: 16px; padding-top: 22px; padding-bottom: 22px; margin-top: 1rem; margin-bottom: 1rem; }
  .footer-strip > div { padding-bottom: 12px; }
  .strip-label { font-size: 10px; letter-spacing: .5px; }
  .footer-strip strong { font-size: 12px; word-break: break-word; overflow-wrap: anywhere; }
  .footer-bottom { gap: 10px; padding-top: 20px; padding-bottom: 12px; }
  .footer-bottom p { font-size: 11.5px; }
  .footer-bottom-links { gap: 6px 14px; }
  .footer-bottom-links a { font-size: 11.5px; }
  .social-links a { width: 36px; height: 36px; }
  .main-nav.open { top: 60px; }
  .main-nav.open ul > li > a { padding: 12px 18px; font-size: 14px; }
  .profile-dropdown { top: 60px; left: 8px; right: 8px; }
  #backToTop { width: 38px; height: 38px; right: 16px; bottom: 16px; }

  /* Extra-narrow footer stacking: full single column at 380px and below */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-col h4 { font-size: 11.5px; }
  .footer-col a { font-size: 13px; }
}

/* --- Touch-friendly taps --- */
@media (hover: none) and (pointer: coarse) {
  .btn, .tab-btn, .accordion-head, a, button { min-height: 40px; }
  .news-card:hover, .blog-card:hover, .train-row:hover { transform: none; box-shadow: none; border-color: #E5E7EB; }
  .news-card-arrow-btn, .blog-card-arrow-btn { display: none; }
  .news-card-link svg, .blog-card-link svg { transform: none; }
}

/* --- Ultra-wide screens --- */
@media (min-width: 1600px) {
  .container { max-width: 1360px; }
}

/* ==========================================================
   TOP ANNOUNCEMENT TICKER (scrolling line above navbar)
   ========================================================== */
.top-ticker {
  background: var(--navy-deep, #011E45);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 101;
  width: 100%;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 26s linear infinite;
}
.top-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
}
.ticker-item::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange, #FE6701);
  margin: 0 30px;
  flex: none;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .ticker-item { font-size: 10.5px; letter-spacing: .8px; }
  .ticker-item::after { margin: 0 18px; }
}
@media (max-width: 340px) {
  .ticker-item { font-size: 11px; letter-spacing: .6px; }
  .ticker-item::after { margin: 0 12px; width: 4px; height: 4px; }
}

/* --- Footer mobile polish (spacing + legal links wrap) --- */
@media (max-width: 768px) {
  .site-footer { padding-top: 44px; }
  .footer-grid { padding-bottom: 32px; }
  .footer-strip { padding-top: 18px; padding-bottom: 18px; }
  .footer-bottom { padding-top: 18px; padding-bottom: 4px; }
}

/* ==========================================================
   COMPREHENSIVE MOBILE FIX — 720px and below
   Targets: Tecno Spark 20C, all 720px-width devices
   ========================================================== */

/* --- Container: tighter padding on small screens --- */
@media (max-width: 720px) {
   .container { padding: 16px 14px; }
}

/* --- Hero section --- */
@media (max-width: 720px) {
  .hero { padding-top: 30px; padding-bottom: 30px; min-height: unset; }
  .hero-text h1 { font-size: 24px; }
  .hero-text p { font-size: 14px; }
  .hero-btns { flex-direction: column; align-self: stretch; }
  .hero-btns .btn { justify-content: center; width: 100%; }
}

/* --- Journey card (homepage search) --- */
@media (max-width: 720px) {
  .journey-card { padding: 18px 14px; margin-top: 20px; margin-bottom: 0; border-radius: 12px; }
  .journey-card h2 { font-size: 18px; margin-bottom: 10px; }
  .journey-form { grid-template-columns: 1fr; gap: 10px; }
  .swap-btn { transform: rotate(90deg); margin: -2px auto; }
  .field input, .field select { padding: 11px 12px; font-size: 13px; }
  .search-btn { width: 100%; justify-content: center; }
}

/* --- Header (small screens) --- */
@media (max-width: 720px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .brand-logo { height: 36px; }
}

/* --- Tabs (horizontal scroll on mobile) --- */
@media (max-width: 720px) {
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }
}

/* --- Sections padding --- */
@media (max-width: 720px) {
  .trains { padding: 60px 0; }
  .about { padding-top: 120px; padding-bottom: 60px; }
  .app-section { padding: 60px 0 50px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* --- Train row (single column) --- */
@media (max-width: 720px) {
  .train-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .train-row .train-time.right { display: block; text-align: left; }
}

/* --- CTA section --- */
@media (max-width: 720px) {
  .cta-inner { padding: 28px 16px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { justify-content: center; }
}

/* --- Footer (720px) --- */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* --- Profile menu --- */
@media (max-width: 720px) {
  .profile-name, .profile-caret { display: none; }
  .profile-chip-btn { padding: 4px; border: none; }
  .profile-dropdown { position: fixed; top: 60px; left: 12px; right: 12px; min-width: unset; }
}

/* --- Back to top button --- */
@media (max-width: 720px) {
  #backToTop { width: 36px; height: 36px; right: 14px; bottom: 14px; }
}

/* --- Main nav mobile --- */
@media (max-width: 720px) {
  .main-nav.open { top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* --- Blog section --- */
.blog {
  padding-top: 120px;
  padding-bottom: 60px;
}
.blog .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog .section-header h2 {
  font-size: 28px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.blog .section-header p {
  color: var(--text-muted);
  font-size: 15px;
}
/* --- Blog listing grid (reuses news-card styles) --- */
.blog {
  padding: 120px 0 80px;
}
.blog .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog .section-header h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy-deep);
}
.blog .section-header p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(6, 43, 85, 0.12);
  border-color: rgba(255, 107, 0, 0.25);
}
.blog-card-img {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.blog-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}
.blog-card-arrow-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange, #FF6B00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 300ms ease, transform 300ms ease;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
  z-index: 2;
}
.blog-card:hover .blog-card-arrow-btn {
  opacity: 1;
  transform: scale(1);
}
.blog-card-arrow-btn svg { pointer-events: none; }

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange, #FF6B00);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted, #8a93a3);
}
.blog-card-date svg { flex-shrink: 0; }

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep, #011E45);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body, #5b6675);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange, #FF6B00);
  margin-top: auto;
  transition: gap 300ms ease;
}
.blog-card-link svg {
  transition: transform 300ms ease;
}
.blog-card-link:hover svg,
.blog-card:hover .blog-card-link svg {
  transform: translateX(7px);
}

/* --- Blog detail --- */
.blog-detail {
  padding-top: 120px;
  padding-bottom: 80px;
}
.blog-detail-content {
  display: flex;
  align-items: flex-start;
  gap: 45px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-detail-image {
  flex: 0 0 55%;
  max-width: 735px;
  height: 700px;
  border-radius: 12px;
  overflow: hidden;
}
.blog-detail-image img {
  width: 100%;
  height: 75%;
  object-fit: cover;
}
.blog-detail-body {
  flex: 1;
  padding-top: 10px;
  min-width: 0;
  overflow: hidden;
}
.blog-detail-category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange-light, rgba(254,103,1,.1));
  color: var(--orange);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.blog-detail-title {
  font-size: 34px;
  color: var(--navy-deep, #011E45);
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.blog-detail-divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 24px;
}
.blog-detail-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text, #555);
  margin-bottom: 32px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted, #888);
  margin-bottom: 28px;
}
.blog-detail-meta svg {
  flex-shrink: 0;
  color: var(--orange);
}
.btn-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.2s;
}
.btn-blog-back:hover {
  gap: 12px;
}
.blog-detail-tags {
  margin: 16px 0 24px;
}

@media (max-width: 1200px) {
  .blog-detail-image {
    flex: 0 0 48%;
    height: 500px;
  }
}

@media (max-width: 900px) {
  .blog-detail-content {
    flex-direction: column;
    gap: 24px;
  }
  .blog-detail-image {
    flex: none;
    width: 100%;
    height: 400px;
  }
  .blog-detail-body {
    padding-top: 0;
  }
  .blog-detail-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .blog { padding-top: 100px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-detail { padding-top: 100px; padding-bottom: 50px; }
  .blog-detail-image {
    height: 280px;
  }
  .blog-detail-title { font-size: 22px; }
  .blog-detail-divider { margin-bottom: 18px; }
}

/* --- Blog loading spinner --- */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  min-height: 300px;
}
.blog-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #E5E7EB;
  border-top-color: var(--orange, #FE6701);
  border-radius: 50%;
  animation: blog-spin 0.8s linear infinite;
}
@keyframes blog-spin {
  to { transform: rotate(360deg); }
}
.blog-loading p {
  font-size: 15px;
  color: var(--text-muted, #8a93a3);
  font-weight: 500;
}

/* --- Blog error state --- */
.blog-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  min-height: 300px;
  text-align: center;
}
.blog-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
}
.blog-error h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep, #011E45);
}
.blog-error p {
  font-size: 14px;
  color: var(--text-muted, #8a93a3);
  margin-bottom: 8px;
}

/* --- Read More News button enhanced hover --- */
.news-heading .btn-outline:hover {
  background: var(--orange, #FF6B00);
  color: #fff;
  border-color: var(--orange, #FF6B00);
}
.news-heading .btn-outline:hover svg {
  transform: translateX(4px);
}
.news-heading .btn-outline svg {
  transition: transform 250ms ease;
}

/* --- Accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .news-card, .blog-card,
  .news-card-img img, .blog-card-img img,
  .news-card-arrow-btn, .blog-card-arrow-btn,
  .news-card-link svg, .blog-card-link svg {
    transition: none !important;
    animation: none !important;
  }
  .news-card:hover, .blog-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #E5E7EB !important;
  }
  .news-card:hover .news-card-img img,
  .blog-card:hover .blog-card-img img {
    transform: none !important;
  }
  .news-card-arrow-btn, .blog-card-arrow-btn {
    opacity: 0 !important;
    transform: none !important;
  }
  .blog-spinner {
    animation: blog-spin 1.6s linear infinite !important;
  }
}

/* ================= RTL Overrides ================= */
[dir="rtl"] .journey-card {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  [dir="rtl"] .journey-card {
    transform: none;
    left: 0;
    right: 0;
  }
}
[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 34px;
}
[dir="rtl"] .hero-stats {
  right: auto;
  left: 24px;
}
[dir="rtl"] .hero-text {
  text-align: right;
}
[dir="rtl"] .hero-btns {
  justify-content: flex-start;
}
[dir="rtl"] .field label {
  justify-content: flex-end;
}
[dir="rtl"] .cta-actions {
  align-items: flex-start;
}
html[dir="rtl"] .travel-list .train-row {
  direction: rtl;
}
[dir="rtl"] .travel-list .train-row .train-time {
  text-align: right;
}
[dir="rtl"] .travel-list .train-row .train-time.right {
  text-align: left;
}

/* ==========================================================
   HOME PAGE: Urdu field labels on LEFT side
   Labels should appear left-aligned above their fields
   while keeping Urdu text RTL for proper readability
   ========================================================== */
html[dir="rtl"] .field label {
  text-align: left;
  direction: ltr;
}

/* ==========================================================
   FOOTER RTL — Preserve desktop column positions
   Only internal content flows RTL
   ========================================================== */
html[dir="rtl"] .site-footer {
  direction: rtl;
}
/* Footer brand: logo stays aligned within brand column */
html[dir="rtl"] .footer-brand {
  text-align: right;
}
/* Footer column headings and links: RTL text alignment */
html[dir="rtl"] .footer-col h4 {
  text-align: right;
}
html[dir="rtl"] .footer-col ul {
  align-items: flex-start;
}
html[dir="rtl"] .footer-col a {
  text-align: right;
  display: block;
}
/* Footer strip: labels and values align right */
html[dir="rtl"] .footer-strip > div {
  align-items: flex-start;
  text-align: right;
}
html[dir="rtl"] .strip-label {
  text-align: right;
}
html[dir="rtl"] .footer-strip strong {
  text-align: right;
  unicode-bidi: isolate;
}
/* Footer bottom */
html[dir="rtl"] .footer-bottom p {
  text-align: right;
}
html[dir="rtl"] .footer-bottom-links {
  justify-content: flex-end;
}
html[dir="rtl"] .footer-bottom-links a {
  text-align: right;
}
/* Social links: icons stay visually left, text doesn't apply */
html[dir="rtl"] .social-links {
  justify-content: flex-end;
}

/* ==========================================================
   FOOTER RTL MOBILE — override mobile rules that force left alignment
   ========================================================== */
@media (max-width: 720px) {
  html[dir="rtl"] .footer-col h4 { text-align: right; }
  html[dir="rtl"] .footer-col ul { align-items: flex-start; }
  html[dir="rtl"] .footer-col a { text-align: right; display: block; }
  html[dir="rtl"] .footer-strip > div { align-items: flex-start; text-align: right; }
  html[dir="rtl"] .footer-strip > div strong { text-align: right; }
  html[dir="rtl"] .footer-strip > div:last-child { border-bottom: none; }
  html[dir="rtl"] .footer-bottom { align-items: flex-start; }
  html[dir="rtl"] .footer-bottom p { text-align: right; }
  html[dir="rtl"] .footer-bottom-links { justify-content: flex-end; }
  html[dir="rtl"] .footer-bottom-links a { text-align: right; }
  html[dir="rtl"] .social-links { justify-content: flex-end; }
  html[dir="rtl"] .site-footer .container { padding-left: 16px; padding-right: 16px; }

/* ==========================================================
   PROFILE DROPDOWN RTL
   ========================================================== */
html[dir="rtl"] .profile-dropdown a,
html[dir="rtl"] .profile-dropdown button {
  text-align: right;
}
html[dir="rtl"] .profile-dropdown-head {
  text-align: right;
}
}
@media (max-width: 414px) {
  html[dir="rtl"] .footer-bottom { align-items: flex-start; }
  html[dir="rtl"] .footer-bottom p { text-align: right; }
  html[dir="rtl"] .footer-bottom-links { justify-content: flex-end; gap: 6px 14px; flex-wrap: wrap; }
  html[dir="rtl"] .footer-bottom-links a { text-align: right; }
  html[dir="rtl"] .site-footer .container { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1085px) {
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 13.5px; }
  .btn-nav { padding: 8px 16px; font-size: 13px; }
  .header-inner { gap: 16px; }
}

/* ==========================================================
   FOOTER MOBILE RESPONSIVE — 320px to 414px
   ========================================================== */
@media (max-width: 414px) {
  .site-footer {
    padding: 40px 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-brand {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .footer-logo {
    height: 32px;
    max-width: 180px;
    margin-bottom: 12px;
  }
  .footer-brand p {
    font-size: 13px;
    max-width: 100%;
    margin-bottom: 16px;
  }
  .social-links {
    gap: 8px;
  }
  .social-links a {
    width: 34px;
    height: 34px;
  }
  .footer-col h4 {
    font-size: 11.5px;
    margin-bottom: 12px;
  }
  .footer-col ul {
    gap: 10px;
  }
  .footer-col a {
    font-size: 13px;
  }
  .footer-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px;
  }
  .footer-strip > div {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .footer-strip > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .strip-label {
    font-size: 10.5px;
    margin-bottom: 4px;
  }
  .footer-strip strong {
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
   padding: 16px 14px;
  }
  .footer-bottom p {
    font-size: 11.5px;
  }
  .footer-bottom-links {
    gap: 6px 14px;
    flex-wrap: wrap;
  }
  .footer-bottom-links a {
    font-size: 11.5px;
  }
}

@media (max-width: 375px) {
  .site-footer {
    padding: 32px 0 12px;
  }
  .footer-grid {
    gap: 22px;
    padding-bottom: 26px;
  }
  .footer-logo {
    height: 28px;
    max-width: 160px;
  }
  .footer-brand p {
    font-size: 12.5px;
    margin-bottom: 14px;
  }
  .footer-col h4 {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .footer-col a {
    font-size: 12.5px;
  }
  .footer-strip {
    gap: 14px;
    padding: 16px 0;
  }
  .footer-strip strong {
    font-size: 12.5px;
  }
  .footer-bottom {
    padding: 14px 0 10px;
    gap: 8px;
  }
  .footer-bottom p {
    font-size: 11px;
  }
  .footer-bottom-links a {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .footer-grid {
    gap: 18px;
  }
  .footer-logo {
    height: 26px;
    max-width: 145px;
  }
  .footer-col ul {
    gap: 8px;
  }
  .footer-col a {
    font-size: 12px;
  }
  .footer-strip strong {
    font-size: 12px;
  }
  .footer-bottom-links {
    gap: 4px 12px;
  }
}

@media (max-width: 320px) {
  .site-footer {
    padding: 62px 0 10px;
  }
  .footer-grid {
    gap: 16px;
    padding-bottom: 22px;
  }
  .footer-logo {
    height: 24px;
    max-width: 130px;
    margin-bottom: 10px;
  }
  .footer-brand p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .footer-col h4 {
    font-size: 10.5px;
    margin-bottom: 8px;
  }
  .footer-col ul {
    gap: 6px;
  }
  .footer-col a {
    font-size: 11.5px;
  }
  .footer-strip {
    gap: 12px;
    padding: 12px 17px;
  }
  .strip-label {
    font-size: 10px;
  }
  .footer-strip strong {
    font-size: 11.5px;
  }
  .footer-bottom {
        padding: 12px 15px;
  }
  .footer-bottom p {
    font-size: 10.5px;
  }
  .footer-bottom-links {
    gap: 4px 10px;
  }
  .footer-bottom-links a {
    font-size: 10.5px;
  }
  .social-links a {
    width: 32px;
    height: 32px;
  }
}
